hbase git commit: HBASE-18147 POC jenkinsfile for nightly checks. [Forced Update!]
Repository: hbase Updated Branches: refs/heads/HBASE-18147 47bee5e7f -> 2faedd9e0 (forced update) HBASE-18147 POC jenkinsfile for nightly checks. * TODO branch with mulitple jdk versions * TODO verify flaky list is in use Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/2faedd9e Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/2faedd9e Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/2faedd9e Branch: refs/heads/HBASE-18147 Commit: 2faedd9e08c46d5bfafc2dc573646903d2724eab Parents: df93c13 Author: Sean BusbeyAuthored: Tue Jul 4 15:12:38 2017 -0400 Committer: Sean Busbey Committed: Thu Jul 6 01:51:35 2017 -0400 -- dev-support/Jenkinsfile | 132 +++ 1 file changed, 132 insertions(+) -- http://git-wip-us.apache.org/repos/asf/hbase/blob/2faedd9e/dev-support/Jenkinsfile -- diff --git a/dev-support/Jenkinsfile b/dev-support/Jenkinsfile new file mode 100644 index 000..8de72eb --- /dev/null +++ b/dev-support/Jenkinsfile @@ -0,0 +1,132 @@ +pipeline { + agent { +node { + label 'Hadoop' +} + } + // bug in yetus that requires maven outside of the dockerfile + tools { +maven 'Maven (latest)' + } + triggers { +cron('@daily') + } + options { +timeout (time: 6, unit: 'HOURS') +timestamps() + } + environment { +TOOLS = "${env.WORKSPACE}/tools" +BASEDIR = "${env.WORKSPACE}/component" +YETUS_RELEASE = '0.4.0' + } + parameters { +booleanParam(name: 'USE_YETUS_PRERELEASE', defaultValue: false, description: '''Check to use the current HEAD of apache/yetus rather than our configured release. + +Should only be used manually when e.g. there is some non-work-aroundable issue in yetus we are checking a fix for.''') + } + stages { +stage ('yetus check') { + environment { +OUTPUTDIR = "${env.WORKSPACE}/artifacts" +PROJECT = 'hbase' +PROJET_PERSONALITY = 'https://raw.githubusercontent.com/apache/hbase/master/dev-support/hbase-personality.sh' +AUTHOR_IGNORE_LIST = 'src/main/asciidoc/_chapters/developer.adoc' +WHITESPACE_IGNORE_LIST = '.*/generated/.*' +TESTS_FILTER = 'cc,checkstyle,javac,javadoc,pylint,shellcheck,whitespace,perlcritic,ruby-lint,rubocop' +BRANCH_SPECIFIC_DOCKERFILE = "${env.BASEDIR}/dev-support/docker/Dockerfile" + } + steps { +// TODO we can move the yetus install into a different stage and then use stash to deploy it. +sh '''#!/usr/bin/env bash +printenv +echo "Ensure we have a copy of Apache Yetus." +if [[ true != "${USE_YETUS_PRERELEASE}" ]]; then + YETUS_DIR="${WORKSPACE}/yetus-${YETUS_RELEASE}" + echo "Checking for Yetus ${YETUS_RELEASE} in '${YETUS_DIR}'" + if [ ! -d "${YETUS_DIR}" ]; then +echo "New download of Apache Yetus version ${YETUS_RELEASE}." +rm -rf "${WORKSPACE}/.gpg" +mkdir -p "${WORKSPACE}/.gpg" +chmod -R 700 "${WORKSPACE}/.gpg" + +echo "install yetus project KEYS" +curl -L --fail -o "${WORKSPACE}/KEYS_YETUS" https://dist.apache.org/repos/dist/release/yetus/KEYS +gpg --homedir "${WORKSPACE}/.gpg" --import "${WORKSPACE}/KEYS_YETUS" + +echo "download yetus release ${YETUS_RELEASE}" +curl -L --fail -O "https://dist.apache.org/repos/dist/release/yetus/${YETUS_RELEASE}/yetus-${YETUS_RELEASE}-bin.tar.gz; +curl -L --fail -O "https://dist.apache.org/repos/dist/release/yetus/${YETUS_RELEASE}/yetus-${YETUS_RELEASE}-bin.tar.gz.asc; +echo "verifying yetus release" +gpg --homedir "${WORKSPACE}/.gpg" --verify "yetus-${YETUS_RELEASE}-bin.tar.gz.asc" +mv "yetus-${YETUS_RELEASE}-bin.tar.gz" yetus.tar.gz + else +echo "Reusing cached download of Apache Yetus version ${YETUS_RELEASE}." + fi +else + YETUS_DIR="${WORKSPACE}/yetus-git" + rm -rf "${YETUS_DIR}" + echo "downloading from github" + curl -L --fail https://api.github.com/repos/apache/yetus/tarball/HEAD -o yetus.tar.gz +fi +if [ ! -d "${YETUS_DIR}" ]; then + echo "unpacking yetus into '${YETUS_DIR}'" + mkdir -p "${YETUS_DIR}" + gunzip -c yetus.tar.gz | tar xpf - -C "${YETUS_DIR}" --strip-components 1 +fi + ''' +// TODO we can move the personality install into a different stage and then use stash to deploy it. + dir ("${env.TOOLS}") { + sh """#!/usr/bin/env bash +echo "Downloading Project personality." +curl -L -o personality.sh "${env.PROJET_PERSONALITY}" + """ + } + sh '''#!/usr/bin/env bash +YETUS_ARGS=() +YETUS_ARGS=("--personality=${TOOLS}/personality.sh" "${YETUS_ARGS[@]}") +YETUS_ARGS=("--basedir=${BASEDIR}" "${YETUS_ARGS[@]}") +YETUS_ARGS=("--build-url-artifacts=${OUTPUTDIR}" "${YETUS_ARGS[@]}")
hbase git commit: HBASE-18002 Investigate why bucket cache filling up in file mode in an exisiting file is slower (Ram)
Repository: hbase Updated Branches: refs/heads/branch-2 1049025e1 -> 381a151d1 HBASE-18002 Investigate why bucket cache filling up in file mode in an exisiting file is slower (Ram) Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/381a151d Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/381a151d Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/381a151d Branch: refs/heads/branch-2 Commit: 381a151d14e5fe540f9ac9967115255a85d07b3c Parents: 1049025 Author: RamkrishnaAuthored: Thu Jul 6 11:20:00 2017 +0530 Committer: Ramkrishna Committed: Thu Jul 6 11:22:11 2017 +0530 -- .../hadoop/hbase/io/hfile/bucket/BucketCache.java| 7 --- .../hadoop/hbase/io/hfile/bucket/FileIOEngine.java | 15 ++- .../hbase/io/hfile/bucket/TestFileIOEngine.java | 2 +- 3 files changed, 19 insertions(+), 5 deletions(-) -- http://git-wip-us.apache.org/repos/asf/hbase/blob/381a151d/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/bucket/BucketCache.java -- diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/bucket/BucketCache.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/bucket/BucketCache.java index 3c27f14..489c805 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/bucket/BucketCache.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/bucket/BucketCache.java @@ -227,7 +227,7 @@ public class BucketCache implements BlockCache, HeapSize { public BucketCache(String ioEngineName, long capacity, int blockSize, int[] bucketSizes, int writerThreadNum, int writerQLen, String persistencePath, int ioErrorsTolerationDuration) throws FileNotFoundException, IOException { -this.ioEngine = getIOEngineFromName(ioEngineName, capacity); +this.ioEngine = getIOEngineFromName(ioEngineName, capacity, persistencePath); this.writerThreads = new WriterThread[writerThreadNum]; long blockNumCapacity = capacity / blockSize; if (blockNumCapacity >= Integer.MAX_VALUE) { @@ -309,10 +309,11 @@ public class BucketCache implements BlockCache, HeapSize { * Get the IOEngine from the IO engine name * @param ioEngineName * @param capacity + * @param persistencePath * @return the IOEngine * @throws IOException */ - private IOEngine getIOEngineFromName(String ioEngineName, long capacity) + private IOEngine getIOEngineFromName(String ioEngineName, long capacity, String persistencePath) throws IOException { if (ioEngineName.startsWith("file:") || ioEngineName.startsWith("files:")) { // In order to make the usage simple, we only need the prefix 'files:' in @@ -320,7 +321,7 @@ public class BucketCache implements BlockCache, HeapSize { // the compatibility String[] filePaths = ioEngineName.substring(ioEngineName.indexOf(":") + 1) .split(FileIOEngine.FILE_DELIMITER); - return new FileIOEngine(capacity, filePaths); + return new FileIOEngine(capacity, persistencePath != null, filePaths); } else if (ioEngineName.startsWith("offheap")) { return new ByteBufferIOEngine(capacity, true); } else if (ioEngineName.startsWith("heap")) { http://git-wip-us.apache.org/repos/asf/hbase/blob/381a151d/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/bucket/FileIOEngine.java -- diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/bucket/FileIOEngine.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/bucket/FileIOEngine.java index 7586d57..a847bfe 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/bucket/FileIOEngine.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/bucket/FileIOEngine.java @@ -52,11 +52,24 @@ public class FileIOEngine implements IOEngine { private FileReadAccessor readAccessor = new FileReadAccessor(); private FileWriteAccessor writeAccessor = new FileWriteAccessor(); - public FileIOEngine(long capacity, String... filePaths) throws IOException { + public FileIOEngine(long capacity, boolean maintainPersistence, String... filePaths) + throws IOException { this.sizePerFile = capacity / filePaths.length; this.capacity = this.sizePerFile * filePaths.length; this.filePaths = filePaths; this.fileChannels = new FileChannel[filePaths.length]; +if (!maintainPersistence) { + for (String filePath : filePaths) { +File file = new File(filePath); +if (file.exists()) { + if (LOG.isDebugEnabled()) { +LOG.debug("File " + filePath +
hbase git commit: HBASE-18147 POC jenkinsfile for nightly checks. [Forced Update!]
Repository: hbase Updated Branches: refs/heads/HBASE-18147 4d0397bb4 -> 47bee5e7f (forced update) HBASE-18147 POC jenkinsfile for nightly checks. Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/47bee5e7 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/47bee5e7 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/47bee5e7 Branch: refs/heads/HBASE-18147 Commit: 47bee5e7f32d010100c094c567597af38afe0bc7 Parents: df93c13 Author: Sean BusbeyAuthored: Tue Jul 4 15:12:38 2017 -0400 Committer: Sean Busbey Committed: Thu Jul 6 01:42:52 2017 -0400 -- dev-support/Jenkinsfile | 132 +++ 1 file changed, 132 insertions(+) -- http://git-wip-us.apache.org/repos/asf/hbase/blob/47bee5e7/dev-support/Jenkinsfile -- diff --git a/dev-support/Jenkinsfile b/dev-support/Jenkinsfile new file mode 100644 index 000..8de72eb --- /dev/null +++ b/dev-support/Jenkinsfile @@ -0,0 +1,132 @@ +pipeline { + agent { +node { + label 'Hadoop' +} + } + // bug in yetus that requires maven outside of the dockerfile + tools { +maven 'Maven (latest)' + } + triggers { +cron('@daily') + } + options { +timeout (time: 6, unit: 'HOURS') +timestamps() + } + environment { +TOOLS = "${env.WORKSPACE}/tools" +BASEDIR = "${env.WORKSPACE}/component" +YETUS_RELEASE = '0.4.0' + } + parameters { +booleanParam(name: 'USE_YETUS_PRERELEASE', defaultValue: false, description: '''Check to use the current HEAD of apache/yetus rather than our configured release. + +Should only be used manually when e.g. there is some non-work-aroundable issue in yetus we are checking a fix for.''') + } + stages { +stage ('yetus check') { + environment { +OUTPUTDIR = "${env.WORKSPACE}/artifacts" +PROJECT = 'hbase' +PROJET_PERSONALITY = 'https://raw.githubusercontent.com/apache/hbase/master/dev-support/hbase-personality.sh' +AUTHOR_IGNORE_LIST = 'src/main/asciidoc/_chapters/developer.adoc' +WHITESPACE_IGNORE_LIST = '.*/generated/.*' +TESTS_FILTER = 'cc,checkstyle,javac,javadoc,pylint,shellcheck,whitespace,perlcritic,ruby-lint,rubocop' +BRANCH_SPECIFIC_DOCKERFILE = "${env.BASEDIR}/dev-support/docker/Dockerfile" + } + steps { +// TODO we can move the yetus install into a different stage and then use stash to deploy it. +sh '''#!/usr/bin/env bash +printenv +echo "Ensure we have a copy of Apache Yetus." +if [[ true != "${USE_YETUS_PRERELEASE}" ]]; then + YETUS_DIR="${WORKSPACE}/yetus-${YETUS_RELEASE}" + echo "Checking for Yetus ${YETUS_RELEASE} in '${YETUS_DIR}'" + if [ ! -d "${YETUS_DIR}" ]; then +echo "New download of Apache Yetus version ${YETUS_RELEASE}." +rm -rf "${WORKSPACE}/.gpg" +mkdir -p "${WORKSPACE}/.gpg" +chmod -R 700 "${WORKSPACE}/.gpg" + +echo "install yetus project KEYS" +curl -L --fail -o "${WORKSPACE}/KEYS_YETUS" https://dist.apache.org/repos/dist/release/yetus/KEYS +gpg --homedir "${WORKSPACE}/.gpg" --import "${WORKSPACE}/KEYS_YETUS" + +echo "download yetus release ${YETUS_RELEASE}" +curl -L --fail -O "https://dist.apache.org/repos/dist/release/yetus/${YETUS_RELEASE}/yetus-${YETUS_RELEASE}-bin.tar.gz; +curl -L --fail -O "https://dist.apache.org/repos/dist/release/yetus/${YETUS_RELEASE}/yetus-${YETUS_RELEASE}-bin.tar.gz.asc; +echo "verifying yetus release" +gpg --homedir "${WORKSPACE}/.gpg" --verify "yetus-${YETUS_RELEASE}-bin.tar.gz.asc" +mv "yetus-${YETUS_RELEASE}-bin.tar.gz" yetus.tar.gz + else +echo "Reusing cached download of Apache Yetus version ${YETUS_RELEASE}." + fi +else + YETUS_DIR="${WORKSPACE}/yetus-git" + rm -rf "${YETUS_DIR}" + echo "downloading from github" + curl -L --fail https://api.github.com/repos/apache/yetus/tarball/HEAD -o yetus.tar.gz +fi +if [ ! -d "${YETUS_DIR}" ]; then + echo "unpacking yetus into '${YETUS_DIR}'" + mkdir -p "${YETUS_DIR}" + gunzip -c yetus.tar.gz | tar xpf - -C "${YETUS_DIR}" --strip-components 1 +fi + ''' +// TODO we can move the personality install into a different stage and then use stash to deploy it. + dir ("${env.TOOLS}") { + sh """#!/usr/bin/env bash +echo "Downloading Project personality." +curl -L -o personality.sh "${env.PROJET_PERSONALITY}" + """ + } + sh '''#!/usr/bin/env bash +YETUS_ARGS=() +YETUS_ARGS=("--personality=${TOOLS}/personality.sh" "${YETUS_ARGS[@]}") +YETUS_ARGS=("--basedir=${BASEDIR}" "${YETUS_ARGS[@]}") +YETUS_ARGS=("--build-url-artifacts=${OUTPUTDIR}" "${YETUS_ARGS[@]}") +YETUS_ARGS=("--console-urls" "${YETUS_ARGS[@]}") +YETUS_ARGS=("--docker"
[42/52] [abbrv] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update
http://git-wip-us.apache.org/repos/asf/hbase/blob/df93c13f/hbase-examples/README.txt -- diff --git a/hbase-examples/README.txt b/hbase-examples/README.txt index c47ed4f..22d1103 100644 --- a/hbase-examples/README.txt +++ b/hbase-examples/README.txt @@ -63,27 +63,8 @@ Example code. 3. Execute {./DemoClient}. ON PROTOBUFS -This maven module has protobuf definition files ('.protos') used by hbase -Coprocessor Endpoints examples including tests. Coprocessor -Endpoints are meant to be standalone, independent code not reliant on hbase -internals. They define their Service using protobuf. The protobuf version -they use can be distinct from that used by HBase internally since HBase started -shading its protobuf references. Endpoints have no access to the shaded protobuf -hbase uses. They do have access to the content of hbase-protocol -- the -.protos found in here -- but avoid using as much of this as you can as it is -liable to change. +This maven module has core protobuf definition files ('.protos') used by hbase +examples. -Generation of java files from protobuf .proto files included here is done apart -from the build. Run the generation whenever you make changes to the .orotos files -and then check in the produced java (The reasoning is that change is infrequent -so why pay the price of generating files anew on each build. - -To generate java files from protos run: - - $ mvn compile -Dcompile-protobuf -or - $ mvn compile -Pcompile-protobuf - -After you've done the above, check it and then check in changes (or post a patch -on a JIRA with your definition file changes and the generated files). Be careful -to notice new files and files removed and do appropriate git rm/adds. +Generation of java files from protobuf .proto files included here is done as +part of the build. http://git-wip-us.apache.org/repos/asf/hbase/blob/df93c13f/hbase-examples/pom.xml -- diff --git a/hbase-examples/pom.xml b/hbase-examples/pom.xml index 3a30add..5c6acfa 100644 --- a/hbase-examples/pom.xml +++ b/hbase-examples/pom.xml @@ -29,7 +29,7 @@ hbase-examples Apache HBase - Examples Examples of HBase usage - + @@ -46,20 +46,33 @@ true - -maven-surefire-plugin -${surefire.version} - - -${surefire.firstPartGroups} - - - - - org.apache.maven.plugins - maven-source-plugin - + ${surefire.firstPartGroups} + + + + +org.apache.maven.plugins +maven-source-plugin + + +org.xolstice.maven.plugins +protobuf-maven-plugin + + +compile-protoc +generate-sources + + compile + + + + @@ -81,7 +94,7 @@ - + @@ -94,7 +107,7 @@ - + @@ -112,16 +125,16 @@ test -org.apache.hbase -hbase-common + org.apache.hbase + hbase-common -org.apache.hbase -hbase-protocol + org.apache.hbase + hbase-protocol -org.apache.hbase -hbase-client + org.apache.hbase + hbase-client org.apache.hbase @@ -136,11 +149,10 @@ hbase-thrift -org.apache.hbase -hbase-testing-util -test + org.apache.hbase + hbase-testing-util + test - org.apache.thrift libthrift @@ -157,152 +169,126 @@ com.google.protobuf protobuf-java - - - - - skipExamplesTests - - - skipExamplesTests - - - - true - true - - - - compile-protobuf - - - compile-protobuf - - - - - -org.xolstice.maven.plugins -protobuf-maven-plugin - - -compile-protoc -generate-sources - - compile - - - - - - - - - - + + skipExamplesTests + + + skipExamplesTests + + + +true +true + + + + - -
[38/52] [abbrv] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update
http://git-wip-us.apache.org/repos/asf/hbase/blob/df93c13f/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/ApiOrBuilder.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/ApiOrBuilder.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/ApiOrBuilder.java deleted file mode 100644 index b8b7030..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/ApiOrBuilder.java +++ /dev/null @@ -1,258 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/api.proto - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -public interface ApiOrBuilder extends -// @@protoc_insertion_point(interface_extends:google.protobuf.Api) -org.apache.hadoop.hbase.shaded.com.google.protobuf.MessageOrBuilder { - - /** - * - * The fully qualified name of this api, including package name - * followed by the api's simple name. - * - * - * string name = 1; - */ - java.lang.String getName(); - /** - * - * The fully qualified name of this api, including package name - * followed by the api's simple name. - * - * - * string name = 1; - */ - org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString - getNameBytes(); - - /** - * - * The methods of this api, in unspecified order. - * - * - * repeated .google.protobuf.Method methods = 2; - */ - java.util.List - getMethodsList(); - /** - * - * The methods of this api, in unspecified order. - * - * - * repeated .google.protobuf.Method methods = 2; - */ - org.apache.hadoop.hbase.shaded.com.google.protobuf.Method getMethods(int index); - /** - * - * The methods of this api, in unspecified order. - * - * - * repeated .google.protobuf.Method methods = 2; - */ - int getMethodsCount(); - /** - * - * The methods of this api, in unspecified order. - * - * - * repeated .google.protobuf.Method methods = 2; - */ - java.util.List - getMethodsOrBuilderList(); - /** - * - * The methods of this api, in unspecified order. - * - * - * repeated .google.protobuf.Method methods = 2; - */ - org.apache.hadoop.hbase.shaded.com.google.protobuf.MethodOrBuilder getMethodsOrBuilder( - int index); - - /** - * - * Any metadata attached to the API. - * - * - * repeated .google.protobuf.Option options = 3; - */ - java.util.List - getOptionsList(); - /** - * - * Any metadata attached to the API. - * - * - * repeated .google.protobuf.Option options = 3; - */ - org.apache.hadoop.hbase.shaded.com.google.protobuf.Option getOptions(int index); - /** - * - * Any metadata attached to the API. - * - * - * repeated .google.protobuf.Option options = 3; - */ - int getOptionsCount(); - /** - * - * Any metadata attached to the API. - * - * - * repeated .google.protobuf.Option options = 3; - */ - java.util.List - getOptionsOrBuilderList(); - /** - * - * Any metadata attached to the API. - * - * - * repeated .google.protobuf.Option options = 3; - */ - org.apache.hadoop.hbase.shaded.com.google.protobuf.OptionOrBuilder getOptionsOrBuilder( - int index); - - /** - * - * A version string for this api. If specified, must have the form - * `major-version.minor-version`, as in `1.10`. If the minor version - * is omitted, it defaults to zero. If the entire version field is - * empty, the major version is derived from the package name, as - * outlined below. If the field is not empty, the version in the - * package name will be verified to be consistent with what is - * provided here. - * The versioning schema uses [semantic - * versioning](http://semver.org) where the major version number - * indicates a breaking change and the minor version an additive, - * non-breaking change. Both version numbers are signals to users - * what to expect from different versions, and should be carefully - * chosen based on the product plan. - * The major version is also reflected in the package name of the - * API, which must end in `vmajor-version`, as in - * `google.feature.v1`. For major versions 0 and 1, the suffix can - * be omitted. Zero major versions must only be used for - * experimental, none-GA apis. - * - * - * string version = 4; - */ - java.lang.String getVersion(); - /** - * - * A version string for this api. If specified, must have the form - * `major-version.minor-version`, as in `1.10`. If the minor version - * is omitted, it defaults to zero. If the entire version field is - * empty, the major version is derived from the package name, as - * outlined below. If the field is not empty, the version in the - * package name will be verified
[05/52] [abbrv] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update
http://git-wip-us.apache.org/repos/asf/hbase/blob/df93c13f/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/ipc/protobuf/generated/TestProtos.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/ipc/protobuf/generated/TestProtos.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/ipc/protobuf/generated/TestProtos.java deleted file mode 100644 index a30032d..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/ipc/protobuf/generated/TestProtos.java +++ /dev/null @@ -1,2987 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: test.proto - -package org.apache.hadoop.hbase.shaded.ipc.protobuf.generated; - -public final class TestProtos { - private TestProtos() {} - public static void registerAllExtensions( - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistry registry) { -registerAllExtensions( - (org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface EmptyRequestProtoOrBuilder extends - // @@protoc_insertion_point(interface_extends:EmptyRequestProto) - org.apache.hadoop.hbase.shaded.com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code EmptyRequestProto} - */ - public static final class EmptyRequestProto extends - org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EmptyRequestProto) - EmptyRequestProtoOrBuilder { -// Use EmptyRequestProto.newBuilder() to construct. -private EmptyRequestProto(org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); -} -private EmptyRequestProto() { -} - -@java.lang.Override -public final org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet -getUnknownFields() { - return this.unknownFields; -} -private EmptyRequestProto( -org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input, - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) -throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException { - this(); - org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet.Builder unknownFields = - org.apache.hadoop.hbase.shaded.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 (org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException e) { -throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { -throw new org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException( -e).setUnfinishedMessage(this); - } finally { -this.unknownFields = unknownFields.build(); -makeExtensionsImmutable(); - } -} -public static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.Descriptor -getDescriptor() { - return org.apache.hadoop.hbase.shaded.ipc.protobuf.generated.TestProtos.internal_static_EmptyRequestProto_descriptor; -} - -protected org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable -internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.shaded.ipc.protobuf.generated.TestProtos.internal_static_EmptyRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.shaded.ipc.protobuf.generated.TestProtos.EmptyRequestProto.class, org.apache.hadoop.hbase.shaded.ipc.protobuf.generated.TestProtos.EmptyRequestProto.Builder.class); -} - -private byte memoizedIsInitialized = -1; -public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; -} - -public void writeTo(org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedOutputStream output) -throws java.io.IOException { - unknownFields.writeTo(output); -} - -
[06/52] [abbrv] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update
http://git-wip-us.apache.org/repos/asf/hbase/blob/df93c13f/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/ipc/protobuf/generated/TestProcedureProtos.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/ipc/protobuf/generated/TestProcedureProtos.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/ipc/protobuf/generated/TestProcedureProtos.java deleted file mode 100644 index 46e9c01..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/ipc/protobuf/generated/TestProcedureProtos.java +++ /dev/null @@ -1,608 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: TestProcedure.proto - -package org.apache.hadoop.hbase.shaded.ipc.protobuf.generated; - -public final class TestProcedureProtos { - private TestProcedureProtos() {} - public static void registerAllExtensions( - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistry registry) { -registerAllExtensions( - (org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface TestTableDDLStateDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:TestTableDDLStateData) - org.apache.hadoop.hbase.shaded.com.google.protobuf.MessageOrBuilder { - -/** - * required string table_name = 1; - */ -boolean hasTableName(); -/** - * required string table_name = 1; - */ -java.lang.String getTableName(); -/** - * required string table_name = 1; - */ -org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString -getTableNameBytes(); - } - /** - * Protobuf type {@code TestTableDDLStateData} - */ - public static final class TestTableDDLStateData extends - org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:TestTableDDLStateData) - TestTableDDLStateDataOrBuilder { -// Use TestTableDDLStateData.newBuilder() to construct. -private TestTableDDLStateData(org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); -} -private TestTableDDLStateData() { - tableName_ = ""; -} - -@java.lang.Override -public final org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet -getUnknownFields() { - return this.unknownFields; -} -private TestTableDDLStateData( -org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input, - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) -throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet.Builder unknownFields = - org.apache.hadoop.hbase.shaded.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; -} -case 10: { - org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x0001; - tableName_ = bs; - break; -} - } -} - } catch (org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException e) { -throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { -throw new org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException( -e).setUnfinishedMessage(this); - } finally { -this.unknownFields = unknownFields.build(); -makeExtensionsImmutable(); - } -} -public static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.Descriptor -getDescriptor() { - return org.apache.hadoop.hbase.shaded.ipc.protobuf.generated.TestProcedureProtos.internal_static_TestTableDDLStateData_descriptor; -} - -protected org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable -internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.shaded.ipc.protobuf.generated.TestProcedureProtos.internal_static_TestTableDDLStateData_fieldAccessorTable -
[26/52] [abbrv] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update
http://git-wip-us.apache.org/repos/asf/hbase/blob/df93c13f/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/GeneratedMessage.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/GeneratedMessage.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/GeneratedMessage.java deleted file mode 100644 index 4a0f93a..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/GeneratedMessage.java +++ /dev/null @@ -1,3047 +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. - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.Descriptor; -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.EnumDescriptor; -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.EnumValueDescriptor; -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.FieldDescriptor; -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.FileDescriptor; -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.OneofDescriptor; - -import java.io.IOException; -import java.io.InputStream; -import java.io.ObjectStreamException; -import java.io.Serializable; -import java.lang.reflect.InvocationTargetException; -import java.lang.reflect.Method; -import java.util.ArrayList; -import java.util.Collections; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.TreeMap; - -/** - * All generated protocol message classes extend this class. This class - * implements most of the Message and Builder interfaces using Java reflection. - * Users can ignore this class and pretend that generated messages implement - * the Message interface directly. - * - * @author ken...@google.com Kenton Varda - */ -public abstract class GeneratedMessage extends AbstractMessage -implements Serializable { - private static final long serialVersionUID = 1L; - - /** - * For testing. Allows a test to disable the optimization that avoids using - * field builders for nested messages until they are requested. By disabling - * this optimization, existing tests can be reused to test the field builders. - */ - protected static boolean alwaysUseFieldBuilders = false; - - /** For use by generated code only. */ - protected UnknownFieldSet unknownFields; - - protected GeneratedMessage() { -unknownFields = UnknownFieldSet.getDefaultInstance(); - } - - protected GeneratedMessage(Builder builder) { -unknownFields = builder.getUnknownFields(); - } - - @Override - public Parser getParserForType() { -throw new UnsupportedOperationException( -"This is supposed to be overridden by subclasses."); - } - - /** - * For testing. Allows a test to disable the optimization that avoids using - * field builders for nested messages until they are requested. By disabling - * this optimization, existing tests can be reused to test the field builders. - * See {@link RepeatedFieldBuilder} and {@link SingleFieldBuilder}. - */ - static void enableAlwaysUseFieldBuildersForTesting() { -alwaysUseFieldBuilders =
[47/52] [abbrv] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update
http://git-wip-us.apache.org/repos/asf/hbase/blob/df93c13f/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/coprocessor/protobuf/generated/ColumnAggregationWithNullResponseProtos.java -- diff --git a/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/coprocessor/protobuf/generated/ColumnAggregationWithNullResponseProtos.java b/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/coprocessor/protobuf/generated/ColumnAggregationWithNullResponseProtos.java deleted file mode 100644 index b25f7aa..000 --- a/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/coprocessor/protobuf/generated/ColumnAggregationWithNullResponseProtos.java +++ /dev/null @@ -1,1283 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ColumnAggregationNullResponseProtocol.proto - -package org.apache.hadoop.hbase.coprocessor.protobuf.generated; - -public final class ColumnAggregationWithNullResponseProtos { - private ColumnAggregationWithNullResponseProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public interface ColumnAggregationNullResponseSumRequestOrBuilder - extends com.google.protobuf.MessageOrBuilder { - -// required bytes family = 1; -/** - * required bytes family = 1; - */ -boolean hasFamily(); -/** - * required bytes family = 1; - */ -com.google.protobuf.ByteString getFamily(); - -// optional bytes qualifier = 2; -/** - * optional bytes qualifier = 2; - */ -boolean hasQualifier(); -/** - * optional bytes qualifier = 2; - */ -com.google.protobuf.ByteString getQualifier(); - } - /** - * Protobuf type {@code ColumnAggregationNullResponseSumRequest} - * - * - * use unique names for messages in ColumnAggregationXXX.protos due to a bug in - * protoc or hadoop's protoc compiler. - * - */ - public static final class ColumnAggregationNullResponseSumRequest extends - com.google.protobuf.GeneratedMessage - implements ColumnAggregationNullResponseSumRequestOrBuilder { -// Use ColumnAggregationNullResponseSumRequest.newBuilder() to construct. -private ColumnAggregationNullResponseSumRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); -} -private ColumnAggregationNullResponseSumRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - -private static final ColumnAggregationNullResponseSumRequest defaultInstance; -public static ColumnAggregationNullResponseSumRequest getDefaultInstance() { - return defaultInstance; -} - -public ColumnAggregationNullResponseSumRequest getDefaultInstanceForType() { - return defaultInstance; -} - -private final com.google.protobuf.UnknownFieldSet unknownFields; -@java.lang.Override -public final com.google.protobuf.UnknownFieldSet -getUnknownFields() { - return this.unknownFields; -} -private ColumnAggregationNullResponseSumRequest( -com.google.protobuf.CodedInputStream input, -com.google.protobuf.ExtensionRegistryLite extensionRegistry) -throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.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; -} -case 10: { - bitField0_ |= 0x0001; - family_ = input.readBytes(); - break; -} -case 18: { - bitField0_ |= 0x0002; - qualifier_ = input.readBytes(); - break; -} - } -} - } catch (com.google.protobuf.InvalidProtocolBufferException e) { -throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { -throw new com.google.protobuf.InvalidProtocolBufferException( -e.getMessage()).setUnfinishedMessage(this); - } finally { -this.unknownFields = unknownFields.build(); -makeExtensionsImmutable(); - } -} -public static final com.google.protobuf.Descriptors.Descriptor -getDescriptor() { - return
[19/52] [abbrv] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update
http://git-wip-us.apache.org/repos/asf/hbase/blob/df93c13f/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Method.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Method.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Method.java deleted file mode 100644 index 32e8b35..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Method.java +++ /dev/null @@ -1,1541 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/api.proto - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -/** - * - * Method represents a method of an api. - * - * - * Protobuf type {@code google.protobuf.Method} - */ -public final class Method extends -org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3 implements -// @@protoc_insertion_point(message_implements:google.protobuf.Method) -MethodOrBuilder { - // Use Method.newBuilder() to construct. - private Method(org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) { -super(builder); - } - private Method() { -name_ = ""; -requestTypeUrl_ = ""; -requestStreaming_ = false; -responseTypeUrl_ = ""; -responseStreaming_ = false; -options_ = java.util.Collections.emptyList(); -syntax_ = 0; - } - - @java.lang.Override - public final org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet - getUnknownFields() { -return org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private Method( - org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input, - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException { -this(); -int mutable_bitField0_ = 0; -try { - boolean done = false; - while (!done) { -int tag = input.readTag(); -switch (tag) { - case 0: -done = true; -break; - default: { -if (!input.skipField(tag)) { - done = true; -} -break; - } - case 10: { -java.lang.String s = input.readStringRequireUtf8(); - -name_ = s; -break; - } - case 18: { -java.lang.String s = input.readStringRequireUtf8(); - -requestTypeUrl_ = s; -break; - } - case 24: { - -requestStreaming_ = input.readBool(); -break; - } - case 34: { -java.lang.String s = input.readStringRequireUtf8(); - -responseTypeUrl_ = s; -break; - } - case 40: { - -responseStreaming_ = input.readBool(); -break; - } - case 50: { -if (!((mutable_bitField0_ & 0x0020) == 0x0020)) { - options_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x0020; -} -options_.add( - input.readMessage(org.apache.hadoop.hbase.shaded.com.google.protobuf.Option.parser(), extensionRegistry)); -break; - } - case 56: { -int rawValue = input.readEnum(); - -syntax_ = rawValue; -break; - } -} - } -} catch (org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); -} catch (java.io.IOException e) { - throw new org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); -} finally { - if (((mutable_bitField0_ & 0x0020) == 0x0020)) { -options_ = java.util.Collections.unmodifiableList(options_); - } - makeExtensionsImmutable(); -} - } - public static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.Descriptor - getDescriptor() { -return org.apache.hadoop.hbase.shaded.com.google.protobuf.ApiProto.internal_static_google_protobuf_Method_descriptor; - } - - protected org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { -return org.apache.hadoop.hbase.shaded.com.google.protobuf.ApiProto.internal_static_google_protobuf_Method_fieldAccessorTable -.ensureFieldAccessorsInitialized( -org.apache.hadoop.hbase.shaded.com.google.protobuf.Method.class, org.apache.hadoop.hbase.shaded.com.google.protobuf.Method.Builder.class); - } - - private int bitField0_; - public
[31/52] [abbrv] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update
http://git-wip-us.apache.org/repos/asf/hbase/blob/df93c13f/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Empty.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Empty.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Empty.java deleted file mode 100644 index 61f1574..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Empty.java +++ /dev/null @@ -1,386 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/empty.proto - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -/** - * - * A generic empty message that you can re-use to avoid defining duplicated - * empty messages in your APIs. A typical example is to use it as the request - * or the response type of an API method. For instance: - * service Foo { - * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); - * } - * The JSON representation for `Empty` is empty JSON object `{}`. - * - * - * Protobuf type {@code google.protobuf.Empty} - */ -public final class Empty extends -org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3 implements -// @@protoc_insertion_point(message_implements:google.protobuf.Empty) -EmptyOrBuilder { - // Use Empty.newBuilder() to construct. - private Empty(org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) { -super(builder); - } - private Empty() { - } - - @java.lang.Override - public final org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet - getUnknownFields() { -return org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private Empty( - org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input, - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException { -this(); -try { - boolean done = false; - while (!done) { -int tag = input.readTag(); -switch (tag) { - case 0: -done = true; -break; - default: { -if (!input.skipField(tag)) { - done = true; -} -break; - } -} - } -} catch (org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); -} catch (java.io.IOException e) { - throw new org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); -} finally { - makeExtensionsImmutable(); -} - } - public static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.Descriptor - getDescriptor() { -return org.apache.hadoop.hbase.shaded.com.google.protobuf.EmptyProto.internal_static_google_protobuf_Empty_descriptor; - } - - protected org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { -return org.apache.hadoop.hbase.shaded.com.google.protobuf.EmptyProto.internal_static_google_protobuf_Empty_fieldAccessorTable -.ensureFieldAccessorsInitialized( -org.apache.hadoop.hbase.shaded.com.google.protobuf.Empty.class, org.apache.hadoop.hbase.shaded.com.google.protobuf.Empty.Builder.class); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { -byte isInitialized = memoizedIsInitialized; -if (isInitialized == 1) return true; -if (isInitialized == 0) return false; - -memoizedIsInitialized = 1; -return true; - } - - public void writeTo(org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - } - - public int getSerializedSize() { -int size = memoizedSize; -if (size != -1) return size; - -size = 0; -memoizedSize = size; -return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { -if (obj == this) { - return true; -} -if (!(obj instanceof org.apache.hadoop.hbase.shaded.com.google.protobuf.Empty)) { - return super.equals(obj); -} -org.apache.hadoop.hbase.shaded.com.google.protobuf.Empty other = (org.apache.hadoop.hbase.shaded.com.google.protobuf.Empty) obj; - -boolean result = true; -return result; - } - - @java.lang.Override - public int hashCode() { -if (memoizedHashCode != 0) { - return memoizedHashCode; -} -int hash = 41; -hash = (19 * hash) +
[44/52] [abbrv] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update
http://git-wip-us.apache.org/repos/asf/hbase/blob/df93c13f/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/protobuf/generated/AggregateProtos.java -- diff --git a/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/protobuf/generated/AggregateProtos.java b/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/protobuf/generated/AggregateProtos.java deleted file mode 100644 index 508790c..000 --- a/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/protobuf/generated/AggregateProtos.java +++ /dev/null @@ -1,2375 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: Aggregate.proto - -package org.apache.hadoop.hbase.protobuf.generated; - -public final class AggregateProtos { - private AggregateProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public interface AggregateRequestOrBuilder - extends com.google.protobuf.MessageOrBuilder { - -// required string interpreter_class_name = 1; -/** - * required string interpreter_class_name = 1; - * - * - ** The request passed to the AggregateService consists of three parts - * (1) the (canonical) classname of the ColumnInterpreter implementation - * (2) the Scan query - * (3) any bytes required to construct the ColumnInterpreter object - * properly - * - */ -boolean hasInterpreterClassName(); -/** - * required string interpreter_class_name = 1; - * - * - ** The request passed to the AggregateService consists of three parts - * (1) the (canonical) classname of the ColumnInterpreter implementation - * (2) the Scan query - * (3) any bytes required to construct the ColumnInterpreter object - * properly - * - */ -java.lang.String getInterpreterClassName(); -/** - * required string interpreter_class_name = 1; - * - * - ** The request passed to the AggregateService consists of three parts - * (1) the (canonical) classname of the ColumnInterpreter implementation - * (2) the Scan query - * (3) any bytes required to construct the ColumnInterpreter object - * properly - * - */ -com.google.protobuf.ByteString -getInterpreterClassNameBytes(); - -// required .hbase.pb.Scan scan = 2; -/** - * required .hbase.pb.Scan scan = 2; - */ -boolean hasScan(); -/** - * required .hbase.pb.Scan scan = 2; - */ -org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Scan getScan(); -/** - * required .hbase.pb.Scan scan = 2; - */ -org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ScanOrBuilder getScanOrBuilder(); - -// optional bytes interpreter_specific_bytes = 3; -/** - * optional bytes interpreter_specific_bytes = 3; - */ -boolean hasInterpreterSpecificBytes(); -/** - * optional bytes interpreter_specific_bytes = 3; - */ -com.google.protobuf.ByteString getInterpreterSpecificBytes(); - } - /** - * Protobuf type {@code hbase.pb.AggregateRequest} - */ - public static final class AggregateRequest extends - com.google.protobuf.GeneratedMessage - implements AggregateRequestOrBuilder { -// Use AggregateRequest.newBuilder() to construct. -private AggregateRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); -} -private AggregateRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - -private static final AggregateRequest defaultInstance; -public static AggregateRequest getDefaultInstance() { - return defaultInstance; -} - -public AggregateRequest getDefaultInstanceForType() { - return defaultInstance; -} - -private final com.google.protobuf.UnknownFieldSet unknownFields; -@java.lang.Override -public final com.google.protobuf.UnknownFieldSet -getUnknownFields() { - return this.unknownFields; -} -private AggregateRequest( -com.google.protobuf.CodedInputStream input, -com.google.protobuf.ExtensionRegistryLite extensionRegistry) -throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.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; -
[02/52] [abbrv] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update
http://git-wip-us.apache.org/repos/asf/hbase/blob/df93c13f/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/protobuf/generated/AdminProtos.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/protobuf/generated/AdminProtos.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/protobuf/generated/AdminProtos.java deleted file mode 100644 index 812cf3b..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/protobuf/generated/AdminProtos.java +++ /dev/null @@ -1,30634 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: Admin.proto - -package org.apache.hadoop.hbase.shaded.protobuf.generated; - -public final class AdminProtos { - private AdminProtos() {} - public static void registerAllExtensions( - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistry registry) { -registerAllExtensions( - (org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface GetRegionInfoRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:hbase.pb.GetRegionInfoRequest) - org.apache.hadoop.hbase.shaded.com.google.protobuf.MessageOrBuilder { - -/** - * required .hbase.pb.RegionSpecifier region = 1; - */ -boolean hasRegion(); -/** - * required .hbase.pb.RegionSpecifier region = 1; - */ - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.RegionSpecifier getRegion(); -/** - * required .hbase.pb.RegionSpecifier region = 1; - */ - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.RegionSpecifierOrBuilder getRegionOrBuilder(); - -/** - * optional bool compaction_state = 2; - */ -boolean hasCompactionState(); -/** - * optional bool compaction_state = 2; - */ -boolean getCompactionState(); - } - /** - * Protobuf type {@code hbase.pb.GetRegionInfoRequest} - */ - public static final class GetRegionInfoRequest extends - org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:hbase.pb.GetRegionInfoRequest) - GetRegionInfoRequestOrBuilder { -// Use GetRegionInfoRequest.newBuilder() to construct. -private GetRegionInfoRequest(org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); -} -private GetRegionInfoRequest() { - compactionState_ = false; -} - -@java.lang.Override -public final org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet -getUnknownFields() { - return this.unknownFields; -} -private GetRegionInfoRequest( -org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input, - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) -throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet.Builder unknownFields = - org.apache.hadoop.hbase.shaded.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; -} -case 10: { - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.RegionSpecifier.Builder subBuilder = null; - if (((bitField0_ & 0x0001) == 0x0001)) { -subBuilder = region_.toBuilder(); - } - region_ = input.readMessage(org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.RegionSpecifier.PARSER, extensionRegistry); - if (subBuilder != null) { -subBuilder.mergeFrom(region_); -region_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x0001; - break; -} -case 16: { - bitField0_ |= 0x0002; - compactionState_ = input.readBool(); - break; -} - } -} - } catch (org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException e) { -throw e.setUnfinishedMessage(this); - } catch
[14/52] [abbrv] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update
http://git-wip-us.apache.org/repos/asf/hbase/blob/df93c13f/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/TextFormat.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/TextFormat.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/TextFormat.java deleted file mode 100644 index 491089b..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/TextFormat.java +++ /dev/null @@ -1,2108 +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. - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.Descriptor; -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.EnumDescriptor; -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.EnumValueDescriptor; -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.FieldDescriptor; - -import java.io.IOException; -import java.math.BigInteger; -import java.nio.CharBuffer; -import java.util.ArrayList; -import java.util.List; -import java.util.Locale; -import java.util.Map; -import java.util.logging.Logger; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -/** - * Provide text parsing and formatting support for proto2 instances. - * The implementation largely follows google/protobuf/text_format.cc. - * - * @author wen...@google.com Wenbo Zhu - * @author ken...@google.com Kenton Varda - */ -public final class TextFormat { - private TextFormat() {} - - private static final Logger logger = - Logger.getLogger(TextFormat.class.getName()); - - private static final Printer DEFAULT_PRINTER = new Printer(); - private static final Printer SINGLE_LINE_PRINTER = - (new Printer()).setSingleLineMode(true); - private static final Printer UNICODE_PRINTER = - (new Printer()).setEscapeNonAscii(false); - - /** - * Outputs a textual representation of the Protocol Message supplied into - * the parameter output. (This representation is the new version of the - * classic "ProtocolPrinter" output from the original Protocol Buffer system) - */ - public static void print( - final MessageOrBuilder message, final Appendable output) - throws IOException { -DEFAULT_PRINTER.print(message, new TextGenerator(output)); - } - - /** Outputs a textual representation of {@code fields} to {@code output}. */ - public static void print(final UnknownFieldSet fields, - final Appendable output) - throws IOException { -DEFAULT_PRINTER.printUnknownFields(fields, new TextGenerator(output)); - } - - /** - * Same as {@code print()}, except that non-ASCII characters are not - * escaped. - */ - public static void printUnicode( - final MessageOrBuilder message, final Appendable output) - throws IOException { -UNICODE_PRINTER.print(message, new TextGenerator(output)); - } - - /** - * Same as {@code print()}, except that non-ASCII characters are not - * escaped. - */ - public static void printUnicode(final UnknownFieldSet fields, - final Appendable
[09/52] [abbrv] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update
http://git-wip-us.apache.org/repos/asf/hbase/blob/df93c13f/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Utf8.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Utf8.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Utf8.java deleted file mode 100644 index b84efd6..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Utf8.java +++ /dev/null @@ -1,1764 +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. - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -import static org.apache.hadoop.hbase.shaded.com.google.protobuf.UnsafeUtil.addressOffset; -import static org.apache.hadoop.hbase.shaded.com.google.protobuf.UnsafeUtil.getArrayBaseOffset; -import static org.apache.hadoop.hbase.shaded.com.google.protobuf.UnsafeUtil.hasUnsafeArrayOperations; -import static org.apache.hadoop.hbase.shaded.com.google.protobuf.UnsafeUtil.hasUnsafeByteBufferOperations; -import static java.lang.Character.MAX_SURROGATE; -import static java.lang.Character.MIN_SURROGATE; -import static java.lang.Character.isSurrogatePair; -import static java.lang.Character.toCodePoint; - -import java.nio.ByteBuffer; - -/** - * A set of low-level, high-performance static utility methods related - * to the UTF-8 character encoding. This class has no dependencies - * outside of the core JDK libraries. - * - * There are several variants of UTF-8. The one implemented by - * this class is the restricted definition of UTF-8 introduced in - * Unicode 3.1, which mandates the rejection of "overlong" byte - * sequences as well as rejection of 3-byte surrogate codepoint byte - * sequences. Note that the UTF-8 decoder included in Oracle's JDK - * has been modified to also reject "overlong" byte sequences, but (as - * of 2011) still accepts 3-byte surrogate codepoint byte sequences. - * - * The byte sequences considered valid by this class are exactly - * those that can be roundtrip converted to Strings and back to bytes - * using the UTF-8 charset, without loss: {@code - * Arrays.equals(bytes, new String(bytes, Internal.UTF_8).getBytes(Internal.UTF_8)) - * } - * - * See the Unicode Standard, - * Table 3-6. UTF-8 Bit Distribution, - * Table 3-7. Well Formed UTF-8 Byte Sequences. - * - * This class supports decoding of partial byte sequences, so that the - * bytes in a complete UTF-8 byte sequences can be stored in multiple - * segments. Methods typically return {@link #MALFORMED} if the partial - * byte sequence is definitely not well-formed, {@link #COMPLETE} if it is - * well-formed in the absence of additional input, or if the byte sequence - * apparently terminated in the middle of a character, an opaque integer - * "state" value containing enough information to decode the character when - * passed to a subsequent invocation of a partial decoding method. - * - * @author marti...@google.com (Martin Buchholz) - */ -// TODO(nathanmittler): Copy changes in this class back to Guava -final class Utf8 { - - /** - * UTF-8 is a runtime hot spot so we attempt to provide heavily optimized implementations - * depending on what is available on the platform. The processor is
[36/52] [abbrv] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update
http://git-wip-us.apache.org/repos/asf/hbase/blob/df93c13f/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/CodedInputStream.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/CodedInputStream.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/CodedInputStream.java deleted file mode 100644 index 23cc1a4..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/CodedInputStream.java +++ /dev/null @@ -1,3549 +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. - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -import static org.apache.hadoop.hbase.shaded.com.google.protobuf.Internal.EMPTY_BYTE_ARRAY; -import static org.apache.hadoop.hbase.shaded.com.google.protobuf.Internal.EMPTY_BYTE_BUFFER; -import static org.apache.hadoop.hbase.shaded.com.google.protobuf.Internal.UTF_8; -import static org.apache.hadoop.hbase.shaded.com.google.protobuf.Internal.checkNotNull; -import static org.apache.hadoop.hbase.shaded.com.google.protobuf.WireFormat.FIXED_32_SIZE; -import static org.apache.hadoop.hbase.shaded.com.google.protobuf.WireFormat.FIXED_64_SIZE; -import static org.apache.hadoop.hbase.shaded.com.google.protobuf.WireFormat.MAX_VARINT_SIZE; - -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.InputStream; -import java.nio.ByteBuffer; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - -/** - * Reads and decodes protocol message fields. - * - * This class contains two kinds of methods: methods that read specific protocol message - * constructs and field types (e.g. {@link #readTag()} and {@link #readInt32()}) and methods that - * read low-level values (e.g. {@link #readRawVarint32()} and {@link #readRawBytes}). If you are - * reading encoded protocol messages, you should use the former methods, but if you are reading some - * other format of your own design, use the latter. - * - * @author ken...@google.com Kenton Varda - */ -public abstract class CodedInputStream { - private static final int DEFAULT_BUFFER_SIZE = 4096; - private static final int DEFAULT_RECURSION_LIMIT = 100; - // Integer.MAX_VALUE == 0x7FF == INT_MAX from limits.h - private static final int DEFAULT_SIZE_LIMIT = Integer.MAX_VALUE; - - /** Visible for subclasses. See setRecursionLimit() */ - int recursionDepth; - - int recursionLimit = DEFAULT_RECURSION_LIMIT; - - /** Visible for subclasses. See setSizeLimit() */ - int sizeLimit = DEFAULT_SIZE_LIMIT; - - /** Create a new CodedInputStream wrapping the given InputStream. */ - public static CodedInputStream newInstance(final InputStream input) { -return newInstance(input, DEFAULT_BUFFER_SIZE); - } - - /** Create a new CodedInputStream wrapping the given InputStream. */ - static CodedInputStream newInstance(final InputStream input, int bufferSize) { -if (input == null) { - // TODO(nathanmittler): Ideally we should throw here. This is done for backward compatibility. - return newInstance(EMPTY_BYTE_ARRAY); -} -return new StreamDecoder(input, bufferSize); - } - - /** Create a new CodedInputStream wrapping the
[45/52] [abbrv] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update
http://git-wip-us.apache.org/repos/asf/hbase/blob/df93c13f/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/coprocessor/protobuf/generated/IncrementCounterProcessorTestProtos.java -- diff --git a/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/coprocessor/protobuf/generated/IncrementCounterProcessorTestProtos.java b/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/coprocessor/protobuf/generated/IncrementCounterProcessorTestProtos.java deleted file mode 100644 index 7ba5b8e..000 --- a/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/coprocessor/protobuf/generated/IncrementCounterProcessorTestProtos.java +++ /dev/null @@ -1,4059 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: IncrementCounterProcessor.proto - -package org.apache.hadoop.hbase.coprocessor.protobuf.generated; - -public final class IncrementCounterProcessorTestProtos { - private IncrementCounterProcessorTestProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public interface IncCounterProcessorRequestOrBuilder - extends com.google.protobuf.MessageOrBuilder { - -// required bytes row = 1; -/** - * required bytes row = 1; - */ -boolean hasRow(); -/** - * required bytes row = 1; - */ -com.google.protobuf.ByteString getRow(); - -// required int32 counter = 2; -/** - * required int32 counter = 2; - */ -boolean hasCounter(); -/** - * required int32 counter = 2; - */ -int getCounter(); - } - /** - * Protobuf type {@code IncCounterProcessorRequest} - */ - public static final class IncCounterProcessorRequest extends - com.google.protobuf.GeneratedMessage - implements IncCounterProcessorRequestOrBuilder { -// Use IncCounterProcessorRequest.newBuilder() to construct. -private IncCounterProcessorRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); -} -private IncCounterProcessorRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - -private static final IncCounterProcessorRequest defaultInstance; -public static IncCounterProcessorRequest getDefaultInstance() { - return defaultInstance; -} - -public IncCounterProcessorRequest getDefaultInstanceForType() { - return defaultInstance; -} - -private final com.google.protobuf.UnknownFieldSet unknownFields; -@java.lang.Override -public final com.google.protobuf.UnknownFieldSet -getUnknownFields() { - return this.unknownFields; -} -private IncCounterProcessorRequest( -com.google.protobuf.CodedInputStream input, -com.google.protobuf.ExtensionRegistryLite extensionRegistry) -throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.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; -} -case 10: { - bitField0_ |= 0x0001; - row_ = input.readBytes(); - break; -} -case 16: { - bitField0_ |= 0x0002; - counter_ = input.readInt32(); - break; -} - } -} - } catch (com.google.protobuf.InvalidProtocolBufferException e) { -throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { -throw new com.google.protobuf.InvalidProtocolBufferException( -e.getMessage()).setUnfinishedMessage(this); - } finally { -this.unknownFields = unknownFields.build(); -makeExtensionsImmutable(); - } -} -public static final com.google.protobuf.Descriptors.Descriptor -getDescriptor() { - return org.apache.hadoop.hbase.coprocessor.protobuf.generated.IncrementCounterProcessorTestProtos.internal_static_IncCounterProcessorRequest_descriptor; -} - -protected com.google.protobuf.GeneratedMessage.FieldAccessorTable -internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.coprocessor.protobuf.generated.IncrementCounterProcessorTestProtos.internal_static_IncCounterProcessorRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( -
[12/52] [abbrv] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update
http://git-wip-us.apache.org/repos/asf/hbase/blob/df93c13f/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Type.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Type.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Type.java deleted file mode 100644 index f46f351..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Type.java +++ /dev/null @@ -1,1967 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/type.proto - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -/** - * - * A protocol buffer message type. - * - * - * Protobuf type {@code google.protobuf.Type} - */ -public final class Type extends -org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3 implements -// @@protoc_insertion_point(message_implements:google.protobuf.Type) -TypeOrBuilder { - // Use Type.newBuilder() to construct. - private Type(org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) { -super(builder); - } - private Type() { -name_ = ""; -fields_ = java.util.Collections.emptyList(); -oneofs_ = org.apache.hadoop.hbase.shaded.com.google.protobuf.LazyStringArrayList.EMPTY; -options_ = java.util.Collections.emptyList(); -syntax_ = 0; - } - - @java.lang.Override - public final org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet - getUnknownFields() { -return org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private Type( - org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input, - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException { -this(); -int mutable_bitField0_ = 0; -try { - boolean done = false; - while (!done) { -int tag = input.readTag(); -switch (tag) { - case 0: -done = true; -break; - default: { -if (!input.skipField(tag)) { - done = true; -} -break; - } - case 10: { -java.lang.String s = input.readStringRequireUtf8(); - -name_ = s; -break; - } - case 18: { -if (!((mutable_bitField0_ & 0x0002) == 0x0002)) { - fields_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x0002; -} -fields_.add( - input.readMessage(org.apache.hadoop.hbase.shaded.com.google.protobuf.Field.parser(), extensionRegistry)); -break; - } - case 26: { -java.lang.String s = input.readStringRequireUtf8(); -if (!((mutable_bitField0_ & 0x0004) == 0x0004)) { - oneofs_ = new org.apache.hadoop.hbase.shaded.com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x0004; -} -oneofs_.add(s); -break; - } - case 34: { -if (!((mutable_bitField0_ & 0x0008) == 0x0008)) { - options_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x0008; -} -options_.add( - input.readMessage(org.apache.hadoop.hbase.shaded.com.google.protobuf.Option.parser(), extensionRegistry)); -break; - } - case 42: { - org.apache.hadoop.hbase.shaded.com.google.protobuf.SourceContext.Builder subBuilder = null; -if (sourceContext_ != null) { - subBuilder = sourceContext_.toBuilder(); -} -sourceContext_ = input.readMessage(org.apache.hadoop.hbase.shaded.com.google.protobuf.SourceContext.parser(), extensionRegistry); -if (subBuilder != null) { - subBuilder.mergeFrom(sourceContext_); - sourceContext_ = subBuilder.buildPartial(); -} - -break; - } - case 48: { -int rawValue = input.readEnum(); - -syntax_ = rawValue; -break; - } -} - } -} catch (org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); -} catch (java.io.IOException e) { - throw new org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); -} finally { - if (((mutable_bitField0_ & 0x0002) == 0x0002)) { -fields_ =
[22/52] [abbrv] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update
http://git-wip-us.apache.org/repos/asf/hbase/blob/df93c13f/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/LazyFieldLite.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/LazyFieldLite.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/LazyFieldLite.java deleted file mode 100644 index 91b70e0..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/LazyFieldLite.java +++ /dev/null @@ -1,437 +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. - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -import java.io.IOException; - -/** - * LazyFieldLite encapsulates the logic of lazily parsing message fields. It stores - * the message in a ByteString initially and then parses it on-demand. - * - * LazyFieldLite is thread-compatible: concurrent reads are safe once the proto that this - * LazyFieldLite is a part of is no longer being mutated by its Builder. However, explicit - * synchronization is needed under read/write situations. - * - * When a LazyFieldLite is used in the context of a MessageLite object, its behavior is considered - * to be immutable and none of the setter methods in its API are expected to be invoked. All of the - * getters are expected to be thread-safe. When used in the context of a MessageLite.Builder, - * setters can be invoked, but there is no guarantee of thread safety. - * - * TODO(yatin,dweis): Consider splitting this class's functionality and put the mutable methods - * into a separate builder class to allow us to give stronger compile-time guarantees. - * - * This class is internal implementation detail of the protobuf library, so you don't need to use it - * directly. - * - * @author xia...@google.com (Xiang Li) - */ -public class LazyFieldLite { - private static final ExtensionRegistryLite EMPTY_REGISTRY = - ExtensionRegistryLite.getEmptyRegistry(); - - /** - * The value associated with the LazyFieldLite object is stored in one or more of the following - * three fields (delayedBytes, value, memoizedBytes). They should together be interpreted as - * follows. - * 1) delayedBytes can be non-null, while value and memoizedBytes is null. The object will be in - *this state while the value for the object has not yet been parsed. - * 2) Both delayedBytes and value are non-null. The object transitions to this state as soon as - *some caller needs to access the value (by invoking getValue()). - * 3) memoizedBytes is merely an optimization for calls to LazyFieldLite.toByteString() to avoid - *recomputing the ByteString representation on each call. Instead, when the value is parsed - *from delayedBytes, we will also assign the contents of delayedBytes to memoizedBytes (since - *that is the ByteString representation of value). - * 4) Finally, if the LazyFieldLite was created directly with a parsed MessageLite value, then - *delayedBytes will be null, and memoizedBytes will be initialized only upon the first call to - *LazyFieldLite.toByteString(). - * - * Given the above conditions, any caller that needs a serialized representation
[17/52] [abbrv] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update
http://git-wip-us.apache.org/repos/asf/hbase/blob/df93c13f/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/RepeatedFieldBuilder.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/RepeatedFieldBuilder.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/RepeatedFieldBuilder.java deleted file mode 100644 index 8968a70..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/RepeatedFieldBuilder.java +++ /dev/null @@ -1,708 +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. - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -import java.util.AbstractList; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Collections; -import java.util.List; - -/** - * {@code RepeatedFieldBuilder} implements a structure that a protocol - * message uses to hold a repeated field of other protocol messages. It supports - * the classical use case of adding immutable {@link Message}'s to the - * repeated field and is highly optimized around this (no extra memory - * allocations and sharing of immutable arrays). - * - * It also supports the additional use case of adding a {@link Message.Builder} - * to the repeated field and deferring conversion of that {@code Builder} - * to an immutable {@code Message}. In this way, it's possible to maintain - * a tree of {@code Builder}'s that acts as a fully read/write data - * structure. - * - * Logically, one can think of a tree of builders as converting the entire tree - * to messages when build is called on the root or when any method is called - * that desires a Message instead of a Builder. In terms of the implementation, - * the {@code SingleFieldBuilder} and {@code RepeatedFieldBuilder} - * classes cache messages that were created so that messages only need to be - * created when some change occurred in its builder or a builder for one of its - * descendants. - * - * @param the type of message for the field - * @param the type of builder for the field - * @param the common interface for the message and the builder - * - * @author j...@google.com (Jon Perlow) - */ -public class RepeatedFieldBuilder - -implements GeneratedMessage.BuilderParent { - - // Parent to send changes to. - private GeneratedMessage.BuilderParent parent; - - // List of messages. Never null. It may be immutable, in which case - // isMessagesListMutable will be false. See note below. - private List messages; - - // Whether messages is an mutable array that can be modified. - private boolean isMessagesListMutable; - - // List of builders. May be null, in which case, no nested builders were - // created. If not null, entries represent the builder for that index. - private List> builders; - - // Here are the invariants for messages and builders: - // 1. messages is never null and its count corresponds to the number of items - //in the repeated field. - // 2. If builders is non-null, messages and builders MUST always - //contain the same number of items. - // 3. Entries in either array can be null, but for any index, there MUST be - //
[21/52] [abbrv] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update
http://git-wip-us.apache.org/repos/asf/hbase/blob/df93c13f/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/MapEntry.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/MapEntry.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/MapEntry.java deleted file mode 100644 index d586cc7..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/MapEntry.java +++ /dev/null @@ -1,449 +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. - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.Descriptor; -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.EnumValueDescriptor; -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.FieldDescriptor; - -import java.io.IOException; -import java.util.Collections; -import java.util.Map; -import java.util.TreeMap; - -/** - * Implements MapEntry messages. - * - * In reflection API, map fields will be treated as repeated message fields and - * each map entry is accessed as a message. This MapEntry class is used to - * represent these map entry messages in reflection API. - * - * Protobuf internal. Users shouldn't use this class. - */ -public final class MapEntryextends AbstractMessage { - - private static final class Metadata extends MapEntryLite.Metadata { - -public final Descriptor descriptor; -public final Parser > parser; - -public Metadata( -Descriptor descriptor, -MapEntry defaultInstance, -WireFormat.FieldType keyType, -WireFormat.FieldType valueType) { - super(keyType, defaultInstance.key, valueType, defaultInstance.value); - this.descriptor = descriptor; - this.parser = new AbstractParser >() { - -@Override -public MapEntry parsePartialFrom( -CodedInputStream input, ExtensionRegistryLite extensionRegistry) -throws InvalidProtocolBufferException { - return new MapEntry (Metadata.this, input, extensionRegistry); -} - }; -} - } - - private final K key; - private final V value; - private final Metadata metadata; - - /** Create a default MapEntry instance. */ - private MapEntry( - Descriptor descriptor, - WireFormat.FieldType keyType, K defaultKey, - WireFormat.FieldType valueType, V defaultValue) { -this.key = defaultKey; -this.value = defaultValue; -this.metadata = new Metadata (descriptor, this, keyType, valueType); - } - - /** Create a MapEntry with the provided key and value. */ - private MapEntry(Metadata metadata, K key, V value) { -this.key = key; -this.value = value; -this.metadata = metadata; - } - - /** Parsing constructor. */ - private MapEntry( - Metadata metadata, - CodedInputStream input, - ExtensionRegistryLite extensionRegistry) - throws InvalidProtocolBufferException { -try { - this.metadata = metadata; - Map.Entry entry = MapEntryLite.parseEntry(input, metadata, extensionRegistry); -
[11/52] [abbrv] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update
http://git-wip-us.apache.org/repos/asf/hbase/blob/df93c13f/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/UInt32Value.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/UInt32Value.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/UInt32Value.java deleted file mode 100644 index 7b4dae9..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/UInt32Value.java +++ /dev/null @@ -1,451 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/wrappers.proto - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -/** - * - * Wrapper message for `uint32`. - * The JSON representation for `UInt32Value` is JSON number. - * - * - * Protobuf type {@code google.protobuf.UInt32Value} - */ -public final class UInt32Value extends -org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3 implements -// @@protoc_insertion_point(message_implements:google.protobuf.UInt32Value) -UInt32ValueOrBuilder { - // Use UInt32Value.newBuilder() to construct. - private UInt32Value(org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) { -super(builder); - } - private UInt32Value() { -value_ = 0; - } - - @java.lang.Override - public final org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet - getUnknownFields() { -return org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private UInt32Value( - org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input, - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException { -this(); -int mutable_bitField0_ = 0; -try { - boolean done = false; - while (!done) { -int tag = input.readTag(); -switch (tag) { - case 0: -done = true; -break; - default: { -if (!input.skipField(tag)) { - done = true; -} -break; - } - case 8: { - -value_ = input.readUInt32(); -break; - } -} - } -} catch (org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); -} catch (java.io.IOException e) { - throw new org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); -} finally { - makeExtensionsImmutable(); -} - } - public static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.Descriptor - getDescriptor() { -return org.apache.hadoop.hbase.shaded.com.google.protobuf.WrappersProto.internal_static_google_protobuf_UInt32Value_descriptor; - } - - protected org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { -return org.apache.hadoop.hbase.shaded.com.google.protobuf.WrappersProto.internal_static_google_protobuf_UInt32Value_fieldAccessorTable -.ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.shaded.com.google.protobuf.UInt32Value.class, org.apache.hadoop.hbase.shaded.com.google.protobuf.UInt32Value.Builder.class); - } - - public static final int VALUE_FIELD_NUMBER = 1; - private int value_; - /** - * - * The uint32 value. - * - * - * uint32 value = 1; - */ - public int getValue() { -return value_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { -byte isInitialized = memoizedIsInitialized; -if (isInitialized == 1) return true; -if (isInitialized == 0) return false; - -memoizedIsInitialized = 1; -return true; - } - - public void writeTo(org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { -if (value_ != 0) { - output.writeUInt32(1, value_); -} - } - - public int getSerializedSize() { -int size = memoizedSize; -if (size != -1) return size; - -size = 0; -if (value_ != 0) { - size += org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedOutputStream -.computeUInt32Size(1, value_); -} -memoizedSize = size; -return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { -if (obj == this) { - return true; -} -if (!(obj instanceof org.apache.hadoop.hbase.shaded.com.google.protobuf.UInt32Value)) { - return
[37/52] [abbrv] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update
http://git-wip-us.apache.org/repos/asf/hbase/blob/df93c13f/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/ByteString.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/ByteString.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/ByteString.java deleted file mode 100644 index f673ee3..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/ByteString.java +++ /dev/null @@ -1,1565 +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. - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -import java.io.ByteArrayInputStream; -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.InputStream; -import java.io.InvalidObjectException; -import java.io.ObjectInputStream; -import java.io.OutputStream; -import java.io.Serializable; -import java.io.UnsupportedEncodingException; -import java.nio.ByteBuffer; -import java.nio.charset.Charset; -import java.nio.charset.UnsupportedCharsetException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collection; -import java.util.Collections; -import java.util.Iterator; -import java.util.List; -import java.util.NoSuchElementException; - -/** - * Immutable sequence of bytes. Substring is supported by sharing the reference to the immutable - * underlying bytes. Concatenation is likewise supported without copying (long strings) by building - * a tree of pieces in {@link RopeByteString}. - * - * Like {@link String}, the contents of a {@link ByteString} can never be observed to change, not - * even in the presence of a data race or incorrect API usage in the client code. - * - * @author crazy...@google.com Bob Lee - * @author ken...@google.com Kenton Varda - * @author carlan...@google.com Carl Haverl - * @author marti...@google.com Martin Buchholz - */ -public abstract class ByteString implements Iterable, Serializable { - - /** - * When two strings to be concatenated have a combined length shorter than - * this, we just copy their bytes on {@link #concat(ByteString)}. - * The trade-off is copy size versus the overhead of creating tree nodes - * in {@link RopeByteString}. - */ - static final int CONCATENATE_BY_COPY_SIZE = 128; - - /** - * When copying an InputStream into a ByteString with .readFrom(), - * the chunks in the underlying rope start at 256 bytes, but double - * each iteration up to 8192 bytes. - */ - static final int MIN_READ_FROM_CHUNK_SIZE = 0x100; // 256b - static final int MAX_READ_FROM_CHUNK_SIZE = 0x2000; // 8k - - /** - * Empty {@code ByteString}. - */ - public static final ByteString EMPTY = new LiteralByteString(Internal.EMPTY_BYTE_ARRAY); - - /** - * An interface to efficiently copy {@code byte[]}. - * - * One of the noticeable costs of copying a byte[] into a new array using - * {@code System.arraycopy} is nullification of a new buffer before the copy. It has been shown - * the Hotspot VM is capable to intrisicfy {@code Arrays.copyOfRange} operation to avoid this - * expensive nullification and provide substantial performance gain. Unfortunately this does not - * hold on Android
[27/52] [abbrv] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update
http://git-wip-us.apache.org/repos/asf/hbase/blob/df93c13f/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/FloatValue.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/FloatValue.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/FloatValue.java deleted file mode 100644 index f3315c8..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/FloatValue.java +++ /dev/null @@ -1,454 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/wrappers.proto - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -/** - * - * Wrapper message for `float`. - * The JSON representation for `FloatValue` is JSON number. - * - * - * Protobuf type {@code google.protobuf.FloatValue} - */ -public final class FloatValue extends -org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3 implements -// @@protoc_insertion_point(message_implements:google.protobuf.FloatValue) -FloatValueOrBuilder { - // Use FloatValue.newBuilder() to construct. - private FloatValue(org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) { -super(builder); - } - private FloatValue() { -value_ = 0F; - } - - @java.lang.Override - public final org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet - getUnknownFields() { -return org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private FloatValue( - org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input, - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException { -this(); -int mutable_bitField0_ = 0; -try { - boolean done = false; - while (!done) { -int tag = input.readTag(); -switch (tag) { - case 0: -done = true; -break; - default: { -if (!input.skipField(tag)) { - done = true; -} -break; - } - case 13: { - -value_ = input.readFloat(); -break; - } -} - } -} catch (org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); -} catch (java.io.IOException e) { - throw new org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); -} finally { - makeExtensionsImmutable(); -} - } - public static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.Descriptor - getDescriptor() { -return org.apache.hadoop.hbase.shaded.com.google.protobuf.WrappersProto.internal_static_google_protobuf_FloatValue_descriptor; - } - - protected org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { -return org.apache.hadoop.hbase.shaded.com.google.protobuf.WrappersProto.internal_static_google_protobuf_FloatValue_fieldAccessorTable -.ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.shaded.com.google.protobuf.FloatValue.class, org.apache.hadoop.hbase.shaded.com.google.protobuf.FloatValue.Builder.class); - } - - public static final int VALUE_FIELD_NUMBER = 1; - private float value_; - /** - * - * The float value. - * - * - * float value = 1; - */ - public float getValue() { -return value_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { -byte isInitialized = memoizedIsInitialized; -if (isInitialized == 1) return true; -if (isInitialized == 0) return false; - -memoizedIsInitialized = 1; -return true; - } - - public void writeTo(org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { -if (value_ != 0F) { - output.writeFloat(1, value_); -} - } - - public int getSerializedSize() { -int size = memoizedSize; -if (size != -1) return size; - -size = 0; -if (value_ != 0F) { - size += org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedOutputStream -.computeFloatSize(1, value_); -} -memoizedSize = size; -return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { -if (obj == this) { - return true; -} -if (!(obj instanceof org.apache.hadoop.hbase.shaded.com.google.protobuf.FloatValue)) { - return super.equals(obj); -
[29/52] [abbrv] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update
http://git-wip-us.apache.org/repos/asf/hbase/blob/df93c13f/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Field.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Field.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Field.java deleted file mode 100644 index d33fd75..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Field.java +++ /dev/null @@ -1,2450 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/type.proto - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -/** - * - * A single field of a message type. - * - * - * Protobuf type {@code google.protobuf.Field} - */ -public final class Field extends -org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3 implements -// @@protoc_insertion_point(message_implements:google.protobuf.Field) -FieldOrBuilder { - // Use Field.newBuilder() to construct. - private Field(org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) { -super(builder); - } - private Field() { -kind_ = 0; -cardinality_ = 0; -number_ = 0; -name_ = ""; -typeUrl_ = ""; -oneofIndex_ = 0; -packed_ = false; -options_ = java.util.Collections.emptyList(); -jsonName_ = ""; -defaultValue_ = ""; - } - - @java.lang.Override - public final org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet - getUnknownFields() { -return org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private Field( - org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input, - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException { -this(); -int mutable_bitField0_ = 0; -try { - boolean done = false; - while (!done) { -int tag = input.readTag(); -switch (tag) { - case 0: -done = true; -break; - default: { -if (!input.skipField(tag)) { - done = true; -} -break; - } - case 8: { -int rawValue = input.readEnum(); - -kind_ = rawValue; -break; - } - case 16: { -int rawValue = input.readEnum(); - -cardinality_ = rawValue; -break; - } - case 24: { - -number_ = input.readInt32(); -break; - } - case 34: { -java.lang.String s = input.readStringRequireUtf8(); - -name_ = s; -break; - } - case 50: { -java.lang.String s = input.readStringRequireUtf8(); - -typeUrl_ = s; -break; - } - case 56: { - -oneofIndex_ = input.readInt32(); -break; - } - case 64: { - -packed_ = input.readBool(); -break; - } - case 74: { -if (!((mutable_bitField0_ & 0x0080) == 0x0080)) { - options_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x0080; -} -options_.add( - input.readMessage(org.apache.hadoop.hbase.shaded.com.google.protobuf.Option.parser(), extensionRegistry)); -break; - } - case 82: { -java.lang.String s = input.readStringRequireUtf8(); - -jsonName_ = s; -break; - } - case 90: { -java.lang.String s = input.readStringRequireUtf8(); - -defaultValue_ = s; -break; - } -} - } -} catch (org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); -} catch (java.io.IOException e) { - throw new org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); -} finally { - if (((mutable_bitField0_ & 0x0080) == 0x0080)) { -options_ = java.util.Collections.unmodifiableList(options_); - } - makeExtensionsImmutable(); -} - } - public static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.Descriptor - getDescriptor() { -return org.apache.hadoop.hbase.shaded.com.google.protobuf.TypeProto.internal_static_google_protobuf_Field_descriptor; - } - - protected org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { -
[24/52] [abbrv] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update
http://git-wip-us.apache.org/repos/asf/hbase/blob/df93c13f/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/GeneratedMessageV3.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/GeneratedMessageV3.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/GeneratedMessageV3.java deleted file mode 100644 index cc815fc..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/GeneratedMessageV3.java +++ /dev/null @@ -1,2838 +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. - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.Descriptor; -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.EnumDescriptor; -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.EnumValueDescriptor; -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.FieldDescriptor; -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.FileDescriptor; -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.OneofDescriptor; -// In opensource protobuf, we have versioned this GeneratedMessageV3 class to GeneratedMessageV3V3 and -// in the future may have GeneratedMessageV3V4 etc. This allows us to change some aspects of this -// class without breaking binary compatibility with old generated code that still subclasses -// the old GeneratedMessageV3 class. To allow these different GeneratedMessageV3V? classes to -// interoperate (e.g., a GeneratedMessageV3V3 object has a message extension field whose class -// type is GeneratedMessageV3V4), these classes still share a common parent class AbstarctMessage -// and are using the same GeneratedMessage.GeneratedExtension class for extension definitions. -// Since this class becomes GeneratedMessageV3V? in opensource, we have to add an import here -// to be able to use GeneratedMessage.GeneratedExtension. The GeneratedExtension definition in -// this file is also excluded from opensource to avoid conflict. -import org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessage.GeneratedExtension; - -import java.io.IOException; -import java.io.InputStream; -import java.io.ObjectStreamException; -import java.io.Serializable; -import java.lang.reflect.InvocationTargetException; -import java.lang.reflect.Method; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collections; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.TreeMap; - -/** - * All generated protocol message classes extend this class. This class - * implements most of the Message and Builder interfaces using Java reflection. - * Users can ignore this class and pretend that generated messages implement - * the Message interface directly. - * - * @author ken...@google.com Kenton Varda - */ -public abstract class GeneratedMessageV3 extends AbstractMessage -implements Serializable { - private static final long serialVersionUID = 1L; - - /** - * For testing. Allows a test to disable the optimization that avoids using - * field
[49/52] [abbrv] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update
http://git-wip-us.apache.org/repos/asf/hbase/blob/df93c13f/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/coprocessor/protobuf/generated/ColumnAggregationProtos.java -- diff --git a/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/coprocessor/protobuf/generated/ColumnAggregationProtos.java b/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/coprocessor/protobuf/generated/ColumnAggregationProtos.java deleted file mode 100644 index 61b47ff..000 --- a/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/coprocessor/protobuf/generated/ColumnAggregationProtos.java +++ /dev/null @@ -1,1277 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ColumnAggregationProtocol.proto - -package org.apache.hadoop.hbase.coprocessor.protobuf.generated; - -public final class ColumnAggregationProtos { - private ColumnAggregationProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public interface SumRequestOrBuilder - extends com.google.protobuf.MessageOrBuilder { - -// required bytes family = 1; -/** - * required bytes family = 1; - */ -boolean hasFamily(); -/** - * required bytes family = 1; - */ -com.google.protobuf.ByteString getFamily(); - -// optional bytes qualifier = 2; -/** - * optional bytes qualifier = 2; - */ -boolean hasQualifier(); -/** - * optional bytes qualifier = 2; - */ -com.google.protobuf.ByteString getQualifier(); - } - /** - * Protobuf type {@code SumRequest} - */ - public static final class SumRequest extends - com.google.protobuf.GeneratedMessage - implements SumRequestOrBuilder { -// Use SumRequest.newBuilder() to construct. -private SumRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); -} -private SumRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - -private static final SumRequest defaultInstance; -public static SumRequest getDefaultInstance() { - return defaultInstance; -} - -public SumRequest getDefaultInstanceForType() { - return defaultInstance; -} - -private final com.google.protobuf.UnknownFieldSet unknownFields; -@java.lang.Override -public final com.google.protobuf.UnknownFieldSet -getUnknownFields() { - return this.unknownFields; -} -private SumRequest( -com.google.protobuf.CodedInputStream input, -com.google.protobuf.ExtensionRegistryLite extensionRegistry) -throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.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; -} -case 10: { - bitField0_ |= 0x0001; - family_ = input.readBytes(); - break; -} -case 18: { - bitField0_ |= 0x0002; - qualifier_ = input.readBytes(); - break; -} - } -} - } catch (com.google.protobuf.InvalidProtocolBufferException e) { -throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { -throw new com.google.protobuf.InvalidProtocolBufferException( -e.getMessage()).setUnfinishedMessage(this); - } finally { -this.unknownFields = unknownFields.build(); -makeExtensionsImmutable(); - } -} -public static final com.google.protobuf.Descriptors.Descriptor -getDescriptor() { - return org.apache.hadoop.hbase.coprocessor.protobuf.generated.ColumnAggregationProtos.internal_static_SumRequest_descriptor; -} - -protected com.google.protobuf.GeneratedMessage.FieldAccessorTable -internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.coprocessor.protobuf.generated.ColumnAggregationProtos.internal_static_SumRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.coprocessor.protobuf.generated.ColumnAggregationProtos.SumRequest.class, org.apache.hadoop.hbase.coprocessor.protobuf.generated.ColumnAggregationProtos.SumRequest.Builder.class); -} - -public static com.google.protobuf.Parser PARSER = -new
[51/52] [abbrv] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update
HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update to refguide) Removed all checked in generated protobuf files. They are generatedon the fly now as part of mainline build. Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/df93c13f Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/df93c13f Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/df93c13f Branch: refs/heads/HBASE-18147 Commit: df93c13fd21a3f34aa3851893d715cbc4edb555b Parents: c5abb6c Author: Michael StackAuthored: Wed Jul 5 12:06:29 2017 -0700 Committer: Michael Stack Committed: Wed Jul 5 20:57:11 2017 -0700 -- hbase-client/pom.xml| 4 + hbase-endpoint/README.txt |25 +- hbase-endpoint/pom.xml | 259 +- .../example/generated/BulkDeleteProtos.java | 1792 - .../generated/ColumnAggregationProtos.java | 1277 - .../ColumnAggregationWithErrorsProtos.java | 1290 - ...ColumnAggregationWithNullResponseProtos.java | 1283 - .../DummyRegionServerEndpointProtos.java| 1225 - .../IncrementCounterProcessorTestProtos.java| 4059 - .../protobuf/generated/AggregateProtos.java | 2375 - .../generated/SecureBulkLoadProtos.java | 2088 - hbase-examples/README.txt |27 +- hbase-examples/pom.xml | 312 +- .../example/generated/ExampleProtos.java| 1149 - hbase-procedure/pom.xml | 4 + hbase-protocol-shaded/README.txt|49 +- hbase-protocol-shaded/pom.xml | 283 +- .../com/google/protobuf/AbstractMessage.java| 646 - .../google/protobuf/AbstractMessageLite.java| 383 - .../com/google/protobuf/AbstractParser.java | 258 - .../google/protobuf/AbstractProtobufList.java | 180 - .../hbase/shaded/com/google/protobuf/Any.java | 899 - .../com/google/protobuf/AnyOrBuilder.java |70 - .../shaded/com/google/protobuf/AnyProto.java|59 - .../hbase/shaded/com/google/protobuf/Api.java | 2473 - .../com/google/protobuf/ApiOrBuilder.java | 258 - .../shaded/com/google/protobuf/ApiProto.java|98 - .../com/google/protobuf/BlockingRpcChannel.java |51 - .../com/google/protobuf/BlockingService.java|64 - .../shaded/com/google/protobuf/BoolValue.java | 452 - .../com/google/protobuf/BoolValueOrBuilder.java |18 - .../com/google/protobuf/BooleanArrayList.java | 272 - .../com/google/protobuf/ByteBufferWriter.java | 185 - .../shaded/com/google/protobuf/ByteInput.java |81 - .../google/protobuf/ByteInputByteString.java| 251 - .../shaded/com/google/protobuf/ByteOutput.java | 116 - .../shaded/com/google/protobuf/ByteString.java | 1565 - .../shaded/com/google/protobuf/BytesValue.java | 454 - .../google/protobuf/BytesValueOrBuilder.java|18 - .../com/google/protobuf/CodedInputStream.java | 3549 - .../com/google/protobuf/CodedOutputStream.java | 3001 - .../com/google/protobuf/DescriptorProtos.java | 39141 .../shaded/com/google/protobuf/Descriptors.java | 2547 - .../com/google/protobuf/DoubleArrayList.java| 273 - .../shaded/com/google/protobuf/DoubleValue.java | 454 - .../google/protobuf/DoubleValueOrBuilder.java |18 - .../shaded/com/google/protobuf/Duration.java| 618 - .../com/google/protobuf/DurationOrBuilder.java |33 - .../com/google/protobuf/DurationProto.java |59 - .../com/google/protobuf/DynamicMessage.java | 684 - .../hbase/shaded/com/google/protobuf/Empty.java | 386 - .../com/google/protobuf/EmptyOrBuilder.java | 9 - .../shaded/com/google/protobuf/EmptyProto.java |58 - .../hbase/shaded/com/google/protobuf/Enum.java | 1745 - .../com/google/protobuf/EnumOrBuilder.java | 157 - .../shaded/com/google/protobuf/EnumValue.java | 1044 - .../com/google/protobuf/EnumValueOrBuilder.java |80 - .../com/google/protobuf/ExperimentalApi.java|66 - .../shaded/com/google/protobuf/Extension.java |86 - .../com/google/protobuf/ExtensionLite.java |63 - .../com/google/protobuf/ExtensionRegistry.java | 396 - .../protobuf/ExtensionRegistryFactory.java |95 - .../google/protobuf/ExtensionRegistryLite.java | 227 - .../hbase/shaded/com/google/protobuf/Field.java | 2450 - .../shaded/com/google/protobuf/FieldMask.java | 903 - .../com/google/protobuf/FieldMaskOrBuilder.java |44 - .../com/google/protobuf/FieldMaskProto.java |59 - .../com/google/protobuf/FieldOrBuilder.java | 189 - .../shaded/com/google/protobuf/FieldSet.java| 909 -
[01/52] [abbrv] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update
Repository: hbase Updated Branches: refs/heads/HBASE-18147 c8554980e -> 4d0397bb4 (forced update) http://git-wip-us.apache.org/repos/asf/hbase/blob/df93c13f/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/protobuf/generated/BackupProtos.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/protobuf/generated/BackupProtos.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/protobuf/generated/BackupProtos.java deleted file mode 100644 index 0271777..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/protobuf/generated/BackupProtos.java +++ /dev/null @@ -1,7013 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: Backup.proto - -package org.apache.hadoop.hbase.shaded.protobuf.generated; - -public final class BackupProtos { - private BackupProtos() {} - public static void registerAllExtensions( - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistry registry) { -registerAllExtensions( - (org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * Protobuf enum {@code hbase.pb.BackupType} - */ - public enum BackupType - implements org.apache.hadoop.hbase.shaded.com.google.protobuf.ProtocolMessageEnum { -/** - * FULL = 0; - */ -FULL(0), -/** - * INCREMENTAL = 1; - */ -INCREMENTAL(1), -; - -/** - * FULL = 0; - */ -public static final int FULL_VALUE = 0; -/** - * INCREMENTAL = 1; - */ -public static final int INCREMENTAL_VALUE = 1; - - -public final int getNumber() { - return value; -} - -/** - * @deprecated Use {@link #forNumber(int)} instead. - */ -@java.lang.Deprecated -public static BackupType valueOf(int value) { - return forNumber(value); -} - -public static BackupType forNumber(int value) { - switch (value) { -case 0: return FULL; -case 1: return INCREMENTAL; -default: return null; - } -} - -public static org.apache.hadoop.hbase.shaded.com.google.protobuf.Internal.EnumLiteMap -internalGetValueMap() { - return internalValueMap; -} -private static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Internal.EnumLiteMap< -BackupType> internalValueMap = - new org.apache.hadoop.hbase.shaded.com.google.protobuf.Internal.EnumLiteMap() { -public BackupType findValueByNumber(int number) { - return BackupType.forNumber(number); -} - }; - -public final org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.EnumValueDescriptor -getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); -} -public final org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.EnumDescriptor -getDescriptorForType() { - return getDescriptor(); -} -public static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.EnumDescriptor -getDescriptor() { - return org.apache.hadoop.hbase.shaded.protobuf.generated.BackupProtos.getDescriptor().getEnumTypes().get(0); -} - -private static final BackupType[] VALUES = values(); - -public static BackupType valueOf( - org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { -throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; -} - -private final int value; - -private BackupType(int value) { - this.value = value; -} - -// @@protoc_insertion_point(enum_scope:hbase.pb.BackupType) - } - - public interface ServerTimestampOrBuilder extends - // @@protoc_insertion_point(interface_extends:hbase.pb.ServerTimestamp) - org.apache.hadoop.hbase.shaded.com.google.protobuf.MessageOrBuilder { - -/** - * optional .hbase.pb.ServerName server_name = 1; - */ -boolean hasServerName(); -/** - * optional .hbase.pb.ServerName server_name = 1; - */ -org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.ServerName getServerName(); -/** - * optional .hbase.pb.ServerName server_name = 1; - */ - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.ServerNameOrBuilder getServerNameOrBuilder(); - -/** - * optional uint64 timestamp = 2; - */ -boolean hasTimestamp(); -/** - * optional uint64 timestamp = 2; - */ -long getTimestamp(); - } - /** - * - ** - * ServerTimestamp keeps last WAL roll time per
[13/52] [abbrv] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update
http://git-wip-us.apache.org/repos/asf/hbase/blob/df93c13f/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/TextFormatParseInfoTree.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/TextFormatParseInfoTree.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/TextFormatParseInfoTree.java deleted file mode 100644 index cd08eab..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/TextFormatParseInfoTree.java +++ /dev/null @@ -1,226 +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. - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.FieldDescriptor; - -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; - - -/** - * Data structure which is populated with the locations of each field value parsed from the text. - * - * The locations of primary fields values are retrieved by {@code getLocation} or - * {@code getLocations}. The locations of sub message values are within nested - * {@code TextFormatParseInfoTree}s and are retrieve by {@code getNestedTree} or - * {@code getNestedTrees}. - * - * The {@code TextFormatParseInfoTree} is created by a Builder. - */ -public class TextFormatParseInfoTree { - - // Defines a mapping between each field's descriptor to the list of locations where - // its value(s) were was encountered. - private MaplocationsFromField; - - // Defines a mapping between a field's descriptor to a list of TextFormatParseInfoTrees for - // sub message location information. - Map subtreesFromField; - - /** - * Construct a {@code TextFormatParseInfoTree}. - * - * @param locationsFromField a map of fields to location in the source code - * @param subtreeBuildersFromField a map of fields to parse tree location information builders - */ - private TextFormatParseInfoTree( - Map locationsFromField, - Map subtreeBuildersFromField) { - -// The maps are unmodifiable. The values in the maps are unmodifiable. -Map locs = -new HashMap (); -for (Entry kv : locationsFromField.entrySet()) { - locs.put(kv.getKey(), Collections.unmodifiableList(kv.getValue())); -} -this.locationsFromField = Collections.unmodifiableMap(locs); - -Map subs = -new HashMap (); -for (Entry kv : subtreeBuildersFromField.entrySet()) { - List submessagesOfField = new ArrayList(); - for (Builder subBuilder : kv.getValue()) { -submessagesOfField.add(subBuilder.build()); - } - subs.put(kv.getKey(), Collections.unmodifiableList(submessagesOfField)); -} -this.subtreesFromField = Collections.unmodifiableMap(subs); - } - - /** - * Retrieve all the locations of a field. - * - * @param fieldDescriptor the the @{link FieldDescriptor} of the
[15/52] [abbrv] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update
http://git-wip-us.apache.org/repos/asf/hbase/blob/df93c13f/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/StringValue.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/StringValue.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/StringValue.java deleted file mode 100644 index f3e2ef6..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/StringValue.java +++ /dev/null @@ -1,532 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/wrappers.proto - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -/** - * - * Wrapper message for `string`. - * The JSON representation for `StringValue` is JSON string. - * - * - * Protobuf type {@code google.protobuf.StringValue} - */ -public final class StringValue extends -org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3 implements -// @@protoc_insertion_point(message_implements:google.protobuf.StringValue) -StringValueOrBuilder { - // Use StringValue.newBuilder() to construct. - private StringValue(org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) { -super(builder); - } - private StringValue() { -value_ = ""; - } - - @java.lang.Override - public final org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet - getUnknownFields() { -return org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private StringValue( - org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input, - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException { -this(); -int mutable_bitField0_ = 0; -try { - boolean done = false; - while (!done) { -int tag = input.readTag(); -switch (tag) { - case 0: -done = true; -break; - default: { -if (!input.skipField(tag)) { - done = true; -} -break; - } - case 10: { -java.lang.String s = input.readStringRequireUtf8(); - -value_ = s; -break; - } -} - } -} catch (org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); -} catch (java.io.IOException e) { - throw new org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); -} finally { - makeExtensionsImmutable(); -} - } - public static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.Descriptor - getDescriptor() { -return org.apache.hadoop.hbase.shaded.com.google.protobuf.WrappersProto.internal_static_google_protobuf_StringValue_descriptor; - } - - protected org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { -return org.apache.hadoop.hbase.shaded.com.google.protobuf.WrappersProto.internal_static_google_protobuf_StringValue_fieldAccessorTable -.ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.shaded.com.google.protobuf.StringValue.class, org.apache.hadoop.hbase.shaded.com.google.protobuf.StringValue.Builder.class); - } - - public static final int VALUE_FIELD_NUMBER = 1; - private volatile java.lang.Object value_; - /** - * - * The string value. - * - * - * string value = 1; - */ - public java.lang.String getValue() { -java.lang.Object ref = value_; -if (ref instanceof java.lang.String) { - return (java.lang.String) ref; -} else { - org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString bs = - (org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; -} - } - /** - * - * The string value. - * - * - * string value = 1; - */ - public org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString - getValueBytes() { -java.lang.Object ref = value_; -if (ref instanceof java.lang.String) { - org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString b = - org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; -} else { - return (org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString) ref; -} - } - - private byte memoizedIsInitialized = -1; - public final boolean
[28/52] [abbrv] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update
http://git-wip-us.apache.org/repos/asf/hbase/blob/df93c13f/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/FieldMask.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/FieldMask.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/FieldMask.java deleted file mode 100644 index df42bca..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/FieldMask.java +++ /dev/null @@ -1,903 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/field_mask.proto - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -/** - * - * `FieldMask` represents a set of symbolic field paths, for example: - * paths: "f.a" - * paths: "f.b.d" - * Here `f` represents a field in some root message, `a` and `b` - * fields in the message found in `f`, and `d` a field found in the - * message in `f.b`. - * Field masks are used to specify a subset of fields that should be - * returned by a get operation or modified by an update operation. - * Field masks also have a custom JSON encoding (see below). - * # Field Masks in Projections - * When used in the context of a projection, a response message or - * sub-message is filtered by the API to only contain those fields as - * specified in the mask. For example, if the mask in the previous - * example is applied to a response message as follows: - * f { - * a : 22 - * b { - * d : 1 - * x : 2 - * } - * y : 13 - * } - * z: 8 - * The result will not contain specific values for fields x,y and z - * (their value will be set to the default, and omitted in proto text - * output): - * f { - * a : 22 - * b { - * d : 1 - * } - * } - * A repeated field is not allowed except at the last position of a - * paths string. - * If a FieldMask object is not present in a get operation, the - * operation applies to all fields (as if a FieldMask of all fields - * had been specified). - * Note that a field mask does not necessarily apply to the - * top-level response message. In case of a REST get operation, the - * field mask applies directly to the response, but in case of a REST - * list operation, the mask instead applies to each individual message - * in the returned resource list. In case of a REST custom method, - * other definitions may be used. Where the mask applies will be - * clearly documented together with its declaration in the API. In - * any case, the effect on the returned resource/resources is required - * behavior for APIs. - * # Field Masks in Update Operations - * A field mask in update operations specifies which fields of the - * targeted resource are going to be updated. The API is required - * to only change the values of the fields as specified in the mask - * and leave the others untouched. If a resource is passed in to - * describe the updated values, the API ignores the values of all - * fields not covered by the mask. - * If a repeated field is specified for an update operation, the existing - * repeated values in the target resource will be overwritten by the new values. - * Note that a repeated field is only allowed in the last position of a `paths` - * string. - * If a sub-message is specified in the last position of the field mask for an - * update operation, then the existing sub-message in the target resource is - * overwritten. Given the target message: - * f { - * b { - * d : 1 - * x : 2 - * } - * c : 1 - * } - * And an update message: - * f { - * b { - * d : 10 - * } - * } - * then if the field mask is: - * paths: "f.b" - * then the result will be: - * f { - * b { - * d : 10 - * } - * c : 1 - * } - * However, if the update mask was: - * paths: "f.b.d" - * then the result would be: - * f { - * b { - * d : 10 - * x : 2 - * } - * c : 1 - * } - * In order to reset a field's value to the default, the field must - * be in the mask and set to the default value in the provided resource. - * Hence, in order to reset all fields of a resource, provide a default - * instance of the resource and set all fields in the mask, or do - * not provide a mask as described below. - * If a field mask is not present on update, the operation applies to - * all fields (as if a field mask of all fields has been specified). - * Note that in the presence of schema evolution, this may mean that - * fields the client does not know and has therefore not filled into - * the request will be reset to their default. If this is unwanted - * behavior, a specific service may require a client to always specify - * a field mask, producing an error if not. - * As with get
[34/52] [abbrv] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update
http://git-wip-us.apache.org/repos/asf/hbase/blob/df93c13f/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/DescriptorProtos.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/DescriptorProtos.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/DescriptorProtos.java deleted file mode 100644 index 0468e6c..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/DescriptorProtos.java +++ /dev/null @@ -1,39141 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/descriptor.proto - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -public final class DescriptorProtos { - private DescriptorProtos() {} - public static void registerAllExtensions( - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistry registry) { -registerAllExtensions( - (org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface FileDescriptorSetOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.protobuf.FileDescriptorSet) - org.apache.hadoop.hbase.shaded.com.google.protobuf.MessageOrBuilder { - -/** - * repeated .google.protobuf.FileDescriptorProto file = 1; - */ - java.util.List -getFileList(); -/** - * repeated .google.protobuf.FileDescriptorProto file = 1; - */ - org.apache.hadoop.hbase.shaded.com.google.protobuf.DescriptorProtos.FileDescriptorProto getFile(int index); -/** - * repeated .google.protobuf.FileDescriptorProto file = 1; - */ -int getFileCount(); -/** - * repeated .google.protobuf.FileDescriptorProto file = 1; - */ -java.util.List -getFileOrBuilderList(); -/** - * repeated .google.protobuf.FileDescriptorProto file = 1; - */ - org.apache.hadoop.hbase.shaded.com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder getFileOrBuilder( -int index); - } - /** - * - * The protocol compiler can output a FileDescriptorSet containing the .proto - * files it parses. - * - * - * Protobuf type {@code google.protobuf.FileDescriptorSet} - */ - public static final class FileDescriptorSet extends - org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.protobuf.FileDescriptorSet) - FileDescriptorSetOrBuilder { -// Use FileDescriptorSet.newBuilder() to construct. -private FileDescriptorSet(org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); -} -private FileDescriptorSet() { - file_ = java.util.Collections.emptyList(); -} - -@java.lang.Override -public final org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet -getUnknownFields() { - return this.unknownFields; -} -private FileDescriptorSet( -org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input, - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) -throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet.Builder unknownFields = - org.apache.hadoop.hbase.shaded.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; -} -case 10: { - if (!((mutable_bitField0_ & 0x0001) == 0x0001)) { -file_ = new java.util.ArrayList(); -mutable_bitField0_ |= 0x0001; - } - file_.add( - input.readMessage(org.apache.hadoop.hbase.shaded.com.google.protobuf.DescriptorProtos.FileDescriptorProto.PARSER, extensionRegistry)); - break; -} - } -} - } catch (org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException e) { -throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { -throw new
[32/52] [abbrv] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update
http://git-wip-us.apache.org/repos/asf/hbase/blob/df93c13f/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/DoubleArrayList.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/DoubleArrayList.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/DoubleArrayList.java deleted file mode 100644 index 88effb2..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/DoubleArrayList.java +++ /dev/null @@ -1,273 +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. - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Internal.DoubleList; - -import java.util.Arrays; -import java.util.Collection; -import java.util.RandomAccess; - -/** - * An implementation of {@link DoubleList} on top of a primitive array. - * - * @author dw...@google.com (Daniel Weis) - */ -final class DoubleArrayList -extends AbstractProtobufList -implements DoubleList, RandomAccess { - - private static final DoubleArrayList EMPTY_LIST = new DoubleArrayList(); - static { -EMPTY_LIST.makeImmutable(); - } - - public static DoubleArrayList emptyList() { -return EMPTY_LIST; - } - - /** - * The backing store for the list. - */ - private double[] array; - - /** - * The size of the list distinct from the length of the array. That is, it is the number of - * elements set in the list. - */ - private int size; - - /** - * Constructs a new mutable {@code DoubleArrayList} with default capacity. - */ - DoubleArrayList() { -this(new double[DEFAULT_CAPACITY], 0); - } - - /** - * Constructs a new mutable {@code DoubleArrayList} - * containing the same elements as {@code other}. - */ - private DoubleArrayList(double[] other, int size) { -array = other; -this.size = size; - } - - @Override - public boolean equals(Object o) { -if (this == o) { - return true; -} -if (!(o instanceof DoubleArrayList)) { - return super.equals(o); -} -DoubleArrayList other = (DoubleArrayList) o; -if (size != other.size) { - return false; -} - -final double[] arr = other.array; -for (int i = 0; i < size; i++) { - if (array[i] != arr[i]) { -return false; - } -} - -return true; - } - - @Override - public int hashCode() { -int result = 1; -for (int i = 0; i < size; i++) { - long bits = Double.doubleToLongBits(array[i]); - result = (31 * result) + Internal.hashLong(bits); -} -return result; - } - - @Override - public DoubleList mutableCopyWithCapacity(int capacity) { -if (capacity < size) { - throw new IllegalArgumentException(); -} -return new DoubleArrayList(Arrays.copyOf(array, capacity), size); - } - - @Override - public Double get(int index) { -return getDouble(index); - } - - @Override - public double getDouble(int index) { -ensureIndexInRange(index); -return array[index]; - } - - @Override - public int size() { -return size; - } - - @Override - public Double set(int index, Double element) { -return setDouble(index, element); - } - -
[41/52] [abbrv] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update
http://git-wip-us.apache.org/repos/asf/hbase/blob/df93c13f/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/AbstractMessage.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/AbstractMessage.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/AbstractMessage.java deleted file mode 100644 index 4a6fefa..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/AbstractMessage.java +++ /dev/null @@ -1,646 +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. - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.EnumValueDescriptor; -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.FieldDescriptor; -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.OneofDescriptor; -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Internal.EnumLite; - -import java.io.IOException; -import java.io.InputStream; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; -import java.util.Map; - -/** - * A partial implementation of the {@link Message} interface which implements - * as many methods of that interface as possible in terms of other methods. - * - * @author ken...@google.com Kenton Varda - */ -public abstract class AbstractMessage -// TODO(dweis): Update GeneratedMessage to parameterize with MessageType and BuilderType. -extends AbstractMessageLite -implements Message { - - @Override - public boolean isInitialized() { -return MessageReflection.isInitialized(this); - } - - /** - * Interface for the parent of a Builder that allows the builder to - * communicate invalidations back to the parent for use when using nested - * builders. - */ - protected interface BuilderParent { - -/** - * A builder becomes dirty whenever a field is modified -- including fields - * in nested builders -- and becomes clean when build() is called. Thus, - * when a builder becomes dirty, all its parents become dirty as well, and - * when it becomes clean, all its children become clean. The dirtiness - * state is used to invalidate certain cached values. - * - * To this end, a builder calls markDirty() on its parent whenever it - * transitions from clean to dirty. The parent must propagate this call to - * its own parent, unless it was already dirty, in which case the - * grandparent must necessarily already be dirty as well. The parent can - * only transition back to "clean" after calling build() on all children. - */ -void markDirty(); - } - - /** Create a nested builder. */ - protected Message.Builder newBuilderForType(BuilderParent parent) { -throw new UnsupportedOperationException("Nested builder is not supported for this type."); - } - - - @Override - public List findInitializationErrors() { -return MessageReflection.findMissingFields(this); - } - - @Override - public String getInitializationErrorString() { -return
[35/52] [abbrv] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update
http://git-wip-us.apache.org/repos/asf/hbase/blob/df93c13f/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/CodedOutputStream.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/CodedOutputStream.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/CodedOutputStream.java deleted file mode 100644 index 03871c9..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/CodedOutputStream.java +++ /dev/null @@ -1,3001 +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. - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -import static org.apache.hadoop.hbase.shaded.com.google.protobuf.WireFormat.FIXED_32_SIZE; -import static org.apache.hadoop.hbase.shaded.com.google.protobuf.WireFormat.FIXED_64_SIZE; -import static org.apache.hadoop.hbase.shaded.com.google.protobuf.WireFormat.MAX_VARINT_SIZE; -import static java.lang.Math.max; - -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Utf8.UnpairedSurrogateException; -import java.io.IOException; -import java.io.OutputStream; -import java.nio.BufferOverflowException; -import java.nio.ByteBuffer; -import java.nio.ByteOrder; -import java.util.logging.Level; -import java.util.logging.Logger; - -/** - * Encodes and writes protocol message fields. - * - * This class contains two kinds of methods: methods that write specific - * protocol message constructs and field types (e.g. {@link #writeTag} and - * {@link #writeInt32}) and methods that write low-level values (e.g. - * {@link #writeRawVarint32} and {@link #writeRawBytes}). If you are - * writing encoded protocol messages, you should use the former methods, but if - * you are writing some other format of your own design, use the latter. - * - * This class is totally unsynchronized. - */ -public abstract class CodedOutputStream extends ByteOutput { - private static final Logger logger = Logger.getLogger(CodedOutputStream.class.getName()); - private static final boolean HAS_UNSAFE_ARRAY_OPERATIONS = UnsafeUtil.hasUnsafeArrayOperations(); - private static final long ARRAY_BASE_OFFSET = UnsafeUtil.getArrayBaseOffset(); - - /** - * @deprecated Use {@link #computeFixed32SizeNoTag(int)} instead. - */ - @Deprecated - public static final int LITTLE_ENDIAN_32_SIZE = FIXED_32_SIZE; - - /** - * The buffer size used in {@link #newInstance(OutputStream)}. - */ - public static final int DEFAULT_BUFFER_SIZE = 4096; - - /** - * Returns the buffer size to efficiently write dataLength bytes to this - * CodedOutputStream. Used by AbstractMessageLite. - * - * @return the buffer size to efficiently write dataLength bytes to this - * CodedOutputStream. - */ - static int computePreferredBufferSize(int dataLength) { -if (dataLength > DEFAULT_BUFFER_SIZE) { - return DEFAULT_BUFFER_SIZE; -} -return dataLength; - } - - /** - * Create a new {@code CodedOutputStream} wrapping the given {@code OutputStream}. - * - * NOTE: The provided {@link OutputStream} MUST NOT retain access or - * modify the provided byte arrays. Doing so may result in corrupted data, which would be - * difficult to debug.
[08/52] [abbrv] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update
http://git-wip-us.apache.org/repos/asf/hbase/blob/df93c13f/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Value.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Value.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Value.java deleted file mode 100644 index 593043b..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Value.java +++ /dev/null @@ -1,1410 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/struct.proto - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -/** - * - * `Value` represents a dynamically typed value which can be either - * null, a number, a string, a boolean, a recursive struct value, or a - * list of values. A producer of value is expected to set one of that - * variants, absence of any variant indicates an error. - * The JSON representation for `Value` is JSON value. - * - * - * Protobuf type {@code google.protobuf.Value} - */ -public final class Value extends -org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3 implements -// @@protoc_insertion_point(message_implements:google.protobuf.Value) -ValueOrBuilder { - // Use Value.newBuilder() to construct. - private Value(org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) { -super(builder); - } - private Value() { - } - - @java.lang.Override - public final org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet - getUnknownFields() { -return org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private Value( - org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input, - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException { -this(); -int mutable_bitField0_ = 0; -try { - boolean done = false; - while (!done) { -int tag = input.readTag(); -switch (tag) { - case 0: -done = true; -break; - default: { -if (!input.skipField(tag)) { - done = true; -} -break; - } - case 8: { -int rawValue = input.readEnum(); -kindCase_ = 1; -kind_ = rawValue; -break; - } - case 17: { -kindCase_ = 2; -kind_ = input.readDouble(); -break; - } - case 26: { -java.lang.String s = input.readStringRequireUtf8(); -kindCase_ = 3; -kind_ = s; -break; - } - case 32: { -kindCase_ = 4; -kind_ = input.readBool(); -break; - } - case 42: { -org.apache.hadoop.hbase.shaded.com.google.protobuf.Struct.Builder subBuilder = null; -if (kindCase_ == 5) { - subBuilder = ((org.apache.hadoop.hbase.shaded.com.google.protobuf.Struct) kind_).toBuilder(); -} -kind_ = - input.readMessage(org.apache.hadoop.hbase.shaded.com.google.protobuf.Struct.parser(), extensionRegistry); -if (subBuilder != null) { - subBuilder.mergeFrom((org.apache.hadoop.hbase.shaded.com.google.protobuf.Struct) kind_); - kind_ = subBuilder.buildPartial(); -} -kindCase_ = 5; -break; - } - case 50: { - org.apache.hadoop.hbase.shaded.com.google.protobuf.ListValue.Builder subBuilder = null; -if (kindCase_ == 6) { - subBuilder = ((org.apache.hadoop.hbase.shaded.com.google.protobuf.ListValue) kind_).toBuilder(); -} -kind_ = - input.readMessage(org.apache.hadoop.hbase.shaded.com.google.protobuf.ListValue.parser(), extensionRegistry); -if (subBuilder != null) { - subBuilder.mergeFrom((org.apache.hadoop.hbase.shaded.com.google.protobuf.ListValue) kind_); - kind_ = subBuilder.buildPartial(); -} -kindCase_ = 6; -break; - } -} - } -} catch (org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); -} catch (java.io.IOException e) { - throw new org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); -} finally { - makeExtensionsImmutable(); -} - } - public static final
[30/52] [abbrv] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update
http://git-wip-us.apache.org/repos/asf/hbase/blob/df93c13f/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/EnumValue.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/EnumValue.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/EnumValue.java deleted file mode 100644 index a0a9d49..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/EnumValue.java +++ /dev/null @@ -1,1044 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/type.proto - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -/** - * - * Enum value definition. - * - * - * Protobuf type {@code google.protobuf.EnumValue} - */ -public final class EnumValue extends -org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3 implements -// @@protoc_insertion_point(message_implements:google.protobuf.EnumValue) -EnumValueOrBuilder { - // Use EnumValue.newBuilder() to construct. - private EnumValue(org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) { -super(builder); - } - private EnumValue() { -name_ = ""; -number_ = 0; -options_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet - getUnknownFields() { -return org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private EnumValue( - org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input, - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException { -this(); -int mutable_bitField0_ = 0; -try { - boolean done = false; - while (!done) { -int tag = input.readTag(); -switch (tag) { - case 0: -done = true; -break; - default: { -if (!input.skipField(tag)) { - done = true; -} -break; - } - case 10: { -java.lang.String s = input.readStringRequireUtf8(); - -name_ = s; -break; - } - case 16: { - -number_ = input.readInt32(); -break; - } - case 26: { -if (!((mutable_bitField0_ & 0x0004) == 0x0004)) { - options_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x0004; -} -options_.add( - input.readMessage(org.apache.hadoop.hbase.shaded.com.google.protobuf.Option.parser(), extensionRegistry)); -break; - } -} - } -} catch (org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); -} catch (java.io.IOException e) { - throw new org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); -} finally { - if (((mutable_bitField0_ & 0x0004) == 0x0004)) { -options_ = java.util.Collections.unmodifiableList(options_); - } - makeExtensionsImmutable(); -} - } - public static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.Descriptor - getDescriptor() { -return org.apache.hadoop.hbase.shaded.com.google.protobuf.TypeProto.internal_static_google_protobuf_EnumValue_descriptor; - } - - protected org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { -return org.apache.hadoop.hbase.shaded.com.google.protobuf.TypeProto.internal_static_google_protobuf_EnumValue_fieldAccessorTable -.ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.shaded.com.google.protobuf.EnumValue.class, org.apache.hadoop.hbase.shaded.com.google.protobuf.EnumValue.Builder.class); - } - - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * Enum value 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 { - org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString bs = - (org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; -} - } - /** - * - * Enum value name. - * - * - * string name = 1;
[33/52] [abbrv] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update
http://git-wip-us.apache.org/repos/asf/hbase/blob/df93c13f/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Descriptors.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Descriptors.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Descriptors.java deleted file mode 100644 index 62ccd19..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Descriptors.java +++ /dev/null @@ -1,2547 +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. - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -import org.apache.hadoop.hbase.shaded.com.google.protobuf.DescriptorProtos.*; -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.FileDescriptor.Syntax; - -import java.lang.ref.WeakReference; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Set; -import java.util.WeakHashMap; -import java.util.logging.Logger; - -/** - * Contains a collection of classes which describe protocol message types. - * - * Every message type has a {@link Descriptor}, which lists all - * its fields and other information about a type. You can get a message - * type's descriptor by calling {@code MessageType.getDescriptor()}, or - * (given a message object of the type) {@code message.getDescriptorForType()}. - * Furthermore, each message is associated with a {@link FileDescriptor} for - * a relevant {@code .proto} file. You can obtain it by calling - * {@code Descriptor.getFile()}. A {@link FileDescriptor} contains descriptors - * for all the messages defined in that file, and file descriptors for all the - * imported {@code .proto} files. - * - * Descriptors are built from DescriptorProtos, as defined in - * {@code google/protobuf/descriptor.proto}. - * - * @author ken...@google.com Kenton Varda - */ -public final class Descriptors { - private static final Logger logger = - Logger.getLogger(Descriptors.class.getName()); - /** - * Describes a {@code .proto} file, including everything defined within. - * That includes, in particular, descriptors for all the messages and - * file descriptors for all other imported {@code .proto} files - * (dependencies). - */ - public static final class FileDescriptor extends GenericDescriptor { -/** Convert the descriptor to its protocol message representation. */ -@Override -public FileDescriptorProto toProto() { - return proto; -} - -/** Get the file name. */ -@Override -public String getName() { - return proto.getName(); -} - -/** Returns this object. */ -@Override -public FileDescriptor getFile() { - return this; -} - -/** Returns the same as getName(). */ -@Override -public String getFullName() { - return proto.getName(); -} - -/** - * Get the proto package name. This is the package name given by the - * {@code package} statement in the {@code .proto} file, which differs - * from the Java package. - */ -public String getPackage() { return
[03/52] [abbrv] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update
http://git-wip-us.apache.org/repos/asf/hbase/blob/df93c13f/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/protobuf/generated/AccessControlProtos.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/protobuf/generated/AccessControlProtos.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/protobuf/generated/AccessControlProtos.java deleted file mode 100644 index e83a7ac..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/protobuf/generated/AccessControlProtos.java +++ /dev/null @@ -1,11171 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: AccessControl.proto - -package org.apache.hadoop.hbase.shaded.protobuf.generated; - -public final class AccessControlProtos { - private AccessControlProtos() {} - public static void registerAllExtensions( - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistry registry) { -registerAllExtensions( - (org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PermissionOrBuilder extends - // @@protoc_insertion_point(interface_extends:hbase.pb.Permission) - org.apache.hadoop.hbase.shaded.com.google.protobuf.MessageOrBuilder { - -/** - * required .hbase.pb.Permission.Type type = 1; - */ -boolean hasType(); -/** - * required .hbase.pb.Permission.Type type = 1; - */ - org.apache.hadoop.hbase.shaded.protobuf.generated.AccessControlProtos.Permission.Type getType(); - -/** - * optional .hbase.pb.GlobalPermission global_permission = 2; - */ -boolean hasGlobalPermission(); -/** - * optional .hbase.pb.GlobalPermission global_permission = 2; - */ - org.apache.hadoop.hbase.shaded.protobuf.generated.AccessControlProtos.GlobalPermission getGlobalPermission(); -/** - * optional .hbase.pb.GlobalPermission global_permission = 2; - */ - org.apache.hadoop.hbase.shaded.protobuf.generated.AccessControlProtos.GlobalPermissionOrBuilder getGlobalPermissionOrBuilder(); - -/** - * optional .hbase.pb.NamespacePermission namespace_permission = 3; - */ -boolean hasNamespacePermission(); -/** - * optional .hbase.pb.NamespacePermission namespace_permission = 3; - */ - org.apache.hadoop.hbase.shaded.protobuf.generated.AccessControlProtos.NamespacePermission getNamespacePermission(); -/** - * optional .hbase.pb.NamespacePermission namespace_permission = 3; - */ - org.apache.hadoop.hbase.shaded.protobuf.generated.AccessControlProtos.NamespacePermissionOrBuilder getNamespacePermissionOrBuilder(); - -/** - * optional .hbase.pb.TablePermission table_permission = 4; - */ -boolean hasTablePermission(); -/** - * optional .hbase.pb.TablePermission table_permission = 4; - */ - org.apache.hadoop.hbase.shaded.protobuf.generated.AccessControlProtos.TablePermission getTablePermission(); -/** - * optional .hbase.pb.TablePermission table_permission = 4; - */ - org.apache.hadoop.hbase.shaded.protobuf.generated.AccessControlProtos.TablePermissionOrBuilder getTablePermissionOrBuilder(); - } - /** - * Protobuf type {@code hbase.pb.Permission} - */ - public static final class Permission extends - org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:hbase.pb.Permission) - PermissionOrBuilder { -// Use Permission.newBuilder() to construct. -private Permission(org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); -} -private Permission() { - type_ = 1; -} - -@java.lang.Override -public final org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet -getUnknownFields() { - return this.unknownFields; -} -private Permission( -org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input, - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) -throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet.Builder unknownFields = - org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet.newBuilder(); - try { -boolean done = false; -while (!done) { - int tag = input.readTag(); - switch (tag) { -case 0: - done = true; - break; -default: { - if
[25/52] [abbrv] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update
http://git-wip-us.apache.org/repos/asf/hbase/blob/df93c13f/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/GeneratedMessageLite.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/GeneratedMessageLite.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/GeneratedMessageLite.java deleted file mode 100644 index 584eba1..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/GeneratedMessageLite.java +++ /dev/null @@ -1,2419 +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. - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -import org.apache.hadoop.hbase.shaded.com.google.protobuf.AbstractMessageLite.Builder.LimitedInputStream; -import org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageLite.EqualsVisitor.NotEqualsException; -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Internal.BooleanList; -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Internal.DoubleList; -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Internal.FloatList; -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Internal.IntList; -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Internal.LongList; -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Internal.ProtobufList; -import org.apache.hadoop.hbase.shaded.com.google.protobuf.WireFormat.FieldType; -import java.io.IOException; -import java.io.InputStream; -import java.io.ObjectStreamException; -import java.io.Serializable; -import java.lang.reflect.InvocationTargetException; -import java.lang.reflect.Method; -import java.util.ArrayList; -import java.util.Collections; -import java.util.Iterator; -import java.util.List; -import java.util.Map; - -/** - * Lite version of {@link GeneratedMessage}. - * - * @author ken...@google.com Kenton Varda - */ -public abstract class GeneratedMessageLite< -MessageType extends GeneratedMessageLite, -BuilderType extends GeneratedMessageLite.Builder > -extends AbstractMessageLite { - - /** For use by generated code only. Lazily initialized to reduce allocations. */ - protected UnknownFieldSetLite unknownFields = UnknownFieldSetLite.getDefaultInstance(); - - /** For use by generated code only. */ - protected int memoizedSerializedSize = -1; - - @Override - @SuppressWarnings("unchecked") // Guaranteed by runtime. - public final Parser getParserForType() { -return (Parser) dynamicMethod(MethodToInvoke.GET_PARSER); - } - - @Override - @SuppressWarnings("unchecked") // Guaranteed by runtime. - public final MessageType getDefaultInstanceForType() { -return (MessageType) dynamicMethod(MethodToInvoke.GET_DEFAULT_INSTANCE); - } - - @Override - @SuppressWarnings("unchecked") // Guaranteed by runtime. - public final BuilderType newBuilderForType() { -return (BuilderType) dynamicMethod(MethodToInvoke.NEW_BUILDER); - } - - /** - * A reflective toString function. This is primarily intended as a developer aid, while keeping - * binary size down. The first line of the {@code toString()}
[39/52] [abbrv] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update
http://git-wip-us.apache.org/repos/asf/hbase/blob/df93c13f/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Api.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Api.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Api.java deleted file mode 100644 index 3265158..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Api.java +++ /dev/null @@ -1,2473 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/api.proto - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -/** - * - * Api is a light-weight descriptor for a protocol buffer service. - * - * - * Protobuf type {@code google.protobuf.Api} - */ -public final class Api extends -org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3 implements -// @@protoc_insertion_point(message_implements:google.protobuf.Api) -ApiOrBuilder { - // Use Api.newBuilder() to construct. - private Api(org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) { -super(builder); - } - private Api() { -name_ = ""; -methods_ = java.util.Collections.emptyList(); -options_ = java.util.Collections.emptyList(); -version_ = ""; -mixins_ = java.util.Collections.emptyList(); -syntax_ = 0; - } - - @java.lang.Override - public final org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet - getUnknownFields() { -return org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private Api( - org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input, - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException { -this(); -int mutable_bitField0_ = 0; -try { - boolean done = false; - while (!done) { -int tag = input.readTag(); -switch (tag) { - case 0: -done = true; -break; - default: { -if (!input.skipField(tag)) { - done = true; -} -break; - } - case 10: { -java.lang.String s = input.readStringRequireUtf8(); - -name_ = s; -break; - } - case 18: { -if (!((mutable_bitField0_ & 0x0002) == 0x0002)) { - methods_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x0002; -} -methods_.add( - input.readMessage(org.apache.hadoop.hbase.shaded.com.google.protobuf.Method.parser(), extensionRegistry)); -break; - } - case 26: { -if (!((mutable_bitField0_ & 0x0004) == 0x0004)) { - options_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x0004; -} -options_.add( - input.readMessage(org.apache.hadoop.hbase.shaded.com.google.protobuf.Option.parser(), extensionRegistry)); -break; - } - case 34: { -java.lang.String s = input.readStringRequireUtf8(); - -version_ = s; -break; - } - case 42: { - org.apache.hadoop.hbase.shaded.com.google.protobuf.SourceContext.Builder subBuilder = null; -if (sourceContext_ != null) { - subBuilder = sourceContext_.toBuilder(); -} -sourceContext_ = input.readMessage(org.apache.hadoop.hbase.shaded.com.google.protobuf.SourceContext.parser(), extensionRegistry); -if (subBuilder != null) { - subBuilder.mergeFrom(sourceContext_); - sourceContext_ = subBuilder.buildPartial(); -} - -break; - } - case 50: { -if (!((mutable_bitField0_ & 0x0020) == 0x0020)) { - mixins_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x0020; -} -mixins_.add( - input.readMessage(org.apache.hadoop.hbase.shaded.com.google.protobuf.Mixin.parser(), extensionRegistry)); -break; - } - case 56: { -int rawValue = input.readEnum(); - -syntax_ = rawValue; -break; - } -} - } -} catch (org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); -} catch (java.io.IOException e) { - throw new org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException( -
[48/52] [abbrv] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update
http://git-wip-us.apache.org/repos/asf/hbase/blob/df93c13f/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/coprocessor/protobuf/generated/ColumnAggregationWithErrorsProtos.java -- diff --git a/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/coprocessor/protobuf/generated/ColumnAggregationWithErrorsProtos.java b/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/coprocessor/protobuf/generated/ColumnAggregationWithErrorsProtos.java deleted file mode 100644 index 64cf82e..000 --- a/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/coprocessor/protobuf/generated/ColumnAggregationWithErrorsProtos.java +++ /dev/null @@ -1,1290 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ColumnAggregationWithErrorsProtocol.proto - -package org.apache.hadoop.hbase.coprocessor.protobuf.generated; - -public final class ColumnAggregationWithErrorsProtos { - private ColumnAggregationWithErrorsProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public interface ColumnAggregationWithErrorsSumRequestOrBuilder - extends com.google.protobuf.MessageOrBuilder { - -// required bytes family = 1; -/** - * required bytes family = 1; - */ -boolean hasFamily(); -/** - * required bytes family = 1; - */ -com.google.protobuf.ByteString getFamily(); - -// optional bytes qualifier = 2; -/** - * optional bytes qualifier = 2; - */ -boolean hasQualifier(); -/** - * optional bytes qualifier = 2; - */ -com.google.protobuf.ByteString getQualifier(); - } - /** - * Protobuf type {@code ColumnAggregationWithErrorsSumRequest} - * - * - * use unique names for messages in ColumnAggregationXXX.protos due to a bug in - * protoc or hadoop's protoc compiler. - * - */ - public static final class ColumnAggregationWithErrorsSumRequest extends - com.google.protobuf.GeneratedMessage - implements ColumnAggregationWithErrorsSumRequestOrBuilder { -// Use ColumnAggregationWithErrorsSumRequest.newBuilder() to construct. -private ColumnAggregationWithErrorsSumRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); -} -private ColumnAggregationWithErrorsSumRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - -private static final ColumnAggregationWithErrorsSumRequest defaultInstance; -public static ColumnAggregationWithErrorsSumRequest getDefaultInstance() { - return defaultInstance; -} - -public ColumnAggregationWithErrorsSumRequest getDefaultInstanceForType() { - return defaultInstance; -} - -private final com.google.protobuf.UnknownFieldSet unknownFields; -@java.lang.Override -public final com.google.protobuf.UnknownFieldSet -getUnknownFields() { - return this.unknownFields; -} -private ColumnAggregationWithErrorsSumRequest( -com.google.protobuf.CodedInputStream input, -com.google.protobuf.ExtensionRegistryLite extensionRegistry) -throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.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; -} -case 10: { - bitField0_ |= 0x0001; - family_ = input.readBytes(); - break; -} -case 18: { - bitField0_ |= 0x0002; - qualifier_ = input.readBytes(); - break; -} - } -} - } catch (com.google.protobuf.InvalidProtocolBufferException e) { -throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { -throw new com.google.protobuf.InvalidProtocolBufferException( -e.getMessage()).setUnfinishedMessage(this); - } finally { -this.unknownFields = unknownFields.build(); -makeExtensionsImmutable(); - } -} -public static final com.google.protobuf.Descriptors.Descriptor -getDescriptor() { - return org.apache.hadoop.hbase.coprocessor.protobuf.generated.ColumnAggregationWithErrorsProtos.internal_static_ColumnAggregationWithErrorsSumRequest_descriptor; -} - -protected
[43/52] [abbrv] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update
http://git-wip-us.apache.org/repos/asf/hbase/blob/df93c13f/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/protobuf/generated/SecureBulkLoadProtos.java -- diff --git a/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/protobuf/generated/SecureBulkLoadProtos.java b/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/protobuf/generated/SecureBulkLoadProtos.java deleted file mode 100644 index 86c88c6..000 --- a/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/protobuf/generated/SecureBulkLoadProtos.java +++ /dev/null @@ -1,2088 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SecureBulkLoad.proto - -package org.apache.hadoop.hbase.protobuf.generated; - -public final class SecureBulkLoadProtos { - private SecureBulkLoadProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public interface SecureBulkLoadHFilesRequestOrBuilder - extends com.google.protobuf.MessageOrBuilder { - -// repeated .hbase.pb.BulkLoadHFileRequest.FamilyPath family_path = 1; -/** - * repeated .hbase.pb.BulkLoadHFileRequest.FamilyPath family_path = 1; - */ - java.util.List -getFamilyPathList(); -/** - * repeated .hbase.pb.BulkLoadHFileRequest.FamilyPath family_path = 1; - */ - org.apache.hadoop.hbase.protobuf.generated.ClientProtos.BulkLoadHFileRequest.FamilyPath getFamilyPath(int index); -/** - * repeated .hbase.pb.BulkLoadHFileRequest.FamilyPath family_path = 1; - */ -int getFamilyPathCount(); -/** - * repeated .hbase.pb.BulkLoadHFileRequest.FamilyPath family_path = 1; - */ -java.util.List -getFamilyPathOrBuilderList(); -/** - * repeated .hbase.pb.BulkLoadHFileRequest.FamilyPath family_path = 1; - */ - org.apache.hadoop.hbase.protobuf.generated.ClientProtos.BulkLoadHFileRequest.FamilyPathOrBuilder getFamilyPathOrBuilder( -int index); - -// optional bool assign_seq_num = 2; -/** - * optional bool assign_seq_num = 2; - */ -boolean hasAssignSeqNum(); -/** - * optional bool assign_seq_num = 2; - */ -boolean getAssignSeqNum(); - -// required .hbase.pb.DelegationToken fs_token = 3; -/** - * required .hbase.pb.DelegationToken fs_token = 3; - */ -boolean hasFsToken(); -/** - * required .hbase.pb.DelegationToken fs_token = 3; - */ -org.apache.hadoop.hbase.protobuf.generated.ClientProtos.DelegationToken getFsToken(); -/** - * required .hbase.pb.DelegationToken fs_token = 3; - */ - org.apache.hadoop.hbase.protobuf.generated.ClientProtos.DelegationTokenOrBuilder getFsTokenOrBuilder(); - -// required string bulk_token = 4; -/** - * required string bulk_token = 4; - */ -boolean hasBulkToken(); -/** - * required string bulk_token = 4; - */ -java.lang.String getBulkToken(); -/** - * required string bulk_token = 4; - */ -com.google.protobuf.ByteString -getBulkTokenBytes(); - } - /** - * Protobuf type {@code hbase.pb.SecureBulkLoadHFilesRequest} - */ - public static final class SecureBulkLoadHFilesRequest extends - com.google.protobuf.GeneratedMessage - implements SecureBulkLoadHFilesRequestOrBuilder { -// Use SecureBulkLoadHFilesRequest.newBuilder() to construct. -private SecureBulkLoadHFilesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); -} -private SecureBulkLoadHFilesRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - -private static final SecureBulkLoadHFilesRequest defaultInstance; -public static SecureBulkLoadHFilesRequest getDefaultInstance() { - return defaultInstance; -} - -public SecureBulkLoadHFilesRequest getDefaultInstanceForType() { - return defaultInstance; -} - -private final com.google.protobuf.UnknownFieldSet unknownFields; -@java.lang.Override -public final com.google.protobuf.UnknownFieldSet -getUnknownFields() { - return this.unknownFields; -} -private SecureBulkLoadHFilesRequest( -com.google.protobuf.CodedInputStream input, -com.google.protobuf.ExtensionRegistryLite extensionRegistry) -throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.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,
[16/52] [abbrv] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update
http://git-wip-us.apache.org/repos/asf/hbase/blob/df93c13f/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/RpcController.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/RpcController.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/RpcController.java deleted file mode 100644 index 99e306b..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/RpcController.java +++ /dev/null @@ -1,118 +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. - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -/** - * An {@code RpcController} mediates a single method call. The primary - * purpose of the controller is to provide a way to manipulate settings - * specific to the RPC implementation and to find out about RPC-level errors. - * - * Starting with version 2.3.0, RPC implementations should not try to build - * on this, but should instead provide code generator plugins which generate - * code specific to the particular RPC implementation. This way the generated - * code can be more appropriate for the implementation in use and can avoid - * unnecessary layers of indirection. - * - * The methods provided by the {@code RpcController} interface are intended - * to be a "least common denominator" set of features which we expect all - * implementations to support. Specific implementations may provide more - * advanced features (e.g. deadline propagation). - * - * @author ken...@google.com Kenton Varda - */ -public interface RpcController { - // - - // These calls may be made from the client side only. Their results - // are undefined on the server side (may throw RuntimeExceptions). - - /** - * Resets the RpcController to its initial state so that it may be reused in - * a new call. This can be called from the client side only. It must not - * be called while an RPC is in progress. - */ - void reset(); - - /** - * After a call has finished, returns true if the call failed. The possible - * reasons for failure depend on the RPC implementation. {@code failed()} - * most only be called on the client side, and must not be called before a - * call has finished. - */ - boolean failed(); - - /** - * If {@code failed()} is {@code true}, returns a human-readable description - * of the error. - */ - String errorText(); - - /** - * Advises the RPC system that the caller desires that the RPC call be - * canceled. The RPC system may cancel it immediately, may wait awhile and - * then cancel it, or may not even cancel the call at all. If the call is - * canceled, the "done" callback will still be called and the RpcController - * will indicate that the call failed at that time. - */ - void startCancel(); - - // - - // These calls may be made from the server side only. Their results - // are undefined on the client side (may throw RuntimeExceptions). - - /** - * Causes {@code failed()} to return true on the client side. {@code reason} - * will be incorporated into the
[40/52] [abbrv] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update
http://git-wip-us.apache.org/repos/asf/hbase/blob/df93c13f/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Any.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Any.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Any.java deleted file mode 100644 index bf8e852..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Any.java +++ /dev/null @@ -1,899 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/any.proto - -package org.apache.hadoop.hbase.shaded.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) - * ... - * 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.org.apache.hadoop.hbase.shaded.com.google.protobuf.Duration", - * "value": "1.212s" - * } - * - * - * Protobuf type {@code google.protobuf.Any} - */ -public final class Any extends -org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3 implements -// @@protoc_insertion_point(message_implements:google.protobuf.Any) -AnyOrBuilder { - // Use Any.newBuilder() to construct. - private Any(org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) { -super(builder); - } - private Any() { -typeUrl_ = ""; -value_ = org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet - getUnknownFields() { -return org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private Any( - org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input, - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException { -this(); -int mutable_bitField0_ = 0; -try { - boolean done = false; - while (!done) { -int tag = input.readTag(); -switch (tag) { - case 0: -done = true; -break; - default: { -if (!input.skipField(tag)) { - done = true; -} -break; - } - case 10: { -java.lang.String s = input.readStringRequireUtf8(); - -typeUrl_ = s; -break; - } - case 18: { - -value_ = input.readBytes(); -break; - } -} - } -} catch (org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); -} catch (java.io.IOException e) { - throw new org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); -} finally { -
[23/52] [abbrv] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update
http://git-wip-us.apache.org/repos/asf/hbase/blob/df93c13f/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Int32Value.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Int32Value.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Int32Value.java deleted file mode 100644 index 476b086..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Int32Value.java +++ /dev/null @@ -1,451 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/wrappers.proto - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -/** - * - * Wrapper message for `int32`. - * The JSON representation for `Int32Value` is JSON number. - * - * - * Protobuf type {@code google.protobuf.Int32Value} - */ -public final class Int32Value extends -org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3 implements -// @@protoc_insertion_point(message_implements:google.protobuf.Int32Value) -Int32ValueOrBuilder { - // Use Int32Value.newBuilder() to construct. - private Int32Value(org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) { -super(builder); - } - private Int32Value() { -value_ = 0; - } - - @java.lang.Override - public final org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet - getUnknownFields() { -return org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private Int32Value( - org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input, - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException { -this(); -int mutable_bitField0_ = 0; -try { - boolean done = false; - while (!done) { -int tag = input.readTag(); -switch (tag) { - case 0: -done = true; -break; - default: { -if (!input.skipField(tag)) { - done = true; -} -break; - } - case 8: { - -value_ = input.readInt32(); -break; - } -} - } -} catch (org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); -} catch (java.io.IOException e) { - throw new org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); -} finally { - makeExtensionsImmutable(); -} - } - public static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.Descriptor - getDescriptor() { -return org.apache.hadoop.hbase.shaded.com.google.protobuf.WrappersProto.internal_static_google_protobuf_Int32Value_descriptor; - } - - protected org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { -return org.apache.hadoop.hbase.shaded.com.google.protobuf.WrappersProto.internal_static_google_protobuf_Int32Value_fieldAccessorTable -.ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.shaded.com.google.protobuf.Int32Value.class, org.apache.hadoop.hbase.shaded.com.google.protobuf.Int32Value.Builder.class); - } - - public static final int VALUE_FIELD_NUMBER = 1; - private int value_; - /** - * - * The int32 value. - * - * - * int32 value = 1; - */ - public int getValue() { -return value_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { -byte isInitialized = memoizedIsInitialized; -if (isInitialized == 1) return true; -if (isInitialized == 0) return false; - -memoizedIsInitialized = 1; -return true; - } - - public void writeTo(org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { -if (value_ != 0) { - output.writeInt32(1, value_); -} - } - - public int getSerializedSize() { -int size = memoizedSize; -if (size != -1) return size; - -size = 0; -if (value_ != 0) { - size += org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedOutputStream -.computeInt32Size(1, value_); -} -memoizedSize = size; -return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { -if (obj == this) { - return true; -} -if (!(obj instanceof org.apache.hadoop.hbase.shaded.com.google.protobuf.Int32Value)) { - return super.equals(obj); -} -
[50/52] [abbrv] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update
http://git-wip-us.apache.org/repos/asf/hbase/blob/df93c13f/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/coprocessor/example/generated/BulkDeleteProtos.java -- diff --git a/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/coprocessor/example/generated/BulkDeleteProtos.java b/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/coprocessor/example/generated/BulkDeleteProtos.java deleted file mode 100644 index 373e036..000 --- a/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/coprocessor/example/generated/BulkDeleteProtos.java +++ /dev/null @@ -1,1792 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: BulkDelete.proto - -package org.apache.hadoop.hbase.coprocessor.example.generated; - -public final class BulkDeleteProtos { - private BulkDeleteProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public interface BulkDeleteRequestOrBuilder - extends com.google.protobuf.MessageOrBuilder { - -// required .hbase.pb.Scan scan = 1; -/** - * required .hbase.pb.Scan scan = 1; - */ -boolean hasScan(); -/** - * required .hbase.pb.Scan scan = 1; - */ -org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Scan getScan(); -/** - * required .hbase.pb.Scan scan = 1; - */ -org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ScanOrBuilder getScanOrBuilder(); - -// required .hbase.pb.BulkDeleteRequest.DeleteType deleteType = 2; -/** - * required .hbase.pb.BulkDeleteRequest.DeleteType deleteType = 2; - */ -boolean hasDeleteType(); -/** - * required .hbase.pb.BulkDeleteRequest.DeleteType deleteType = 2; - */ - org.apache.hadoop.hbase.coprocessor.example.generated.BulkDeleteProtos.BulkDeleteRequest.DeleteType getDeleteType(); - -// optional uint64 timestamp = 3; -/** - * optional uint64 timestamp = 3; - */ -boolean hasTimestamp(); -/** - * optional uint64 timestamp = 3; - */ -long getTimestamp(); - -// required uint32 rowBatchSize = 4; -/** - * required uint32 rowBatchSize = 4; - */ -boolean hasRowBatchSize(); -/** - * required uint32 rowBatchSize = 4; - */ -int getRowBatchSize(); - } - /** - * Protobuf type {@code hbase.pb.BulkDeleteRequest} - */ - public static final class BulkDeleteRequest extends - com.google.protobuf.GeneratedMessage - implements BulkDeleteRequestOrBuilder { -// Use BulkDeleteRequest.newBuilder() to construct. -private BulkDeleteRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); -} -private BulkDeleteRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - -private static final BulkDeleteRequest defaultInstance; -public static BulkDeleteRequest getDefaultInstance() { - return defaultInstance; -} - -public BulkDeleteRequest getDefaultInstanceForType() { - return defaultInstance; -} - -private final com.google.protobuf.UnknownFieldSet unknownFields; -@java.lang.Override -public final com.google.protobuf.UnknownFieldSet -getUnknownFields() { - return this.unknownFields; -} -private BulkDeleteRequest( -com.google.protobuf.CodedInputStream input, -com.google.protobuf.ExtensionRegistryLite extensionRegistry) -throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.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; -} -case 10: { - org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Scan.Builder subBuilder = null; - if (((bitField0_ & 0x0001) == 0x0001)) { -subBuilder = scan_.toBuilder(); - } - scan_ = input.readMessage(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Scan.PARSER, extensionRegistry); - if (subBuilder != null) { -subBuilder.mergeFrom(scan_); -scan_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x0001; - break; -} -case 16: { - int rawValue = input.readEnum(); -
[46/52] [abbrv] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update
http://git-wip-us.apache.org/repos/asf/hbase/blob/df93c13f/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/coprocessor/protobuf/generated/DummyRegionServerEndpointProtos.java -- diff --git a/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/coprocessor/protobuf/generated/DummyRegionServerEndpointProtos.java b/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/coprocessor/protobuf/generated/DummyRegionServerEndpointProtos.java deleted file mode 100644 index a011b30..000 --- a/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/coprocessor/protobuf/generated/DummyRegionServerEndpointProtos.java +++ /dev/null @@ -1,1225 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: DummyRegionServerEndpoint.proto - -package org.apache.hadoop.hbase.coprocessor.protobuf.generated; - -public final class DummyRegionServerEndpointProtos { - private DummyRegionServerEndpointProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public interface DummyRequestOrBuilder - extends com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code hbase.test.pb.DummyRequest} - */ - public static final class DummyRequest extends - com.google.protobuf.GeneratedMessage - implements DummyRequestOrBuilder { -// Use DummyRequest.newBuilder() to construct. -private DummyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); -} -private DummyRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - -private static final DummyRequest defaultInstance; -public static DummyRequest getDefaultInstance() { - return defaultInstance; -} - -public DummyRequest getDefaultInstanceForType() { - return defaultInstance; -} - -private final com.google.protobuf.UnknownFieldSet unknownFields; -@java.lang.Override -public final com.google.protobuf.UnknownFieldSet -getUnknownFields() { - return this.unknownFields; -} -private DummyRequest( -com.google.protobuf.CodedInputStream input, -com.google.protobuf.ExtensionRegistryLite extensionRegistry) -throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - com.google.protobuf.UnknownFieldSet.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.getMessage()).setUnfinishedMessage(this); - } finally { -this.unknownFields = unknownFields.build(); -makeExtensionsImmutable(); - } -} -public static final com.google.protobuf.Descriptors.Descriptor -getDescriptor() { - return org.apache.hadoop.hbase.coprocessor.protobuf.generated.DummyRegionServerEndpointProtos.internal_static_hbase_test_pb_DummyRequest_descriptor; -} - -protected com.google.protobuf.GeneratedMessage.FieldAccessorTable -internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.coprocessor.protobuf.generated.DummyRegionServerEndpointProtos.internal_static_hbase_test_pb_DummyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.coprocessor.protobuf.generated.DummyRegionServerEndpointProtos.DummyRequest.class, org.apache.hadoop.hbase.coprocessor.protobuf.generated.DummyRegionServerEndpointProtos.DummyRequest.Builder.class); -} - -public static com.google.protobuf.Parser PARSER = -new com.google.protobuf.AbstractParser() { - public DummyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { -return new DummyRequest(input, extensionRegistry); - } -}; - -@java.lang.Override -public com.google.protobuf.Parser getParserForType() { - return PARSER; -} - -private void initFields() { -} -private byte memoizedIsInitialized = -1; -public final boolean isInitialized() { - byte isInitialized
[04/52] [abbrv] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update
http://git-wip-us.apache.org/repos/asf/hbase/blob/df93c13f/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/ipc/protobuf/generated/TestRpcServiceProtos.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/ipc/protobuf/generated/TestRpcServiceProtos.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/ipc/protobuf/generated/TestRpcServiceProtos.java deleted file mode 100644 index 200a7f4..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/ipc/protobuf/generated/TestRpcServiceProtos.java +++ /dev/null @@ -1,575 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: test_rpc_service.proto - -package org.apache.hadoop.hbase.shaded.ipc.protobuf.generated; - -public final class TestRpcServiceProtos { - private TestRpcServiceProtos() {} - public static void registerAllExtensions( - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistry registry) { -registerAllExtensions( - (org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * - ** - * A protobuf service for use in tests - * - * - * Protobuf service {@code TestProtobufRpcProto} - */ - public static abstract class TestProtobufRpcProto - implements org.apache.hadoop.hbase.shaded.com.google.protobuf.Service { -protected TestProtobufRpcProto() {} - -public interface Interface { - /** - * rpc ping(.EmptyRequestProto) returns (.EmptyResponseProto); - */ - public abstract void ping( - org.apache.hadoop.hbase.shaded.com.google.protobuf.RpcController controller, - org.apache.hadoop.hbase.shaded.ipc.protobuf.generated.TestProtos.EmptyRequestProto request, - org.apache.hadoop.hbase.shaded.com.google.protobuf.RpcCallback done); - - /** - * rpc echo(.EchoRequestProto) returns (.EchoResponseProto); - */ - public abstract void echo( - org.apache.hadoop.hbase.shaded.com.google.protobuf.RpcController controller, - org.apache.hadoop.hbase.shaded.ipc.protobuf.generated.TestProtos.EchoRequestProto request, - org.apache.hadoop.hbase.shaded.com.google.protobuf.RpcCallback done); - - /** - * rpc error(.EmptyRequestProto) returns (.EmptyResponseProto); - */ - public abstract void error( - org.apache.hadoop.hbase.shaded.com.google.protobuf.RpcController controller, - org.apache.hadoop.hbase.shaded.ipc.protobuf.generated.TestProtos.EmptyRequestProto request, - org.apache.hadoop.hbase.shaded.com.google.protobuf.RpcCallback done); - - /** - * rpc pause(.PauseRequestProto) returns (.EmptyResponseProto); - */ - public abstract void pause( - org.apache.hadoop.hbase.shaded.com.google.protobuf.RpcController controller, - org.apache.hadoop.hbase.shaded.ipc.protobuf.generated.TestProtos.PauseRequestProto request, - org.apache.hadoop.hbase.shaded.com.google.protobuf.RpcCallback done); - - /** - * rpc addr(.EmptyRequestProto) returns (.AddrResponseProto); - */ - public abstract void addr( - org.apache.hadoop.hbase.shaded.com.google.protobuf.RpcController controller, - org.apache.hadoop.hbase.shaded.ipc.protobuf.generated.TestProtos.EmptyRequestProto request, - org.apache.hadoop.hbase.shaded.com.google.protobuf.RpcCallback done); - -} - -public static org.apache.hadoop.hbase.shaded.com.google.protobuf.Service newReflectiveService( -final Interface impl) { - return new TestProtobufRpcProto() { -@java.lang.Override -public void ping( -org.apache.hadoop.hbase.shaded.com.google.protobuf.RpcController controller, - org.apache.hadoop.hbase.shaded.ipc.protobuf.generated.TestProtos.EmptyRequestProto request, - org.apache.hadoop.hbase.shaded.com.google.protobuf.RpcCallback done) { - impl.ping(controller, request, done); -} - -@java.lang.Override -public void echo( -org.apache.hadoop.hbase.shaded.com.google.protobuf.RpcController controller, - org.apache.hadoop.hbase.shaded.ipc.protobuf.generated.TestProtos.EchoRequestProto request, - org.apache.hadoop.hbase.shaded.com.google.protobuf.RpcCallback done) { - impl.echo(controller, request, done); -} - -@java.lang.Override -public void error( -org.apache.hadoop.hbase.shaded.com.google.protobuf.RpcController controller, - org.apache.hadoop.hbase.shaded.ipc.protobuf.generated.TestProtos.EmptyRequestProto request, -
[18/52] [abbrv] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update
http://git-wip-us.apache.org/repos/asf/hbase/blob/df93c13f/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/MutabilityOracle.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/MutabilityOracle.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/MutabilityOracle.java deleted file mode 100644 index b1eca4f..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/MutabilityOracle.java +++ /dev/null @@ -1,48 +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. - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -/** - * Verifies that an object is mutable, throwing if not. - */ -interface MutabilityOracle { - static final MutabilityOracle IMMUTABLE = new MutabilityOracle() { -@Override -public void ensureMutable() { - throw new UnsupportedOperationException(); -} - }; - - /** - * Throws an {@link UnsupportedOperationException} if not mutable. - */ - void ensureMutable(); -} http://git-wip-us.apache.org/repos/asf/hbase/blob/df93c13f/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/NioByteString.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/NioByteString.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/NioByteString.java deleted file mode 100644 index 1610f80..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/NioByteString.java +++ /dev/null @@ -1,291 +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
[52/52] [abbrv] hbase git commit: HBASE-18147 POC jenkinsfile for nightly checks.
HBASE-18147 POC jenkinsfile for nightly checks. Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/4d0397bb Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/4d0397bb Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/4d0397bb Branch: refs/heads/HBASE-18147 Commit: 4d0397bb48b643d4ab6a409f6aae65ccad1761b5 Parents: df93c13 Author: Sean BusbeyAuthored: Tue Jul 4 15:12:38 2017 -0400 Committer: Sean Busbey Committed: Thu Jul 6 01:30:34 2017 -0400 -- dev-support/Jenkinsfile | 130 +++ 1 file changed, 130 insertions(+) -- http://git-wip-us.apache.org/repos/asf/hbase/blob/4d0397bb/dev-support/Jenkinsfile -- diff --git a/dev-support/Jenkinsfile b/dev-support/Jenkinsfile new file mode 100644 index 000..cb196b3 --- /dev/null +++ b/dev-support/Jenkinsfile @@ -0,0 +1,130 @@ +pipeline { + agent { +node { + label 'Hadoop' +} + } + // bug in yetus that requires maven outside of the dockerfile + tools { +maven 'Maven (latest)' + } + triggers { +cron('@daily') + } + options { +timeout (time: 6, unit: 'HOURS') +timestamps() + } + environment { +TOOLS = "${env.WORKSPACE}/tools" +BASEDIR = "${env.WORKSPACE}/component" +YETUS_RELEASE = '0.4.0' + } + parameters { +booleanParam(name: 'USE_YETUS_PRERELEASE', defaultValue: false, description: '''Check to use the current HEAD of apache/yetus rather than our configured release. + +Should only be used manually when e.g. there is some non-work-aroundable issue in yetus we are checking a fix for.''') + } + stages { +stage ('yetus check') { + environment { +OUTPUTDIR = "${env.WORKSPACE}/artifacts" +PROJECT = 'hbase' +PROJET_PERSONALITY = 'https://raw.githubusercontent.com/apache/hbase/master/dev-support/hbase-personality.sh' +AUTHOR_IGNORE_LIST = 'src/main/asciidoc/_chapters/developer.adoc' +WHITESPACE_IGNORE_LIST = '.*/generated/.*' +TESTS_FILTER = 'cc,checkstyle,javac,javadoc,pylint,shellcheck,whitespace,perlcritic,ruby-lint,rubocop' +BRANCH_SPECIFIC_DOCKERFILE = "${env.BASEDIR}/dev-support/docker/Dockerfile" + } + steps { +sh '''#!/usr/bin/env bash +printenv +echo "Ensure we have a copy of Apache Yetus." +if [[ true != "${USE_YETUS_PRERELEASE}" ]]; then + YETUS_DIR="${WORKSPACE}/yetus-${YETUS_RELEASE}" + echo "Checking for Yetus ${YETUS_RELEASE} in '${YETUS_DIR}'" + if [ ! -d "${YETUS_DIR}" ]; then +echo "New download of Apache Yetus version ${YETUS_RELEASE}." +rm -rf "${WORKSPACE}/.gpg" +mkdir -p "${WORKSPACE}/.gpg" +chmod -R 700 "${WORKSPACE}/.gpg" + +echo "install yetus project KEYS" +curl -L --fail -o "${WORKSPACE}/KEYS_YETUS" https://dist.apache.org/repos/dist/release/yetus/KEYS +gpg --homedir "${WORKSPACE}/.gpg" --import "${WORKSPACE}/KEYS_YETUS" + +echo "download yetus release ${YETUS_RELEASE}" +curl -L --fail -O "https://dist.apache.org/repos/dist/release/yetus/${YETUS_RELEASE}/yetus-${YETUS_RELEASE}-bin.tar.gz; +curl -L --fail -O "https://dist.apache.org/repos/dist/release/yetus/${YETUS_RELEASE}/yetus-${YETUS_RELEASE}-bin.tar.gz.asc; +echo "verifying yetus release" +gpg --homedir "${WORKSPACE}/.gpg" --verify "yetus-${YETUS_RELEASE}-bin.tar.gz.asc" +mv "yetus-${YETUS_RELEASE}-bin.tar.gz" yetus.tar.gz + else +echo "Reusing cached download of Apache Yetus version ${YETUS_RELEASE}." + fi +else + YETUS_DIR="${WORKSPACE}/yetus-git" + rm -rf "${YETUS_DIR}" + echo "downloading from github" + curl -L --fail https://api.github.com/repos/apache/yetus/tarball/HEAD -o yetus.tar.gz +fi +if [ ! -d "${YETUS_DIR}" ]; then + echo "unpacking yetus into '${YETUS_DIR}'" + mkdir -p "${YETUS_DIR}" + gunzip -c yetus.tar.gz | tar xpf - -C "${YETUS_DIR}" --strip-components 1 +fi + ''' + dir ("${env.TOOLS}") { + sh """ +echo "Downloading Project personality." +curl -L -o personality.sh "${env.PROJET_PERSONALITY}" + """ + } + sh ''' +YETUS_ARGS=() +YETUS_ARGS=("--personality=${TOOLS}/personality.sh" "${YETUS_ARGS[@]}") +YETUS_ARGS=("--basedir=${BASEDIR}" "${YETUS_ARGS[@]}") +YETUS_ARGS=("--build-url-artifacts=${OUTPUTDIR}" "${YETUS_ARGS[@]}") +YETUS_ARGS=("--console-urls" "${YETUS_ARGS[@]}") +YETUS_ARGS=("--docker" "${YETUS_ARGS[@]}") +YETUS_ARGS=("--dockerfile=${BRANCH_SPECIFIC_DOCKERFILE}" "${YETUS_ARGS[@]}") +YETUS_ARGS=("--empty-patch" "${YETUS_ARGS[@]}") +YETUS_ARGS=("--html-report-file=${OUTPUTDIR}/console-report.html" "${YETUS_ARGS[@]}") +YETUS_ARGS=("--jenkins" "${YETUS_ARGS[@]}") +YETUS_ARGS=("--mvn-custom-repos" "${YETUS_ARGS[@]}")
[10/52] [abbrv] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update
http://git-wip-us.apache.org/repos/asf/hbase/blob/df93c13f/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/UnknownFieldSetLite.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/UnknownFieldSetLite.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/UnknownFieldSetLite.java deleted file mode 100644 index faa4c30..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/UnknownFieldSetLite.java +++ /dev/null @@ -1,432 +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. - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -import java.io.IOException; -import java.util.Arrays; - -/** - * {@code UnknownFieldSetLite} is used to keep track of fields which were seen - * when parsing a protocol message but whose field numbers or types are - * unrecognized. This most frequently occurs when new fields are added to a - * message type and then messages containing those fields are read by old - * software that was compiled before the new types were added. - * - * For use by generated code only. - * - * @author dw...@google.com (Daniel Weis) - */ -public final class UnknownFieldSetLite { - - // Arbitrarily chosen. - // TODO(dweis): Tune this number? - private static final int MIN_CAPACITY = 8; - - private static final UnknownFieldSetLite DEFAULT_INSTANCE = - new UnknownFieldSetLite(0, new int[0], new Object[0], false /* isMutable */); - - /** - * Get an empty {@code UnknownFieldSetLite}. - * - * For use by generated code only. - */ - public static UnknownFieldSetLite getDefaultInstance() { -return DEFAULT_INSTANCE; - } - - /** - * Returns a new mutable instance. - */ - static UnknownFieldSetLite newInstance() { -return new UnknownFieldSetLite(); - } - - /** - * Returns a mutable {@code UnknownFieldSetLite} that is the composite of {@code first} and - * {@code second}. - */ - static UnknownFieldSetLite mutableCopyOf(UnknownFieldSetLite first, UnknownFieldSetLite second) { -int count = first.count + second.count; -int[] tags = Arrays.copyOf(first.tags, count); -System.arraycopy(second.tags, 0, tags, first.count, second.count); -Object[] objects = Arrays.copyOf(first.objects, count); -System.arraycopy(second.objects, 0, objects, first.count, second.count); -return new UnknownFieldSetLite(count, tags, objects, true /* isMutable */); - } - - /** - * The number of elements in the set. - */ - private int count; - - /** - * The tag numbers for the elements in the set. - */ - private int[] tags; - - /** - * The boxed values of the elements in the set. - */ - private Object[] objects; - - /** - * The lazily computed serialized size of the set. - */ - private int memoizedSerializedSize = -1; - - /** - * Indicates that this object is mutable. - */ - private boolean isMutable; - - /** - * Constructs a mutable {@code UnknownFieldSetLite}. - */ - private UnknownFieldSetLite() { -this(0, new int[MIN_CAPACITY], new Object[MIN_CAPACITY], true /* isMutable */); - } - - /** - * Constructs the {@code UnknownFieldSetLite}. - */ -
[20/52] [abbrv] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update
http://git-wip-us.apache.org/repos/asf/hbase/blob/df93c13f/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/MessageLiteToString.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/MessageLiteToString.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/MessageLiteToString.java deleted file mode 100644 index eea6db5..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/MessageLiteToString.java +++ /dev/null @@ -1,239 +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. - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -import java.lang.reflect.Method; -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.Set; -import java.util.TreeSet; - -/** - * Helps generate {@link String} representations of {@link MessageLite} protos. - */ -// TODO(dweis): Fix map fields. -final class MessageLiteToString { - - private static final String LIST_SUFFIX = "List"; - private static final String BUILDER_LIST_SUFFIX = "OrBuilderList"; - private static final String BYTES_SUFFIX = "Bytes"; - - /** - * Returns a {@link String} representation of the {@link MessageLite} object. The first line of - * the {@code String} representation representation includes a comment string to uniquely identify - * the objcet instance. This acts as an indicator that this should not be relied on for - * comparisons. - * - * For use by generated code only. - */ - static String toString(MessageLite messageLite, String commentString) { -StringBuilder buffer = new StringBuilder(); -buffer.append("# ").append(commentString); -reflectivePrintWithIndent(messageLite, buffer, 0); -return buffer.toString(); - } - - /** - * Reflectively prints the {@link MessageLite} to the buffer at given {@code indent} level. - * - * @param buffer the buffer to write to - * @param indent the number of spaces to indent the proto by - */ - private static void reflectivePrintWithIndent( - MessageLite messageLite, StringBuilder buffer, int indent) { -// Build a map of method name to method. We're looking for methods like getFoo(), hasFoo(), and -// getFooList() which might be useful for building an object's string representation. -MapnameToNoArgMethod = new HashMap (); -Map nameToMethod = new HashMap (); -Set getters = new TreeSet(); -for (Method method : messageLite.getClass().getDeclaredMethods()) { - nameToMethod.put(method.getName(), method); - if (method.getParameterTypes().length == 0) { -nameToNoArgMethod.put(method.getName(), method); - -if (method.getName().startsWith("get")) { - getters.add(method.getName()); -} - } -} - -for (String getter : getters) { - String suffix = getter.replaceFirst("get", ""); - if (suffix.endsWith(LIST_SUFFIX) && !suffix.endsWith(BUILDER_LIST_SUFFIX)) { -String camelCase = suffix.substring(0, 1).toLowerCase() -+ suffix.substring(1, suffix.length() - LIST_SUFFIX.length());
hbase git commit: HBASE-18147 POC jenkinsfile for nightly checks. [Forced Update!]
Repository: hbase Updated Branches: refs/heads/HBASE-18147 c52055adb -> c8554980e (forced update) HBASE-18147 POC jenkinsfile for nightly checks. Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/c8554980 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/c8554980 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/c8554980 Branch: refs/heads/HBASE-18147 Commit: c8554980ee65c7e61b48d9d2d1f94f4276b68d20 Parents: 8b63eb6 Author: Sean BusbeyAuthored: Tue Jul 4 15:12:38 2017 -0400 Committer: Sean Busbey Committed: Thu Jul 6 00:47:41 2017 -0400 -- dev-support/Jenkinsfile | 129 +++ 1 file changed, 129 insertions(+) -- http://git-wip-us.apache.org/repos/asf/hbase/blob/c8554980/dev-support/Jenkinsfile -- diff --git a/dev-support/Jenkinsfile b/dev-support/Jenkinsfile new file mode 100644 index 000..a3bc4d2 --- /dev/null +++ b/dev-support/Jenkinsfile @@ -0,0 +1,129 @@ +pipeline { + agent { +node { + label 'Hadoop' +} + } + // bug in yetus that requires maven outside of the dockerfile + tools { +maven 'Maven (latest)' + } + triggers { +cron('@daily') + } + options { +timeout (time: 6, unit: 'HOURS') +timestamps() + } + environment { +TOOLS = "${env.WORKSPACE}/tools" +BASEDIR = "${env.WORKSPACE}/component" +YETUS_RELEASE = '0.4.0' + } + parameters { +booleanParam(name: 'USE_YETUS_PRERELEASE', defaultValue: false, description: '''Check to use the current HEAD of apache/yetus rather than our configured release. + +Should only be used manually when e.g. there is some non-work-aroundable issue in yetus we are checking a fix for.''') + } + stages { +stage ('yetus check') { + environment { +OUTPUTDIR = "${env.WORKSPACE}/artifacts" +PROJECT = 'hbase' +PROJET_PERSONALITY = 'https://raw.githubusercontent.com/apache/hbase/master/dev-support/hbase-personality.sh' +AUTHOR_IGNORE_LIST = 'src/main/asciidoc/_chapters/developer.adoc' +WHITESPACE_IGNORE_LIST = '.*/generated/.*' +TESTS_FILTER = 'cc,checkstyle,javac,javadoc,pylint,shellcheck,whitespace,perlcritic,ruby-lint,rubocop' +BRANCH_SPECIFIC_DOCKERFILE = "${env.BASEDIR}/dev-support/docker/Dockerfile" + } + steps { +sh '''#!/usr/bin/env bash +printenv +echo "Ensure we have a copy of Apache Yetus." +if [[ true != "${USE_YETUS_PRERELEASE}" ]]; then + YETUS_DIR="${WORKSPACE}/yetus-${YETUS_RELEASE}" + echo "Checking for Yetus ${YETUS_RELEASE} in '${YETUS_DIR}'" + if [ ! -d "${YETUS_DIR}" ]; then +echo "New download of Apache Yetus version ${YETUS_RELEASE}." +rm -rf "${WORKSPACE}/.gpg" +mkdir -p "${WORKSPACE}/.gpg" +chmod -R 700 "${WORKSPACE}/.gpg" + +echo "install yetus project KEYS" +curl -L --fail -o "${WORKSPACE}/KEYS_YETUS" https://dist.apache.org/repos/dist/release/yetus/KEYS +gpg --homedir "${WORKSPACE}/.gpg" --import "${WORKSPACE}/KEYS_YETUS" + +echo "download yetus release ${YETUS_RELEASE}" +curl -L --fail -O "https://dist.apache.org/repos/dist/release/yetus/${YETUS_RELEASE}/yetus-${YETUS_RELEASE}-bin.tar.gz; +curl -L --fail -O "https://dist.apache.org/repos/dist/release/yetus/${YETUS_RELEASE}/yetus-${YETUS_RELEASE}-bin.tar.gz.asc; +echo "verifying yetus release" +gpg --homedir "${WORKSPACE}/.gpg" --verify "yetus-${YETUS_RELEASE}-bin.tar.gz.asc" +mv "yetus-${YETUS_RELEASE}-bin.tar.gz" yetus.tar.gz + else +echo "Reusing cached download of Apache Yetus version ${YETUS_RELEASE}." + fi +else + YETUS_DIR="${WORKSPACE}/yetus-git" + rm -rf "${YETUS_DIR}" + echo "downloading from github" + curl -L --fail https://api.github.com/repos/apache/yetus/tarball/HEAD -o yetus.tar.gz +fi +if [ ! -d "${YETUS_DIR}" ]; then + echo "unpacking yetus into '${YETUS_DIR}'" + mkdir -p "${YETUS_DIR}" + gunzip -c yetus.tar.gz | tar xpf - -C "${YETUS_DIR}" --strip-components 1 +fi + ''' + dir ("${env.TOOLS}") { + sh """ +echo "Downloading Project personality." +curl -L -o personality.sh "${env.PROJET_PERSONALITY}" + """ + } + sh ''' +YETUS_ARGS=() +YETUS_ARGS=("--personality=${TOOLS}/personality.sh" "${YETUS_ARGS[@]}") +YETUS_ARGS=("--basedir=${BASEDIR}" "${YETUS_ARGS[@]}") +YETUS_ARGS=("--build-url-artifacts=${OUTPUTDIR}" "${YETUS_ARGS[@]}") +YETUS_ARGS=("--console-urls" "${YETUS_ARGS[@]}") +YETUS_ARGS=("--docker" "${YETUS_ARGS[@]}") +YETUS_ARGS=("--dockerfile=${BRANCH_SPECIFIC_DOCKERFILE}" "${YETUS_ARGS[@]}") +YETUS_ARGS=("--empty-patch" "${YETUS_ARGS[@]}") +YETUS_ARGS=("--html-report-file=${OUTPUTDIR}/console-report.html" "${YETUS_ARGS[@]}")
hbase git commit: HBASE-18147 POC jenkinsfile for nightly checks. [Forced Update!]
Repository: hbase Updated Branches: refs/heads/HBASE-18147 e044b935a -> c52055adb (forced update) HBASE-18147 POC jenkinsfile for nightly checks. Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/c52055ad Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/c52055ad Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/c52055ad Branch: refs/heads/HBASE-18147 Commit: c52055adb76ed8439e055239bacfab396d3c38c2 Parents: 8b63eb6 Author: Sean BusbeyAuthored: Tue Jul 4 15:12:38 2017 -0400 Committer: Sean Busbey Committed: Thu Jul 6 00:43:26 2017 -0400 -- dev-support/Jenkinsfile | 129 +++ 1 file changed, 129 insertions(+) -- http://git-wip-us.apache.org/repos/asf/hbase/blob/c52055ad/dev-support/Jenkinsfile -- diff --git a/dev-support/Jenkinsfile b/dev-support/Jenkinsfile new file mode 100644 index 000..6146606 --- /dev/null +++ b/dev-support/Jenkinsfile @@ -0,0 +1,129 @@ +pipeline { + agent { +node { + label 'Hadoop' +} + } + // bug in yetus that requires maven outside of the dockerfile + tools { +maven 'latest' + } + triggers { +cron('@daily') + } + options { +timeout (time: 6, unit: 'HOURS') +timestamps() + } + environment { +TOOLS = "${env.WORKSPACE}/tools" +BASEDIR = "${env.WORKSPACE}/component" +YETUS_RELEASE = '0.4.0' + } + parameters { +booleanParam(name: 'USE_YETUS_PRERELEASE', defaultValue: false, description: '''Check to use the current HEAD of apache/yetus rather than our configured release. + +Should only be used manually when e.g. there is some non-work-aroundable issue in yetus we are checking a fix for.''') + } + stages { +stage ('yetus check') { + environment { +OUTPUTDIR = "${env.WORKSPACE}/artifacts" +PROJECT = 'hbase' +PROJET_PERSONALITY = 'https://raw.githubusercontent.com/apache/hbase/master/dev-support/hbase-personality.sh' +AUTHOR_IGNORE_LIST = 'src/main/asciidoc/_chapters/developer.adoc' +WHITESPACE_IGNORE_LIST = '.*/generated/.*' +TESTS_FILTER = 'cc,checkstyle,javac,javadoc,pylint,shellcheck,whitespace,perlcritic,ruby-lint,rubocop' +BRANCH_SPECIFIC_DOCKERFILE = "${env.BASEDIR}/dev-support/docker/Dockerfile" + } + steps { +sh '''#!/usr/bin/env bash +printenv +echo "Ensure we have a copy of Apache Yetus." +if [[ true != "${USE_YETUS_PRERELEASE}" ]]; then + YETUS_DIR="${WORKSPACE}/yetus-${YETUS_RELEASE}" + echo "Checking for Yetus ${YETUS_RELEASE} in '${YETUS_DIR}'" + if [ ! -d "${YETUS_DIR}" ]; then +echo "New download of Apache Yetus version ${YETUS_RELEASE}." +rm -rf "${WORKSPACE}/.gpg" +mkdir -p "${WORKSPACE}/.gpg" +chmod -R 700 "${WORKSPACE}/.gpg" + +echo "install yetus project KEYS" +curl -L --fail -o "${WORKSPACE}/KEYS_YETUS" https://dist.apache.org/repos/dist/release/yetus/KEYS +gpg --homedir "${WORKSPACE}/.gpg" --import "${WORKSPACE}/KEYS_YETUS" + +echo "download yetus release ${YETUS_RELEASE}" +curl -L --fail -O "https://dist.apache.org/repos/dist/release/yetus/${YETUS_RELEASE}/yetus-${YETUS_RELEASE}-bin.tar.gz; +curl -L --fail -O "https://dist.apache.org/repos/dist/release/yetus/${YETUS_RELEASE}/yetus-${YETUS_RELEASE}-bin.tar.gz.asc; +echo "verifying yetus release" +gpg --homedir "${WORKSPACE}/.gpg" --verify "yetus-${YETUS_RELEASE}-bin.tar.gz.asc" +mv "yetus-${YETUS_RELEASE}-bin.tar.gz" yetus.tar.gz + else +echo "Reusing cached download of Apache Yetus version ${YETUS_RELEASE}." + fi +else + YETUS_DIR="${WORKSPACE}/yetus-git" + rm -rf "${YETUS_DIR}" + echo "downloading from github" + curl -L --fail https://api.github.com/repos/apache/yetus/tarball/HEAD -o yetus.tar.gz +fi +if [ ! -d "${YETUS_DIR}" ]; then + echo "unpacking yetus into '${YETUS_DIR}'" + mkdir -p "${YETUS_DIR}" + gunzip -c yetus.tar.gz | tar xpf - -C "${YETUS_DIR}" --strip-components 1 +fi + ''' + dir ("${env.TOOLS}") { + sh """ +echo "Downloading Project personality." +curl -L -o personality.sh "${env.PROJET_PERSONALITY}" + """ + } + sh ''' +YETUS_ARGS=() +YETUS_ARGS=("--personality=${TOOLS}/personality.sh" "${YETUS_ARGS[@]}") +YETUS_ARGS=("--basedir=${BASEDIR}" "${YETUS_ARGS[@]}") +YETUS_ARGS=("--build-url-artifacts=${OUTPUTDIR}" "${YETUS_ARGS[@]}") +YETUS_ARGS=("--console-urls" "${YETUS_ARGS[@]}") +YETUS_ARGS=("--docker" "${YETUS_ARGS[@]}") +YETUS_ARGS=("--dockerfile=${BRANCH_SPECIFIC_DOCKERFILE}" "${YETUS_ARGS[@]}") +YETUS_ARGS=("--empty-patch" "${YETUS_ARGS[@]}") +YETUS_ARGS=("--html-report-file=${OUTPUTDIR}/console-report.html" "${YETUS_ARGS[@]}") +YETUS_ARGS=("--jenkins"
hbase git commit: HBASE-18147 POC jenkinsfile for nightly checks. [Forced Update!]
Repository: hbase Updated Branches: refs/heads/HBASE-18147 779d8a5ae -> e044b935a (forced update) HBASE-18147 POC jenkinsfile for nightly checks. Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/e044b935 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/e044b935 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/e044b935 Branch: refs/heads/HBASE-18147 Commit: e044b935a5976df85f87cfcd48f3e97985844841 Parents: 8b63eb6 Author: Sean BusbeyAuthored: Tue Jul 4 15:12:38 2017 -0400 Committer: Sean Busbey Committed: Thu Jul 6 00:39:10 2017 -0400 -- dev-support/Jenkinsfile | 129 +++ 1 file changed, 129 insertions(+) -- http://git-wip-us.apache.org/repos/asf/hbase/blob/e044b935/dev-support/Jenkinsfile -- diff --git a/dev-support/Jenkinsfile b/dev-support/Jenkinsfile new file mode 100644 index 000..19bcb28 --- /dev/null +++ b/dev-support/Jenkinsfile @@ -0,0 +1,129 @@ +pipeline { + agent { +node { + label 'Hadoop' +} + } + // bug in yetus that requires maven outside of the dockerfile + tools { +maven 'apache-maven-3.3.9' + } + triggers { +cron('@daily') + } + options { +timeout (time: 6, unit: 'HOURS') +timestamps() + } + environment { +TOOLS = "${env.WORKSPACE}/tools" +BASEDIR = "${env.WORKSPACE}/component" +YETUS_RELEASE = '0.4.0' + } + parameters { +booleanParam(name: 'USE_YETUS_PRERELEASE', defaultValue: false, description: '''Check to use the current HEAD of apache/yetus rather than our configured release. + +Should only be used manually when e.g. there is some non-work-aroundable issue in yetus we are checking a fix for.''') + } + stages { +stage ('yetus check') { + environment { +OUTPUTDIR = "${env.WORKSPACE}/artifacts" +PROJECT = 'hbase' +PROJET_PERSONALITY = 'https://raw.githubusercontent.com/apache/hbase/master/dev-support/hbase-personality.sh' +AUTHOR_IGNORE_LIST = 'src/main/asciidoc/_chapters/developer.adoc' +WHITESPACE_IGNORE_LIST = '.*/generated/.*' +TESTS_FILTER = 'cc,checkstyle,javac,javadoc,pylint,shellcheck,whitespace,perlcritic,ruby-lint,rubocop' +BRANCH_SPECIFIC_DOCKERFILE = "${env.BASEDIR}/dev-support/docker/Dockerfile" + } + steps { +sh '''#!/usr/bin/env bash +printenv +echo "Ensure we have a copy of Apache Yetus." +if [[ true != "${USE_YETUS_PRERELEASE}" ]]; then + YETUS_DIR="${WORKSPACE}/yetus-${YETUS_RELEASE}" + echo "Checking for Yetus ${YETUS_RELEASE} in '${YETUS_DIR}'" + if [ ! -d "${YETUS_DIR}" ]; then +echo "New download of Apache Yetus version ${YETUS_RELEASE}." +rm -rf "${WORKSPACE}/.gpg" +mkdir -p "${WORKSPACE}/.gpg" +chmod -R 700 "${WORKSPACE}/.gpg" + +echo "install yetus project KEYS" +curl -L --fail -o "${WORKSPACE}/KEYS_YETUS" https://dist.apache.org/repos/dist/release/yetus/KEYS +gpg --homedir "${WORKSPACE}/.gpg" --import "${WORKSPACE}/KEYS_YETUS" + +echo "download yetus release ${YETUS_RELEASE}" +curl -L --fail -O "https://dist.apache.org/repos/dist/release/yetus/${YETUS_RELEASE}/yetus-${YETUS_RELEASE}-bin.tar.gz; +curl -L --fail -O "https://dist.apache.org/repos/dist/release/yetus/${YETUS_RELEASE}/yetus-${YETUS_RELEASE}-bin.tar.gz.asc; +echo "verifying yetus release" +gpg --homedir "${WORKSPACE}/.gpg" --verify "yetus-${YETUS_RELEASE}-bin.tar.gz.asc" +mv "yetus-${YETUS_RELEASE}-bin.tar.gz" yetus.tar.gz + else +echo "Reusing cached download of Apache Yetus version ${YETUS_RELEASE}." + fi +else + YETUS_DIR="${WORKSPACE}/yetus-git" + rm -rf "${YETUS_DIR}" + echo "downloading from github" + curl -L --fail https://api.github.com/repos/apache/yetus/tarball/HEAD -o yetus.tar.gz +fi +if [ ! -d "${YETUS_DIR}" ]; then + echo "unpacking yetus into '${YETUS_DIR}'" + mkdir -p "${YETUS_DIR}" + gunzip -c yetus.tar.gz | tar xpf - -C "${YETUS_DIR}" --strip-components 1 +fi + ''' + dir ("${env.TOOLS}") { + sh """ +echo "Downloading Project personality." +curl -L -o personality.sh "${env.PROJET_PERSONALITY}" + """ + } + sh ''' +YETUS_ARGS=() +YETUS_ARGS=("--personality=${TOOLS}/personality.sh" "${YETUS_ARGS[@]}") +YETUS_ARGS=("--basedir=${BASEDIR}" "${YETUS_ARGS[@]}") +YETUS_ARGS=("--build-url-artifacts=${OUTPUTDIR}" "${YETUS_ARGS[@]}") +YETUS_ARGS=("--console-urls" "${YETUS_ARGS[@]}") +YETUS_ARGS=("--docker" "${YETUS_ARGS[@]}") +YETUS_ARGS=("--dockerfile=${BRANCH_SPECIFIC_DOCKERFILE}" "${YETUS_ARGS[@]}") +YETUS_ARGS=("--empty-patch" "${YETUS_ARGS[@]}") +YETUS_ARGS=("--html-report-file=${OUTPUTDIR}/console-report.html" "${YETUS_ARGS[@]}")
[51/51] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update to refg
HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update to refguide) Removed all checked in generated protobuf files. They are generatedon the fly now as part of mainline build. Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/1049025e Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/1049025e Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/1049025e Branch: refs/heads/branch-2 Commit: 1049025e1da0bb4d1966ecca9d7d8edc564c0537 Parents: dcf4b42 Author: Michael StackAuthored: Wed Jul 5 12:06:29 2017 -0700 Committer: Michael Stack Committed: Wed Jul 5 21:38:23 2017 -0700 -- hbase-client/pom.xml| 4 + hbase-endpoint/README.txt |25 +- hbase-endpoint/pom.xml | 259 +- .../example/generated/BulkDeleteProtos.java | 1792 - .../generated/ColumnAggregationProtos.java | 1277 - .../ColumnAggregationWithErrorsProtos.java | 1290 - ...ColumnAggregationWithNullResponseProtos.java | 1283 - .../DummyRegionServerEndpointProtos.java| 1225 - .../IncrementCounterProcessorTestProtos.java| 4059 - .../protobuf/generated/AggregateProtos.java | 2375 - .../generated/SecureBulkLoadProtos.java | 2088 - hbase-examples/README.txt |27 +- hbase-examples/pom.xml | 312 +- .../example/generated/ExampleProtos.java| 1149 - hbase-procedure/pom.xml | 4 + hbase-protocol-shaded/README.txt|49 +- hbase-protocol-shaded/pom.xml | 283 +- .../com/google/protobuf/AbstractMessage.java| 646 - .../google/protobuf/AbstractMessageLite.java| 383 - .../com/google/protobuf/AbstractParser.java | 258 - .../google/protobuf/AbstractProtobufList.java | 180 - .../hbase/shaded/com/google/protobuf/Any.java | 899 - .../com/google/protobuf/AnyOrBuilder.java |70 - .../shaded/com/google/protobuf/AnyProto.java|59 - .../hbase/shaded/com/google/protobuf/Api.java | 2473 - .../com/google/protobuf/ApiOrBuilder.java | 258 - .../shaded/com/google/protobuf/ApiProto.java|98 - .../com/google/protobuf/BlockingRpcChannel.java |51 - .../com/google/protobuf/BlockingService.java|64 - .../shaded/com/google/protobuf/BoolValue.java | 452 - .../com/google/protobuf/BoolValueOrBuilder.java |18 - .../com/google/protobuf/BooleanArrayList.java | 272 - .../com/google/protobuf/ByteBufferWriter.java | 185 - .../shaded/com/google/protobuf/ByteInput.java |81 - .../google/protobuf/ByteInputByteString.java| 251 - .../shaded/com/google/protobuf/ByteOutput.java | 116 - .../shaded/com/google/protobuf/ByteString.java | 1565 - .../shaded/com/google/protobuf/BytesValue.java | 454 - .../google/protobuf/BytesValueOrBuilder.java|18 - .../com/google/protobuf/CodedInputStream.java | 3549 - .../com/google/protobuf/CodedOutputStream.java | 3001 - .../com/google/protobuf/DescriptorProtos.java | 39141 .../shaded/com/google/protobuf/Descriptors.java | 2547 - .../com/google/protobuf/DoubleArrayList.java| 273 - .../shaded/com/google/protobuf/DoubleValue.java | 454 - .../google/protobuf/DoubleValueOrBuilder.java |18 - .../shaded/com/google/protobuf/Duration.java| 618 - .../com/google/protobuf/DurationOrBuilder.java |33 - .../com/google/protobuf/DurationProto.java |59 - .../com/google/protobuf/DynamicMessage.java | 684 - .../hbase/shaded/com/google/protobuf/Empty.java | 386 - .../com/google/protobuf/EmptyOrBuilder.java | 9 - .../shaded/com/google/protobuf/EmptyProto.java |58 - .../hbase/shaded/com/google/protobuf/Enum.java | 1745 - .../com/google/protobuf/EnumOrBuilder.java | 157 - .../shaded/com/google/protobuf/EnumValue.java | 1044 - .../com/google/protobuf/EnumValueOrBuilder.java |80 - .../com/google/protobuf/ExperimentalApi.java|66 - .../shaded/com/google/protobuf/Extension.java |86 - .../com/google/protobuf/ExtensionLite.java |63 - .../com/google/protobuf/ExtensionRegistry.java | 396 - .../protobuf/ExtensionRegistryFactory.java |95 - .../google/protobuf/ExtensionRegistryLite.java | 227 - .../hbase/shaded/com/google/protobuf/Field.java | 2450 - .../shaded/com/google/protobuf/FieldMask.java | 903 - .../com/google/protobuf/FieldMaskOrBuilder.java |44 - .../com/google/protobuf/FieldMaskProto.java |59 - .../com/google/protobuf/FieldOrBuilder.java | 189 - .../shaded/com/google/protobuf/FieldSet.java| 909 -
[36/51] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update to refg
http://git-wip-us.apache.org/repos/asf/hbase/blob/1049025e/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/CodedInputStream.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/CodedInputStream.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/CodedInputStream.java deleted file mode 100644 index 23cc1a4..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/CodedInputStream.java +++ /dev/null @@ -1,3549 +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. - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -import static org.apache.hadoop.hbase.shaded.com.google.protobuf.Internal.EMPTY_BYTE_ARRAY; -import static org.apache.hadoop.hbase.shaded.com.google.protobuf.Internal.EMPTY_BYTE_BUFFER; -import static org.apache.hadoop.hbase.shaded.com.google.protobuf.Internal.UTF_8; -import static org.apache.hadoop.hbase.shaded.com.google.protobuf.Internal.checkNotNull; -import static org.apache.hadoop.hbase.shaded.com.google.protobuf.WireFormat.FIXED_32_SIZE; -import static org.apache.hadoop.hbase.shaded.com.google.protobuf.WireFormat.FIXED_64_SIZE; -import static org.apache.hadoop.hbase.shaded.com.google.protobuf.WireFormat.MAX_VARINT_SIZE; - -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.InputStream; -import java.nio.ByteBuffer; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - -/** - * Reads and decodes protocol message fields. - * - * This class contains two kinds of methods: methods that read specific protocol message - * constructs and field types (e.g. {@link #readTag()} and {@link #readInt32()}) and methods that - * read low-level values (e.g. {@link #readRawVarint32()} and {@link #readRawBytes}). If you are - * reading encoded protocol messages, you should use the former methods, but if you are reading some - * other format of your own design, use the latter. - * - * @author ken...@google.com Kenton Varda - */ -public abstract class CodedInputStream { - private static final int DEFAULT_BUFFER_SIZE = 4096; - private static final int DEFAULT_RECURSION_LIMIT = 100; - // Integer.MAX_VALUE == 0x7FF == INT_MAX from limits.h - private static final int DEFAULT_SIZE_LIMIT = Integer.MAX_VALUE; - - /** Visible for subclasses. See setRecursionLimit() */ - int recursionDepth; - - int recursionLimit = DEFAULT_RECURSION_LIMIT; - - /** Visible for subclasses. See setSizeLimit() */ - int sizeLimit = DEFAULT_SIZE_LIMIT; - - /** Create a new CodedInputStream wrapping the given InputStream. */ - public static CodedInputStream newInstance(final InputStream input) { -return newInstance(input, DEFAULT_BUFFER_SIZE); - } - - /** Create a new CodedInputStream wrapping the given InputStream. */ - static CodedInputStream newInstance(final InputStream input, int bufferSize) { -if (input == null) { - // TODO(nathanmittler): Ideally we should throw here. This is done for backward compatibility. - return newInstance(EMPTY_BYTE_ARRAY); -} -return new StreamDecoder(input, bufferSize); - } - - /** Create a new CodedInputStream wrapping the
[08/51] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update to refg
http://git-wip-us.apache.org/repos/asf/hbase/blob/1049025e/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Value.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Value.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Value.java deleted file mode 100644 index 593043b..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Value.java +++ /dev/null @@ -1,1410 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/struct.proto - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -/** - * - * `Value` represents a dynamically typed value which can be either - * null, a number, a string, a boolean, a recursive struct value, or a - * list of values. A producer of value is expected to set one of that - * variants, absence of any variant indicates an error. - * The JSON representation for `Value` is JSON value. - * - * - * Protobuf type {@code google.protobuf.Value} - */ -public final class Value extends -org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3 implements -// @@protoc_insertion_point(message_implements:google.protobuf.Value) -ValueOrBuilder { - // Use Value.newBuilder() to construct. - private Value(org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) { -super(builder); - } - private Value() { - } - - @java.lang.Override - public final org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet - getUnknownFields() { -return org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private Value( - org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input, - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException { -this(); -int mutable_bitField0_ = 0; -try { - boolean done = false; - while (!done) { -int tag = input.readTag(); -switch (tag) { - case 0: -done = true; -break; - default: { -if (!input.skipField(tag)) { - done = true; -} -break; - } - case 8: { -int rawValue = input.readEnum(); -kindCase_ = 1; -kind_ = rawValue; -break; - } - case 17: { -kindCase_ = 2; -kind_ = input.readDouble(); -break; - } - case 26: { -java.lang.String s = input.readStringRequireUtf8(); -kindCase_ = 3; -kind_ = s; -break; - } - case 32: { -kindCase_ = 4; -kind_ = input.readBool(); -break; - } - case 42: { -org.apache.hadoop.hbase.shaded.com.google.protobuf.Struct.Builder subBuilder = null; -if (kindCase_ == 5) { - subBuilder = ((org.apache.hadoop.hbase.shaded.com.google.protobuf.Struct) kind_).toBuilder(); -} -kind_ = - input.readMessage(org.apache.hadoop.hbase.shaded.com.google.protobuf.Struct.parser(), extensionRegistry); -if (subBuilder != null) { - subBuilder.mergeFrom((org.apache.hadoop.hbase.shaded.com.google.protobuf.Struct) kind_); - kind_ = subBuilder.buildPartial(); -} -kindCase_ = 5; -break; - } - case 50: { - org.apache.hadoop.hbase.shaded.com.google.protobuf.ListValue.Builder subBuilder = null; -if (kindCase_ == 6) { - subBuilder = ((org.apache.hadoop.hbase.shaded.com.google.protobuf.ListValue) kind_).toBuilder(); -} -kind_ = - input.readMessage(org.apache.hadoop.hbase.shaded.com.google.protobuf.ListValue.parser(), extensionRegistry); -if (subBuilder != null) { - subBuilder.mergeFrom((org.apache.hadoop.hbase.shaded.com.google.protobuf.ListValue) kind_); - kind_ = subBuilder.buildPartial(); -} -kindCase_ = 6; -break; - } -} - } -} catch (org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); -} catch (java.io.IOException e) { - throw new org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); -} finally { - makeExtensionsImmutable(); -} - } - public static final
[47/51] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update to refg
http://git-wip-us.apache.org/repos/asf/hbase/blob/1049025e/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/coprocessor/protobuf/generated/ColumnAggregationWithNullResponseProtos.java -- diff --git a/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/coprocessor/protobuf/generated/ColumnAggregationWithNullResponseProtos.java b/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/coprocessor/protobuf/generated/ColumnAggregationWithNullResponseProtos.java deleted file mode 100644 index b25f7aa..000 --- a/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/coprocessor/protobuf/generated/ColumnAggregationWithNullResponseProtos.java +++ /dev/null @@ -1,1283 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ColumnAggregationNullResponseProtocol.proto - -package org.apache.hadoop.hbase.coprocessor.protobuf.generated; - -public final class ColumnAggregationWithNullResponseProtos { - private ColumnAggregationWithNullResponseProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public interface ColumnAggregationNullResponseSumRequestOrBuilder - extends com.google.protobuf.MessageOrBuilder { - -// required bytes family = 1; -/** - * required bytes family = 1; - */ -boolean hasFamily(); -/** - * required bytes family = 1; - */ -com.google.protobuf.ByteString getFamily(); - -// optional bytes qualifier = 2; -/** - * optional bytes qualifier = 2; - */ -boolean hasQualifier(); -/** - * optional bytes qualifier = 2; - */ -com.google.protobuf.ByteString getQualifier(); - } - /** - * Protobuf type {@code ColumnAggregationNullResponseSumRequest} - * - * - * use unique names for messages in ColumnAggregationXXX.protos due to a bug in - * protoc or hadoop's protoc compiler. - * - */ - public static final class ColumnAggregationNullResponseSumRequest extends - com.google.protobuf.GeneratedMessage - implements ColumnAggregationNullResponseSumRequestOrBuilder { -// Use ColumnAggregationNullResponseSumRequest.newBuilder() to construct. -private ColumnAggregationNullResponseSumRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); -} -private ColumnAggregationNullResponseSumRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - -private static final ColumnAggregationNullResponseSumRequest defaultInstance; -public static ColumnAggregationNullResponseSumRequest getDefaultInstance() { - return defaultInstance; -} - -public ColumnAggregationNullResponseSumRequest getDefaultInstanceForType() { - return defaultInstance; -} - -private final com.google.protobuf.UnknownFieldSet unknownFields; -@java.lang.Override -public final com.google.protobuf.UnknownFieldSet -getUnknownFields() { - return this.unknownFields; -} -private ColumnAggregationNullResponseSumRequest( -com.google.protobuf.CodedInputStream input, -com.google.protobuf.ExtensionRegistryLite extensionRegistry) -throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.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; -} -case 10: { - bitField0_ |= 0x0001; - family_ = input.readBytes(); - break; -} -case 18: { - bitField0_ |= 0x0002; - qualifier_ = input.readBytes(); - break; -} - } -} - } catch (com.google.protobuf.InvalidProtocolBufferException e) { -throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { -throw new com.google.protobuf.InvalidProtocolBufferException( -e.getMessage()).setUnfinishedMessage(this); - } finally { -this.unknownFields = unknownFields.build(); -makeExtensionsImmutable(); - } -} -public static final com.google.protobuf.Descriptors.Descriptor -getDescriptor() { - return
[16/51] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update to refg
http://git-wip-us.apache.org/repos/asf/hbase/blob/1049025e/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/RpcController.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/RpcController.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/RpcController.java deleted file mode 100644 index 99e306b..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/RpcController.java +++ /dev/null @@ -1,118 +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. - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -/** - * An {@code RpcController} mediates a single method call. The primary - * purpose of the controller is to provide a way to manipulate settings - * specific to the RPC implementation and to find out about RPC-level errors. - * - * Starting with version 2.3.0, RPC implementations should not try to build - * on this, but should instead provide code generator plugins which generate - * code specific to the particular RPC implementation. This way the generated - * code can be more appropriate for the implementation in use and can avoid - * unnecessary layers of indirection. - * - * The methods provided by the {@code RpcController} interface are intended - * to be a "least common denominator" set of features which we expect all - * implementations to support. Specific implementations may provide more - * advanced features (e.g. deadline propagation). - * - * @author ken...@google.com Kenton Varda - */ -public interface RpcController { - // - - // These calls may be made from the client side only. Their results - // are undefined on the server side (may throw RuntimeExceptions). - - /** - * Resets the RpcController to its initial state so that it may be reused in - * a new call. This can be called from the client side only. It must not - * be called while an RPC is in progress. - */ - void reset(); - - /** - * After a call has finished, returns true if the call failed. The possible - * reasons for failure depend on the RPC implementation. {@code failed()} - * most only be called on the client side, and must not be called before a - * call has finished. - */ - boolean failed(); - - /** - * If {@code failed()} is {@code true}, returns a human-readable description - * of the error. - */ - String errorText(); - - /** - * Advises the RPC system that the caller desires that the RPC call be - * canceled. The RPC system may cancel it immediately, may wait awhile and - * then cancel it, or may not even cancel the call at all. If the call is - * canceled, the "done" callback will still be called and the RpcController - * will indicate that the call failed at that time. - */ - void startCancel(); - - // - - // These calls may be made from the server side only. Their results - // are undefined on the client side (may throw RuntimeExceptions). - - /** - * Causes {@code failed()} to return true on the client side. {@code reason} - * will be incorporated into the
[13/51] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update to refg
http://git-wip-us.apache.org/repos/asf/hbase/blob/1049025e/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/TextFormatParseInfoTree.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/TextFormatParseInfoTree.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/TextFormatParseInfoTree.java deleted file mode 100644 index cd08eab..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/TextFormatParseInfoTree.java +++ /dev/null @@ -1,226 +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. - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.FieldDescriptor; - -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; - - -/** - * Data structure which is populated with the locations of each field value parsed from the text. - * - * The locations of primary fields values are retrieved by {@code getLocation} or - * {@code getLocations}. The locations of sub message values are within nested - * {@code TextFormatParseInfoTree}s and are retrieve by {@code getNestedTree} or - * {@code getNestedTrees}. - * - * The {@code TextFormatParseInfoTree} is created by a Builder. - */ -public class TextFormatParseInfoTree { - - // Defines a mapping between each field's descriptor to the list of locations where - // its value(s) were was encountered. - private MaplocationsFromField; - - // Defines a mapping between a field's descriptor to a list of TextFormatParseInfoTrees for - // sub message location information. - Map subtreesFromField; - - /** - * Construct a {@code TextFormatParseInfoTree}. - * - * @param locationsFromField a map of fields to location in the source code - * @param subtreeBuildersFromField a map of fields to parse tree location information builders - */ - private TextFormatParseInfoTree( - Map locationsFromField, - Map subtreeBuildersFromField) { - -// The maps are unmodifiable. The values in the maps are unmodifiable. -Map locs = -new HashMap (); -for (Entry kv : locationsFromField.entrySet()) { - locs.put(kv.getKey(), Collections.unmodifiableList(kv.getValue())); -} -this.locationsFromField = Collections.unmodifiableMap(locs); - -Map subs = -new HashMap (); -for (Entry kv : subtreeBuildersFromField.entrySet()) { - List submessagesOfField = new ArrayList(); - for (Builder subBuilder : kv.getValue()) { -submessagesOfField.add(subBuilder.build()); - } - subs.put(kv.getKey(), Collections.unmodifiableList(submessagesOfField)); -} -this.subtreesFromField = Collections.unmodifiableMap(subs); - } - - /** - * Retrieve all the locations of a field. - * - * @param fieldDescriptor the the @{link FieldDescriptor} of the
[43/51] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update to refg
http://git-wip-us.apache.org/repos/asf/hbase/blob/1049025e/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/protobuf/generated/SecureBulkLoadProtos.java -- diff --git a/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/protobuf/generated/SecureBulkLoadProtos.java b/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/protobuf/generated/SecureBulkLoadProtos.java deleted file mode 100644 index 86c88c6..000 --- a/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/protobuf/generated/SecureBulkLoadProtos.java +++ /dev/null @@ -1,2088 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SecureBulkLoad.proto - -package org.apache.hadoop.hbase.protobuf.generated; - -public final class SecureBulkLoadProtos { - private SecureBulkLoadProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public interface SecureBulkLoadHFilesRequestOrBuilder - extends com.google.protobuf.MessageOrBuilder { - -// repeated .hbase.pb.BulkLoadHFileRequest.FamilyPath family_path = 1; -/** - * repeated .hbase.pb.BulkLoadHFileRequest.FamilyPath family_path = 1; - */ - java.util.List -getFamilyPathList(); -/** - * repeated .hbase.pb.BulkLoadHFileRequest.FamilyPath family_path = 1; - */ - org.apache.hadoop.hbase.protobuf.generated.ClientProtos.BulkLoadHFileRequest.FamilyPath getFamilyPath(int index); -/** - * repeated .hbase.pb.BulkLoadHFileRequest.FamilyPath family_path = 1; - */ -int getFamilyPathCount(); -/** - * repeated .hbase.pb.BulkLoadHFileRequest.FamilyPath family_path = 1; - */ -java.util.List -getFamilyPathOrBuilderList(); -/** - * repeated .hbase.pb.BulkLoadHFileRequest.FamilyPath family_path = 1; - */ - org.apache.hadoop.hbase.protobuf.generated.ClientProtos.BulkLoadHFileRequest.FamilyPathOrBuilder getFamilyPathOrBuilder( -int index); - -// optional bool assign_seq_num = 2; -/** - * optional bool assign_seq_num = 2; - */ -boolean hasAssignSeqNum(); -/** - * optional bool assign_seq_num = 2; - */ -boolean getAssignSeqNum(); - -// required .hbase.pb.DelegationToken fs_token = 3; -/** - * required .hbase.pb.DelegationToken fs_token = 3; - */ -boolean hasFsToken(); -/** - * required .hbase.pb.DelegationToken fs_token = 3; - */ -org.apache.hadoop.hbase.protobuf.generated.ClientProtos.DelegationToken getFsToken(); -/** - * required .hbase.pb.DelegationToken fs_token = 3; - */ - org.apache.hadoop.hbase.protobuf.generated.ClientProtos.DelegationTokenOrBuilder getFsTokenOrBuilder(); - -// required string bulk_token = 4; -/** - * required string bulk_token = 4; - */ -boolean hasBulkToken(); -/** - * required string bulk_token = 4; - */ -java.lang.String getBulkToken(); -/** - * required string bulk_token = 4; - */ -com.google.protobuf.ByteString -getBulkTokenBytes(); - } - /** - * Protobuf type {@code hbase.pb.SecureBulkLoadHFilesRequest} - */ - public static final class SecureBulkLoadHFilesRequest extends - com.google.protobuf.GeneratedMessage - implements SecureBulkLoadHFilesRequestOrBuilder { -// Use SecureBulkLoadHFilesRequest.newBuilder() to construct. -private SecureBulkLoadHFilesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); -} -private SecureBulkLoadHFilesRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - -private static final SecureBulkLoadHFilesRequest defaultInstance; -public static SecureBulkLoadHFilesRequest getDefaultInstance() { - return defaultInstance; -} - -public SecureBulkLoadHFilesRequest getDefaultInstanceForType() { - return defaultInstance; -} - -private final com.google.protobuf.UnknownFieldSet unknownFields; -@java.lang.Override -public final com.google.protobuf.UnknownFieldSet -getUnknownFields() { - return this.unknownFields; -} -private SecureBulkLoadHFilesRequest( -com.google.protobuf.CodedInputStream input, -com.google.protobuf.ExtensionRegistryLite extensionRegistry) -throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.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,
[20/51] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update to refg
http://git-wip-us.apache.org/repos/asf/hbase/blob/1049025e/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/MessageLiteToString.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/MessageLiteToString.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/MessageLiteToString.java deleted file mode 100644 index eea6db5..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/MessageLiteToString.java +++ /dev/null @@ -1,239 +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. - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -import java.lang.reflect.Method; -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.Set; -import java.util.TreeSet; - -/** - * Helps generate {@link String} representations of {@link MessageLite} protos. - */ -// TODO(dweis): Fix map fields. -final class MessageLiteToString { - - private static final String LIST_SUFFIX = "List"; - private static final String BUILDER_LIST_SUFFIX = "OrBuilderList"; - private static final String BYTES_SUFFIX = "Bytes"; - - /** - * Returns a {@link String} representation of the {@link MessageLite} object. The first line of - * the {@code String} representation representation includes a comment string to uniquely identify - * the objcet instance. This acts as an indicator that this should not be relied on for - * comparisons. - * - * For use by generated code only. - */ - static String toString(MessageLite messageLite, String commentString) { -StringBuilder buffer = new StringBuilder(); -buffer.append("# ").append(commentString); -reflectivePrintWithIndent(messageLite, buffer, 0); -return buffer.toString(); - } - - /** - * Reflectively prints the {@link MessageLite} to the buffer at given {@code indent} level. - * - * @param buffer the buffer to write to - * @param indent the number of spaces to indent the proto by - */ - private static void reflectivePrintWithIndent( - MessageLite messageLite, StringBuilder buffer, int indent) { -// Build a map of method name to method. We're looking for methods like getFoo(), hasFoo(), and -// getFooList() which might be useful for building an object's string representation. -MapnameToNoArgMethod = new HashMap (); -Map nameToMethod = new HashMap (); -Set getters = new TreeSet(); -for (Method method : messageLite.getClass().getDeclaredMethods()) { - nameToMethod.put(method.getName(), method); - if (method.getParameterTypes().length == 0) { -nameToNoArgMethod.put(method.getName(), method); - -if (method.getName().startsWith("get")) { - getters.add(method.getName()); -} - } -} - -for (String getter : getters) { - String suffix = getter.replaceFirst("get", ""); - if (suffix.endsWith(LIST_SUFFIX) && !suffix.endsWith(BUILDER_LIST_SUFFIX)) { -String camelCase = suffix.substring(0, 1).toLowerCase() -+ suffix.substring(1, suffix.length() - LIST_SUFFIX.length());
[21/51] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update to refg
http://git-wip-us.apache.org/repos/asf/hbase/blob/1049025e/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/MapEntry.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/MapEntry.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/MapEntry.java deleted file mode 100644 index d586cc7..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/MapEntry.java +++ /dev/null @@ -1,449 +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. - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.Descriptor; -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.EnumValueDescriptor; -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.FieldDescriptor; - -import java.io.IOException; -import java.util.Collections; -import java.util.Map; -import java.util.TreeMap; - -/** - * Implements MapEntry messages. - * - * In reflection API, map fields will be treated as repeated message fields and - * each map entry is accessed as a message. This MapEntry class is used to - * represent these map entry messages in reflection API. - * - * Protobuf internal. Users shouldn't use this class. - */ -public final class MapEntryextends AbstractMessage { - - private static final class Metadata extends MapEntryLite.Metadata { - -public final Descriptor descriptor; -public final Parser > parser; - -public Metadata( -Descriptor descriptor, -MapEntry defaultInstance, -WireFormat.FieldType keyType, -WireFormat.FieldType valueType) { - super(keyType, defaultInstance.key, valueType, defaultInstance.value); - this.descriptor = descriptor; - this.parser = new AbstractParser >() { - -@Override -public MapEntry parsePartialFrom( -CodedInputStream input, ExtensionRegistryLite extensionRegistry) -throws InvalidProtocolBufferException { - return new MapEntry (Metadata.this, input, extensionRegistry); -} - }; -} - } - - private final K key; - private final V value; - private final Metadata metadata; - - /** Create a default MapEntry instance. */ - private MapEntry( - Descriptor descriptor, - WireFormat.FieldType keyType, K defaultKey, - WireFormat.FieldType valueType, V defaultValue) { -this.key = defaultKey; -this.value = defaultValue; -this.metadata = new Metadata (descriptor, this, keyType, valueType); - } - - /** Create a MapEntry with the provided key and value. */ - private MapEntry(Metadata metadata, K key, V value) { -this.key = key; -this.value = value; -this.metadata = metadata; - } - - /** Parsing constructor. */ - private MapEntry( - Metadata metadata, - CodedInputStream input, - ExtensionRegistryLite extensionRegistry) - throws InvalidProtocolBufferException { -try { - this.metadata = metadata; - Map.Entry entry = MapEntryLite.parseEntry(input, metadata, extensionRegistry); -
[22/51] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update to refg
http://git-wip-us.apache.org/repos/asf/hbase/blob/1049025e/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/LazyFieldLite.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/LazyFieldLite.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/LazyFieldLite.java deleted file mode 100644 index 91b70e0..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/LazyFieldLite.java +++ /dev/null @@ -1,437 +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. - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -import java.io.IOException; - -/** - * LazyFieldLite encapsulates the logic of lazily parsing message fields. It stores - * the message in a ByteString initially and then parses it on-demand. - * - * LazyFieldLite is thread-compatible: concurrent reads are safe once the proto that this - * LazyFieldLite is a part of is no longer being mutated by its Builder. However, explicit - * synchronization is needed under read/write situations. - * - * When a LazyFieldLite is used in the context of a MessageLite object, its behavior is considered - * to be immutable and none of the setter methods in its API are expected to be invoked. All of the - * getters are expected to be thread-safe. When used in the context of a MessageLite.Builder, - * setters can be invoked, but there is no guarantee of thread safety. - * - * TODO(yatin,dweis): Consider splitting this class's functionality and put the mutable methods - * into a separate builder class to allow us to give stronger compile-time guarantees. - * - * This class is internal implementation detail of the protobuf library, so you don't need to use it - * directly. - * - * @author xia...@google.com (Xiang Li) - */ -public class LazyFieldLite { - private static final ExtensionRegistryLite EMPTY_REGISTRY = - ExtensionRegistryLite.getEmptyRegistry(); - - /** - * The value associated with the LazyFieldLite object is stored in one or more of the following - * three fields (delayedBytes, value, memoizedBytes). They should together be interpreted as - * follows. - * 1) delayedBytes can be non-null, while value and memoizedBytes is null. The object will be in - *this state while the value for the object has not yet been parsed. - * 2) Both delayedBytes and value are non-null. The object transitions to this state as soon as - *some caller needs to access the value (by invoking getValue()). - * 3) memoizedBytes is merely an optimization for calls to LazyFieldLite.toByteString() to avoid - *recomputing the ByteString representation on each call. Instead, when the value is parsed - *from delayedBytes, we will also assign the contents of delayedBytes to memoizedBytes (since - *that is the ByteString representation of value). - * 4) Finally, if the LazyFieldLite was created directly with a parsed MessageLite value, then - *delayedBytes will be null, and memoizedBytes will be initialized only upon the first call to - *LazyFieldLite.toByteString(). - * - * Given the above conditions, any caller that needs a serialized representation
[10/51] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update to refg
http://git-wip-us.apache.org/repos/asf/hbase/blob/1049025e/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/UnknownFieldSetLite.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/UnknownFieldSetLite.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/UnknownFieldSetLite.java deleted file mode 100644 index faa4c30..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/UnknownFieldSetLite.java +++ /dev/null @@ -1,432 +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. - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -import java.io.IOException; -import java.util.Arrays; - -/** - * {@code UnknownFieldSetLite} is used to keep track of fields which were seen - * when parsing a protocol message but whose field numbers or types are - * unrecognized. This most frequently occurs when new fields are added to a - * message type and then messages containing those fields are read by old - * software that was compiled before the new types were added. - * - * For use by generated code only. - * - * @author dw...@google.com (Daniel Weis) - */ -public final class UnknownFieldSetLite { - - // Arbitrarily chosen. - // TODO(dweis): Tune this number? - private static final int MIN_CAPACITY = 8; - - private static final UnknownFieldSetLite DEFAULT_INSTANCE = - new UnknownFieldSetLite(0, new int[0], new Object[0], false /* isMutable */); - - /** - * Get an empty {@code UnknownFieldSetLite}. - * - * For use by generated code only. - */ - public static UnknownFieldSetLite getDefaultInstance() { -return DEFAULT_INSTANCE; - } - - /** - * Returns a new mutable instance. - */ - static UnknownFieldSetLite newInstance() { -return new UnknownFieldSetLite(); - } - - /** - * Returns a mutable {@code UnknownFieldSetLite} that is the composite of {@code first} and - * {@code second}. - */ - static UnknownFieldSetLite mutableCopyOf(UnknownFieldSetLite first, UnknownFieldSetLite second) { -int count = first.count + second.count; -int[] tags = Arrays.copyOf(first.tags, count); -System.arraycopy(second.tags, 0, tags, first.count, second.count); -Object[] objects = Arrays.copyOf(first.objects, count); -System.arraycopy(second.objects, 0, objects, first.count, second.count); -return new UnknownFieldSetLite(count, tags, objects, true /* isMutable */); - } - - /** - * The number of elements in the set. - */ - private int count; - - /** - * The tag numbers for the elements in the set. - */ - private int[] tags; - - /** - * The boxed values of the elements in the set. - */ - private Object[] objects; - - /** - * The lazily computed serialized size of the set. - */ - private int memoizedSerializedSize = -1; - - /** - * Indicates that this object is mutable. - */ - private boolean isMutable; - - /** - * Constructs a mutable {@code UnknownFieldSetLite}. - */ - private UnknownFieldSetLite() { -this(0, new int[MIN_CAPACITY], new Object[MIN_CAPACITY], true /* isMutable */); - } - - /** - * Constructs the {@code UnknownFieldSetLite}. - */ -
[50/51] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update to refg
http://git-wip-us.apache.org/repos/asf/hbase/blob/1049025e/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/coprocessor/example/generated/BulkDeleteProtos.java -- diff --git a/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/coprocessor/example/generated/BulkDeleteProtos.java b/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/coprocessor/example/generated/BulkDeleteProtos.java deleted file mode 100644 index 373e036..000 --- a/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/coprocessor/example/generated/BulkDeleteProtos.java +++ /dev/null @@ -1,1792 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: BulkDelete.proto - -package org.apache.hadoop.hbase.coprocessor.example.generated; - -public final class BulkDeleteProtos { - private BulkDeleteProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public interface BulkDeleteRequestOrBuilder - extends com.google.protobuf.MessageOrBuilder { - -// required .hbase.pb.Scan scan = 1; -/** - * required .hbase.pb.Scan scan = 1; - */ -boolean hasScan(); -/** - * required .hbase.pb.Scan scan = 1; - */ -org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Scan getScan(); -/** - * required .hbase.pb.Scan scan = 1; - */ -org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ScanOrBuilder getScanOrBuilder(); - -// required .hbase.pb.BulkDeleteRequest.DeleteType deleteType = 2; -/** - * required .hbase.pb.BulkDeleteRequest.DeleteType deleteType = 2; - */ -boolean hasDeleteType(); -/** - * required .hbase.pb.BulkDeleteRequest.DeleteType deleteType = 2; - */ - org.apache.hadoop.hbase.coprocessor.example.generated.BulkDeleteProtos.BulkDeleteRequest.DeleteType getDeleteType(); - -// optional uint64 timestamp = 3; -/** - * optional uint64 timestamp = 3; - */ -boolean hasTimestamp(); -/** - * optional uint64 timestamp = 3; - */ -long getTimestamp(); - -// required uint32 rowBatchSize = 4; -/** - * required uint32 rowBatchSize = 4; - */ -boolean hasRowBatchSize(); -/** - * required uint32 rowBatchSize = 4; - */ -int getRowBatchSize(); - } - /** - * Protobuf type {@code hbase.pb.BulkDeleteRequest} - */ - public static final class BulkDeleteRequest extends - com.google.protobuf.GeneratedMessage - implements BulkDeleteRequestOrBuilder { -// Use BulkDeleteRequest.newBuilder() to construct. -private BulkDeleteRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); -} -private BulkDeleteRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - -private static final BulkDeleteRequest defaultInstance; -public static BulkDeleteRequest getDefaultInstance() { - return defaultInstance; -} - -public BulkDeleteRequest getDefaultInstanceForType() { - return defaultInstance; -} - -private final com.google.protobuf.UnknownFieldSet unknownFields; -@java.lang.Override -public final com.google.protobuf.UnknownFieldSet -getUnknownFields() { - return this.unknownFields; -} -private BulkDeleteRequest( -com.google.protobuf.CodedInputStream input, -com.google.protobuf.ExtensionRegistryLite extensionRegistry) -throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.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; -} -case 10: { - org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Scan.Builder subBuilder = null; - if (((bitField0_ & 0x0001) == 0x0001)) { -subBuilder = scan_.toBuilder(); - } - scan_ = input.readMessage(org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Scan.PARSER, extensionRegistry); - if (subBuilder != null) { -subBuilder.mergeFrom(scan_); -scan_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x0001; - break; -} -case 16: { - int rawValue = input.readEnum(); -
[14/51] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update to refg
http://git-wip-us.apache.org/repos/asf/hbase/blob/1049025e/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/TextFormat.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/TextFormat.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/TextFormat.java deleted file mode 100644 index 491089b..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/TextFormat.java +++ /dev/null @@ -1,2108 +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. - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.Descriptor; -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.EnumDescriptor; -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.EnumValueDescriptor; -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.FieldDescriptor; - -import java.io.IOException; -import java.math.BigInteger; -import java.nio.CharBuffer; -import java.util.ArrayList; -import java.util.List; -import java.util.Locale; -import java.util.Map; -import java.util.logging.Logger; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -/** - * Provide text parsing and formatting support for proto2 instances. - * The implementation largely follows google/protobuf/text_format.cc. - * - * @author wen...@google.com Wenbo Zhu - * @author ken...@google.com Kenton Varda - */ -public final class TextFormat { - private TextFormat() {} - - private static final Logger logger = - Logger.getLogger(TextFormat.class.getName()); - - private static final Printer DEFAULT_PRINTER = new Printer(); - private static final Printer SINGLE_LINE_PRINTER = - (new Printer()).setSingleLineMode(true); - private static final Printer UNICODE_PRINTER = - (new Printer()).setEscapeNonAscii(false); - - /** - * Outputs a textual representation of the Protocol Message supplied into - * the parameter output. (This representation is the new version of the - * classic "ProtocolPrinter" output from the original Protocol Buffer system) - */ - public static void print( - final MessageOrBuilder message, final Appendable output) - throws IOException { -DEFAULT_PRINTER.print(message, new TextGenerator(output)); - } - - /** Outputs a textual representation of {@code fields} to {@code output}. */ - public static void print(final UnknownFieldSet fields, - final Appendable output) - throws IOException { -DEFAULT_PRINTER.printUnknownFields(fields, new TextGenerator(output)); - } - - /** - * Same as {@code print()}, except that non-ASCII characters are not - * escaped. - */ - public static void printUnicode( - final MessageOrBuilder message, final Appendable output) - throws IOException { -UNICODE_PRINTER.print(message, new TextGenerator(output)); - } - - /** - * Same as {@code print()}, except that non-ASCII characters are not - * escaped. - */ - public static void printUnicode(final UnknownFieldSet fields, - final Appendable
[34/51] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update to refg
http://git-wip-us.apache.org/repos/asf/hbase/blob/1049025e/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/DescriptorProtos.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/DescriptorProtos.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/DescriptorProtos.java deleted file mode 100644 index 0468e6c..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/DescriptorProtos.java +++ /dev/null @@ -1,39141 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/descriptor.proto - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -public final class DescriptorProtos { - private DescriptorProtos() {} - public static void registerAllExtensions( - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistry registry) { -registerAllExtensions( - (org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface FileDescriptorSetOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.protobuf.FileDescriptorSet) - org.apache.hadoop.hbase.shaded.com.google.protobuf.MessageOrBuilder { - -/** - * repeated .google.protobuf.FileDescriptorProto file = 1; - */ - java.util.List -getFileList(); -/** - * repeated .google.protobuf.FileDescriptorProto file = 1; - */ - org.apache.hadoop.hbase.shaded.com.google.protobuf.DescriptorProtos.FileDescriptorProto getFile(int index); -/** - * repeated .google.protobuf.FileDescriptorProto file = 1; - */ -int getFileCount(); -/** - * repeated .google.protobuf.FileDescriptorProto file = 1; - */ -java.util.List -getFileOrBuilderList(); -/** - * repeated .google.protobuf.FileDescriptorProto file = 1; - */ - org.apache.hadoop.hbase.shaded.com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder getFileOrBuilder( -int index); - } - /** - * - * The protocol compiler can output a FileDescriptorSet containing the .proto - * files it parses. - * - * - * Protobuf type {@code google.protobuf.FileDescriptorSet} - */ - public static final class FileDescriptorSet extends - org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.protobuf.FileDescriptorSet) - FileDescriptorSetOrBuilder { -// Use FileDescriptorSet.newBuilder() to construct. -private FileDescriptorSet(org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); -} -private FileDescriptorSet() { - file_ = java.util.Collections.emptyList(); -} - -@java.lang.Override -public final org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet -getUnknownFields() { - return this.unknownFields; -} -private FileDescriptorSet( -org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input, - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) -throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet.Builder unknownFields = - org.apache.hadoop.hbase.shaded.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; -} -case 10: { - if (!((mutable_bitField0_ & 0x0001) == 0x0001)) { -file_ = new java.util.ArrayList(); -mutable_bitField0_ |= 0x0001; - } - file_.add( - input.readMessage(org.apache.hadoop.hbase.shaded.com.google.protobuf.DescriptorProtos.FileDescriptorProto.PARSER, extensionRegistry)); - break; -} - } -} - } catch (org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException e) { -throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { -throw new
[18/51] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update to refg
http://git-wip-us.apache.org/repos/asf/hbase/blob/1049025e/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/MutabilityOracle.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/MutabilityOracle.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/MutabilityOracle.java deleted file mode 100644 index b1eca4f..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/MutabilityOracle.java +++ /dev/null @@ -1,48 +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. - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -/** - * Verifies that an object is mutable, throwing if not. - */ -interface MutabilityOracle { - static final MutabilityOracle IMMUTABLE = new MutabilityOracle() { -@Override -public void ensureMutable() { - throw new UnsupportedOperationException(); -} - }; - - /** - * Throws an {@link UnsupportedOperationException} if not mutable. - */ - void ensureMutable(); -} http://git-wip-us.apache.org/repos/asf/hbase/blob/1049025e/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/NioByteString.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/NioByteString.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/NioByteString.java deleted file mode 100644 index 1610f80..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/NioByteString.java +++ /dev/null @@ -1,291 +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
[42/51] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update to refg
http://git-wip-us.apache.org/repos/asf/hbase/blob/1049025e/hbase-examples/README.txt -- diff --git a/hbase-examples/README.txt b/hbase-examples/README.txt index c47ed4f..22d1103 100644 --- a/hbase-examples/README.txt +++ b/hbase-examples/README.txt @@ -63,27 +63,8 @@ Example code. 3. Execute {./DemoClient}. ON PROTOBUFS -This maven module has protobuf definition files ('.protos') used by hbase -Coprocessor Endpoints examples including tests. Coprocessor -Endpoints are meant to be standalone, independent code not reliant on hbase -internals. They define their Service using protobuf. The protobuf version -they use can be distinct from that used by HBase internally since HBase started -shading its protobuf references. Endpoints have no access to the shaded protobuf -hbase uses. They do have access to the content of hbase-protocol -- the -.protos found in here -- but avoid using as much of this as you can as it is -liable to change. +This maven module has core protobuf definition files ('.protos') used by hbase +examples. -Generation of java files from protobuf .proto files included here is done apart -from the build. Run the generation whenever you make changes to the .orotos files -and then check in the produced java (The reasoning is that change is infrequent -so why pay the price of generating files anew on each build. - -To generate java files from protos run: - - $ mvn compile -Dcompile-protobuf -or - $ mvn compile -Pcompile-protobuf - -After you've done the above, check it and then check in changes (or post a patch -on a JIRA with your definition file changes and the generated files). Be careful -to notice new files and files removed and do appropriate git rm/adds. +Generation of java files from protobuf .proto files included here is done as +part of the build. http://git-wip-us.apache.org/repos/asf/hbase/blob/1049025e/hbase-examples/pom.xml -- diff --git a/hbase-examples/pom.xml b/hbase-examples/pom.xml index cb32f11..817571d 100644 --- a/hbase-examples/pom.xml +++ b/hbase-examples/pom.xml @@ -29,7 +29,7 @@ hbase-examples Apache HBase - Examples Examples of HBase usage - + @@ -46,20 +46,33 @@ true - -maven-surefire-plugin -${surefire.version} - - -${surefire.firstPartGroups} - - - - - org.apache.maven.plugins - maven-source-plugin - + ${surefire.firstPartGroups} + + + + +org.apache.maven.plugins +maven-source-plugin + + +org.xolstice.maven.plugins +protobuf-maven-plugin + + +compile-protoc +generate-sources + + compile + + + + @@ -81,7 +94,7 @@ - + @@ -94,7 +107,7 @@ - + @@ -112,16 +125,16 @@ test -org.apache.hbase -hbase-common + org.apache.hbase + hbase-common -org.apache.hbase -hbase-protocol + org.apache.hbase + hbase-protocol -org.apache.hbase -hbase-client + org.apache.hbase + hbase-client org.apache.hbase @@ -136,11 +149,10 @@ hbase-thrift -org.apache.hbase -hbase-testing-util -test + org.apache.hbase + hbase-testing-util + test - org.apache.thrift libthrift @@ -157,152 +169,126 @@ com.google.protobuf protobuf-java - - - - - skipExamplesTests - - - skipExamplesTests - - - - true - true - - - - compile-protobuf - - - compile-protobuf - - - - - -org.xolstice.maven.plugins -protobuf-maven-plugin - - -compile-protoc -generate-sources - - compile - - - - - - - - - - + + skipExamplesTests + + + skipExamplesTests + + + +true +true + + + + - -
[41/51] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update to refg
http://git-wip-us.apache.org/repos/asf/hbase/blob/1049025e/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/AbstractMessage.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/AbstractMessage.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/AbstractMessage.java deleted file mode 100644 index 4a6fefa..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/AbstractMessage.java +++ /dev/null @@ -1,646 +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. - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.EnumValueDescriptor; -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.FieldDescriptor; -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.OneofDescriptor; -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Internal.EnumLite; - -import java.io.IOException; -import java.io.InputStream; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; -import java.util.Map; - -/** - * A partial implementation of the {@link Message} interface which implements - * as many methods of that interface as possible in terms of other methods. - * - * @author ken...@google.com Kenton Varda - */ -public abstract class AbstractMessage -// TODO(dweis): Update GeneratedMessage to parameterize with MessageType and BuilderType. -extends AbstractMessageLite -implements Message { - - @Override - public boolean isInitialized() { -return MessageReflection.isInitialized(this); - } - - /** - * Interface for the parent of a Builder that allows the builder to - * communicate invalidations back to the parent for use when using nested - * builders. - */ - protected interface BuilderParent { - -/** - * A builder becomes dirty whenever a field is modified -- including fields - * in nested builders -- and becomes clean when build() is called. Thus, - * when a builder becomes dirty, all its parents become dirty as well, and - * when it becomes clean, all its children become clean. The dirtiness - * state is used to invalidate certain cached values. - * - * To this end, a builder calls markDirty() on its parent whenever it - * transitions from clean to dirty. The parent must propagate this call to - * its own parent, unless it was already dirty, in which case the - * grandparent must necessarily already be dirty as well. The parent can - * only transition back to "clean" after calling build() on all children. - */ -void markDirty(); - } - - /** Create a nested builder. */ - protected Message.Builder newBuilderForType(BuilderParent parent) { -throw new UnsupportedOperationException("Nested builder is not supported for this type."); - } - - - @Override - public List findInitializationErrors() { -return MessageReflection.findMissingFields(this); - } - - @Override - public String getInitializationErrorString() { -return
[44/51] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update to refg
http://git-wip-us.apache.org/repos/asf/hbase/blob/1049025e/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/protobuf/generated/AggregateProtos.java -- diff --git a/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/protobuf/generated/AggregateProtos.java b/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/protobuf/generated/AggregateProtos.java deleted file mode 100644 index 508790c..000 --- a/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/protobuf/generated/AggregateProtos.java +++ /dev/null @@ -1,2375 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: Aggregate.proto - -package org.apache.hadoop.hbase.protobuf.generated; - -public final class AggregateProtos { - private AggregateProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public interface AggregateRequestOrBuilder - extends com.google.protobuf.MessageOrBuilder { - -// required string interpreter_class_name = 1; -/** - * required string interpreter_class_name = 1; - * - * - ** The request passed to the AggregateService consists of three parts - * (1) the (canonical) classname of the ColumnInterpreter implementation - * (2) the Scan query - * (3) any bytes required to construct the ColumnInterpreter object - * properly - * - */ -boolean hasInterpreterClassName(); -/** - * required string interpreter_class_name = 1; - * - * - ** The request passed to the AggregateService consists of three parts - * (1) the (canonical) classname of the ColumnInterpreter implementation - * (2) the Scan query - * (3) any bytes required to construct the ColumnInterpreter object - * properly - * - */ -java.lang.String getInterpreterClassName(); -/** - * required string interpreter_class_name = 1; - * - * - ** The request passed to the AggregateService consists of three parts - * (1) the (canonical) classname of the ColumnInterpreter implementation - * (2) the Scan query - * (3) any bytes required to construct the ColumnInterpreter object - * properly - * - */ -com.google.protobuf.ByteString -getInterpreterClassNameBytes(); - -// required .hbase.pb.Scan scan = 2; -/** - * required .hbase.pb.Scan scan = 2; - */ -boolean hasScan(); -/** - * required .hbase.pb.Scan scan = 2; - */ -org.apache.hadoop.hbase.protobuf.generated.ClientProtos.Scan getScan(); -/** - * required .hbase.pb.Scan scan = 2; - */ -org.apache.hadoop.hbase.protobuf.generated.ClientProtos.ScanOrBuilder getScanOrBuilder(); - -// optional bytes interpreter_specific_bytes = 3; -/** - * optional bytes interpreter_specific_bytes = 3; - */ -boolean hasInterpreterSpecificBytes(); -/** - * optional bytes interpreter_specific_bytes = 3; - */ -com.google.protobuf.ByteString getInterpreterSpecificBytes(); - } - /** - * Protobuf type {@code hbase.pb.AggregateRequest} - */ - public static final class AggregateRequest extends - com.google.protobuf.GeneratedMessage - implements AggregateRequestOrBuilder { -// Use AggregateRequest.newBuilder() to construct. -private AggregateRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); -} -private AggregateRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - -private static final AggregateRequest defaultInstance; -public static AggregateRequest getDefaultInstance() { - return defaultInstance; -} - -public AggregateRequest getDefaultInstanceForType() { - return defaultInstance; -} - -private final com.google.protobuf.UnknownFieldSet unknownFields; -@java.lang.Override -public final com.google.protobuf.UnknownFieldSet -getUnknownFields() { - return this.unknownFields; -} -private AggregateRequest( -com.google.protobuf.CodedInputStream input, -com.google.protobuf.ExtensionRegistryLite extensionRegistry) -throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.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; -
[48/51] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update to refg
http://git-wip-us.apache.org/repos/asf/hbase/blob/1049025e/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/coprocessor/protobuf/generated/ColumnAggregationWithErrorsProtos.java -- diff --git a/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/coprocessor/protobuf/generated/ColumnAggregationWithErrorsProtos.java b/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/coprocessor/protobuf/generated/ColumnAggregationWithErrorsProtos.java deleted file mode 100644 index 64cf82e..000 --- a/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/coprocessor/protobuf/generated/ColumnAggregationWithErrorsProtos.java +++ /dev/null @@ -1,1290 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ColumnAggregationWithErrorsProtocol.proto - -package org.apache.hadoop.hbase.coprocessor.protobuf.generated; - -public final class ColumnAggregationWithErrorsProtos { - private ColumnAggregationWithErrorsProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public interface ColumnAggregationWithErrorsSumRequestOrBuilder - extends com.google.protobuf.MessageOrBuilder { - -// required bytes family = 1; -/** - * required bytes family = 1; - */ -boolean hasFamily(); -/** - * required bytes family = 1; - */ -com.google.protobuf.ByteString getFamily(); - -// optional bytes qualifier = 2; -/** - * optional bytes qualifier = 2; - */ -boolean hasQualifier(); -/** - * optional bytes qualifier = 2; - */ -com.google.protobuf.ByteString getQualifier(); - } - /** - * Protobuf type {@code ColumnAggregationWithErrorsSumRequest} - * - * - * use unique names for messages in ColumnAggregationXXX.protos due to a bug in - * protoc or hadoop's protoc compiler. - * - */ - public static final class ColumnAggregationWithErrorsSumRequest extends - com.google.protobuf.GeneratedMessage - implements ColumnAggregationWithErrorsSumRequestOrBuilder { -// Use ColumnAggregationWithErrorsSumRequest.newBuilder() to construct. -private ColumnAggregationWithErrorsSumRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); -} -private ColumnAggregationWithErrorsSumRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - -private static final ColumnAggregationWithErrorsSumRequest defaultInstance; -public static ColumnAggregationWithErrorsSumRequest getDefaultInstance() { - return defaultInstance; -} - -public ColumnAggregationWithErrorsSumRequest getDefaultInstanceForType() { - return defaultInstance; -} - -private final com.google.protobuf.UnknownFieldSet unknownFields; -@java.lang.Override -public final com.google.protobuf.UnknownFieldSet -getUnknownFields() { - return this.unknownFields; -} -private ColumnAggregationWithErrorsSumRequest( -com.google.protobuf.CodedInputStream input, -com.google.protobuf.ExtensionRegistryLite extensionRegistry) -throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.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; -} -case 10: { - bitField0_ |= 0x0001; - family_ = input.readBytes(); - break; -} -case 18: { - bitField0_ |= 0x0002; - qualifier_ = input.readBytes(); - break; -} - } -} - } catch (com.google.protobuf.InvalidProtocolBufferException e) { -throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { -throw new com.google.protobuf.InvalidProtocolBufferException( -e.getMessage()).setUnfinishedMessage(this); - } finally { -this.unknownFields = unknownFields.build(); -makeExtensionsImmutable(); - } -} -public static final com.google.protobuf.Descriptors.Descriptor -getDescriptor() { - return org.apache.hadoop.hbase.coprocessor.protobuf.generated.ColumnAggregationWithErrorsProtos.internal_static_ColumnAggregationWithErrorsSumRequest_descriptor; -} - -protected
[37/51] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update to refg
http://git-wip-us.apache.org/repos/asf/hbase/blob/1049025e/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/ByteString.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/ByteString.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/ByteString.java deleted file mode 100644 index f673ee3..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/ByteString.java +++ /dev/null @@ -1,1565 +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. - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -import java.io.ByteArrayInputStream; -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.InputStream; -import java.io.InvalidObjectException; -import java.io.ObjectInputStream; -import java.io.OutputStream; -import java.io.Serializable; -import java.io.UnsupportedEncodingException; -import java.nio.ByteBuffer; -import java.nio.charset.Charset; -import java.nio.charset.UnsupportedCharsetException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collection; -import java.util.Collections; -import java.util.Iterator; -import java.util.List; -import java.util.NoSuchElementException; - -/** - * Immutable sequence of bytes. Substring is supported by sharing the reference to the immutable - * underlying bytes. Concatenation is likewise supported without copying (long strings) by building - * a tree of pieces in {@link RopeByteString}. - * - * Like {@link String}, the contents of a {@link ByteString} can never be observed to change, not - * even in the presence of a data race or incorrect API usage in the client code. - * - * @author crazy...@google.com Bob Lee - * @author ken...@google.com Kenton Varda - * @author carlan...@google.com Carl Haverl - * @author marti...@google.com Martin Buchholz - */ -public abstract class ByteString implements Iterable, Serializable { - - /** - * When two strings to be concatenated have a combined length shorter than - * this, we just copy their bytes on {@link #concat(ByteString)}. - * The trade-off is copy size versus the overhead of creating tree nodes - * in {@link RopeByteString}. - */ - static final int CONCATENATE_BY_COPY_SIZE = 128; - - /** - * When copying an InputStream into a ByteString with .readFrom(), - * the chunks in the underlying rope start at 256 bytes, but double - * each iteration up to 8192 bytes. - */ - static final int MIN_READ_FROM_CHUNK_SIZE = 0x100; // 256b - static final int MAX_READ_FROM_CHUNK_SIZE = 0x2000; // 8k - - /** - * Empty {@code ByteString}. - */ - public static final ByteString EMPTY = new LiteralByteString(Internal.EMPTY_BYTE_ARRAY); - - /** - * An interface to efficiently copy {@code byte[]}. - * - * One of the noticeable costs of copying a byte[] into a new array using - * {@code System.arraycopy} is nullification of a new buffer before the copy. It has been shown - * the Hotspot VM is capable to intrisicfy {@code Arrays.copyOfRange} operation to avoid this - * expensive nullification and provide substantial performance gain. Unfortunately this does not - * hold on Android
[26/51] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update to refg
http://git-wip-us.apache.org/repos/asf/hbase/blob/1049025e/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/GeneratedMessage.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/GeneratedMessage.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/GeneratedMessage.java deleted file mode 100644 index 4a0f93a..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/GeneratedMessage.java +++ /dev/null @@ -1,3047 +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. - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.Descriptor; -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.EnumDescriptor; -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.EnumValueDescriptor; -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.FieldDescriptor; -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.FileDescriptor; -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.OneofDescriptor; - -import java.io.IOException; -import java.io.InputStream; -import java.io.ObjectStreamException; -import java.io.Serializable; -import java.lang.reflect.InvocationTargetException; -import java.lang.reflect.Method; -import java.util.ArrayList; -import java.util.Collections; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.TreeMap; - -/** - * All generated protocol message classes extend this class. This class - * implements most of the Message and Builder interfaces using Java reflection. - * Users can ignore this class and pretend that generated messages implement - * the Message interface directly. - * - * @author ken...@google.com Kenton Varda - */ -public abstract class GeneratedMessage extends AbstractMessage -implements Serializable { - private static final long serialVersionUID = 1L; - - /** - * For testing. Allows a test to disable the optimization that avoids using - * field builders for nested messages until they are requested. By disabling - * this optimization, existing tests can be reused to test the field builders. - */ - protected static boolean alwaysUseFieldBuilders = false; - - /** For use by generated code only. */ - protected UnknownFieldSet unknownFields; - - protected GeneratedMessage() { -unknownFields = UnknownFieldSet.getDefaultInstance(); - } - - protected GeneratedMessage(Builder builder) { -unknownFields = builder.getUnknownFields(); - } - - @Override - public Parser getParserForType() { -throw new UnsupportedOperationException( -"This is supposed to be overridden by subclasses."); - } - - /** - * For testing. Allows a test to disable the optimization that avoids using - * field builders for nested messages until they are requested. By disabling - * this optimization, existing tests can be reused to test the field builders. - * See {@link RepeatedFieldBuilder} and {@link SingleFieldBuilder}. - */ - static void enableAlwaysUseFieldBuildersForTesting() { -alwaysUseFieldBuilders =
[07/51] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update to refg
http://git-wip-us.apache.org/repos/asf/hbase/blob/1049025e/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/compiler/PluginProtos.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/compiler/PluginProtos.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/compiler/PluginProtos.java deleted file mode 100644 index 71975c2..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/compiler/PluginProtos.java +++ /dev/null @@ -1,5424 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/compiler/plugin.proto - -package org.apache.hadoop.hbase.shaded.com.google.protobuf.compiler; - -public final class PluginProtos { - private PluginProtos() {} - public static void registerAllExtensions( - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistry registry) { -registerAllExtensions( - (org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface VersionOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.protobuf.compiler.Version) - org.apache.hadoop.hbase.shaded.com.google.protobuf.MessageOrBuilder { - -/** - * optional int32 major = 1; - */ -boolean hasMajor(); -/** - * optional int32 major = 1; - */ -int getMajor(); - -/** - * optional int32 minor = 2; - */ -boolean hasMinor(); -/** - * optional int32 minor = 2; - */ -int getMinor(); - -/** - * optional int32 patch = 3; - */ -boolean hasPatch(); -/** - * optional int32 patch = 3; - */ -int getPatch(); - -/** - * - * A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should - * be empty for mainline stable releases. - * - * - * optional string suffix = 4; - */ -boolean hasSuffix(); -/** - * - * A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should - * be empty for mainline stable releases. - * - * - * optional string suffix = 4; - */ -java.lang.String getSuffix(); -/** - * - * A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should - * be empty for mainline stable releases. - * - * - * optional string suffix = 4; - */ -org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString -getSuffixBytes(); - } - /** - * - * The version number of protocol compiler. - * - * - * Protobuf type {@code google.protobuf.compiler.Version} - */ - public static final class Version extends - org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.protobuf.compiler.Version) - VersionOrBuilder { -// Use Version.newBuilder() to construct. -private Version(org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); -} -private Version() { - major_ = 0; - minor_ = 0; - patch_ = 0; - suffix_ = ""; -} - -@java.lang.Override -public final org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet -getUnknownFields() { - return this.unknownFields; -} -private Version( -org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input, - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) -throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet.Builder unknownFields = - org.apache.hadoop.hbase.shaded.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; -} -case 8: { - bitField0_ |= 0x0001; - major_ = input.readInt32(); - break; -} -case 16: { - bitField0_ |= 0x0002; - minor_ = input.readInt32(); - break; -} -case 24: { -
[02/51] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update to refg
http://git-wip-us.apache.org/repos/asf/hbase/blob/1049025e/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/protobuf/generated/AdminProtos.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/protobuf/generated/AdminProtos.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/protobuf/generated/AdminProtos.java deleted file mode 100644 index 812cf3b..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/protobuf/generated/AdminProtos.java +++ /dev/null @@ -1,30634 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: Admin.proto - -package org.apache.hadoop.hbase.shaded.protobuf.generated; - -public final class AdminProtos { - private AdminProtos() {} - public static void registerAllExtensions( - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistry registry) { -registerAllExtensions( - (org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface GetRegionInfoRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:hbase.pb.GetRegionInfoRequest) - org.apache.hadoop.hbase.shaded.com.google.protobuf.MessageOrBuilder { - -/** - * required .hbase.pb.RegionSpecifier region = 1; - */ -boolean hasRegion(); -/** - * required .hbase.pb.RegionSpecifier region = 1; - */ - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.RegionSpecifier getRegion(); -/** - * required .hbase.pb.RegionSpecifier region = 1; - */ - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.RegionSpecifierOrBuilder getRegionOrBuilder(); - -/** - * optional bool compaction_state = 2; - */ -boolean hasCompactionState(); -/** - * optional bool compaction_state = 2; - */ -boolean getCompactionState(); - } - /** - * Protobuf type {@code hbase.pb.GetRegionInfoRequest} - */ - public static final class GetRegionInfoRequest extends - org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:hbase.pb.GetRegionInfoRequest) - GetRegionInfoRequestOrBuilder { -// Use GetRegionInfoRequest.newBuilder() to construct. -private GetRegionInfoRequest(org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); -} -private GetRegionInfoRequest() { - compactionState_ = false; -} - -@java.lang.Override -public final org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet -getUnknownFields() { - return this.unknownFields; -} -private GetRegionInfoRequest( -org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input, - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) -throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException { - this(); - int mutable_bitField0_ = 0; - org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet.Builder unknownFields = - org.apache.hadoop.hbase.shaded.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; -} -case 10: { - org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.RegionSpecifier.Builder subBuilder = null; - if (((bitField0_ & 0x0001) == 0x0001)) { -subBuilder = region_.toBuilder(); - } - region_ = input.readMessage(org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.RegionSpecifier.PARSER, extensionRegistry); - if (subBuilder != null) { -subBuilder.mergeFrom(region_); -region_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x0001; - break; -} -case 16: { - bitField0_ |= 0x0002; - compactionState_ = input.readBool(); - break; -} - } -} - } catch (org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException e) { -throw e.setUnfinishedMessage(this); - } catch
[11/51] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update to refg
http://git-wip-us.apache.org/repos/asf/hbase/blob/1049025e/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/UInt32Value.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/UInt32Value.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/UInt32Value.java deleted file mode 100644 index 7b4dae9..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/UInt32Value.java +++ /dev/null @@ -1,451 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/wrappers.proto - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -/** - * - * Wrapper message for `uint32`. - * The JSON representation for `UInt32Value` is JSON number. - * - * - * Protobuf type {@code google.protobuf.UInt32Value} - */ -public final class UInt32Value extends -org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3 implements -// @@protoc_insertion_point(message_implements:google.protobuf.UInt32Value) -UInt32ValueOrBuilder { - // Use UInt32Value.newBuilder() to construct. - private UInt32Value(org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) { -super(builder); - } - private UInt32Value() { -value_ = 0; - } - - @java.lang.Override - public final org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet - getUnknownFields() { -return org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private UInt32Value( - org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input, - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException { -this(); -int mutable_bitField0_ = 0; -try { - boolean done = false; - while (!done) { -int tag = input.readTag(); -switch (tag) { - case 0: -done = true; -break; - default: { -if (!input.skipField(tag)) { - done = true; -} -break; - } - case 8: { - -value_ = input.readUInt32(); -break; - } -} - } -} catch (org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); -} catch (java.io.IOException e) { - throw new org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); -} finally { - makeExtensionsImmutable(); -} - } - public static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.Descriptor - getDescriptor() { -return org.apache.hadoop.hbase.shaded.com.google.protobuf.WrappersProto.internal_static_google_protobuf_UInt32Value_descriptor; - } - - protected org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { -return org.apache.hadoop.hbase.shaded.com.google.protobuf.WrappersProto.internal_static_google_protobuf_UInt32Value_fieldAccessorTable -.ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.shaded.com.google.protobuf.UInt32Value.class, org.apache.hadoop.hbase.shaded.com.google.protobuf.UInt32Value.Builder.class); - } - - public static final int VALUE_FIELD_NUMBER = 1; - private int value_; - /** - * - * The uint32 value. - * - * - * uint32 value = 1; - */ - public int getValue() { -return value_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { -byte isInitialized = memoizedIsInitialized; -if (isInitialized == 1) return true; -if (isInitialized == 0) return false; - -memoizedIsInitialized = 1; -return true; - } - - public void writeTo(org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { -if (value_ != 0) { - output.writeUInt32(1, value_); -} - } - - public int getSerializedSize() { -int size = memoizedSize; -if (size != -1) return size; - -size = 0; -if (value_ != 0) { - size += org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedOutputStream -.computeUInt32Size(1, value_); -} -memoizedSize = size; -return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { -if (obj == this) { - return true; -} -if (!(obj instanceof org.apache.hadoop.hbase.shaded.com.google.protobuf.UInt32Value)) { - return
[25/51] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update to refg
http://git-wip-us.apache.org/repos/asf/hbase/blob/1049025e/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/GeneratedMessageLite.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/GeneratedMessageLite.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/GeneratedMessageLite.java deleted file mode 100644 index 584eba1..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/GeneratedMessageLite.java +++ /dev/null @@ -1,2419 +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. - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -import org.apache.hadoop.hbase.shaded.com.google.protobuf.AbstractMessageLite.Builder.LimitedInputStream; -import org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageLite.EqualsVisitor.NotEqualsException; -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Internal.BooleanList; -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Internal.DoubleList; -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Internal.FloatList; -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Internal.IntList; -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Internal.LongList; -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Internal.ProtobufList; -import org.apache.hadoop.hbase.shaded.com.google.protobuf.WireFormat.FieldType; -import java.io.IOException; -import java.io.InputStream; -import java.io.ObjectStreamException; -import java.io.Serializable; -import java.lang.reflect.InvocationTargetException; -import java.lang.reflect.Method; -import java.util.ArrayList; -import java.util.Collections; -import java.util.Iterator; -import java.util.List; -import java.util.Map; - -/** - * Lite version of {@link GeneratedMessage}. - * - * @author ken...@google.com Kenton Varda - */ -public abstract class GeneratedMessageLite< -MessageType extends GeneratedMessageLite, -BuilderType extends GeneratedMessageLite.Builder > -extends AbstractMessageLite { - - /** For use by generated code only. Lazily initialized to reduce allocations. */ - protected UnknownFieldSetLite unknownFields = UnknownFieldSetLite.getDefaultInstance(); - - /** For use by generated code only. */ - protected int memoizedSerializedSize = -1; - - @Override - @SuppressWarnings("unchecked") // Guaranteed by runtime. - public final Parser getParserForType() { -return (Parser) dynamicMethod(MethodToInvoke.GET_PARSER); - } - - @Override - @SuppressWarnings("unchecked") // Guaranteed by runtime. - public final MessageType getDefaultInstanceForType() { -return (MessageType) dynamicMethod(MethodToInvoke.GET_DEFAULT_INSTANCE); - } - - @Override - @SuppressWarnings("unchecked") // Guaranteed by runtime. - public final BuilderType newBuilderForType() { -return (BuilderType) dynamicMethod(MethodToInvoke.NEW_BUILDER); - } - - /** - * A reflective toString function. This is primarily intended as a developer aid, while keeping - * binary size down. The first line of the {@code toString()}
[27/51] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update to refg
http://git-wip-us.apache.org/repos/asf/hbase/blob/1049025e/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/FloatValue.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/FloatValue.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/FloatValue.java deleted file mode 100644 index f3315c8..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/FloatValue.java +++ /dev/null @@ -1,454 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/wrappers.proto - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -/** - * - * Wrapper message for `float`. - * The JSON representation for `FloatValue` is JSON number. - * - * - * Protobuf type {@code google.protobuf.FloatValue} - */ -public final class FloatValue extends -org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3 implements -// @@protoc_insertion_point(message_implements:google.protobuf.FloatValue) -FloatValueOrBuilder { - // Use FloatValue.newBuilder() to construct. - private FloatValue(org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) { -super(builder); - } - private FloatValue() { -value_ = 0F; - } - - @java.lang.Override - public final org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet - getUnknownFields() { -return org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private FloatValue( - org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input, - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException { -this(); -int mutable_bitField0_ = 0; -try { - boolean done = false; - while (!done) { -int tag = input.readTag(); -switch (tag) { - case 0: -done = true; -break; - default: { -if (!input.skipField(tag)) { - done = true; -} -break; - } - case 13: { - -value_ = input.readFloat(); -break; - } -} - } -} catch (org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); -} catch (java.io.IOException e) { - throw new org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); -} finally { - makeExtensionsImmutable(); -} - } - public static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.Descriptor - getDescriptor() { -return org.apache.hadoop.hbase.shaded.com.google.protobuf.WrappersProto.internal_static_google_protobuf_FloatValue_descriptor; - } - - protected org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { -return org.apache.hadoop.hbase.shaded.com.google.protobuf.WrappersProto.internal_static_google_protobuf_FloatValue_fieldAccessorTable -.ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.shaded.com.google.protobuf.FloatValue.class, org.apache.hadoop.hbase.shaded.com.google.protobuf.FloatValue.Builder.class); - } - - public static final int VALUE_FIELD_NUMBER = 1; - private float value_; - /** - * - * The float value. - * - * - * float value = 1; - */ - public float getValue() { -return value_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { -byte isInitialized = memoizedIsInitialized; -if (isInitialized == 1) return true; -if (isInitialized == 0) return false; - -memoizedIsInitialized = 1; -return true; - } - - public void writeTo(org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { -if (value_ != 0F) { - output.writeFloat(1, value_); -} - } - - public int getSerializedSize() { -int size = memoizedSize; -if (size != -1) return size; - -size = 0; -if (value_ != 0F) { - size += org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedOutputStream -.computeFloatSize(1, value_); -} -memoizedSize = size; -return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { -if (obj == this) { - return true; -} -if (!(obj instanceof org.apache.hadoop.hbase.shaded.com.google.protobuf.FloatValue)) { - return super.equals(obj); -
[39/51] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update to refg
http://git-wip-us.apache.org/repos/asf/hbase/blob/1049025e/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Api.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Api.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Api.java deleted file mode 100644 index 3265158..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Api.java +++ /dev/null @@ -1,2473 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/api.proto - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -/** - * - * Api is a light-weight descriptor for a protocol buffer service. - * - * - * Protobuf type {@code google.protobuf.Api} - */ -public final class Api extends -org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3 implements -// @@protoc_insertion_point(message_implements:google.protobuf.Api) -ApiOrBuilder { - // Use Api.newBuilder() to construct. - private Api(org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) { -super(builder); - } - private Api() { -name_ = ""; -methods_ = java.util.Collections.emptyList(); -options_ = java.util.Collections.emptyList(); -version_ = ""; -mixins_ = java.util.Collections.emptyList(); -syntax_ = 0; - } - - @java.lang.Override - public final org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet - getUnknownFields() { -return org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private Api( - org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input, - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException { -this(); -int mutable_bitField0_ = 0; -try { - boolean done = false; - while (!done) { -int tag = input.readTag(); -switch (tag) { - case 0: -done = true; -break; - default: { -if (!input.skipField(tag)) { - done = true; -} -break; - } - case 10: { -java.lang.String s = input.readStringRequireUtf8(); - -name_ = s; -break; - } - case 18: { -if (!((mutable_bitField0_ & 0x0002) == 0x0002)) { - methods_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x0002; -} -methods_.add( - input.readMessage(org.apache.hadoop.hbase.shaded.com.google.protobuf.Method.parser(), extensionRegistry)); -break; - } - case 26: { -if (!((mutable_bitField0_ & 0x0004) == 0x0004)) { - options_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x0004; -} -options_.add( - input.readMessage(org.apache.hadoop.hbase.shaded.com.google.protobuf.Option.parser(), extensionRegistry)); -break; - } - case 34: { -java.lang.String s = input.readStringRequireUtf8(); - -version_ = s; -break; - } - case 42: { - org.apache.hadoop.hbase.shaded.com.google.protobuf.SourceContext.Builder subBuilder = null; -if (sourceContext_ != null) { - subBuilder = sourceContext_.toBuilder(); -} -sourceContext_ = input.readMessage(org.apache.hadoop.hbase.shaded.com.google.protobuf.SourceContext.parser(), extensionRegistry); -if (subBuilder != null) { - subBuilder.mergeFrom(sourceContext_); - sourceContext_ = subBuilder.buildPartial(); -} - -break; - } - case 50: { -if (!((mutable_bitField0_ & 0x0020) == 0x0020)) { - mixins_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x0020; -} -mixins_.add( - input.readMessage(org.apache.hadoop.hbase.shaded.com.google.protobuf.Mixin.parser(), extensionRegistry)); -break; - } - case 56: { -int rawValue = input.readEnum(); - -syntax_ = rawValue; -break; - } -} - } -} catch (org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); -} catch (java.io.IOException e) { - throw new org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException( -
[05/51] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update to refg
http://git-wip-us.apache.org/repos/asf/hbase/blob/1049025e/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/ipc/protobuf/generated/TestProtos.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/ipc/protobuf/generated/TestProtos.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/ipc/protobuf/generated/TestProtos.java deleted file mode 100644 index a30032d..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/ipc/protobuf/generated/TestProtos.java +++ /dev/null @@ -1,2987 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: test.proto - -package org.apache.hadoop.hbase.shaded.ipc.protobuf.generated; - -public final class TestProtos { - private TestProtos() {} - public static void registerAllExtensions( - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistry registry) { -registerAllExtensions( - (org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface EmptyRequestProtoOrBuilder extends - // @@protoc_insertion_point(interface_extends:EmptyRequestProto) - org.apache.hadoop.hbase.shaded.com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code EmptyRequestProto} - */ - public static final class EmptyRequestProto extends - org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:EmptyRequestProto) - EmptyRequestProtoOrBuilder { -// Use EmptyRequestProto.newBuilder() to construct. -private EmptyRequestProto(org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); -} -private EmptyRequestProto() { -} - -@java.lang.Override -public final org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet -getUnknownFields() { - return this.unknownFields; -} -private EmptyRequestProto( -org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input, - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) -throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException { - this(); - org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet.Builder unknownFields = - org.apache.hadoop.hbase.shaded.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 (org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException e) { -throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { -throw new org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException( -e).setUnfinishedMessage(this); - } finally { -this.unknownFields = unknownFields.build(); -makeExtensionsImmutable(); - } -} -public static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.Descriptor -getDescriptor() { - return org.apache.hadoop.hbase.shaded.ipc.protobuf.generated.TestProtos.internal_static_EmptyRequestProto_descriptor; -} - -protected org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable -internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.shaded.ipc.protobuf.generated.TestProtos.internal_static_EmptyRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.shaded.ipc.protobuf.generated.TestProtos.EmptyRequestProto.class, org.apache.hadoop.hbase.shaded.ipc.protobuf.generated.TestProtos.EmptyRequestProto.Builder.class); -} - -private byte memoizedIsInitialized = -1; -public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; -} - -public void writeTo(org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedOutputStream output) -throws java.io.IOException { - unknownFields.writeTo(output); -} - -
[30/51] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update to refg
http://git-wip-us.apache.org/repos/asf/hbase/blob/1049025e/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/EnumValue.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/EnumValue.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/EnumValue.java deleted file mode 100644 index a0a9d49..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/EnumValue.java +++ /dev/null @@ -1,1044 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/type.proto - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -/** - * - * Enum value definition. - * - * - * Protobuf type {@code google.protobuf.EnumValue} - */ -public final class EnumValue extends -org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3 implements -// @@protoc_insertion_point(message_implements:google.protobuf.EnumValue) -EnumValueOrBuilder { - // Use EnumValue.newBuilder() to construct. - private EnumValue(org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) { -super(builder); - } - private EnumValue() { -name_ = ""; -number_ = 0; -options_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet - getUnknownFields() { -return org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private EnumValue( - org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input, - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException { -this(); -int mutable_bitField0_ = 0; -try { - boolean done = false; - while (!done) { -int tag = input.readTag(); -switch (tag) { - case 0: -done = true; -break; - default: { -if (!input.skipField(tag)) { - done = true; -} -break; - } - case 10: { -java.lang.String s = input.readStringRequireUtf8(); - -name_ = s; -break; - } - case 16: { - -number_ = input.readInt32(); -break; - } - case 26: { -if (!((mutable_bitField0_ & 0x0004) == 0x0004)) { - options_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x0004; -} -options_.add( - input.readMessage(org.apache.hadoop.hbase.shaded.com.google.protobuf.Option.parser(), extensionRegistry)); -break; - } -} - } -} catch (org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); -} catch (java.io.IOException e) { - throw new org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); -} finally { - if (((mutable_bitField0_ & 0x0004) == 0x0004)) { -options_ = java.util.Collections.unmodifiableList(options_); - } - makeExtensionsImmutable(); -} - } - public static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.Descriptor - getDescriptor() { -return org.apache.hadoop.hbase.shaded.com.google.protobuf.TypeProto.internal_static_google_protobuf_EnumValue_descriptor; - } - - protected org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { -return org.apache.hadoop.hbase.shaded.com.google.protobuf.TypeProto.internal_static_google_protobuf_EnumValue_fieldAccessorTable -.ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.shaded.com.google.protobuf.EnumValue.class, org.apache.hadoop.hbase.shaded.com.google.protobuf.EnumValue.Builder.class); - } - - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * Enum value 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 { - org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString bs = - (org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; -} - } - /** - * - * Enum value name. - * - * - * string name = 1;
[38/51] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update to refg
http://git-wip-us.apache.org/repos/asf/hbase/blob/1049025e/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/ApiOrBuilder.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/ApiOrBuilder.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/ApiOrBuilder.java deleted file mode 100644 index b8b7030..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/ApiOrBuilder.java +++ /dev/null @@ -1,258 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/api.proto - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -public interface ApiOrBuilder extends -// @@protoc_insertion_point(interface_extends:google.protobuf.Api) -org.apache.hadoop.hbase.shaded.com.google.protobuf.MessageOrBuilder { - - /** - * - * The fully qualified name of this api, including package name - * followed by the api's simple name. - * - * - * string name = 1; - */ - java.lang.String getName(); - /** - * - * The fully qualified name of this api, including package name - * followed by the api's simple name. - * - * - * string name = 1; - */ - org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString - getNameBytes(); - - /** - * - * The methods of this api, in unspecified order. - * - * - * repeated .google.protobuf.Method methods = 2; - */ - java.util.List - getMethodsList(); - /** - * - * The methods of this api, in unspecified order. - * - * - * repeated .google.protobuf.Method methods = 2; - */ - org.apache.hadoop.hbase.shaded.com.google.protobuf.Method getMethods(int index); - /** - * - * The methods of this api, in unspecified order. - * - * - * repeated .google.protobuf.Method methods = 2; - */ - int getMethodsCount(); - /** - * - * The methods of this api, in unspecified order. - * - * - * repeated .google.protobuf.Method methods = 2; - */ - java.util.List - getMethodsOrBuilderList(); - /** - * - * The methods of this api, in unspecified order. - * - * - * repeated .google.protobuf.Method methods = 2; - */ - org.apache.hadoop.hbase.shaded.com.google.protobuf.MethodOrBuilder getMethodsOrBuilder( - int index); - - /** - * - * Any metadata attached to the API. - * - * - * repeated .google.protobuf.Option options = 3; - */ - java.util.List - getOptionsList(); - /** - * - * Any metadata attached to the API. - * - * - * repeated .google.protobuf.Option options = 3; - */ - org.apache.hadoop.hbase.shaded.com.google.protobuf.Option getOptions(int index); - /** - * - * Any metadata attached to the API. - * - * - * repeated .google.protobuf.Option options = 3; - */ - int getOptionsCount(); - /** - * - * Any metadata attached to the API. - * - * - * repeated .google.protobuf.Option options = 3; - */ - java.util.List - getOptionsOrBuilderList(); - /** - * - * Any metadata attached to the API. - * - * - * repeated .google.protobuf.Option options = 3; - */ - org.apache.hadoop.hbase.shaded.com.google.protobuf.OptionOrBuilder getOptionsOrBuilder( - int index); - - /** - * - * A version string for this api. If specified, must have the form - * `major-version.minor-version`, as in `1.10`. If the minor version - * is omitted, it defaults to zero. If the entire version field is - * empty, the major version is derived from the package name, as - * outlined below. If the field is not empty, the version in the - * package name will be verified to be consistent with what is - * provided here. - * The versioning schema uses [semantic - * versioning](http://semver.org) where the major version number - * indicates a breaking change and the minor version an additive, - * non-breaking change. Both version numbers are signals to users - * what to expect from different versions, and should be carefully - * chosen based on the product plan. - * The major version is also reflected in the package name of the - * API, which must end in `vmajor-version`, as in - * `google.feature.v1`. For major versions 0 and 1, the suffix can - * be omitted. Zero major versions must only be used for - * experimental, none-GA apis. - * - * - * string version = 4; - */ - java.lang.String getVersion(); - /** - * - * A version string for this api. If specified, must have the form - * `major-version.minor-version`, as in `1.10`. If the minor version - * is omitted, it defaults to zero. If the entire version field is - * empty, the major version is derived from the package name, as - * outlined below. If the field is not empty, the version in the - * package name will be verified
[04/51] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update to refg
http://git-wip-us.apache.org/repos/asf/hbase/blob/1049025e/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/ipc/protobuf/generated/TestRpcServiceProtos.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/ipc/protobuf/generated/TestRpcServiceProtos.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/ipc/protobuf/generated/TestRpcServiceProtos.java deleted file mode 100644 index 200a7f4..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/ipc/protobuf/generated/TestRpcServiceProtos.java +++ /dev/null @@ -1,575 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: test_rpc_service.proto - -package org.apache.hadoop.hbase.shaded.ipc.protobuf.generated; - -public final class TestRpcServiceProtos { - private TestRpcServiceProtos() {} - public static void registerAllExtensions( - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistry registry) { -registerAllExtensions( - (org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * - ** - * A protobuf service for use in tests - * - * - * Protobuf service {@code TestProtobufRpcProto} - */ - public static abstract class TestProtobufRpcProto - implements org.apache.hadoop.hbase.shaded.com.google.protobuf.Service { -protected TestProtobufRpcProto() {} - -public interface Interface { - /** - * rpc ping(.EmptyRequestProto) returns (.EmptyResponseProto); - */ - public abstract void ping( - org.apache.hadoop.hbase.shaded.com.google.protobuf.RpcController controller, - org.apache.hadoop.hbase.shaded.ipc.protobuf.generated.TestProtos.EmptyRequestProto request, - org.apache.hadoop.hbase.shaded.com.google.protobuf.RpcCallback done); - - /** - * rpc echo(.EchoRequestProto) returns (.EchoResponseProto); - */ - public abstract void echo( - org.apache.hadoop.hbase.shaded.com.google.protobuf.RpcController controller, - org.apache.hadoop.hbase.shaded.ipc.protobuf.generated.TestProtos.EchoRequestProto request, - org.apache.hadoop.hbase.shaded.com.google.protobuf.RpcCallback done); - - /** - * rpc error(.EmptyRequestProto) returns (.EmptyResponseProto); - */ - public abstract void error( - org.apache.hadoop.hbase.shaded.com.google.protobuf.RpcController controller, - org.apache.hadoop.hbase.shaded.ipc.protobuf.generated.TestProtos.EmptyRequestProto request, - org.apache.hadoop.hbase.shaded.com.google.protobuf.RpcCallback done); - - /** - * rpc pause(.PauseRequestProto) returns (.EmptyResponseProto); - */ - public abstract void pause( - org.apache.hadoop.hbase.shaded.com.google.protobuf.RpcController controller, - org.apache.hadoop.hbase.shaded.ipc.protobuf.generated.TestProtos.PauseRequestProto request, - org.apache.hadoop.hbase.shaded.com.google.protobuf.RpcCallback done); - - /** - * rpc addr(.EmptyRequestProto) returns (.AddrResponseProto); - */ - public abstract void addr( - org.apache.hadoop.hbase.shaded.com.google.protobuf.RpcController controller, - org.apache.hadoop.hbase.shaded.ipc.protobuf.generated.TestProtos.EmptyRequestProto request, - org.apache.hadoop.hbase.shaded.com.google.protobuf.RpcCallback done); - -} - -public static org.apache.hadoop.hbase.shaded.com.google.protobuf.Service newReflectiveService( -final Interface impl) { - return new TestProtobufRpcProto() { -@java.lang.Override -public void ping( -org.apache.hadoop.hbase.shaded.com.google.protobuf.RpcController controller, - org.apache.hadoop.hbase.shaded.ipc.protobuf.generated.TestProtos.EmptyRequestProto request, - org.apache.hadoop.hbase.shaded.com.google.protobuf.RpcCallback done) { - impl.ping(controller, request, done); -} - -@java.lang.Override -public void echo( -org.apache.hadoop.hbase.shaded.com.google.protobuf.RpcController controller, - org.apache.hadoop.hbase.shaded.ipc.protobuf.generated.TestProtos.EchoRequestProto request, - org.apache.hadoop.hbase.shaded.com.google.protobuf.RpcCallback done) { - impl.echo(controller, request, done); -} - -@java.lang.Override -public void error( -org.apache.hadoop.hbase.shaded.com.google.protobuf.RpcController controller, - org.apache.hadoop.hbase.shaded.ipc.protobuf.generated.TestProtos.EmptyRequestProto request, -
[40/51] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update to refg
http://git-wip-us.apache.org/repos/asf/hbase/blob/1049025e/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Any.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Any.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Any.java deleted file mode 100644 index bf8e852..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Any.java +++ /dev/null @@ -1,899 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/any.proto - -package org.apache.hadoop.hbase.shaded.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) - * ... - * 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.org.apache.hadoop.hbase.shaded.com.google.protobuf.Duration", - * "value": "1.212s" - * } - * - * - * Protobuf type {@code google.protobuf.Any} - */ -public final class Any extends -org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3 implements -// @@protoc_insertion_point(message_implements:google.protobuf.Any) -AnyOrBuilder { - // Use Any.newBuilder() to construct. - private Any(org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) { -super(builder); - } - private Any() { -typeUrl_ = ""; -value_ = org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet - getUnknownFields() { -return org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private Any( - org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input, - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException { -this(); -int mutable_bitField0_ = 0; -try { - boolean done = false; - while (!done) { -int tag = input.readTag(); -switch (tag) { - case 0: -done = true; -break; - default: { -if (!input.skipField(tag)) { - done = true; -} -break; - } - case 10: { -java.lang.String s = input.readStringRequireUtf8(); - -typeUrl_ = s; -break; - } - case 18: { - -value_ = input.readBytes(); -break; - } -} - } -} catch (org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); -} catch (java.io.IOException e) { - throw new org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); -} finally { -
[35/51] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update to refg
http://git-wip-us.apache.org/repos/asf/hbase/blob/1049025e/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/CodedOutputStream.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/CodedOutputStream.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/CodedOutputStream.java deleted file mode 100644 index 03871c9..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/CodedOutputStream.java +++ /dev/null @@ -1,3001 +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. - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -import static org.apache.hadoop.hbase.shaded.com.google.protobuf.WireFormat.FIXED_32_SIZE; -import static org.apache.hadoop.hbase.shaded.com.google.protobuf.WireFormat.FIXED_64_SIZE; -import static org.apache.hadoop.hbase.shaded.com.google.protobuf.WireFormat.MAX_VARINT_SIZE; -import static java.lang.Math.max; - -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Utf8.UnpairedSurrogateException; -import java.io.IOException; -import java.io.OutputStream; -import java.nio.BufferOverflowException; -import java.nio.ByteBuffer; -import java.nio.ByteOrder; -import java.util.logging.Level; -import java.util.logging.Logger; - -/** - * Encodes and writes protocol message fields. - * - * This class contains two kinds of methods: methods that write specific - * protocol message constructs and field types (e.g. {@link #writeTag} and - * {@link #writeInt32}) and methods that write low-level values (e.g. - * {@link #writeRawVarint32} and {@link #writeRawBytes}). If you are - * writing encoded protocol messages, you should use the former methods, but if - * you are writing some other format of your own design, use the latter. - * - * This class is totally unsynchronized. - */ -public abstract class CodedOutputStream extends ByteOutput { - private static final Logger logger = Logger.getLogger(CodedOutputStream.class.getName()); - private static final boolean HAS_UNSAFE_ARRAY_OPERATIONS = UnsafeUtil.hasUnsafeArrayOperations(); - private static final long ARRAY_BASE_OFFSET = UnsafeUtil.getArrayBaseOffset(); - - /** - * @deprecated Use {@link #computeFixed32SizeNoTag(int)} instead. - */ - @Deprecated - public static final int LITTLE_ENDIAN_32_SIZE = FIXED_32_SIZE; - - /** - * The buffer size used in {@link #newInstance(OutputStream)}. - */ - public static final int DEFAULT_BUFFER_SIZE = 4096; - - /** - * Returns the buffer size to efficiently write dataLength bytes to this - * CodedOutputStream. Used by AbstractMessageLite. - * - * @return the buffer size to efficiently write dataLength bytes to this - * CodedOutputStream. - */ - static int computePreferredBufferSize(int dataLength) { -if (dataLength > DEFAULT_BUFFER_SIZE) { - return DEFAULT_BUFFER_SIZE; -} -return dataLength; - } - - /** - * Create a new {@code CodedOutputStream} wrapping the given {@code OutputStream}. - * - * NOTE: The provided {@link OutputStream} MUST NOT retain access or - * modify the provided byte arrays. Doing so may result in corrupted data, which would be - * difficult to debug.
[45/51] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update to refg
http://git-wip-us.apache.org/repos/asf/hbase/blob/1049025e/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/coprocessor/protobuf/generated/IncrementCounterProcessorTestProtos.java -- diff --git a/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/coprocessor/protobuf/generated/IncrementCounterProcessorTestProtos.java b/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/coprocessor/protobuf/generated/IncrementCounterProcessorTestProtos.java deleted file mode 100644 index 7ba5b8e..000 --- a/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/coprocessor/protobuf/generated/IncrementCounterProcessorTestProtos.java +++ /dev/null @@ -1,4059 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: IncrementCounterProcessor.proto - -package org.apache.hadoop.hbase.coprocessor.protobuf.generated; - -public final class IncrementCounterProcessorTestProtos { - private IncrementCounterProcessorTestProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public interface IncCounterProcessorRequestOrBuilder - extends com.google.protobuf.MessageOrBuilder { - -// required bytes row = 1; -/** - * required bytes row = 1; - */ -boolean hasRow(); -/** - * required bytes row = 1; - */ -com.google.protobuf.ByteString getRow(); - -// required int32 counter = 2; -/** - * required int32 counter = 2; - */ -boolean hasCounter(); -/** - * required int32 counter = 2; - */ -int getCounter(); - } - /** - * Protobuf type {@code IncCounterProcessorRequest} - */ - public static final class IncCounterProcessorRequest extends - com.google.protobuf.GeneratedMessage - implements IncCounterProcessorRequestOrBuilder { -// Use IncCounterProcessorRequest.newBuilder() to construct. -private IncCounterProcessorRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); -} -private IncCounterProcessorRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - -private static final IncCounterProcessorRequest defaultInstance; -public static IncCounterProcessorRequest getDefaultInstance() { - return defaultInstance; -} - -public IncCounterProcessorRequest getDefaultInstanceForType() { - return defaultInstance; -} - -private final com.google.protobuf.UnknownFieldSet unknownFields; -@java.lang.Override -public final com.google.protobuf.UnknownFieldSet -getUnknownFields() { - return this.unknownFields; -} -private IncCounterProcessorRequest( -com.google.protobuf.CodedInputStream input, -com.google.protobuf.ExtensionRegistryLite extensionRegistry) -throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.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; -} -case 10: { - bitField0_ |= 0x0001; - row_ = input.readBytes(); - break; -} -case 16: { - bitField0_ |= 0x0002; - counter_ = input.readInt32(); - break; -} - } -} - } catch (com.google.protobuf.InvalidProtocolBufferException e) { -throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { -throw new com.google.protobuf.InvalidProtocolBufferException( -e.getMessage()).setUnfinishedMessage(this); - } finally { -this.unknownFields = unknownFields.build(); -makeExtensionsImmutable(); - } -} -public static final com.google.protobuf.Descriptors.Descriptor -getDescriptor() { - return org.apache.hadoop.hbase.coprocessor.protobuf.generated.IncrementCounterProcessorTestProtos.internal_static_IncCounterProcessorRequest_descriptor; -} - -protected com.google.protobuf.GeneratedMessage.FieldAccessorTable -internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.coprocessor.protobuf.generated.IncrementCounterProcessorTestProtos.internal_static_IncCounterProcessorRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( -
[15/51] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update to refg
http://git-wip-us.apache.org/repos/asf/hbase/blob/1049025e/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/StringValue.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/StringValue.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/StringValue.java deleted file mode 100644 index f3e2ef6..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/StringValue.java +++ /dev/null @@ -1,532 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/wrappers.proto - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -/** - * - * Wrapper message for `string`. - * The JSON representation for `StringValue` is JSON string. - * - * - * Protobuf type {@code google.protobuf.StringValue} - */ -public final class StringValue extends -org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3 implements -// @@protoc_insertion_point(message_implements:google.protobuf.StringValue) -StringValueOrBuilder { - // Use StringValue.newBuilder() to construct. - private StringValue(org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) { -super(builder); - } - private StringValue() { -value_ = ""; - } - - @java.lang.Override - public final org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet - getUnknownFields() { -return org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private StringValue( - org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input, - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException { -this(); -int mutable_bitField0_ = 0; -try { - boolean done = false; - while (!done) { -int tag = input.readTag(); -switch (tag) { - case 0: -done = true; -break; - default: { -if (!input.skipField(tag)) { - done = true; -} -break; - } - case 10: { -java.lang.String s = input.readStringRequireUtf8(); - -value_ = s; -break; - } -} - } -} catch (org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); -} catch (java.io.IOException e) { - throw new org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); -} finally { - makeExtensionsImmutable(); -} - } - public static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.Descriptor - getDescriptor() { -return org.apache.hadoop.hbase.shaded.com.google.protobuf.WrappersProto.internal_static_google_protobuf_StringValue_descriptor; - } - - protected org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { -return org.apache.hadoop.hbase.shaded.com.google.protobuf.WrappersProto.internal_static_google_protobuf_StringValue_fieldAccessorTable -.ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.shaded.com.google.protobuf.StringValue.class, org.apache.hadoop.hbase.shaded.com.google.protobuf.StringValue.Builder.class); - } - - public static final int VALUE_FIELD_NUMBER = 1; - private volatile java.lang.Object value_; - /** - * - * The string value. - * - * - * string value = 1; - */ - public java.lang.String getValue() { -java.lang.Object ref = value_; -if (ref instanceof java.lang.String) { - return (java.lang.String) ref; -} else { - org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString bs = - (org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; -} - } - /** - * - * The string value. - * - * - * string value = 1; - */ - public org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString - getValueBytes() { -java.lang.Object ref = value_; -if (ref instanceof java.lang.String) { - org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString b = - org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; -} else { - return (org.apache.hadoop.hbase.shaded.com.google.protobuf.ByteString) ref; -} - } - - private byte memoizedIsInitialized = -1; - public final boolean
[09/51] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update to refg
http://git-wip-us.apache.org/repos/asf/hbase/blob/1049025e/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Utf8.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Utf8.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Utf8.java deleted file mode 100644 index b84efd6..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Utf8.java +++ /dev/null @@ -1,1764 +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. - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -import static org.apache.hadoop.hbase.shaded.com.google.protobuf.UnsafeUtil.addressOffset; -import static org.apache.hadoop.hbase.shaded.com.google.protobuf.UnsafeUtil.getArrayBaseOffset; -import static org.apache.hadoop.hbase.shaded.com.google.protobuf.UnsafeUtil.hasUnsafeArrayOperations; -import static org.apache.hadoop.hbase.shaded.com.google.protobuf.UnsafeUtil.hasUnsafeByteBufferOperations; -import static java.lang.Character.MAX_SURROGATE; -import static java.lang.Character.MIN_SURROGATE; -import static java.lang.Character.isSurrogatePair; -import static java.lang.Character.toCodePoint; - -import java.nio.ByteBuffer; - -/** - * A set of low-level, high-performance static utility methods related - * to the UTF-8 character encoding. This class has no dependencies - * outside of the core JDK libraries. - * - * There are several variants of UTF-8. The one implemented by - * this class is the restricted definition of UTF-8 introduced in - * Unicode 3.1, which mandates the rejection of "overlong" byte - * sequences as well as rejection of 3-byte surrogate codepoint byte - * sequences. Note that the UTF-8 decoder included in Oracle's JDK - * has been modified to also reject "overlong" byte sequences, but (as - * of 2011) still accepts 3-byte surrogate codepoint byte sequences. - * - * The byte sequences considered valid by this class are exactly - * those that can be roundtrip converted to Strings and back to bytes - * using the UTF-8 charset, without loss: {@code - * Arrays.equals(bytes, new String(bytes, Internal.UTF_8).getBytes(Internal.UTF_8)) - * } - * - * See the Unicode Standard, - * Table 3-6. UTF-8 Bit Distribution, - * Table 3-7. Well Formed UTF-8 Byte Sequences. - * - * This class supports decoding of partial byte sequences, so that the - * bytes in a complete UTF-8 byte sequences can be stored in multiple - * segments. Methods typically return {@link #MALFORMED} if the partial - * byte sequence is definitely not well-formed, {@link #COMPLETE} if it is - * well-formed in the absence of additional input, or if the byte sequence - * apparently terminated in the middle of a character, an opaque integer - * "state" value containing enough information to decode the character when - * passed to a subsequent invocation of a partial decoding method. - * - * @author marti...@google.com (Martin Buchholz) - */ -// TODO(nathanmittler): Copy changes in this class back to Guava -final class Utf8 { - - /** - * UTF-8 is a runtime hot spot so we attempt to provide heavily optimized implementations - * depending on what is available on the platform. The processor is
[23/51] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update to refg
http://git-wip-us.apache.org/repos/asf/hbase/blob/1049025e/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Int32Value.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Int32Value.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Int32Value.java deleted file mode 100644 index 476b086..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Int32Value.java +++ /dev/null @@ -1,451 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/wrappers.proto - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -/** - * - * Wrapper message for `int32`. - * The JSON representation for `Int32Value` is JSON number. - * - * - * Protobuf type {@code google.protobuf.Int32Value} - */ -public final class Int32Value extends -org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3 implements -// @@protoc_insertion_point(message_implements:google.protobuf.Int32Value) -Int32ValueOrBuilder { - // Use Int32Value.newBuilder() to construct. - private Int32Value(org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) { -super(builder); - } - private Int32Value() { -value_ = 0; - } - - @java.lang.Override - public final org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet - getUnknownFields() { -return org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private Int32Value( - org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input, - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException { -this(); -int mutable_bitField0_ = 0; -try { - boolean done = false; - while (!done) { -int tag = input.readTag(); -switch (tag) { - case 0: -done = true; -break; - default: { -if (!input.skipField(tag)) { - done = true; -} -break; - } - case 8: { - -value_ = input.readInt32(); -break; - } -} - } -} catch (org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); -} catch (java.io.IOException e) { - throw new org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); -} finally { - makeExtensionsImmutable(); -} - } - public static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.Descriptor - getDescriptor() { -return org.apache.hadoop.hbase.shaded.com.google.protobuf.WrappersProto.internal_static_google_protobuf_Int32Value_descriptor; - } - - protected org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { -return org.apache.hadoop.hbase.shaded.com.google.protobuf.WrappersProto.internal_static_google_protobuf_Int32Value_fieldAccessorTable -.ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.shaded.com.google.protobuf.Int32Value.class, org.apache.hadoop.hbase.shaded.com.google.protobuf.Int32Value.Builder.class); - } - - public static final int VALUE_FIELD_NUMBER = 1; - private int value_; - /** - * - * The int32 value. - * - * - * int32 value = 1; - */ - public int getValue() { -return value_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { -byte isInitialized = memoizedIsInitialized; -if (isInitialized == 1) return true; -if (isInitialized == 0) return false; - -memoizedIsInitialized = 1; -return true; - } - - public void writeTo(org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { -if (value_ != 0) { - output.writeInt32(1, value_); -} - } - - public int getSerializedSize() { -int size = memoizedSize; -if (size != -1) return size; - -size = 0; -if (value_ != 0) { - size += org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedOutputStream -.computeInt32Size(1, value_); -} -memoizedSize = size; -return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { -if (obj == this) { - return true; -} -if (!(obj instanceof org.apache.hadoop.hbase.shaded.com.google.protobuf.Int32Value)) { - return super.equals(obj); -} -
[31/51] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update to refg
http://git-wip-us.apache.org/repos/asf/hbase/blob/1049025e/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Empty.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Empty.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Empty.java deleted file mode 100644 index 61f1574..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Empty.java +++ /dev/null @@ -1,386 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/empty.proto - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -/** - * - * A generic empty message that you can re-use to avoid defining duplicated - * empty messages in your APIs. A typical example is to use it as the request - * or the response type of an API method. For instance: - * service Foo { - * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); - * } - * The JSON representation for `Empty` is empty JSON object `{}`. - * - * - * Protobuf type {@code google.protobuf.Empty} - */ -public final class Empty extends -org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3 implements -// @@protoc_insertion_point(message_implements:google.protobuf.Empty) -EmptyOrBuilder { - // Use Empty.newBuilder() to construct. - private Empty(org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) { -super(builder); - } - private Empty() { - } - - @java.lang.Override - public final org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet - getUnknownFields() { -return org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private Empty( - org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input, - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException { -this(); -try { - boolean done = false; - while (!done) { -int tag = input.readTag(); -switch (tag) { - case 0: -done = true; -break; - default: { -if (!input.skipField(tag)) { - done = true; -} -break; - } -} - } -} catch (org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); -} catch (java.io.IOException e) { - throw new org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); -} finally { - makeExtensionsImmutable(); -} - } - public static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.Descriptor - getDescriptor() { -return org.apache.hadoop.hbase.shaded.com.google.protobuf.EmptyProto.internal_static_google_protobuf_Empty_descriptor; - } - - protected org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { -return org.apache.hadoop.hbase.shaded.com.google.protobuf.EmptyProto.internal_static_google_protobuf_Empty_fieldAccessorTable -.ensureFieldAccessorsInitialized( -org.apache.hadoop.hbase.shaded.com.google.protobuf.Empty.class, org.apache.hadoop.hbase.shaded.com.google.protobuf.Empty.Builder.class); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { -byte isInitialized = memoizedIsInitialized; -if (isInitialized == 1) return true; -if (isInitialized == 0) return false; - -memoizedIsInitialized = 1; -return true; - } - - public void writeTo(org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - } - - public int getSerializedSize() { -int size = memoizedSize; -if (size != -1) return size; - -size = 0; -memoizedSize = size; -return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { -if (obj == this) { - return true; -} -if (!(obj instanceof org.apache.hadoop.hbase.shaded.com.google.protobuf.Empty)) { - return super.equals(obj); -} -org.apache.hadoop.hbase.shaded.com.google.protobuf.Empty other = (org.apache.hadoop.hbase.shaded.com.google.protobuf.Empty) obj; - -boolean result = true; -return result; - } - - @java.lang.Override - public int hashCode() { -if (memoizedHashCode != 0) { - return memoizedHashCode; -} -int hash = 41; -hash = (19 * hash) +
[24/51] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update to refg
http://git-wip-us.apache.org/repos/asf/hbase/blob/1049025e/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/GeneratedMessageV3.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/GeneratedMessageV3.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/GeneratedMessageV3.java deleted file mode 100644 index cc815fc..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/GeneratedMessageV3.java +++ /dev/null @@ -1,2838 +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. - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.Descriptor; -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.EnumDescriptor; -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.EnumValueDescriptor; -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.FieldDescriptor; -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.FileDescriptor; -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.OneofDescriptor; -// In opensource protobuf, we have versioned this GeneratedMessageV3 class to GeneratedMessageV3V3 and -// in the future may have GeneratedMessageV3V4 etc. This allows us to change some aspects of this -// class without breaking binary compatibility with old generated code that still subclasses -// the old GeneratedMessageV3 class. To allow these different GeneratedMessageV3V? classes to -// interoperate (e.g., a GeneratedMessageV3V3 object has a message extension field whose class -// type is GeneratedMessageV3V4), these classes still share a common parent class AbstarctMessage -// and are using the same GeneratedMessage.GeneratedExtension class for extension definitions. -// Since this class becomes GeneratedMessageV3V? in opensource, we have to add an import here -// to be able to use GeneratedMessage.GeneratedExtension. The GeneratedExtension definition in -// this file is also excluded from opensource to avoid conflict. -import org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessage.GeneratedExtension; - -import java.io.IOException; -import java.io.InputStream; -import java.io.ObjectStreamException; -import java.io.Serializable; -import java.lang.reflect.InvocationTargetException; -import java.lang.reflect.Method; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collections; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.TreeMap; - -/** - * All generated protocol message classes extend this class. This class - * implements most of the Message and Builder interfaces using Java reflection. - * Users can ignore this class and pretend that generated messages implement - * the Message interface directly. - * - * @author ken...@google.com Kenton Varda - */ -public abstract class GeneratedMessageV3 extends AbstractMessage -implements Serializable { - private static final long serialVersionUID = 1L; - - /** - * For testing. Allows a test to disable the optimization that avoids using - * field
[46/51] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update to refg
http://git-wip-us.apache.org/repos/asf/hbase/blob/1049025e/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/coprocessor/protobuf/generated/DummyRegionServerEndpointProtos.java -- diff --git a/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/coprocessor/protobuf/generated/DummyRegionServerEndpointProtos.java b/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/coprocessor/protobuf/generated/DummyRegionServerEndpointProtos.java deleted file mode 100644 index a011b30..000 --- a/hbase-endpoint/src/main/java/org/apache/hadoop/hbase/coprocessor/protobuf/generated/DummyRegionServerEndpointProtos.java +++ /dev/null @@ -1,1225 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: DummyRegionServerEndpoint.proto - -package org.apache.hadoop.hbase.coprocessor.protobuf.generated; - -public final class DummyRegionServerEndpointProtos { - private DummyRegionServerEndpointProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public interface DummyRequestOrBuilder - extends com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code hbase.test.pb.DummyRequest} - */ - public static final class DummyRequest extends - com.google.protobuf.GeneratedMessage - implements DummyRequestOrBuilder { -// Use DummyRequest.newBuilder() to construct. -private DummyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); -} -private DummyRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - -private static final DummyRequest defaultInstance; -public static DummyRequest getDefaultInstance() { - return defaultInstance; -} - -public DummyRequest getDefaultInstanceForType() { - return defaultInstance; -} - -private final com.google.protobuf.UnknownFieldSet unknownFields; -@java.lang.Override -public final com.google.protobuf.UnknownFieldSet -getUnknownFields() { - return this.unknownFields; -} -private DummyRequest( -com.google.protobuf.CodedInputStream input, -com.google.protobuf.ExtensionRegistryLite extensionRegistry) -throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - com.google.protobuf.UnknownFieldSet.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.getMessage()).setUnfinishedMessage(this); - } finally { -this.unknownFields = unknownFields.build(); -makeExtensionsImmutable(); - } -} -public static final com.google.protobuf.Descriptors.Descriptor -getDescriptor() { - return org.apache.hadoop.hbase.coprocessor.protobuf.generated.DummyRegionServerEndpointProtos.internal_static_hbase_test_pb_DummyRequest_descriptor; -} - -protected com.google.protobuf.GeneratedMessage.FieldAccessorTable -internalGetFieldAccessorTable() { - return org.apache.hadoop.hbase.coprocessor.protobuf.generated.DummyRegionServerEndpointProtos.internal_static_hbase_test_pb_DummyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.hadoop.hbase.coprocessor.protobuf.generated.DummyRegionServerEndpointProtos.DummyRequest.class, org.apache.hadoop.hbase.coprocessor.protobuf.generated.DummyRegionServerEndpointProtos.DummyRequest.Builder.class); -} - -public static com.google.protobuf.Parser PARSER = -new com.google.protobuf.AbstractParser() { - public DummyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { -return new DummyRequest(input, extensionRegistry); - } -}; - -@java.lang.Override -public com.google.protobuf.Parser getParserForType() { - return PARSER; -} - -private void initFields() { -} -private byte memoizedIsInitialized = -1; -public final boolean isInitialized() { - byte isInitialized
[32/51] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update to refg
http://git-wip-us.apache.org/repos/asf/hbase/blob/1049025e/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/DoubleArrayList.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/DoubleArrayList.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/DoubleArrayList.java deleted file mode 100644 index 88effb2..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/DoubleArrayList.java +++ /dev/null @@ -1,273 +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. - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -import org.apache.hadoop.hbase.shaded.com.google.protobuf.Internal.DoubleList; - -import java.util.Arrays; -import java.util.Collection; -import java.util.RandomAccess; - -/** - * An implementation of {@link DoubleList} on top of a primitive array. - * - * @author dw...@google.com (Daniel Weis) - */ -final class DoubleArrayList -extends AbstractProtobufList -implements DoubleList, RandomAccess { - - private static final DoubleArrayList EMPTY_LIST = new DoubleArrayList(); - static { -EMPTY_LIST.makeImmutable(); - } - - public static DoubleArrayList emptyList() { -return EMPTY_LIST; - } - - /** - * The backing store for the list. - */ - private double[] array; - - /** - * The size of the list distinct from the length of the array. That is, it is the number of - * elements set in the list. - */ - private int size; - - /** - * Constructs a new mutable {@code DoubleArrayList} with default capacity. - */ - DoubleArrayList() { -this(new double[DEFAULT_CAPACITY], 0); - } - - /** - * Constructs a new mutable {@code DoubleArrayList} - * containing the same elements as {@code other}. - */ - private DoubleArrayList(double[] other, int size) { -array = other; -this.size = size; - } - - @Override - public boolean equals(Object o) { -if (this == o) { - return true; -} -if (!(o instanceof DoubleArrayList)) { - return super.equals(o); -} -DoubleArrayList other = (DoubleArrayList) o; -if (size != other.size) { - return false; -} - -final double[] arr = other.array; -for (int i = 0; i < size; i++) { - if (array[i] != arr[i]) { -return false; - } -} - -return true; - } - - @Override - public int hashCode() { -int result = 1; -for (int i = 0; i < size; i++) { - long bits = Double.doubleToLongBits(array[i]); - result = (31 * result) + Internal.hashLong(bits); -} -return result; - } - - @Override - public DoubleList mutableCopyWithCapacity(int capacity) { -if (capacity < size) { - throw new IllegalArgumentException(); -} -return new DoubleArrayList(Arrays.copyOf(array, capacity), size); - } - - @Override - public Double get(int index) { -return getDouble(index); - } - - @Override - public double getDouble(int index) { -ensureIndexInRange(index); -return array[index]; - } - - @Override - public int size() { -return size; - } - - @Override - public Double set(int index, Double element) { -return setDouble(index, element); - } - -
[19/51] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update to refg
http://git-wip-us.apache.org/repos/asf/hbase/blob/1049025e/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Method.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Method.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Method.java deleted file mode 100644 index 32e8b35..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Method.java +++ /dev/null @@ -1,1541 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/api.proto - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -/** - * - * Method represents a method of an api. - * - * - * Protobuf type {@code google.protobuf.Method} - */ -public final class Method extends -org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3 implements -// @@protoc_insertion_point(message_implements:google.protobuf.Method) -MethodOrBuilder { - // Use Method.newBuilder() to construct. - private Method(org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) { -super(builder); - } - private Method() { -name_ = ""; -requestTypeUrl_ = ""; -requestStreaming_ = false; -responseTypeUrl_ = ""; -responseStreaming_ = false; -options_ = java.util.Collections.emptyList(); -syntax_ = 0; - } - - @java.lang.Override - public final org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet - getUnknownFields() { -return org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private Method( - org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input, - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException { -this(); -int mutable_bitField0_ = 0; -try { - boolean done = false; - while (!done) { -int tag = input.readTag(); -switch (tag) { - case 0: -done = true; -break; - default: { -if (!input.skipField(tag)) { - done = true; -} -break; - } - case 10: { -java.lang.String s = input.readStringRequireUtf8(); - -name_ = s; -break; - } - case 18: { -java.lang.String s = input.readStringRequireUtf8(); - -requestTypeUrl_ = s; -break; - } - case 24: { - -requestStreaming_ = input.readBool(); -break; - } - case 34: { -java.lang.String s = input.readStringRequireUtf8(); - -responseTypeUrl_ = s; -break; - } - case 40: { - -responseStreaming_ = input.readBool(); -break; - } - case 50: { -if (!((mutable_bitField0_ & 0x0020) == 0x0020)) { - options_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x0020; -} -options_.add( - input.readMessage(org.apache.hadoop.hbase.shaded.com.google.protobuf.Option.parser(), extensionRegistry)); -break; - } - case 56: { -int rawValue = input.readEnum(); - -syntax_ = rawValue; -break; - } -} - } -} catch (org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); -} catch (java.io.IOException e) { - throw new org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); -} finally { - if (((mutable_bitField0_ & 0x0020) == 0x0020)) { -options_ = java.util.Collections.unmodifiableList(options_); - } - makeExtensionsImmutable(); -} - } - public static final org.apache.hadoop.hbase.shaded.com.google.protobuf.Descriptors.Descriptor - getDescriptor() { -return org.apache.hadoop.hbase.shaded.com.google.protobuf.ApiProto.internal_static_google_protobuf_Method_descriptor; - } - - protected org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { -return org.apache.hadoop.hbase.shaded.com.google.protobuf.ApiProto.internal_static_google_protobuf_Method_fieldAccessorTable -.ensureFieldAccessorsInitialized( -org.apache.hadoop.hbase.shaded.com.google.protobuf.Method.class, org.apache.hadoop.hbase.shaded.com.google.protobuf.Method.Builder.class); - } - - private int bitField0_; - public
[12/51] [partial] hbase git commit: HBASE-17056 Remove checked in PB generated files Selective add of dependency on hbase-thirdparty jars. Update to READMEs on how protobuf is done (and update to refg
http://git-wip-us.apache.org/repos/asf/hbase/blob/1049025e/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Type.java -- diff --git a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Type.java b/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Type.java deleted file mode 100644 index f46f351..000 --- a/hbase-protocol-shaded/src/main/java/org/apache/hadoop/hbase/shaded/com/google/protobuf/Type.java +++ /dev/null @@ -1,1967 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/type.proto - -package org.apache.hadoop.hbase.shaded.com.google.protobuf; - -/** - * - * A protocol buffer message type. - * - * - * Protobuf type {@code google.protobuf.Type} - */ -public final class Type extends -org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3 implements -// @@protoc_insertion_point(message_implements:google.protobuf.Type) -TypeOrBuilder { - // Use Type.newBuilder() to construct. - private Type(org.apache.hadoop.hbase.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) { -super(builder); - } - private Type() { -name_ = ""; -fields_ = java.util.Collections.emptyList(); -oneofs_ = org.apache.hadoop.hbase.shaded.com.google.protobuf.LazyStringArrayList.EMPTY; -options_ = java.util.Collections.emptyList(); -syntax_ = 0; - } - - @java.lang.Override - public final org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet - getUnknownFields() { -return org.apache.hadoop.hbase.shaded.com.google.protobuf.UnknownFieldSet.getDefaultInstance(); - } - private Type( - org.apache.hadoop.hbase.shaded.com.google.protobuf.CodedInputStream input, - org.apache.hadoop.hbase.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException { -this(); -int mutable_bitField0_ = 0; -try { - boolean done = false; - while (!done) { -int tag = input.readTag(); -switch (tag) { - case 0: -done = true; -break; - default: { -if (!input.skipField(tag)) { - done = true; -} -break; - } - case 10: { -java.lang.String s = input.readStringRequireUtf8(); - -name_ = s; -break; - } - case 18: { -if (!((mutable_bitField0_ & 0x0002) == 0x0002)) { - fields_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x0002; -} -fields_.add( - input.readMessage(org.apache.hadoop.hbase.shaded.com.google.protobuf.Field.parser(), extensionRegistry)); -break; - } - case 26: { -java.lang.String s = input.readStringRequireUtf8(); -if (!((mutable_bitField0_ & 0x0004) == 0x0004)) { - oneofs_ = new org.apache.hadoop.hbase.shaded.com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x0004; -} -oneofs_.add(s); -break; - } - case 34: { -if (!((mutable_bitField0_ & 0x0008) == 0x0008)) { - options_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x0008; -} -options_.add( - input.readMessage(org.apache.hadoop.hbase.shaded.com.google.protobuf.Option.parser(), extensionRegistry)); -break; - } - case 42: { - org.apache.hadoop.hbase.shaded.com.google.protobuf.SourceContext.Builder subBuilder = null; -if (sourceContext_ != null) { - subBuilder = sourceContext_.toBuilder(); -} -sourceContext_ = input.readMessage(org.apache.hadoop.hbase.shaded.com.google.protobuf.SourceContext.parser(), extensionRegistry); -if (subBuilder != null) { - subBuilder.mergeFrom(sourceContext_); - sourceContext_ = subBuilder.buildPartial(); -} - -break; - } - case 48: { -int rawValue = input.readEnum(); - -syntax_ = rawValue; -break; - } -} - } -} catch (org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); -} catch (java.io.IOException e) { - throw new org.apache.hadoop.hbase.shaded.com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); -} finally { - if (((mutable_bitField0_ & 0x0002) == 0x0002)) { -fields_ =