diff --git a/README.md b/README.md index c21d4680..ad173419 100644 --- a/README.md +++ b/README.md @@ -2,56 +2,13 @@ A plugin that integrates protocol buffers compiler (protoc) into Maven lifecycle. -The latest plugin documentation is available here: -http://sergei-ivanov.github.com/maven-protoc-plugin/ +**Please be aware that any development in this repository has been discontinued.** -The plugin is not yet available through Maven Central, -for the time being it can be fetched from Bintray: +The repository has been relocated here: +https://github.com/xolstice/protobuf-maven-plugin -```xml - - - - never - - - false - - central - Central Repository - https://repo.maven.apache.org/maven2 - - - protoc-plugin - https://dl.bintray.com/sergei-ivanov/maven/ - - -``` +The new plugin web site is located here: +https://www.xolstice.org/protobuf-maven-plugin/ -**NOTE: it is important to include Maven central as the primary plugin repository, -because any custom repository configuration overrides the built-in defaults.** - -Alternatively, if Bintray is blocked by firewall rules in your organisation, -try the following repository, hosted on GitHub. Please be aware that GitHub -does not support directory listing, therefore you won't be able to browse -the files, but Maven or Maven repo managers will still be able to fetch the artifacts. - -```xml - - - - never - - - false - - central - Central Repository - https://repo.maven.apache.org/maven2 - - - protoc-plugin - http://sergei-ivanov.github.com/maven-protoc-plugin/repo/releases/ - - -``` +The new versions of the plugin are available through Maven Central, +the old versions can be fetched from [Bintray](https://bintray.com/sergei-ivanov/maven/maven-protoc-plugin/). diff --git a/pom.xml b/pom.xml index e88ef06e..b3db2e0d 100644 --- a/pom.xml +++ b/pom.xml @@ -4,80 +4,15 @@ com.google.protobuf.tools maven-protoc-plugin - maven-plugin + pom Maven Protoc Plugin 0.5.0-SNAPSHOT https://github.com/sergei-ivanov/maven-protoc-plugin UTF-8 - - - 1.6 - - ${java.sdk.version} - ${java.sdk.version} - ${java.sdk.version} - - 3.0 - 1.6 - 3.0.22 - 3.4 - - ${mavenVersion} - - - - - gak - Gregory Kick - Google Inc. - http://www.google.com - - - dtrott - David Trott - -8 - - - masterzen - Brice Figureau - 1 - - - sergei-ivanov - Sergei Ivanov - 0 - - - rwicke - Robert Wicke - 0 - - - - - - Paul Nyheim (pnyheim) - 1 - - - B. K. Oxley (binkley) - -6 - - - abatalev - - - Marek Kedzierski (kedzie) - - - Alexander Torstling (atorstling) - - - https://github.com/sergei-ivanov/maven-protoc-plugin scm:git:git://github.com/sergei-ivanov/maven-protoc-plugin.git @@ -86,6 +21,11 @@ + + com.google.protobuf.tools + maven-protoc-plugin + + https://bintray.com/sergei-ivanov/maven/maven-protoc-plugin/view - verify - - enforce - - - - - - - - - false - - - - enforce-latest-dependency-versions - - verify - - enforce - - - - - - - - - false - - - - - - - org.apache.maven.plugins - maven-toolchains-plugin - true - - - default-toolchain - validate - - toolchain - - - - - - - [${java.sdk.version},) - - - - - - - org.apache.maven.plugins - maven-plugin-plugin - - - default-descriptor - process-classes - - descriptor - - - protoc - - - - generate-helpmojo - - helpmojo - - - com.google.protobuf.maven - - - - - - - org.codehaus.plexus - plexus-component-metadata - - - - generate-metadata - generate-test-metadata - - - - - - - org.apache.maven.plugins - maven-compiler-plugin - - true - ${java.compiler.compilerVersion} - ${java.compiler.source} - ${java.compiler.target} - true - true - -Xlint:all - -Xlint:all - - - org.apache.maven.plugins maven-release-plugin @@ -374,47 +84,16 @@ false release - - -P run-its true - - org.codehaus.mojo - versions-maven-plugin - - - verify - - display-dependency-updates - display-plugin-updates - display-property-updates - - - - - - - org.apache.maven.plugins - maven-dependency-plugin - - - - display-dependency-tree - verify - - tree - - - - - org.apache.maven.plugins maven-site-plugin + false true @@ -449,61 +128,10 @@ maven-project-info-reports-plugin 2.8 - false - false + true - - org.apache.maven.plugins - maven-plugin-plugin - 3.4 - - - - org.apache.maven.plugins - maven-javadoc-plugin - 2.10.3 - - 128m - 512m - true - package - - - - - - - org.apache.maven.plugins - maven-surefire-report-plugin - 2.18.1 - - false - - - - - org.codehaus.mojo - versions-maven-plugin - 2.2 - - - - dependency-updates-report - plugin-updates-report - property-updates-report - - - - - org.apache.maven.plugins maven-changes-plugin @@ -521,61 +149,6 @@ - - - run-its - - - - - org.apache.maven.plugins - maven-invoker-plugin - 1.10 - - true - src/it - - */pom.xml - - - setup*/pom.xml - - verify - ${project.build.directory}/local-repo - src/it/settings.xml - ${project.build.directory}/it - - fromExecProps - - - - - integration-test - - install - run - - - - - - - - - - - - org.apache.maven.plugins - maven-invoker-plugin - 1.10 - - - - - - junit - junit - 4.12 - test - - - org.apache.maven.plugin-testing - maven-plugin-testing-harness - 3.3.0 - test - - - org.codehaus.plexus - plexus-utils - - - junit - junit - - - - diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 8ddcb57e..e21f302a 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -7,6 +7,12 @@ + + + Plugin relocated to https://www.xolstice.org/protobuf-maven-plugin/ + + + Added support for including source info in descriptor sets. diff --git a/src/it/TEST-1/invoker.properties b/src/it/TEST-1/invoker.properties deleted file mode 100644 index 74c104e6..00000000 --- a/src/it/TEST-1/invoker.properties +++ /dev/null @@ -1,8 +0,0 @@ -# An optional description for this build job to be included in the build reports. -invoker.description = \ - Verifies that protoc location is picked up from 'protobuf' tool chain, \ - and proto compilation completes successfully. - -# A comma or space separated list of goals/phases to execute, may -# specify an empty list to execute the default goal of the IT project -invoker.goals = clean compile diff --git a/src/it/TEST-1/pom.xml b/src/it/TEST-1/pom.xml deleted file mode 100644 index 63295c13..00000000 --- a/src/it/TEST-1/pom.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - 4.0.0 - - - com.google.protobuf.tools.maven-protoc-plugin.its - it-parent - 0.0.1-SNAPSHOT - - - TEST-1 - 0.0.1-SNAPSHOT - - Integration Test 1 - - - - - org.apache.maven.plugins - maven-toolchains-plugin - - - protobuf-toolchain - validate - - toolchain - - - - - ${protobufVersion} - - - - - - - - com.google.protobuf.tools - maven-protoc-plugin - @project.version@ - true - - - - compile - - - - - - - diff --git a/src/it/TEST-1/src/main/proto/test.proto b/src/it/TEST-1/src/main/proto/test.proto deleted file mode 100644 index 8005406a..00000000 --- a/src/it/TEST-1/src/main/proto/test.proto +++ /dev/null @@ -1,18 +0,0 @@ -option java_package = "test"; -option java_outer_classname = "TestProtos"; -option optimize_for = SPEED; - -message TestMessage { - message NestedMessage { - optional int32 bb = 1; - } - - enum NestedEnum { - FOO = 1; - BAR = 2; - BAZ = 3; - } - - // Singular - optional int32 optional_int32 = 1; -} diff --git a/src/it/TEST-1/verify.groovy b/src/it/TEST-1/verify.groovy deleted file mode 100644 index 17702ee9..00000000 --- a/src/it/TEST-1/verify.groovy +++ /dev/null @@ -1,14 +0,0 @@ -outputDirectory = new File(basedir, 'target/generated-sources/protobuf/java'); -assert outputDirectory.exists(); -assert outputDirectory.isDirectory(); - -generatedJavaFile = new File(outputDirectory, 'test/TestProtos.java'); -assert generatedJavaFile.exists(); -assert generatedJavaFile.isFile(); - -content = generatedJavaFile.text; -assert content.contains('package test'); -assert content.contains('class Test'); -assert content.contains('class TestMessage'); - -return true; diff --git a/src/it/TEST-10/invoker.properties b/src/it/TEST-10/invoker.properties deleted file mode 100644 index 39ef968e..00000000 --- a/src/it/TEST-10/invoker.properties +++ /dev/null @@ -1,6 +0,0 @@ -# An optional description for this build job to be included in the build reports. -invoker.description = \ - Verifies that protobuf definitions can be imported from other modules in the reactor. \ - In this test, imports are scoped to the default package. - -invoker.goals = clean compile diff --git a/src/it/TEST-10/pom.xml b/src/it/TEST-10/pom.xml deleted file mode 100644 index 77f7ff52..00000000 --- a/src/it/TEST-10/pom.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - 4.0.0 - - - com.google.protobuf.tools.maven-protoc-plugin.its - it-parent - 0.0.1-SNAPSHOT - - - TEST-10-parent - 0.0.1-SNAPSHOT - pom - - Integration Test 10 (Parent) - - - project1 - project2 - - - - - - org.apache.maven.plugins - maven-toolchains-plugin - - - protobuf-toolchain - validate - - toolchain - - - - - ${protobufVersion} - - - - - - - - com.google.protobuf.tools - maven-protoc-plugin - @project.version@ - true - - - - diff --git a/src/it/TEST-10/project1/pom.xml b/src/it/TEST-10/project1/pom.xml deleted file mode 100644 index cd1fdeaf..00000000 --- a/src/it/TEST-10/project1/pom.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - 4.0.0 - - - com.google.protobuf.tools.maven-protoc-plugin.its - TEST-10-parent - 0.0.1-SNAPSHOT - - - TEST-10-project1 - - Integration Test 10 (1) - - - - - com.google.protobuf.tools - maven-protoc-plugin - @project.version@ - - - - compile - - - - - - - diff --git a/src/it/TEST-10/project1/src/main/proto/test1.proto b/src/it/TEST-10/project1/src/main/proto/test1.proto deleted file mode 100644 index 1edbf06f..00000000 --- a/src/it/TEST-10/project1/src/main/proto/test1.proto +++ /dev/null @@ -1,6 +0,0 @@ -option java_package = "it.project1.messages"; -option java_outer_classname = "TestProtos"; -option optimize_for = SPEED; - -message TestMessage1 { -} diff --git a/src/it/TEST-10/project2/pom.xml b/src/it/TEST-10/project2/pom.xml deleted file mode 100644 index 51cdf8b5..00000000 --- a/src/it/TEST-10/project2/pom.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - 4.0.0 - - - com.google.protobuf.tools.maven-protoc-plugin.its - TEST-10-parent - 0.0.1-SNAPSHOT - - - TEST-10-project2 - - Integration Test 10 (2) - - - - - com.google.protobuf.tools - maven-protoc-plugin - @project.version@ - - - - compile - - - - - - - - - - ${project.groupId} - TEST-10-project1 - 0.0.1-SNAPSHOT - - - diff --git a/src/it/TEST-10/project2/src/main/proto/test2.proto b/src/it/TEST-10/project2/src/main/proto/test2.proto deleted file mode 100644 index e5f14b04..00000000 --- a/src/it/TEST-10/project2/src/main/proto/test2.proto +++ /dev/null @@ -1,9 +0,0 @@ -import "test1.proto"; - -option java_package = "it.project2.messages"; -option java_outer_classname = "TestProtos"; -option optimize_for = SPEED; - -message TestMessage2 { - optional TestMessage1 included = 1; -} diff --git a/src/it/TEST-10/verify.groovy b/src/it/TEST-10/verify.groovy deleted file mode 100644 index 56f2ca7b..00000000 --- a/src/it/TEST-10/verify.groovy +++ /dev/null @@ -1,27 +0,0 @@ -outputDirectory = new File(basedir, 'project1/target/generated-sources/protobuf/java'); -assert outputDirectory.exists(); -assert outputDirectory.isDirectory(); - -generatedJavaFile = new File(outputDirectory, 'it/project1/messages/TestProtos.java'); -assert generatedJavaFile.exists(); -assert generatedJavaFile.isFile(); - -content = generatedJavaFile.text; -assert content.contains('package it.project1.messages'); -assert content.contains('class TestProtos'); -assert content.contains('class TestMessage1'); - -outputDirectory = new File(basedir, 'project2/target/generated-sources/protobuf/java'); -assert outputDirectory.exists(); -assert outputDirectory.isDirectory(); - -generatedJavaFile = new File(outputDirectory, 'it/project2/messages/TestProtos.java'); -assert generatedJavaFile.exists(); -assert generatedJavaFile.isFile(); - -content = generatedJavaFile.text; -assert content.contains('package it.project2.messages'); -assert content.contains('class TestProtos'); -assert content.contains('class TestMessage2'); - -return true; diff --git a/src/it/TEST-11/invoker.properties b/src/it/TEST-11/invoker.properties deleted file mode 100644 index 21906c15..00000000 --- a/src/it/TEST-11/invoker.properties +++ /dev/null @@ -1,10 +0,0 @@ -# An optional description for this build job to be included in the build reports. -invoker.description = \ - Verifies that protobuf definitions can be imported from other modules in the reactor. \ - The dependency has type of 'test-jar' (test protobuf files import \ - test protobuf files from another module). \ - In this test, imports are scoped to packages. \ - We need to make sure that package structure for protobuf definitions \ - is preserved in packaged jars, and correctly restored for importing. - -invoker.goals = clean test-compile diff --git a/src/it/TEST-11/pom.xml b/src/it/TEST-11/pom.xml deleted file mode 100644 index bd39b49b..00000000 --- a/src/it/TEST-11/pom.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - 4.0.0 - - - com.google.protobuf.tools.maven-protoc-plugin.its - it-parent - 0.0.1-SNAPSHOT - - - TEST-11-parent - 0.0.1-SNAPSHOT - pom - - Integration Test 11 (Parent) - - - project1 - project2 - - - - - - org.apache.maven.plugins - maven-toolchains-plugin - - - protobuf-toolchain - validate - - toolchain - - - - - ${protobufVersion} - - - - - - - - com.google.protobuf.tools - maven-protoc-plugin - @project.version@ - true - - - - diff --git a/src/it/TEST-11/project1/pom.xml b/src/it/TEST-11/project1/pom.xml deleted file mode 100644 index 8e819568..00000000 --- a/src/it/TEST-11/project1/pom.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - 4.0.0 - - - com.google.protobuf.tools.maven-protoc-plugin.its - TEST-11-parent - 0.0.1-SNAPSHOT - - - TEST-11-project1 - - Integration Test 11 (1) - - - - - com.google.protobuf.tools - maven-protoc-plugin - @project.version@ - - - - test-compile - - - - - - org.apache.maven.plugins - maven-jar-plugin - - - - test-jar - - - - - - - diff --git a/src/it/TEST-11/project1/src/test/proto/it/project1/test1.proto b/src/it/TEST-11/project1/src/test/proto/it/project1/test1.proto deleted file mode 100644 index 55b6a115..00000000 --- a/src/it/TEST-11/project1/src/test/proto/it/project1/test1.proto +++ /dev/null @@ -1,8 +0,0 @@ -package it.project1; - -option java_package = "it.project1.messages"; -option java_outer_classname = "TestProtos"; -option optimize_for = SPEED; - -message TestMessage1 { -} diff --git a/src/it/TEST-11/project2/pom.xml b/src/it/TEST-11/project2/pom.xml deleted file mode 100644 index 31b37768..00000000 --- a/src/it/TEST-11/project2/pom.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - 4.0.0 - - - com.google.protobuf.tools.maven-protoc-plugin.its - TEST-11-parent - 0.0.1-SNAPSHOT - - - TEST-11-project2 - - Integration Test 11 (2) - - - - - com.google.protobuf.tools - maven-protoc-plugin - @project.version@ - - - - test-compile - - - - - - - - - - ${project.groupId} - TEST-11-project1 - 0.0.1-SNAPSHOT - test-jar - test - - - diff --git a/src/it/TEST-11/project2/src/test/proto/it/project2/test2.proto b/src/it/TEST-11/project2/src/test/proto/it/project2/test2.proto deleted file mode 100644 index 1a4eb7b7..00000000 --- a/src/it/TEST-11/project2/src/test/proto/it/project2/test2.proto +++ /dev/null @@ -1,11 +0,0 @@ -package it.project2; - -import "it/project1/test1.proto"; - -option java_package = "it.project2.messages"; -option java_outer_classname = "TestProtos"; -option optimize_for = SPEED; - -message TestMessage2 { - optional it.project1.TestMessage1 included = 1; -} diff --git a/src/it/TEST-11/verify.groovy b/src/it/TEST-11/verify.groovy deleted file mode 100644 index 972d3614..00000000 --- a/src/it/TEST-11/verify.groovy +++ /dev/null @@ -1,27 +0,0 @@ -outputDirectory = new File(basedir, 'project1/target/generated-test-sources/protobuf/java'); -assert outputDirectory.exists(); -assert outputDirectory.isDirectory(); - -generatedJavaFile = new File(outputDirectory, 'it/project1/messages/TestProtos.java'); -assert generatedJavaFile.exists(); -assert generatedJavaFile.isFile(); - -content = generatedJavaFile.text; -assert content.contains('package it.project1.messages'); -assert content.contains('class TestProtos'); -assert content.contains('class TestMessage1'); - -outputDirectory = new File(basedir, 'project2/target/generated-test-sources/protobuf/java'); -assert outputDirectory.exists(); -assert outputDirectory.isDirectory(); - -generatedJavaFile = new File(outputDirectory, 'it/project2/messages/TestProtos.java'); -assert generatedJavaFile.exists(); -assert generatedJavaFile.isFile(); - -content = generatedJavaFile.text; -assert content.contains('package it.project2.messages'); -assert content.contains('class TestProtos'); -assert content.contains('class TestMessage2'); - -return true; diff --git a/src/it/TEST-12/invoker.properties b/src/it/TEST-12/invoker.properties deleted file mode 100644 index 727ac186..00000000 --- a/src/it/TEST-12/invoker.properties +++ /dev/null @@ -1,6 +0,0 @@ -# An optional description for this build job to be included in the build reports. -invoker.description = \ - Verifies that protobuf definitions can be imported from other modules in the reactor. \ - In this test, imports are scoped to the default package. - -invoker.goals = clean test-compile diff --git a/src/it/TEST-12/pom.xml b/src/it/TEST-12/pom.xml deleted file mode 100644 index 6ca1c80b..00000000 --- a/src/it/TEST-12/pom.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - 4.0.0 - - - com.google.protobuf.tools.maven-protoc-plugin.its - it-parent - 0.0.1-SNAPSHOT - - - TEST-12-parent - 0.0.1-SNAPSHOT - pom - - Integration Test 12 (Parent) - - - project1 - project2 - - - - - - org.apache.maven.plugins - maven-toolchains-plugin - - - protobuf-toolchain - validate - - toolchain - - - - - ${protobufVersion} - - - - - - - - com.google.protobuf.tools - maven-protoc-plugin - @project.version@ - true - - - - diff --git a/src/it/TEST-12/project1/pom.xml b/src/it/TEST-12/project1/pom.xml deleted file mode 100644 index 9946f5e8..00000000 --- a/src/it/TEST-12/project1/pom.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - 4.0.0 - - - com.google.protobuf.tools.maven-protoc-plugin.its - TEST-12-parent - 0.0.1-SNAPSHOT - - - TEST-12-project1 - - Integration Test 12 (1) - - - - - com.google.protobuf.tools - maven-protoc-plugin - @project.version@ - - - - test-compile - - - - - - org.apache.maven.plugins - maven-jar-plugin - - - - test-jar - - - - - - - diff --git a/src/it/TEST-12/project1/src/test/proto/test1.proto b/src/it/TEST-12/project1/src/test/proto/test1.proto deleted file mode 100644 index 1edbf06f..00000000 --- a/src/it/TEST-12/project1/src/test/proto/test1.proto +++ /dev/null @@ -1,6 +0,0 @@ -option java_package = "it.project1.messages"; -option java_outer_classname = "TestProtos"; -option optimize_for = SPEED; - -message TestMessage1 { -} diff --git a/src/it/TEST-12/project2/pom.xml b/src/it/TEST-12/project2/pom.xml deleted file mode 100644 index 92b13aa2..00000000 --- a/src/it/TEST-12/project2/pom.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - 4.0.0 - - - com.google.protobuf.tools.maven-protoc-plugin.its - TEST-12-parent - 0.0.1-SNAPSHOT - - - TEST-12-project2 - - Integration Test 12 (2) - - - - - com.google.protobuf.tools - maven-protoc-plugin - @project.version@ - - - - test-compile - - - - - - - - - - ${project.groupId} - TEST-12-project1 - 0.0.1-SNAPSHOT - test-jar - test - - - diff --git a/src/it/TEST-12/project2/src/test/proto/test2.proto b/src/it/TEST-12/project2/src/test/proto/test2.proto deleted file mode 100644 index e5f14b04..00000000 --- a/src/it/TEST-12/project2/src/test/proto/test2.proto +++ /dev/null @@ -1,9 +0,0 @@ -import "test1.proto"; - -option java_package = "it.project2.messages"; -option java_outer_classname = "TestProtos"; -option optimize_for = SPEED; - -message TestMessage2 { - optional TestMessage1 included = 1; -} diff --git a/src/it/TEST-12/verify.groovy b/src/it/TEST-12/verify.groovy deleted file mode 100644 index 972d3614..00000000 --- a/src/it/TEST-12/verify.groovy +++ /dev/null @@ -1,27 +0,0 @@ -outputDirectory = new File(basedir, 'project1/target/generated-test-sources/protobuf/java'); -assert outputDirectory.exists(); -assert outputDirectory.isDirectory(); - -generatedJavaFile = new File(outputDirectory, 'it/project1/messages/TestProtos.java'); -assert generatedJavaFile.exists(); -assert generatedJavaFile.isFile(); - -content = generatedJavaFile.text; -assert content.contains('package it.project1.messages'); -assert content.contains('class TestProtos'); -assert content.contains('class TestMessage1'); - -outputDirectory = new File(basedir, 'project2/target/generated-test-sources/protobuf/java'); -assert outputDirectory.exists(); -assert outputDirectory.isDirectory(); - -generatedJavaFile = new File(outputDirectory, 'it/project2/messages/TestProtos.java'); -assert generatedJavaFile.exists(); -assert generatedJavaFile.isFile(); - -content = generatedJavaFile.text; -assert content.contains('package it.project2.messages'); -assert content.contains('class TestProtos'); -assert content.contains('class TestMessage2'); - -return true; diff --git a/src/it/TEST-13/invoker.properties b/src/it/TEST-13/invoker.properties deleted file mode 100644 index b9341a93..00000000 --- a/src/it/TEST-13/invoker.properties +++ /dev/null @@ -1,9 +0,0 @@ -# An optional description for this build job to be included in the build reports. -invoker.description = \ - Verifies that production protobuf definitions can be imported into test protobuf definitions \ - within the same module. \ - In this test, imports are scoped to packages. \ - We need to make sure that package structure for protobuf definitions \ - is correctly handled by the plugin. - -invoker.goals = clean test-compile diff --git a/src/it/TEST-13/pom.xml b/src/it/TEST-13/pom.xml deleted file mode 100644 index f5900128..00000000 --- a/src/it/TEST-13/pom.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - 4.0.0 - - - com.google.protobuf.tools.maven-protoc-plugin.its - it-parent - 0.0.1-SNAPSHOT - - - TEST-13 - 0.0.1-SNAPSHOT - - Integration Test 13 - - - - - org.apache.maven.plugins - maven-toolchains-plugin - - - protobuf-toolchain - validate - - toolchain - - - - - ${protobufVersion} - - - - - - - - com.google.protobuf.tools - maven-protoc-plugin - @project.version@ - true - - - - compile - test-compile - - - - - - - diff --git a/src/it/TEST-13/src/main/proto/it/project1/test1.proto b/src/it/TEST-13/src/main/proto/it/project1/test1.proto deleted file mode 100644 index 98cf4d91..00000000 --- a/src/it/TEST-13/src/main/proto/it/project1/test1.proto +++ /dev/null @@ -1,8 +0,0 @@ -package it.project1; - -option java_package = "it.project1.messages"; -option java_outer_classname = "TestProtos1"; -option optimize_for = SPEED; - -message TestMessage1 { -} diff --git a/src/it/TEST-13/src/test/proto/it/project1/test2.proto b/src/it/TEST-13/src/test/proto/it/project1/test2.proto deleted file mode 100644 index e32d057a..00000000 --- a/src/it/TEST-13/src/test/proto/it/project1/test2.proto +++ /dev/null @@ -1,11 +0,0 @@ -package it.project1; - -import "it/project1/test1.proto"; - -option java_package = "it.project1.messages"; -option java_outer_classname = "TestProtos2"; -option optimize_for = SPEED; - -message TestMessage2 { - optional it.project1.TestMessage1 included = 1; -} diff --git a/src/it/TEST-13/verify.groovy b/src/it/TEST-13/verify.groovy deleted file mode 100644 index 4a55278f..00000000 --- a/src/it/TEST-13/verify.groovy +++ /dev/null @@ -1,27 +0,0 @@ -outputDirectory = new File(basedir, 'target/generated-sources/protobuf/java'); -assert outputDirectory.exists(); -assert outputDirectory.isDirectory(); - -generatedJavaFile = new File(outputDirectory, 'it/project1/messages/TestProtos1.java'); -assert generatedJavaFile.exists(); -assert generatedJavaFile.isFile(); - -content = generatedJavaFile.text; -assert content.contains('package it.project1.messages'); -assert content.contains('class TestProtos1'); -assert content.contains('class TestMessage1'); - -outputDirectory = new File(basedir, 'target/generated-test-sources/protobuf/java'); -assert outputDirectory.exists(); -assert outputDirectory.isDirectory(); - -generatedJavaFile = new File(outputDirectory, 'it/project1/messages/TestProtos2.java'); -assert generatedJavaFile.exists(); -assert generatedJavaFile.isFile(); - -content = generatedJavaFile.text; -assert content.contains('package it.project1.messages'); -assert content.contains('class TestProtos2'); -assert content.contains('class TestMessage2'); - -return true; diff --git a/src/it/TEST-14/invoker.properties b/src/it/TEST-14/invoker.properties deleted file mode 100644 index 878b262f..00000000 --- a/src/it/TEST-14/invoker.properties +++ /dev/null @@ -1,7 +0,0 @@ -# An optional description for this build job to be included in the build reports. -invoker.description = \ - Verifies that production protobuf definitions can be imported into test protobuf definitions \ - within the same module. \ - In this test, imports are scoped to the default package. - -invoker.goals = clean test-compile diff --git a/src/it/TEST-14/pom.xml b/src/it/TEST-14/pom.xml deleted file mode 100644 index 4e521255..00000000 --- a/src/it/TEST-14/pom.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - 4.0.0 - - - com.google.protobuf.tools.maven-protoc-plugin.its - it-parent - 0.0.1-SNAPSHOT - - - TEST-14 - 0.0.1-SNAPSHOT - - Integration Test 14 - - - - - org.apache.maven.plugins - maven-toolchains-plugin - - - protobuf-toolchain - validate - - toolchain - - - - - ${protobufVersion} - - - - - - - - com.google.protobuf.tools - maven-protoc-plugin - @project.version@ - true - - - - compile - test-compile - - - - - - - diff --git a/src/it/TEST-14/src/main/proto/test1.proto b/src/it/TEST-14/src/main/proto/test1.proto deleted file mode 100644 index 88e44496..00000000 --- a/src/it/TEST-14/src/main/proto/test1.proto +++ /dev/null @@ -1,6 +0,0 @@ -option java_package = "it.project1.messages"; -option java_outer_classname = "TestProtos1"; -option optimize_for = SPEED; - -message TestMessage1 { -} diff --git a/src/it/TEST-14/src/test/proto/test2.proto b/src/it/TEST-14/src/test/proto/test2.proto deleted file mode 100644 index 4ade5a13..00000000 --- a/src/it/TEST-14/src/test/proto/test2.proto +++ /dev/null @@ -1,9 +0,0 @@ -import "test1.proto"; - -option java_package = "it.project1.messages"; -option java_outer_classname = "TestProtos2"; -option optimize_for = SPEED; - -message TestMessage2 { - optional TestMessage1 included = 1; -} diff --git a/src/it/TEST-14/verify.groovy b/src/it/TEST-14/verify.groovy deleted file mode 100644 index 4a55278f..00000000 --- a/src/it/TEST-14/verify.groovy +++ /dev/null @@ -1,27 +0,0 @@ -outputDirectory = new File(basedir, 'target/generated-sources/protobuf/java'); -assert outputDirectory.exists(); -assert outputDirectory.isDirectory(); - -generatedJavaFile = new File(outputDirectory, 'it/project1/messages/TestProtos1.java'); -assert generatedJavaFile.exists(); -assert generatedJavaFile.isFile(); - -content = generatedJavaFile.text; -assert content.contains('package it.project1.messages'); -assert content.contains('class TestProtos1'); -assert content.contains('class TestMessage1'); - -outputDirectory = new File(basedir, 'target/generated-test-sources/protobuf/java'); -assert outputDirectory.exists(); -assert outputDirectory.isDirectory(); - -generatedJavaFile = new File(outputDirectory, 'it/project1/messages/TestProtos2.java'); -assert generatedJavaFile.exists(); -assert generatedJavaFile.isFile(); - -content = generatedJavaFile.text; -assert content.contains('package it.project1.messages'); -assert content.contains('class TestProtos2'); -assert content.contains('class TestMessage2'); - -return true; diff --git a/src/it/TEST-15/invoker.properties b/src/it/TEST-15/invoker.properties deleted file mode 100644 index a1ec2fa0..00000000 --- a/src/it/TEST-15/invoker.properties +++ /dev/null @@ -1,7 +0,0 @@ -# An optional description for this build job to be included in the build reports. -invoker.description = \ - Verifies that a protobuf file descriptor set is written in the expected location. - -# A comma or space separated list of goals/phases to execute, may -# specify an empty list to execute the default goal of the IT project -invoker.goals = clean compile diff --git a/src/it/TEST-15/pom.xml b/src/it/TEST-15/pom.xml deleted file mode 100644 index 43282ac9..00000000 --- a/src/it/TEST-15/pom.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - - 4.0.0 - - - com.google.protobuf.tools.maven-protoc-plugin.its - it-parent - 0.0.1-SNAPSHOT - - - TEST-15 - 0.0.1-SNAPSHOT - - Integration Test 15 - - - - - org.apache.maven.plugins - maven-toolchains-plugin - - - protobuf-toolchain - validate - - toolchain - - - - - ${protobufVersion} - - - - - - - - com.google.protobuf.tools - maven-protoc-plugin - @project.version@ - true - - - - compile - - - true - - - - - - - diff --git a/src/it/TEST-15/src/main/proto/test.proto b/src/it/TEST-15/src/main/proto/test.proto deleted file mode 100644 index 8005406a..00000000 --- a/src/it/TEST-15/src/main/proto/test.proto +++ /dev/null @@ -1,18 +0,0 @@ -option java_package = "test"; -option java_outer_classname = "TestProtos"; -option optimize_for = SPEED; - -message TestMessage { - message NestedMessage { - optional int32 bb = 1; - } - - enum NestedEnum { - FOO = 1; - BAR = 2; - BAZ = 3; - } - - // Singular - optional int32 optional_int32 = 1; -} diff --git a/src/it/TEST-15/verify.groovy b/src/it/TEST-15/verify.groovy deleted file mode 100644 index 46f238aa..00000000 --- a/src/it/TEST-15/verify.groovy +++ /dev/null @@ -1,9 +0,0 @@ -outputDirectory = new File(basedir, 'target/generated-resources/protobuf/descriptor-sets'); -assert outputDirectory.exists(); -assert outputDirectory.isDirectory(); - -generatedJavaFile = new File(outputDirectory, 'TEST-15-0.0.1-SNAPSHOT.protobin'); -assert generatedJavaFile.exists(); -assert generatedJavaFile.isFile(); - -return true; diff --git a/src/it/TEST-16/invoker.properties b/src/it/TEST-16/invoker.properties deleted file mode 100644 index 593f15e4..00000000 --- a/src/it/TEST-16/invoker.properties +++ /dev/null @@ -1,9 +0,0 @@ -# An optional description for this build job to be included in the build reports. -invoker.description = \ - Verifies that a custom protoc plugin is invoked - -# A comma or space separated list of goals/phases to execute, may -# specify an empty list to execute the default goal of the IT project -invoker.goals = clean compile - -#invoker.mavenOpts = -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005 diff --git a/src/it/TEST-16/pom.xml b/src/it/TEST-16/pom.xml deleted file mode 100644 index 172d84a0..00000000 --- a/src/it/TEST-16/pom.xml +++ /dev/null @@ -1,80 +0,0 @@ - - - - - 4.0.0 - - - com.google.protobuf.tools.maven-protoc-plugin.its - it-parent - 0.0.1-SNAPSHOT - - - TEST-16 - 0.0.1-SNAPSHOT - - Integration Test 16 - - - - - org.apache.maven.plugins - maven-toolchains-plugin - - - protobuf-toolchain - validate - - toolchain - - - - - ${protobufVersion} - - - - - - - - com.google.protobuf.tools - maven-protoc-plugin - @project.version@ - true - - - custom-protoc-generate - - compile - - - - - minimal - com.google.protobuf.tools.maven-protoc-plugin.its - test-protoc-plugin - 1.0.5 - plugin.MinimalPlugin - - - prefix - com.google.protobuf.tools.maven-protoc-plugin.its - test-protoc-plugin - - [1.0.0,1.1.0) - plugin.MinimalPlugin - - prefix- - - - - - - - - - - diff --git a/src/it/TEST-16/src/main/proto/test1.proto b/src/it/TEST-16/src/main/proto/test1.proto deleted file mode 100644 index e3a8593c..00000000 --- a/src/it/TEST-16/src/main/proto/test1.proto +++ /dev/null @@ -1,18 +0,0 @@ -option java_package = "test1"; -option java_outer_classname = "Test1Protos"; -option optimize_for = SPEED; - -message TestMessage1 { - message NestedMessage { - optional int32 bb = 1; - } - - enum NestedEnum { - FOO = 1; - BAR = 2; - BAZ = 3; - } - - // Singular - optional int32 optional_int32 = 1; -} diff --git a/src/it/TEST-16/src/main/proto/test2.proto b/src/it/TEST-16/src/main/proto/test2.proto deleted file mode 100644 index 11731128..00000000 --- a/src/it/TEST-16/src/main/proto/test2.proto +++ /dev/null @@ -1,18 +0,0 @@ -option java_package = "test2"; -option java_outer_classname = "Test2Protos"; -option optimize_for = SPEED; - -message TestMessage2 { - message NestedMessage { - optional int32 bb = 1; - } - - enum NestedEnum { - FOO = 1; - BAR = 2; - BAZ = 3; - } - - // Singular - optional int32 optional_int32 = 1; -} diff --git a/src/it/TEST-16/verify.groovy b/src/it/TEST-16/verify.groovy deleted file mode 100644 index 326cdf0a..00000000 --- a/src/it/TEST-16/verify.groovy +++ /dev/null @@ -1,18 +0,0 @@ - -def assertGeneratedFile(outputDirectory, fname, content) { - genFile = new File(outputDirectory, fname) - assert genFile.exists() - assert genFile.isFile() - assert genFile.text == content -} - -outputDirectory = new File(basedir, 'target/generated-sources/protobuf/java') -assert outputDirectory.exists() -assert outputDirectory.isDirectory() - -assertGeneratedFile(outputDirectory, 'test1.txt', 'test1.proto') -assertGeneratedFile(outputDirectory, 'prefix-test1.txt', 'test1.proto') -assertGeneratedFile(outputDirectory, 'test2.txt', 'test2.proto') -assertGeneratedFile(outputDirectory, 'prefix-test2.txt', 'test2.proto') - -return true diff --git a/src/it/TEST-17/invoker.properties b/src/it/TEST-17/invoker.properties deleted file mode 100644 index 30337164..00000000 --- a/src/it/TEST-17/invoker.properties +++ /dev/null @@ -1,10 +0,0 @@ -# An optional description for this build job to be included in the build reports. -invoker.description = \ - Verifies that the execution fails if the artifact for java protoc plugin cannot be resolved. - -# A comma or space separated list of goals/phases to execute, may -# specify an empty list to execute the default goal of the IT project -invoker.goals = clean compile - -# The expected result of the build, possible values are "success" (default) and "failure" -invoker.buildResult = failure diff --git a/src/it/TEST-17/pom.xml b/src/it/TEST-17/pom.xml deleted file mode 100644 index 0b37460b..00000000 --- a/src/it/TEST-17/pom.xml +++ /dev/null @@ -1,70 +0,0 @@ - - - - - 4.0.0 - - - com.google.protobuf.tools.maven-protoc-plugin.its - it-parent - 0.0.1-SNAPSHOT - - - TEST-17 - 1.0 - - Integration Test 17 - - - - - org.apache.maven.plugins - maven-toolchains-plugin - - - protobuf-toolchain - validate - - toolchain - - - - - ${protobufVersion} - - - - - - - - com.google.protobuf.tools - maven-protoc-plugin - @project.version@ - true - - - custom-protoc-generate - - compile - - - - - missing - com.google.protobuf.tools.maven-protoc-plugin.its - test-protoc-plugin - - 2.0.0 - plugin.MinimalPlugin - - - - - - - - - diff --git a/src/it/TEST-17/src/main/proto/test.proto b/src/it/TEST-17/src/main/proto/test.proto deleted file mode 100644 index 8005406a..00000000 --- a/src/it/TEST-17/src/main/proto/test.proto +++ /dev/null @@ -1,18 +0,0 @@ -option java_package = "test"; -option java_outer_classname = "TestProtos"; -option optimize_for = SPEED; - -message TestMessage { - message NestedMessage { - optional int32 bb = 1; - } - - enum NestedEnum { - FOO = 1; - BAR = 2; - BAZ = 3; - } - - // Singular - optional int32 optional_int32 = 1; -} diff --git a/src/it/TEST-18/invoker.properties b/src/it/TEST-18/invoker.properties deleted file mode 100644 index 96532989..00000000 --- a/src/it/TEST-18/invoker.properties +++ /dev/null @@ -1,8 +0,0 @@ -# An optional description for this build job to be included in the build reports. -invoker.description = \ - Verifies that protoc location is picked up from 'protobuf' tool chain, \ - and proto compilation into Python completes successfully. - -# A comma or space separated list of goals/phases to execute, may -# specify an empty list to execute the default goal of the IT project -invoker.goals = clean compile diff --git a/src/it/TEST-18/pom.xml b/src/it/TEST-18/pom.xml deleted file mode 100644 index 486ca28b..00000000 --- a/src/it/TEST-18/pom.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - 4.0.0 - - - com.google.protobuf.tools.maven-protoc-plugin.its - it-parent - 0.0.1-SNAPSHOT - - - TEST-18 - 0.0.1-SNAPSHOT - - Integration Test 18 - - - - - org.apache.maven.plugins - maven-toolchains-plugin - - - protobuf-toolchain - validate - - toolchain - - - - - ${protobufVersion} - - - - - - - - com.google.protobuf.tools - maven-protoc-plugin - @project.version@ - true - - - - compile-python - - - - - - - diff --git a/src/it/TEST-18/src/main/proto/test.proto b/src/it/TEST-18/src/main/proto/test.proto deleted file mode 100644 index 8005406a..00000000 --- a/src/it/TEST-18/src/main/proto/test.proto +++ /dev/null @@ -1,18 +0,0 @@ -option java_package = "test"; -option java_outer_classname = "TestProtos"; -option optimize_for = SPEED; - -message TestMessage { - message NestedMessage { - optional int32 bb = 1; - } - - enum NestedEnum { - FOO = 1; - BAR = 2; - BAZ = 3; - } - - // Singular - optional int32 optional_int32 = 1; -} diff --git a/src/it/TEST-18/verify.groovy b/src/it/TEST-18/verify.groovy deleted file mode 100644 index f208dfd5..00000000 --- a/src/it/TEST-18/verify.groovy +++ /dev/null @@ -1,13 +0,0 @@ -outputDirectory = new File(basedir, 'target/generated-sources/protobuf/python'); -assert outputDirectory.exists(); -assert outputDirectory.isDirectory(); - -generatedPythonFile = new File(outputDirectory, 'test_pb2.py'); -assert generatedPythonFile.exists(); -assert generatedPythonFile.isFile(); - -content = generatedPythonFile.text; -assert content.contains('TestMessage'); -assert content.contains('NestedMessage'); - -return true; diff --git a/src/it/TEST-19/invoker.properties b/src/it/TEST-19/invoker.properties deleted file mode 100644 index 2b3d1b8a..00000000 --- a/src/it/TEST-19/invoker.properties +++ /dev/null @@ -1,8 +0,0 @@ -# An optional description for this build job to be included in the build reports. -invoker.description = \ - Verifies that protoc location is picked up from 'protobuf' tool chain, \ - and test proto compilation into Python completes successfully. - -# A comma or space separated list of goals/phases to execute, may -# specify an empty list to execute the default goal of the IT project -invoker.goals = clean test-compile diff --git a/src/it/TEST-19/pom.xml b/src/it/TEST-19/pom.xml deleted file mode 100644 index c05e6f34..00000000 --- a/src/it/TEST-19/pom.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - 4.0.0 - - - com.google.protobuf.tools.maven-protoc-plugin.its - it-parent - 0.0.1-SNAPSHOT - - - TEST-19 - 0.0.1-SNAPSHOT - - Integration Test 19 - - - - - org.apache.maven.plugins - maven-toolchains-plugin - - - protobuf-toolchain - validate - - toolchain - - - - - ${protobufVersion} - - - - - - - - com.google.protobuf.tools - maven-protoc-plugin - @project.version@ - true - - - - test-compile-python - - - - - - - diff --git a/src/it/TEST-19/src/test/proto/test.proto b/src/it/TEST-19/src/test/proto/test.proto deleted file mode 100644 index 8005406a..00000000 --- a/src/it/TEST-19/src/test/proto/test.proto +++ /dev/null @@ -1,18 +0,0 @@ -option java_package = "test"; -option java_outer_classname = "TestProtos"; -option optimize_for = SPEED; - -message TestMessage { - message NestedMessage { - optional int32 bb = 1; - } - - enum NestedEnum { - FOO = 1; - BAR = 2; - BAZ = 3; - } - - // Singular - optional int32 optional_int32 = 1; -} diff --git a/src/it/TEST-19/verify.groovy b/src/it/TEST-19/verify.groovy deleted file mode 100644 index 49807d88..00000000 --- a/src/it/TEST-19/verify.groovy +++ /dev/null @@ -1,13 +0,0 @@ -outputDirectory = new File(basedir, 'target/generated-test-sources/protobuf/python'); -assert outputDirectory.exists(); -assert outputDirectory.isDirectory(); - -generatedPythonFile = new File(outputDirectory, 'test_pb2.py'); -assert generatedPythonFile.exists(); -assert generatedPythonFile.isFile(); - -content = generatedPythonFile.text; -assert content.contains('TestMessage'); -assert content.contains('NestedMessage'); - -return true; diff --git a/src/it/TEST-2/invoker.properties b/src/it/TEST-2/invoker.properties deleted file mode 100644 index 5bbb9a77..00000000 --- a/src/it/TEST-2/invoker.properties +++ /dev/null @@ -1,9 +0,0 @@ -# An optional description for this build job to be included in the build reports. -invoker.description = \ - Verifies that the custom 'protobuf' tool chain is picked up by maven-toolchains-plugin \ - as long as maven-protoc-plugin registers its extensions with maven build. \ - No executions for maven-protoc-plugin itself are defined in the test pom. - -# A comma or space separated list of goals/phases to execute, may -# specify an empty list to execute the default goal of the IT project -invoker.goals = clean validate diff --git a/src/it/TEST-2/pom.xml b/src/it/TEST-2/pom.xml deleted file mode 100644 index a0d72fb1..00000000 --- a/src/it/TEST-2/pom.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - 4.0.0 - - - com.google.protobuf.tools.maven-protoc-plugin.its - it-parent - 0.0.1-SNAPSHOT - - - TEST-2 - 0.0.1-SNAPSHOT - - Integration Test 2 - - - - - org.apache.maven.plugins - maven-toolchains-plugin - - - protobuf-toolchain - validate - - toolchain - - - - - ${protobufVersion} - - - - - - - - com.google.protobuf.tools - maven-protoc-plugin - @project.version@ - true - - - - diff --git a/src/it/TEST-2/verify.groovy b/src/it/TEST-2/verify.groovy deleted file mode 100644 index 23f842eb..00000000 --- a/src/it/TEST-2/verify.groovy +++ /dev/null @@ -1,8 +0,0 @@ -buildLogFile = new File(basedir, 'build.log'); -assert buildLogFile.exists(); -assert buildLogFile.isFile(); - -content = buildLogFile.text; -assert content.contains('Found matching toolchain for type protobuf: PROTOC'); - -return true; diff --git a/src/it/TEST-20/invoker.properties b/src/it/TEST-20/invoker.properties deleted file mode 100644 index 967c2d59..00000000 --- a/src/it/TEST-20/invoker.properties +++ /dev/null @@ -1,8 +0,0 @@ -# An optional description for this build job to be included in the build reports. -invoker.description = \ - Verifies that protoc location is picked up from 'protobuf' tool chain, \ - and proto compilation into C++ completes successfully. - -# A comma or space separated list of goals/phases to execute, may -# specify an empty list to execute the default goal of the IT project -invoker.goals = clean compile diff --git a/src/it/TEST-20/pom.xml b/src/it/TEST-20/pom.xml deleted file mode 100644 index 0420ef70..00000000 --- a/src/it/TEST-20/pom.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - 4.0.0 - - - com.google.protobuf.tools.maven-protoc-plugin.its - it-parent - 0.0.1-SNAPSHOT - - - TEST-20 - 0.0.1-SNAPSHOT - - Integration Test 20 - - - - - org.apache.maven.plugins - maven-toolchains-plugin - - - protobuf-toolchain - validate - - toolchain - - - - - ${protobufVersion} - - - - - - - - com.google.protobuf.tools - maven-protoc-plugin - @project.version@ - true - - - - compile-cpp - - - - - - - diff --git a/src/it/TEST-20/src/main/proto/test.proto b/src/it/TEST-20/src/main/proto/test.proto deleted file mode 100644 index 8005406a..00000000 --- a/src/it/TEST-20/src/main/proto/test.proto +++ /dev/null @@ -1,18 +0,0 @@ -option java_package = "test"; -option java_outer_classname = "TestProtos"; -option optimize_for = SPEED; - -message TestMessage { - message NestedMessage { - optional int32 bb = 1; - } - - enum NestedEnum { - FOO = 1; - BAR = 2; - BAZ = 3; - } - - // Singular - optional int32 optional_int32 = 1; -} diff --git a/src/it/TEST-20/verify.groovy b/src/it/TEST-20/verify.groovy deleted file mode 100644 index 7e63fee2..00000000 --- a/src/it/TEST-20/verify.groovy +++ /dev/null @@ -1,22 +0,0 @@ -outputDirectory = new File(basedir, 'target/generated-sources/protobuf/cpp'); -assert outputDirectory.exists(); -assert outputDirectory.isDirectory(); - -generatedHeaderFile = new File(outputDirectory, 'test.pb.h'); -assert generatedHeaderFile.exists(); -assert generatedHeaderFile.isFile(); - -content = generatedHeaderFile.text; -assert content.contains('class TestMessage'); -assert content.contains('class TestMessage_NestedMessage'); -assert content.contains('enum TestMessage_NestedEnum'); - -generatedClassFile = new File(outputDirectory, 'test.pb.cc'); -assert generatedClassFile.exists(); -assert generatedClassFile.isFile(); - -content = generatedClassFile.text; -assert content.contains('TestMessage::TestMessage()'); -assert content.contains('TestMessage_NestedMessage::TestMessage_NestedMessage()'); - -return true; diff --git a/src/it/TEST-21/invoker.properties b/src/it/TEST-21/invoker.properties deleted file mode 100644 index 5c8492b7..00000000 --- a/src/it/TEST-21/invoker.properties +++ /dev/null @@ -1,8 +0,0 @@ -# An optional description for this build job to be included in the build reports. -invoker.description = \ - Verifies that protoc location is picked up from 'protobuf' tool chain, \ - and test proto compilation into C++ completes successfully. - -# A comma or space separated list of goals/phases to execute, may -# specify an empty list to execute the default goal of the IT project -invoker.goals = clean test-compile diff --git a/src/it/TEST-21/pom.xml b/src/it/TEST-21/pom.xml deleted file mode 100644 index d1e0be34..00000000 --- a/src/it/TEST-21/pom.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - 4.0.0 - - - com.google.protobuf.tools.maven-protoc-plugin.its - it-parent - 0.0.1-SNAPSHOT - - - TEST-21 - 0.0.1-SNAPSHOT - - Integration Test 21 - - - - - org.apache.maven.plugins - maven-toolchains-plugin - - - protobuf-toolchain - validate - - toolchain - - - - - ${protobufVersion} - - - - - - - - com.google.protobuf.tools - maven-protoc-plugin - @project.version@ - true - - - - test-compile-cpp - - - - - - - diff --git a/src/it/TEST-21/src/test/proto/test.proto b/src/it/TEST-21/src/test/proto/test.proto deleted file mode 100644 index 8005406a..00000000 --- a/src/it/TEST-21/src/test/proto/test.proto +++ /dev/null @@ -1,18 +0,0 @@ -option java_package = "test"; -option java_outer_classname = "TestProtos"; -option optimize_for = SPEED; - -message TestMessage { - message NestedMessage { - optional int32 bb = 1; - } - - enum NestedEnum { - FOO = 1; - BAR = 2; - BAZ = 3; - } - - // Singular - optional int32 optional_int32 = 1; -} diff --git a/src/it/TEST-21/verify.groovy b/src/it/TEST-21/verify.groovy deleted file mode 100644 index f061d6ad..00000000 --- a/src/it/TEST-21/verify.groovy +++ /dev/null @@ -1,22 +0,0 @@ -outputDirectory = new File(basedir, 'target/generated-test-sources/protobuf/cpp'); -assert outputDirectory.exists(); -assert outputDirectory.isDirectory(); - -generatedHeaderFile = new File(outputDirectory, 'test.pb.h'); -assert generatedHeaderFile.exists(); -assert generatedHeaderFile.isFile(); - -content = generatedHeaderFile.text; -assert content.contains('class TestMessage'); -assert content.contains('class TestMessage_NestedMessage'); -assert content.contains('enum TestMessage_NestedEnum'); - -generatedClassFile = new File(outputDirectory, 'test.pb.cc'); -assert generatedClassFile.exists(); -assert generatedClassFile.isFile(); - -content = generatedClassFile.text; -assert content.contains('TestMessage::TestMessage()'); -assert content.contains('TestMessage_NestedMessage::TestMessage_NestedMessage()'); - -return true; diff --git a/src/it/TEST-22/invoker.properties b/src/it/TEST-22/invoker.properties deleted file mode 100644 index 90c968d5..00000000 --- a/src/it/TEST-22/invoker.properties +++ /dev/null @@ -1,9 +0,0 @@ -# An optional description for this build job to be included in the build reports. -invoker.description = \ - Verifies that protoc location is picked up from 'protobuf' tool chain, \ - proto compilation into java completes successfully \ - and protobuf sources are attached to the build. - -# A comma or space separated list of goals/phases to execute, may -# specify an empty list to execute the default goal of the IT project -invoker.goals = clean package diff --git a/src/it/TEST-22/pom.xml b/src/it/TEST-22/pom.xml deleted file mode 100644 index db6e5f03..00000000 --- a/src/it/TEST-22/pom.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - 4.0.0 - - - com.google.protobuf.tools.maven-protoc-plugin.its - it-parent - 0.0.1-SNAPSHOT - - - TEST-22 - 0.0.1-SNAPSHOT - - Integration Test 22 - - - - - org.apache.maven.plugins - maven-toolchains-plugin - - - protobuf-toolchain - validate - - toolchain - - - - - ${protobufVersion} - - - - - - - - com.google.protobuf.tools - maven-protoc-plugin - @project.version@ - true - - - - compile - test-compile - - - - - - - diff --git a/src/it/TEST-22/src/main/proto/a/aaa.proto b/src/it/TEST-22/src/main/proto/a/aaa.proto deleted file mode 100644 index f70ddb37..00000000 --- a/src/it/TEST-22/src/main/proto/a/aaa.proto +++ /dev/null @@ -1,9 +0,0 @@ -package a; - -option java_package = "a"; -option java_outer_classname = "AaaProtos"; -option optimize_for = SPEED; - -message Aaa { - optional int32 a = 1; -} diff --git a/src/it/TEST-22/src/test/proto/b/bbb.proto b/src/it/TEST-22/src/test/proto/b/bbb.proto deleted file mode 100644 index cf398beb..00000000 --- a/src/it/TEST-22/src/test/proto/b/bbb.proto +++ /dev/null @@ -1,9 +0,0 @@ -package b; - -option java_package = "b"; -option java_outer_classname = "BbbProtos"; -option optimize_for = SPEED; - -message Bbb { - optional int32 b = 1; -} diff --git a/src/it/TEST-22/verify.groovy b/src/it/TEST-22/verify.groovy deleted file mode 100644 index f57f980d..00000000 --- a/src/it/TEST-22/verify.groovy +++ /dev/null @@ -1,17 +0,0 @@ -generatedJavaFile = new File(basedir, 'target/classes/a/AaaProtos.class'); -assert generatedJavaFile.exists(); -assert generatedJavaFile.isFile(); - -attachedResource = new File(basedir, 'target/classes/a/aaa.proto'); -assert attachedResource.exists(); -assert attachedResource.isFile(); - -generatedJavaTestFile = new File(basedir, 'target/test-classes/b/BbbProtos.class'); -assert generatedJavaTestFile.exists(); -assert generatedJavaTestFile.isFile(); - -attachedTestResource = new File(basedir, 'target/test-classes/b/bbb.proto'); -assert attachedTestResource.exists(); -assert attachedTestResource.isFile(); - -return true; diff --git a/src/it/TEST-23/invoker.properties b/src/it/TEST-23/invoker.properties deleted file mode 100644 index 00681459..00000000 --- a/src/it/TEST-23/invoker.properties +++ /dev/null @@ -1,9 +0,0 @@ -# An optional description for this build job to be included in the build reports. -invoker.description = \ - Verifies that protoc location is picked up from 'protobuf' tool chain, \ - proto compilation into java completes successfully \ - and protobuf sources are NOT attached to the build. - -# A comma or space separated list of goals/phases to execute, may -# specify an empty list to execute the default goal of the IT project -invoker.goals = clean package diff --git a/src/it/TEST-23/pom.xml b/src/it/TEST-23/pom.xml deleted file mode 100644 index 9bbe6fd2..00000000 --- a/src/it/TEST-23/pom.xml +++ /dev/null @@ -1,61 +0,0 @@ - - - - - 4.0.0 - - - com.google.protobuf.tools.maven-protoc-plugin.its - it-parent - 0.0.1-SNAPSHOT - - - TEST-23 - 0.0.1-SNAPSHOT - - Integration Test 23 - - - - - org.apache.maven.plugins - maven-toolchains-plugin - - - protobuf-toolchain - validate - - toolchain - - - - - ${protobufVersion} - - - - - - - - com.google.protobuf.tools - maven-protoc-plugin - @project.version@ - true - - - - compile - test-compile - - - - - false - - - - - diff --git a/src/it/TEST-23/src/main/proto/a/aaa.proto b/src/it/TEST-23/src/main/proto/a/aaa.proto deleted file mode 100644 index f70ddb37..00000000 --- a/src/it/TEST-23/src/main/proto/a/aaa.proto +++ /dev/null @@ -1,9 +0,0 @@ -package a; - -option java_package = "a"; -option java_outer_classname = "AaaProtos"; -option optimize_for = SPEED; - -message Aaa { - optional int32 a = 1; -} diff --git a/src/it/TEST-23/src/test/proto/b/bbb.proto b/src/it/TEST-23/src/test/proto/b/bbb.proto deleted file mode 100644 index cf398beb..00000000 --- a/src/it/TEST-23/src/test/proto/b/bbb.proto +++ /dev/null @@ -1,9 +0,0 @@ -package b; - -option java_package = "b"; -option java_outer_classname = "BbbProtos"; -option optimize_for = SPEED; - -message Bbb { - optional int32 b = 1; -} diff --git a/src/it/TEST-23/verify.groovy b/src/it/TEST-23/verify.groovy deleted file mode 100644 index ed2c1f3a..00000000 --- a/src/it/TEST-23/verify.groovy +++ /dev/null @@ -1,15 +0,0 @@ -generatedJavaFile = new File(basedir, 'target/classes/a/AaaProtos.class'); -assert generatedJavaFile.exists(); -assert generatedJavaFile.isFile(); - -attachedResource = new File(basedir, 'target/classes/a/aaa.proto'); -assert !attachedResource.exists(); - -generatedJavaTestFile = new File(basedir, 'target/test-classes/b/BbbProtos.class'); -assert generatedJavaTestFile.exists(); -assert generatedJavaTestFile.isFile(); - -attachedTestResource = new File(basedir, 'target/test-classes/b/bbb.proto'); -assert !attachedTestResource.exists(); - -return true; diff --git a/src/it/TEST-24/invoker.properties b/src/it/TEST-24/invoker.properties deleted file mode 100644 index ee9ba0f3..00000000 --- a/src/it/TEST-24/invoker.properties +++ /dev/null @@ -1,5 +0,0 @@ -# An optional description for this build job to be included in the build reports. -invoker.description = \ - Verifies that protobuf descriptor set can be attached to the build and resolved in other modules in the reactor. - -invoker.goals = clean install diff --git a/src/it/TEST-24/pom.xml b/src/it/TEST-24/pom.xml deleted file mode 100644 index 6808c804..00000000 --- a/src/it/TEST-24/pom.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - 4.0.0 - - - com.google.protobuf.tools.maven-protoc-plugin.its - it-parent - 0.0.1-SNAPSHOT - - - TEST-24-parent - 0.0.1-SNAPSHOT - pom - - Integration Test 24 (Parent) - - - project1 - project2 - - - - - - org.apache.maven.plugins - maven-toolchains-plugin - - - protobuf-toolchain - validate - - toolchain - - - - - ${protobufVersion} - - - - - - - - com.google.protobuf.tools - maven-protoc-plugin - @project.version@ - true - - - - diff --git a/src/it/TEST-24/project1/pom.xml b/src/it/TEST-24/project1/pom.xml deleted file mode 100644 index 39614f1e..00000000 --- a/src/it/TEST-24/project1/pom.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - 4.0.0 - - - com.google.protobuf.tools.maven-protoc-plugin.its - TEST-24-parent - 0.0.1-SNAPSHOT - - - TEST-24-project1 - - Integration Test 24 (1) - - - - - com.google.protobuf.tools - maven-protoc-plugin - @project.version@ - - - - compile - - - true - true - - - - - - - diff --git a/src/it/TEST-24/project1/src/main/proto/it/project1/test1.proto b/src/it/TEST-24/project1/src/main/proto/it/project1/test1.proto deleted file mode 100644 index 55b6a115..00000000 --- a/src/it/TEST-24/project1/src/main/proto/it/project1/test1.proto +++ /dev/null @@ -1,8 +0,0 @@ -package it.project1; - -option java_package = "it.project1.messages"; -option java_outer_classname = "TestProtos"; -option optimize_for = SPEED; - -message TestMessage1 { -} diff --git a/src/it/TEST-24/project2/pom.xml b/src/it/TEST-24/project2/pom.xml deleted file mode 100644 index 03f57047..00000000 --- a/src/it/TEST-24/project2/pom.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - 4.0.0 - - - com.google.protobuf.tools.maven-protoc-plugin.its - TEST-24-parent - 0.0.1-SNAPSHOT - - - TEST-24-project2 - - Integration Test 24 (2) - - - - - org.apache.maven.plugins - maven-dependency-plugin - 2.10 - - - - copy-dependencies - - - ${project.groupId} - TEST-24-project1 - protobin - - - - - - - - - - ${project.groupId} - TEST-24-project1 - 0.0.1-SNAPSHOT - protobin - - - diff --git a/src/it/TEST-24/verify.groovy b/src/it/TEST-24/verify.groovy deleted file mode 100644 index dbc5bb4c..00000000 --- a/src/it/TEST-24/verify.groovy +++ /dev/null @@ -1,9 +0,0 @@ -outputDirectory = new File(basedir, 'project2/target/dependency'); -assert outputDirectory.exists(); -assert outputDirectory.isDirectory(); - -generatedJavaFile = new File(outputDirectory, 'TEST-24-project1-0.0.1-SNAPSHOT.protobin'); -assert generatedJavaFile.exists(); -assert generatedJavaFile.isFile(); - -return true; diff --git a/src/it/TEST-25/invoker.properties b/src/it/TEST-25/invoker.properties deleted file mode 100644 index f024523b..00000000 --- a/src/it/TEST-25/invoker.properties +++ /dev/null @@ -1,6 +0,0 @@ -# An optional description for this build job to be included in the build reports. -invoker.description = Verifies that protoc artifact can be downloaded from Maven repository. - -# A comma or space separated list of goals/phases to execute, may -# specify an empty list to execute the default goal of the IT project -invoker.goals = clean generate-sources diff --git a/src/it/TEST-25/pom.xml b/src/it/TEST-25/pom.xml deleted file mode 100644 index f94d21d6..00000000 --- a/src/it/TEST-25/pom.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - 4.0.0 - - - com.google.protobuf.tools.maven-protoc-plugin.its - it-parent - 0.0.1-SNAPSHOT - - - TEST-25 - 0.0.1-SNAPSHOT - - Integration Test 25 - - - - - kr.motd.maven - os-maven-plugin - 1.3.0.Final - - - - - - com.google.protobuf.tools - maven-protoc-plugin - @project.version@ - - - - compile - - - com.google.protobuf:protoc:2.6.1:exe:${os.detected.classifier} - - - - - - - - diff --git a/src/it/TEST-25/src/main/proto/test.proto b/src/it/TEST-25/src/main/proto/test.proto deleted file mode 100644 index 9a17f075..00000000 --- a/src/it/TEST-25/src/main/proto/test.proto +++ /dev/null @@ -1,6 +0,0 @@ -option java_package = "test"; -option java_outer_classname = "TestProtos"; -option optimize_for = SPEED; - -message TestMessage { -} diff --git a/src/it/TEST-25/verify.groovy b/src/it/TEST-25/verify.groovy deleted file mode 100644 index 17702ee9..00000000 --- a/src/it/TEST-25/verify.groovy +++ /dev/null @@ -1,14 +0,0 @@ -outputDirectory = new File(basedir, 'target/generated-sources/protobuf/java'); -assert outputDirectory.exists(); -assert outputDirectory.isDirectory(); - -generatedJavaFile = new File(outputDirectory, 'test/TestProtos.java'); -assert generatedJavaFile.exists(); -assert generatedJavaFile.isFile(); - -content = generatedJavaFile.text; -assert content.contains('package test'); -assert content.contains('class Test'); -assert content.contains('class TestMessage'); - -return true; diff --git a/src/it/TEST-26/invoker.properties b/src/it/TEST-26/invoker.properties deleted file mode 100644 index 9ff2b87f..00000000 --- a/src/it/TEST-26/invoker.properties +++ /dev/null @@ -1,6 +0,0 @@ -# An optional description for this build job to be included in the build reports. -invoker.description = Verifies that javanano generation works - -# A comma or space separated list of goals/phases to execute, may -# specify an empty list to execute the default goal of the IT project -invoker.goals = clean generate-sources diff --git a/src/it/TEST-26/pom.xml b/src/it/TEST-26/pom.xml deleted file mode 100644 index 19594fcb..00000000 --- a/src/it/TEST-26/pom.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - - 4.0.0 - - - com.google.protobuf.tools.maven-protoc-plugin.its - it-parent - 0.0.1-SNAPSHOT - - - TEST-26 - 0.0.1-SNAPSHOT - - Integration Test 26 - - - 3.0.0-alpha-3 - - - - - - kr.motd.maven - os-maven-plugin - 1.3.0.Final - - - - - - com.google.protobuf.tools - maven-protoc-plugin - @project.version@ - - - - compile-javanano - - - com.google.protobuf:protoc:${protobufVersion}:exe:${os.detected.classifier} - - parcelable_messages=true - - - - - - - diff --git a/src/it/TEST-26/src/main/proto/test.proto b/src/it/TEST-26/src/main/proto/test.proto deleted file mode 100644 index 941caab4..00000000 --- a/src/it/TEST-26/src/main/proto/test.proto +++ /dev/null @@ -1,7 +0,0 @@ -syntax = "proto3"; - -option java_package = "test"; -option java_outer_classname = "TestProtos"; - -message TestMessage { -} diff --git a/src/it/TEST-26/verify.groovy b/src/it/TEST-26/verify.groovy deleted file mode 100644 index 216d4569..00000000 --- a/src/it/TEST-26/verify.groovy +++ /dev/null @@ -1,14 +0,0 @@ -outputDirectory = new File(basedir, 'target/generated-sources/protobuf/javanano'); -assert outputDirectory.exists(); -assert outputDirectory.isDirectory(); - -generatedJavaFile = new File(outputDirectory, 'test/TestProtos.java'); -assert generatedJavaFile.exists(); -assert generatedJavaFile.isFile(); - -content = generatedJavaFile.text; -assert content.contains('package test'); -assert content.contains('class Test'); -assert content.contains('class TestMessage'); - -return true; diff --git a/src/it/TEST-27/invoker.properties b/src/it/TEST-27/invoker.properties deleted file mode 100644 index 70606249..00000000 --- a/src/it/TEST-27/invoker.properties +++ /dev/null @@ -1,6 +0,0 @@ -# An optional description for this build job to be included in the build reports. -invoker.description = Verifies that javanano generation works for test protos - -# A comma or space separated list of goals/phases to execute, may -# specify an empty list to execute the default goal of the IT project -invoker.goals = clean generate-test-sources diff --git a/src/it/TEST-27/pom.xml b/src/it/TEST-27/pom.xml deleted file mode 100644 index 87c2fb6a..00000000 --- a/src/it/TEST-27/pom.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - - 4.0.0 - - - com.google.protobuf.tools.maven-protoc-plugin.its - it-parent - 0.0.1-SNAPSHOT - - - TEST-27 - 0.0.1-SNAPSHOT - - Integration Test 27 - - - 3.0.0-alpha-3 - - - - - - kr.motd.maven - os-maven-plugin - 1.3.0.Final - - - - - - com.google.protobuf.tools - maven-protoc-plugin - @project.version@ - - - - test-compile-javanano - - - com.google.protobuf:protoc:${protobufVersion}:exe:${os.detected.classifier} - - parcelable_messages=true - - - - - - - diff --git a/src/it/TEST-27/src/test/proto/test.proto b/src/it/TEST-27/src/test/proto/test.proto deleted file mode 100644 index 941caab4..00000000 --- a/src/it/TEST-27/src/test/proto/test.proto +++ /dev/null @@ -1,7 +0,0 @@ -syntax = "proto3"; - -option java_package = "test"; -option java_outer_classname = "TestProtos"; - -message TestMessage { -} diff --git a/src/it/TEST-27/verify.groovy b/src/it/TEST-27/verify.groovy deleted file mode 100644 index 0eec851c..00000000 --- a/src/it/TEST-27/verify.groovy +++ /dev/null @@ -1,14 +0,0 @@ -outputDirectory = new File(basedir, 'target/generated-test-sources/protobuf/javanano'); -assert outputDirectory.exists(); -assert outputDirectory.isDirectory(); - -generatedJavaFile = new File(outputDirectory, 'test/TestProtos.java'); -assert generatedJavaFile.exists(); -assert generatedJavaFile.isFile(); - -content = generatedJavaFile.text; -assert content.contains('package test'); -assert content.contains('class Test'); -assert content.contains('class TestMessage'); - -return true; diff --git a/src/it/TEST-28/invoker.properties b/src/it/TEST-28/invoker.properties deleted file mode 100644 index 59b0119a..00000000 --- a/src/it/TEST-28/invoker.properties +++ /dev/null @@ -1,6 +0,0 @@ -# An optional description for this build job to be included in the build reports. -invoker.description = Verifies that a binary artifact for a protoc plugin can be downloaded from Maven repository. - -# A comma or space separated list of goals/phases to execute, may -# specify an empty list to execute the default goal of the IT project -invoker.goals = clean package diff --git a/src/it/TEST-28/pom.xml b/src/it/TEST-28/pom.xml deleted file mode 100644 index ebc0eb62..00000000 --- a/src/it/TEST-28/pom.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - 4.0.0 - - - com.google.protobuf.tools.maven-protoc-plugin.its - it-parent - 0.0.1-SNAPSHOT - - - TEST-28 - 0.0.1-SNAPSHOT - - Integration Test 28 - - - 3.0.0-alpha-3 - 0.7.2 - - - - - - kr.motd.maven - os-maven-plugin - 1.3.0.Final - - - - - - com.google.protobuf.tools - maven-protoc-plugin - @project.version@ - - - protoc-compile - generate-sources - - compile - compile-custom - - - - protoc-test-compile - generate-test-sources - - test-compile - test-compile-custom - - - - - com.google.protobuf:protoc:${protobufVersion}:exe:${os.detected.classifier} - - grpc - io.grpc:protoc-gen-grpc-java:${grpcVersion}:exe:${os.detected.classifier} - - nano=false - - - - - - - - io.grpc - grpc-all - ${grpcVersion} - - - diff --git a/src/it/TEST-28/src/main/proto/test.proto b/src/it/TEST-28/src/main/proto/test.proto deleted file mode 100644 index 725296e2..00000000 --- a/src/it/TEST-28/src/main/proto/test.proto +++ /dev/null @@ -1,25 +0,0 @@ -syntax = "proto3"; - -option java_package = "test"; -option java_outer_classname = "TestProtos"; -option optimize_for = SPEED; - -message TestMessage { - message NestedMessage { - int32 zz = 1; - } - - enum NestedEnum { - FOO = 0; - BAR = 1; - BAZ = 2; - } - - // Singular - int32 xx = 1; - repeated NestedEnum yy = 2; -} - -service MyService { - rpc MyMethod(TestMessage) returns(TestMessage) {} -} diff --git a/src/it/TEST-28/verify.groovy b/src/it/TEST-28/verify.groovy deleted file mode 100644 index 903dc8f8..00000000 --- a/src/it/TEST-28/verify.groovy +++ /dev/null @@ -1,28 +0,0 @@ -outputDirectory = new File(basedir, 'target/generated-sources/protobuf/java'); -assert outputDirectory.exists(); -assert outputDirectory.isDirectory(); - -generatedJavaFile = new File(outputDirectory, 'test/TestProtos.java'); -assert generatedJavaFile.exists(); -assert generatedJavaFile.isFile(); - -content = generatedJavaFile.text; -assert content.contains('package test'); -assert content.contains('class TestProtos'); -assert content.contains('class TestMessage'); - -outputDirectory = new File(basedir, 'target/generated-sources/protobuf/grpc'); -assert outputDirectory.exists(); -assert outputDirectory.isDirectory(); - -generatedJavaFile = new File(outputDirectory, 'test/MyServiceGrpc.java'); -assert generatedJavaFile.exists(); -assert generatedJavaFile.isFile(); - -content = generatedJavaFile.text; -assert content.contains('package test'); -assert content.contains('class MyServiceGrpc'); -assert content.contains('interface MyService'); - - -return true; diff --git a/src/it/TEST-3/invoker.properties b/src/it/TEST-3/invoker.properties deleted file mode 100644 index c009aebf..00000000 --- a/src/it/TEST-3/invoker.properties +++ /dev/null @@ -1,11 +0,0 @@ -# An optional description for this build job to be included in the build reports. -invoker.description = \ - Verifies that the custom 'protobuf' tool chain cannot be picked up by maven-toolchains-plugin \ - if maven-protoc-plugin does not register its extensions with maven build. - -# A comma or space separated list of goals/phases to execute, may -# specify an empty list to execute the default goal of the IT project -invoker.goals = clean validate - -# The expected result of the build, possible values are "success" (default) and "failure" -invoker.buildResult = failure diff --git a/src/it/TEST-3/pom.xml b/src/it/TEST-3/pom.xml deleted file mode 100644 index fe5b4556..00000000 --- a/src/it/TEST-3/pom.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - 4.0.0 - - - com.google.protobuf.tools.maven-protoc-plugin.its - it-parent - 0.0.1-SNAPSHOT - - - TEST-3 - 0.0.1-SNAPSHOT - - Integration Test 3 - - - - - org.apache.maven.plugins - maven-toolchains-plugin - - - protobuf-toolchain - validate - - toolchain - - - - - ${protobufVersion} - - - - - - - - - diff --git a/src/it/TEST-4/invoker.properties b/src/it/TEST-4/invoker.properties deleted file mode 100644 index c239d125..00000000 --- a/src/it/TEST-4/invoker.properties +++ /dev/null @@ -1,9 +0,0 @@ -# An optional description for this build job to be included in the build reports. -invoker.description = Verifies that protoc location is reverted to default if unspecified. - -# A comma or space separated list of goals/phases to execute, may -# specify an empty list to execute the default goal of the IT project -invoker.goals = clean generate-sources - -# Possible values are "fail-fast" (default), "fail-at-end" and "fail-never" -invoker.failureBehavior = fail-never diff --git a/src/it/TEST-4/pom.xml b/src/it/TEST-4/pom.xml deleted file mode 100644 index 1ebc09ee..00000000 --- a/src/it/TEST-4/pom.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - 4.0.0 - - - com.google.protobuf.tools.maven-protoc-plugin.its - it-parent - 0.0.1-SNAPSHOT - - - TEST-4 - 0.0.1-SNAPSHOT - - Integration Test 4 - - - - - com.google.protobuf.tools - maven-protoc-plugin - @project.version@ - - - - compile - - - - - - - diff --git a/src/it/TEST-4/src/main/proto/test.proto b/src/it/TEST-4/src/main/proto/test.proto deleted file mode 100644 index 9a17f075..00000000 --- a/src/it/TEST-4/src/main/proto/test.proto +++ /dev/null @@ -1,6 +0,0 @@ -option java_package = "test"; -option java_outer_classname = "TestProtos"; -option optimize_for = SPEED; - -message TestMessage { -} diff --git a/src/it/TEST-4/verify.groovy b/src/it/TEST-4/verify.groovy deleted file mode 100644 index 9c7e4aa7..00000000 --- a/src/it/TEST-4/verify.groovy +++ /dev/null @@ -1,8 +0,0 @@ -buildLogFile = new File(basedir, 'build.log'); -assert buildLogFile.exists(); -assert buildLogFile.isFile(); - -content = buildLogFile.text; -assert content.contains("No 'protocExecutable' parameter is configured, using the default: 'protoc'"); - -return true; diff --git a/src/it/TEST-5/invoker.properties b/src/it/TEST-5/invoker.properties deleted file mode 100644 index 0094c6ec..00000000 --- a/src/it/TEST-5/invoker.properties +++ /dev/null @@ -1,19 +0,0 @@ -# An optional description for this build job to be included in the build reports. -invoker.description = \ - Verifies that protobuf definitions can be imported from dependency jars. \ - The dependency has the default type of 'jar' (main protobuf files import \ - main protobuf files from another project). \ - In this test, imports are scoped to packages. \ - We need to make sure that package structure for protobuf definitions \ - is preserved in packaged jars, and correctly restored for importing. - -# STEP 1 -# Build project1 and install into local repo -invoker.profiles.1 = build-project1 -invoker.goals.1 = clean install - -# STEP 2 -# Build project2, which depends on project1 -# This will test unpacking imports from project1 jar file -invoker.profiles.2 = build-project2 -invoker.goals.2 = clean compile diff --git a/src/it/TEST-5/pom.xml b/src/it/TEST-5/pom.xml deleted file mode 100644 index e18c31da..00000000 --- a/src/it/TEST-5/pom.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - - 4.0.0 - - - com.google.protobuf.tools.maven-protoc-plugin.its - it-parent - 0.0.1-SNAPSHOT - - - TEST-5-parent - 0.0.1-SNAPSHOT - pom - - Integration Test 5 (Parent) - - - - build-project1 - - project1 - - - - build-project2 - - project2 - - - - - - - - org.apache.maven.plugins - maven-toolchains-plugin - - - protobuf-toolchain - validate - - toolchain - - - - - ${protobufVersion} - - - - - - - - com.google.protobuf.tools - maven-protoc-plugin - @project.version@ - true - - - - diff --git a/src/it/TEST-5/project1/pom.xml b/src/it/TEST-5/project1/pom.xml deleted file mode 100644 index 1b93ab01..00000000 --- a/src/it/TEST-5/project1/pom.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - 4.0.0 - - - com.google.protobuf.tools.maven-protoc-plugin.its - TEST-5-parent - 0.0.1-SNAPSHOT - - - TEST-5-project1 - - Integration Test 5 (1) - - - - - com.google.protobuf.tools - maven-protoc-plugin - @project.version@ - - - - compile - - - - - - - diff --git a/src/it/TEST-5/project1/src/main/proto/it/project1/test1.proto b/src/it/TEST-5/project1/src/main/proto/it/project1/test1.proto deleted file mode 100644 index 55b6a115..00000000 --- a/src/it/TEST-5/project1/src/main/proto/it/project1/test1.proto +++ /dev/null @@ -1,8 +0,0 @@ -package it.project1; - -option java_package = "it.project1.messages"; -option java_outer_classname = "TestProtos"; -option optimize_for = SPEED; - -message TestMessage1 { -} diff --git a/src/it/TEST-5/project2/pom.xml b/src/it/TEST-5/project2/pom.xml deleted file mode 100644 index a35335c1..00000000 --- a/src/it/TEST-5/project2/pom.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - 4.0.0 - - - com.google.protobuf.tools.maven-protoc-plugin.its - TEST-5-parent - 0.0.1-SNAPSHOT - - - TEST-5-project2 - - Integration Test 5 (2) - - - - - com.google.protobuf.tools - maven-protoc-plugin - @project.version@ - - - - compile - - - - - - - - - - ${project.groupId} - TEST-5-project1 - 0.0.1-SNAPSHOT - - - diff --git a/src/it/TEST-5/project2/src/main/proto/it/project2/test2.proto b/src/it/TEST-5/project2/src/main/proto/it/project2/test2.proto deleted file mode 100644 index 1a4eb7b7..00000000 --- a/src/it/TEST-5/project2/src/main/proto/it/project2/test2.proto +++ /dev/null @@ -1,11 +0,0 @@ -package it.project2; - -import "it/project1/test1.proto"; - -option java_package = "it.project2.messages"; -option java_outer_classname = "TestProtos"; -option optimize_for = SPEED; - -message TestMessage2 { - optional it.project1.TestMessage1 included = 1; -} diff --git a/src/it/TEST-5/verify.groovy b/src/it/TEST-5/verify.groovy deleted file mode 100644 index 56f2ca7b..00000000 --- a/src/it/TEST-5/verify.groovy +++ /dev/null @@ -1,27 +0,0 @@ -outputDirectory = new File(basedir, 'project1/target/generated-sources/protobuf/java'); -assert outputDirectory.exists(); -assert outputDirectory.isDirectory(); - -generatedJavaFile = new File(outputDirectory, 'it/project1/messages/TestProtos.java'); -assert generatedJavaFile.exists(); -assert generatedJavaFile.isFile(); - -content = generatedJavaFile.text; -assert content.contains('package it.project1.messages'); -assert content.contains('class TestProtos'); -assert content.contains('class TestMessage1'); - -outputDirectory = new File(basedir, 'project2/target/generated-sources/protobuf/java'); -assert outputDirectory.exists(); -assert outputDirectory.isDirectory(); - -generatedJavaFile = new File(outputDirectory, 'it/project2/messages/TestProtos.java'); -assert generatedJavaFile.exists(); -assert generatedJavaFile.isFile(); - -content = generatedJavaFile.text; -assert content.contains('package it.project2.messages'); -assert content.contains('class TestProtos'); -assert content.contains('class TestMessage2'); - -return true; diff --git a/src/it/TEST-6/invoker.properties b/src/it/TEST-6/invoker.properties deleted file mode 100644 index 85e3faa8..00000000 --- a/src/it/TEST-6/invoker.properties +++ /dev/null @@ -1,15 +0,0 @@ -# An optional description for this build job to be included in the build reports. -invoker.description = \ - Verifies that protobuf definitions can be imported from dependency jars. \ - In this test, imports are scoped to the default package. - -# STEP 1 -# Build project1 and install into local repo -invoker.profiles.1 = build-project1 -invoker.goals.1 = clean install - -# STEP 2 -# Build project2, which depends on project1 -# This will test unpacking imports from project1 jar file -invoker.profiles.2 = build-project2 -invoker.goals.2 = clean compile diff --git a/src/it/TEST-6/pom.xml b/src/it/TEST-6/pom.xml deleted file mode 100644 index 3949775e..00000000 --- a/src/it/TEST-6/pom.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - - 4.0.0 - - - com.google.protobuf.tools.maven-protoc-plugin.its - it-parent - 0.0.1-SNAPSHOT - - - TEST-6-parent - 0.0.1-SNAPSHOT - pom - - Integration Test 6 (Parent) - - - - build-project1 - - project1 - - - - build-project2 - - project2 - - - - - - - - org.apache.maven.plugins - maven-toolchains-plugin - - - protobuf-toolchain - validate - - toolchain - - - - - ${protobufVersion} - - - - - - - - com.google.protobuf.tools - maven-protoc-plugin - @project.version@ - true - - - - diff --git a/src/it/TEST-6/project1/pom.xml b/src/it/TEST-6/project1/pom.xml deleted file mode 100644 index 667229d3..00000000 --- a/src/it/TEST-6/project1/pom.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - 4.0.0 - - - com.google.protobuf.tools.maven-protoc-plugin.its - TEST-6-parent - 0.0.1-SNAPSHOT - - - TEST-6-project1 - - Integration Test 6 (1) - - - - - com.google.protobuf.tools - maven-protoc-plugin - @project.version@ - - - - compile - - - - - - - diff --git a/src/it/TEST-6/project1/src/main/proto/test1.proto b/src/it/TEST-6/project1/src/main/proto/test1.proto deleted file mode 100644 index 1edbf06f..00000000 --- a/src/it/TEST-6/project1/src/main/proto/test1.proto +++ /dev/null @@ -1,6 +0,0 @@ -option java_package = "it.project1.messages"; -option java_outer_classname = "TestProtos"; -option optimize_for = SPEED; - -message TestMessage1 { -} diff --git a/src/it/TEST-6/project2/pom.xml b/src/it/TEST-6/project2/pom.xml deleted file mode 100644 index 49ab49d7..00000000 --- a/src/it/TEST-6/project2/pom.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - 4.0.0 - - - com.google.protobuf.tools.maven-protoc-plugin.its - TEST-6-parent - 0.0.1-SNAPSHOT - - - TEST-6-project2 - - Integration Test 6 (2) - - - - - com.google.protobuf.tools - maven-protoc-plugin - @project.version@ - - - - compile - - - - - - - - - - ${project.groupId} - TEST-6-project1 - 0.0.1-SNAPSHOT - - - diff --git a/src/it/TEST-6/project2/src/main/proto/test2.proto b/src/it/TEST-6/project2/src/main/proto/test2.proto deleted file mode 100644 index e5f14b04..00000000 --- a/src/it/TEST-6/project2/src/main/proto/test2.proto +++ /dev/null @@ -1,9 +0,0 @@ -import "test1.proto"; - -option java_package = "it.project2.messages"; -option java_outer_classname = "TestProtos"; -option optimize_for = SPEED; - -message TestMessage2 { - optional TestMessage1 included = 1; -} diff --git a/src/it/TEST-6/verify.groovy b/src/it/TEST-6/verify.groovy deleted file mode 100644 index 56f2ca7b..00000000 --- a/src/it/TEST-6/verify.groovy +++ /dev/null @@ -1,27 +0,0 @@ -outputDirectory = new File(basedir, 'project1/target/generated-sources/protobuf/java'); -assert outputDirectory.exists(); -assert outputDirectory.isDirectory(); - -generatedJavaFile = new File(outputDirectory, 'it/project1/messages/TestProtos.java'); -assert generatedJavaFile.exists(); -assert generatedJavaFile.isFile(); - -content = generatedJavaFile.text; -assert content.contains('package it.project1.messages'); -assert content.contains('class TestProtos'); -assert content.contains('class TestMessage1'); - -outputDirectory = new File(basedir, 'project2/target/generated-sources/protobuf/java'); -assert outputDirectory.exists(); -assert outputDirectory.isDirectory(); - -generatedJavaFile = new File(outputDirectory, 'it/project2/messages/TestProtos.java'); -assert generatedJavaFile.exists(); -assert generatedJavaFile.isFile(); - -content = generatedJavaFile.text; -assert content.contains('package it.project2.messages'); -assert content.contains('class TestProtos'); -assert content.contains('class TestMessage2'); - -return true; diff --git a/src/it/TEST-7/invoker.properties b/src/it/TEST-7/invoker.properties deleted file mode 100644 index 9588ee87..00000000 --- a/src/it/TEST-7/invoker.properties +++ /dev/null @@ -1,19 +0,0 @@ -# An optional description for this build job to be included in the build reports. -invoker.description = \ - Verifies that protobuf definitions can be imported from dependency jars. \ - The dependency has type of 'test-jar' (test protobuf files import \ - test protobuf files from another project). \ - In this test, imports are scoped to packages. \ - We need to make sure that package structure for protobuf definitions \ - is preserved in packaged jars, and correctly restored for importing. - -# STEP 1 -# Build project1 and install into local repo -invoker.profiles.1 = build-project1 -invoker.goals.1 = clean install - -# STEP 2 -# Build project2, which depends on project1 -# This will test unpacking imports from project1 jar file -invoker.profiles.2 = build-project2 -invoker.goals.2 = clean test-compile diff --git a/src/it/TEST-7/pom.xml b/src/it/TEST-7/pom.xml deleted file mode 100644 index 1f176770..00000000 --- a/src/it/TEST-7/pom.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - - 4.0.0 - - - com.google.protobuf.tools.maven-protoc-plugin.its - it-parent - 0.0.1-SNAPSHOT - - - TEST-7-parent - 0.0.1-SNAPSHOT - pom - - Integration Test 7 (Parent) - - - - build-project1 - - project1 - - - - build-project2 - - project2 - - - - - - - - org.apache.maven.plugins - maven-toolchains-plugin - - - protobuf-toolchain - validate - - toolchain - - - - - ${protobufVersion} - - - - - - - - com.google.protobuf.tools - maven-protoc-plugin - @project.version@ - true - - - - diff --git a/src/it/TEST-7/project1/pom.xml b/src/it/TEST-7/project1/pom.xml deleted file mode 100644 index 7de7c307..00000000 --- a/src/it/TEST-7/project1/pom.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - 4.0.0 - - - com.google.protobuf.tools.maven-protoc-plugin.its - TEST-7-parent - 0.0.1-SNAPSHOT - - - TEST-7-project1 - - Integration Test 7 (1) - - - - - com.google.protobuf.tools - maven-protoc-plugin - @project.version@ - - - - test-compile - - - - - - org.apache.maven.plugins - maven-jar-plugin - - - - test-jar - - - - - - - diff --git a/src/it/TEST-7/project1/src/test/proto/it/project1/test1.proto b/src/it/TEST-7/project1/src/test/proto/it/project1/test1.proto deleted file mode 100644 index 55b6a115..00000000 --- a/src/it/TEST-7/project1/src/test/proto/it/project1/test1.proto +++ /dev/null @@ -1,8 +0,0 @@ -package it.project1; - -option java_package = "it.project1.messages"; -option java_outer_classname = "TestProtos"; -option optimize_for = SPEED; - -message TestMessage1 { -} diff --git a/src/it/TEST-7/project2/pom.xml b/src/it/TEST-7/project2/pom.xml deleted file mode 100644 index 9af40fe6..00000000 --- a/src/it/TEST-7/project2/pom.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - 4.0.0 - - - com.google.protobuf.tools.maven-protoc-plugin.its - TEST-7-parent - 0.0.1-SNAPSHOT - - - TEST-7-project2 - - Integration Test 7 (2) - - - - - com.google.protobuf.tools - maven-protoc-plugin - @project.version@ - - - - test-compile - - - - - - - - - - ${project.groupId} - TEST-7-project1 - 0.0.1-SNAPSHOT - test-jar - test - - - diff --git a/src/it/TEST-7/project2/src/test/proto/it/project2/test2.proto b/src/it/TEST-7/project2/src/test/proto/it/project2/test2.proto deleted file mode 100644 index 1a4eb7b7..00000000 --- a/src/it/TEST-7/project2/src/test/proto/it/project2/test2.proto +++ /dev/null @@ -1,11 +0,0 @@ -package it.project2; - -import "it/project1/test1.proto"; - -option java_package = "it.project2.messages"; -option java_outer_classname = "TestProtos"; -option optimize_for = SPEED; - -message TestMessage2 { - optional it.project1.TestMessage1 included = 1; -} diff --git a/src/it/TEST-7/verify.groovy b/src/it/TEST-7/verify.groovy deleted file mode 100644 index 972d3614..00000000 --- a/src/it/TEST-7/verify.groovy +++ /dev/null @@ -1,27 +0,0 @@ -outputDirectory = new File(basedir, 'project1/target/generated-test-sources/protobuf/java'); -assert outputDirectory.exists(); -assert outputDirectory.isDirectory(); - -generatedJavaFile = new File(outputDirectory, 'it/project1/messages/TestProtos.java'); -assert generatedJavaFile.exists(); -assert generatedJavaFile.isFile(); - -content = generatedJavaFile.text; -assert content.contains('package it.project1.messages'); -assert content.contains('class TestProtos'); -assert content.contains('class TestMessage1'); - -outputDirectory = new File(basedir, 'project2/target/generated-test-sources/protobuf/java'); -assert outputDirectory.exists(); -assert outputDirectory.isDirectory(); - -generatedJavaFile = new File(outputDirectory, 'it/project2/messages/TestProtos.java'); -assert generatedJavaFile.exists(); -assert generatedJavaFile.isFile(); - -content = generatedJavaFile.text; -assert content.contains('package it.project2.messages'); -assert content.contains('class TestProtos'); -assert content.contains('class TestMessage2'); - -return true; diff --git a/src/it/TEST-8/invoker.properties b/src/it/TEST-8/invoker.properties deleted file mode 100644 index 8b0bacae..00000000 --- a/src/it/TEST-8/invoker.properties +++ /dev/null @@ -1,15 +0,0 @@ -# An optional description for this build job to be included in the build reports. -invoker.description = \ - Verifies that protobuf definitions can be imported from dependency jars. \ - In this test, imports are scoped to the default package. - -# STEP 1 -# Build project1 and install into local repo -invoker.profiles.1 = build-project1 -invoker.goals.1 = clean install - -# STEP 2 -# Build project2, which depends on project1 -# This will test unpacking imports from project1 jar file -invoker.profiles.2 = build-project2 -invoker.goals.2 = clean test-compile diff --git a/src/it/TEST-8/pom.xml b/src/it/TEST-8/pom.xml deleted file mode 100644 index 63470d96..00000000 --- a/src/it/TEST-8/pom.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - - 4.0.0 - - - com.google.protobuf.tools.maven-protoc-plugin.its - it-parent - 0.0.1-SNAPSHOT - - - TEST-8-parent - 0.0.1-SNAPSHOT - pom - - Integration Test 8 (Parent) - - - - build-project1 - - project1 - - - - build-project2 - - project2 - - - - - - - - org.apache.maven.plugins - maven-toolchains-plugin - - - protobuf-toolchain - validate - - toolchain - - - - - ${protobufVersion} - - - - - - - - com.google.protobuf.tools - maven-protoc-plugin - @project.version@ - true - - - - diff --git a/src/it/TEST-8/project1/pom.xml b/src/it/TEST-8/project1/pom.xml deleted file mode 100644 index 87bb63ec..00000000 --- a/src/it/TEST-8/project1/pom.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - 4.0.0 - - - com.google.protobuf.tools.maven-protoc-plugin.its - TEST-8-parent - 0.0.1-SNAPSHOT - - - TEST-8-project1 - - Integration Test 8 (1) - - - - - com.google.protobuf.tools - maven-protoc-plugin - @project.version@ - - - - test-compile - - - - - - org.apache.maven.plugins - maven-jar-plugin - - - - test-jar - - - - - - - diff --git a/src/it/TEST-8/project1/src/test/proto/test1.proto b/src/it/TEST-8/project1/src/test/proto/test1.proto deleted file mode 100644 index 1edbf06f..00000000 --- a/src/it/TEST-8/project1/src/test/proto/test1.proto +++ /dev/null @@ -1,6 +0,0 @@ -option java_package = "it.project1.messages"; -option java_outer_classname = "TestProtos"; -option optimize_for = SPEED; - -message TestMessage1 { -} diff --git a/src/it/TEST-8/project2/pom.xml b/src/it/TEST-8/project2/pom.xml deleted file mode 100644 index 6e4882c9..00000000 --- a/src/it/TEST-8/project2/pom.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - 4.0.0 - - - com.google.protobuf.tools.maven-protoc-plugin.its - TEST-8-parent - 0.0.1-SNAPSHOT - - - TEST-8-project2 - - Integration Test 8 (2) - - - - - com.google.protobuf.tools - maven-protoc-plugin - @project.version@ - - - - test-compile - - - - - - - - - - ${project.groupId} - TEST-8-project1 - 0.0.1-SNAPSHOT - test-jar - test - - - diff --git a/src/it/TEST-8/project2/src/test/proto/test2.proto b/src/it/TEST-8/project2/src/test/proto/test2.proto deleted file mode 100644 index e5f14b04..00000000 --- a/src/it/TEST-8/project2/src/test/proto/test2.proto +++ /dev/null @@ -1,9 +0,0 @@ -import "test1.proto"; - -option java_package = "it.project2.messages"; -option java_outer_classname = "TestProtos"; -option optimize_for = SPEED; - -message TestMessage2 { - optional TestMessage1 included = 1; -} diff --git a/src/it/TEST-8/verify.groovy b/src/it/TEST-8/verify.groovy deleted file mode 100644 index 972d3614..00000000 --- a/src/it/TEST-8/verify.groovy +++ /dev/null @@ -1,27 +0,0 @@ -outputDirectory = new File(basedir, 'project1/target/generated-test-sources/protobuf/java'); -assert outputDirectory.exists(); -assert outputDirectory.isDirectory(); - -generatedJavaFile = new File(outputDirectory, 'it/project1/messages/TestProtos.java'); -assert generatedJavaFile.exists(); -assert generatedJavaFile.isFile(); - -content = generatedJavaFile.text; -assert content.contains('package it.project1.messages'); -assert content.contains('class TestProtos'); -assert content.contains('class TestMessage1'); - -outputDirectory = new File(basedir, 'project2/target/generated-test-sources/protobuf/java'); -assert outputDirectory.exists(); -assert outputDirectory.isDirectory(); - -generatedJavaFile = new File(outputDirectory, 'it/project2/messages/TestProtos.java'); -assert generatedJavaFile.exists(); -assert generatedJavaFile.isFile(); - -content = generatedJavaFile.text; -assert content.contains('package it.project2.messages'); -assert content.contains('class TestProtos'); -assert content.contains('class TestMessage2'); - -return true; diff --git a/src/it/TEST-9/invoker.properties b/src/it/TEST-9/invoker.properties deleted file mode 100644 index a014ba28..00000000 --- a/src/it/TEST-9/invoker.properties +++ /dev/null @@ -1,10 +0,0 @@ -# An optional description for this build job to be included in the build reports. -invoker.description = \ - Verifies that protobuf definitions can be imported from other modules in the reactor. \ - The dependency has the default type of 'jar' (main protobuf files import \ - main protobuf files from another module). \ - In this test, imports are scoped to packages. \ - We need to make sure that package structure for protobuf definitions \ - is preserved in packaged jars, and correctly restored for importing. - -invoker.goals = clean compile diff --git a/src/it/TEST-9/pom.xml b/src/it/TEST-9/pom.xml deleted file mode 100644 index d4801b8f..00000000 --- a/src/it/TEST-9/pom.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - 4.0.0 - - - com.google.protobuf.tools.maven-protoc-plugin.its - it-parent - 0.0.1-SNAPSHOT - - - TEST-9-parent - 0.0.1-SNAPSHOT - pom - - Integration Test 9 (Parent) - - - project1 - project2 - - - - - - org.apache.maven.plugins - maven-toolchains-plugin - - - protobuf-toolchain - validate - - toolchain - - - - - ${protobufVersion} - - - - - - - - com.google.protobuf.tools - maven-protoc-plugin - @project.version@ - true - - - - diff --git a/src/it/TEST-9/project1/pom.xml b/src/it/TEST-9/project1/pom.xml deleted file mode 100644 index c2816c11..00000000 --- a/src/it/TEST-9/project1/pom.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - 4.0.0 - - - com.google.protobuf.tools.maven-protoc-plugin.its - TEST-9-parent - 0.0.1-SNAPSHOT - - - TEST-9-project1 - - Integration Test 9 (1) - - - - - com.google.protobuf.tools - maven-protoc-plugin - @project.version@ - - - - compile - - - - - - - diff --git a/src/it/TEST-9/project1/src/main/proto/it/project1/test1.proto b/src/it/TEST-9/project1/src/main/proto/it/project1/test1.proto deleted file mode 100644 index 55b6a115..00000000 --- a/src/it/TEST-9/project1/src/main/proto/it/project1/test1.proto +++ /dev/null @@ -1,8 +0,0 @@ -package it.project1; - -option java_package = "it.project1.messages"; -option java_outer_classname = "TestProtos"; -option optimize_for = SPEED; - -message TestMessage1 { -} diff --git a/src/it/TEST-9/project2/pom.xml b/src/it/TEST-9/project2/pom.xml deleted file mode 100644 index d093b0f8..00000000 --- a/src/it/TEST-9/project2/pom.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - 4.0.0 - - - com.google.protobuf.tools.maven-protoc-plugin.its - TEST-9-parent - 0.0.1-SNAPSHOT - - - TEST-9-project2 - - Integration Test 9 (2) - - - - - com.google.protobuf.tools - maven-protoc-plugin - @project.version@ - - - - compile - - - - - - - - - - ${project.groupId} - TEST-9-project1 - 0.0.1-SNAPSHOT - - - diff --git a/src/it/TEST-9/project2/src/main/proto/it/project2/test2.proto b/src/it/TEST-9/project2/src/main/proto/it/project2/test2.proto deleted file mode 100644 index 1a4eb7b7..00000000 --- a/src/it/TEST-9/project2/src/main/proto/it/project2/test2.proto +++ /dev/null @@ -1,11 +0,0 @@ -package it.project2; - -import "it/project1/test1.proto"; - -option java_package = "it.project2.messages"; -option java_outer_classname = "TestProtos"; -option optimize_for = SPEED; - -message TestMessage2 { - optional it.project1.TestMessage1 included = 1; -} diff --git a/src/it/TEST-9/verify.groovy b/src/it/TEST-9/verify.groovy deleted file mode 100644 index 56f2ca7b..00000000 --- a/src/it/TEST-9/verify.groovy +++ /dev/null @@ -1,27 +0,0 @@ -outputDirectory = new File(basedir, 'project1/target/generated-sources/protobuf/java'); -assert outputDirectory.exists(); -assert outputDirectory.isDirectory(); - -generatedJavaFile = new File(outputDirectory, 'it/project1/messages/TestProtos.java'); -assert generatedJavaFile.exists(); -assert generatedJavaFile.isFile(); - -content = generatedJavaFile.text; -assert content.contains('package it.project1.messages'); -assert content.contains('class TestProtos'); -assert content.contains('class TestMessage1'); - -outputDirectory = new File(basedir, 'project2/target/generated-sources/protobuf/java'); -assert outputDirectory.exists(); -assert outputDirectory.isDirectory(); - -generatedJavaFile = new File(outputDirectory, 'it/project2/messages/TestProtos.java'); -assert generatedJavaFile.exists(); -assert generatedJavaFile.isFile(); - -content = generatedJavaFile.text; -assert content.contains('package it.project2.messages'); -assert content.contains('class TestProtos'); -assert content.contains('class TestMessage2'); - -return true; diff --git a/src/it/settings.xml b/src/it/settings.xml deleted file mode 100644 index 66bb47ed..00000000 --- a/src/it/settings.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - it-repo - - true - - - - local.central - @localRepositoryUrl@ - - true - - - true - - - - - - local.central - @localRepositoryUrl@ - - true - - - true - - - - - - diff --git a/src/it/setup-it-parent/invoker.properties b/src/it/setup-it-parent/invoker.properties deleted file mode 100644 index 0cd4dd84..00000000 --- a/src/it/setup-it-parent/invoker.properties +++ /dev/null @@ -1,7 +0,0 @@ -# An optional description for this build job to be included in the build reports. -invoker.description = \ - Installs a common parent POM for all integration tests. - -# A comma or space separated list of goals/phases to execute, may -# specify an empty list to execute the default goal of the IT project -invoker.goals = clean install diff --git a/src/it/setup-it-parent/pom.xml b/src/it/setup-it-parent/pom.xml deleted file mode 100644 index aa320e92..00000000 --- a/src/it/setup-it-parent/pom.xml +++ /dev/null @@ -1,139 +0,0 @@ - - - - - 4.0.0 - - com.google.protobuf.tools.maven-protoc-plugin.its - it-parent - 0.0.1-SNAPSHOT - pom - - Integration Test Parent - - - UTF-8 - - - 1.6 - - ${java.sdk.version} - ${java.sdk.version} - ${java.sdk.version} - - 3.0 - - [2.4,2.7) - - - - ${mavenVersion} - - - - - - - org.apache.maven.plugins - maven-enforcer-plugin - 1.4 - true - - - org.apache.maven.plugins - maven-toolchains-plugin - 1.1 - true - - - org.apache.maven.plugins - maven-compiler-plugin - 3.3 - true - - - org.apache.maven.plugins - maven-jar-plugin - 2.6 - - - - - - org.apache.maven.plugins - maven-enforcer-plugin - - - enforce-build-environment - - enforce - - - - - [${mavenVersion},) - - - [${java.sdk.version},) - - - true - - - - - - org.apache.maven.plugins - maven-toolchains-plugin - true - - - default-toolchain - validate - - toolchain - - - - - - - [${java.sdk.version},) - - - - - - org.apache.maven.plugins - maven-compiler-plugin - - true - ${java.compiler.compilerVersion} - ${java.compiler.source} - ${java.compiler.target} - true - true - -Xlint:all - -Xlint:all - - - - - - - - com.google.protobuf - protobuf-java - ${protobufVersion} - - - - junit - junit - 4.12 - test - - - diff --git a/src/it/setup-protoc-plugin/invoker.properties b/src/it/setup-protoc-plugin/invoker.properties deleted file mode 100644 index fd56ae6a..00000000 --- a/src/it/setup-protoc-plugin/invoker.properties +++ /dev/null @@ -1,6 +0,0 @@ -# An optional description for this build job to be included in the build reports. -invoker.description = install minimal protoc plugin - -# A comma or space separated list of goals/phases to execute, may -# specify an empty list to execute the default goal of the IT project -invoker.goals = clean install diff --git a/src/it/setup-protoc-plugin/pom.xml b/src/it/setup-protoc-plugin/pom.xml deleted file mode 100644 index 1529c1cf..00000000 --- a/src/it/setup-protoc-plugin/pom.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - 4.0.0 - com.google.protobuf.tools.maven-protoc-plugin.its - test-protoc-plugin - minimal protoc plugin - 1.0.5 - - - - org.apache.maven.plugins - maven-compiler-plugin - 3.3 - - 1.6 - 1.6 - - - - - - - - com.google.protobuf - protobuf-java - 2.4.1 - compile - - - - - commons-cli - commons-cli - 1.2 - runtime - - - - commons-lang - commons-lang - 2.6 - provided - - - - junit - junit - 4.11 - test - - - diff --git a/src/it/setup-protoc-plugin/src/main/java/com/google/protobuf/DescriptorProtos.java b/src/it/setup-protoc-plugin/src/main/java/com/google/protobuf/DescriptorProtos.java deleted file mode 100644 index a5634885..00000000 --- a/src/it/setup-protoc-plugin/src/main/java/com/google/protobuf/DescriptorProtos.java +++ /dev/null @@ -1,17063 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/protobuf/descriptor.proto - -package com.google.protobuf; - -public final class DescriptorProtos { - private DescriptorProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public interface FileDescriptorSetOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // repeated .google.protobuf.FileDescriptorProto file = 1; - java.util.List - getFileList(); - com.google.protobuf.DescriptorProtos.FileDescriptorProto getFile(int index); - int getFileCount(); - java.util.List - getFileOrBuilderList(); - com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder getFileOrBuilder( - int index); - } - public static final class FileDescriptorSet extends - com.google.protobuf.GeneratedMessage - implements FileDescriptorSetOrBuilder { - // Use FileDescriptorSet.newBuilder() to construct. - private FileDescriptorSet(Builder builder) { - super(builder); - } - private FileDescriptorSet(boolean noInit) {} - - private static final FileDescriptorSet defaultInstance; - public static FileDescriptorSet getDefaultInstance() { - return defaultInstance; - } - - public FileDescriptorSet getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileDescriptorSet_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileDescriptorSet_fieldAccessorTable; - } - - // repeated .google.protobuf.FileDescriptorProto file = 1; - public static final int FILE_FIELD_NUMBER = 1; - private java.util.List file_; - public java.util.List getFileList() { - return file_; - } - public java.util.List - getFileOrBuilderList() { - return file_; - } - public int getFileCount() { - return file_.size(); - } - public com.google.protobuf.DescriptorProtos.FileDescriptorProto getFile(int index) { - return file_.get(index); - } - public com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder getFileOrBuilder( - int index) { - return file_.get(index); - } - - private void initFields() { - file_ = java.util.Collections.emptyList(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - for (int i = 0; i < getFileCount(); i++) { - if (!getFile(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - for (int i = 0; i < file_.size(); i++) { - output.writeMessage(1, file_.get(i)); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < file_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, file_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @Override - protected Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); - } - public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); - } - public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); - } - public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } - public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } - public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static com.google.protobuf.DescriptorProtos.FileDescriptorSet parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(com.google.protobuf.DescriptorProtos.FileDescriptorSet prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileDescriptorSet_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileDescriptorSet_fieldAccessorTable; - } - - // Construct using com.google.protobuf.DescriptorProtos.FileDescriptorSet.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getFileFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - if (fileBuilder_ == null) { - file_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - fileBuilder_.clear(); - } - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDescriptor(); - } - - public com.google.protobuf.DescriptorProtos.FileDescriptorSet getDefaultInstanceForType() { - return com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance(); - } - - public com.google.protobuf.DescriptorProtos.FileDescriptorSet build() { - com.google.protobuf.DescriptorProtos.FileDescriptorSet result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private com.google.protobuf.DescriptorProtos.FileDescriptorSet buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - com.google.protobuf.DescriptorProtos.FileDescriptorSet result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public com.google.protobuf.DescriptorProtos.FileDescriptorSet buildPartial() { - com.google.protobuf.DescriptorProtos.FileDescriptorSet result = new com.google.protobuf.DescriptorProtos.FileDescriptorSet(this); - int from_bitField0_ = bitField0_; - if (fileBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - file_ = java.util.Collections.unmodifiableList(file_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.file_ = file_; - } else { - result.file_ = fileBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.protobuf.DescriptorProtos.FileDescriptorSet) { - return mergeFrom((com.google.protobuf.DescriptorProtos.FileDescriptorSet)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.protobuf.DescriptorProtos.FileDescriptorSet other) { - if (other == com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance()) return this; - if (fileBuilder_ == null) { - if (!other.file_.isEmpty()) { - if (file_.isEmpty()) { - file_ = other.file_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureFileIsMutable(); - file_.addAll(other.file_); - } - onChanged(); - } - } else { - if (!other.file_.isEmpty()) { - if (fileBuilder_.isEmpty()) { - fileBuilder_.dispose(); - fileBuilder_ = null; - file_ = other.file_; - bitField0_ = (bitField0_ & ~0x00000001); - fileBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getFileFieldBuilder() : null; - } else { - fileBuilder_.addAllMessages(other.file_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - for (int i = 0; i < getFileCount(); i++) { - if (!getFile(i).isInitialized()) { - - return false; - } - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder( - this.getUnknownFields()); - while (true) { - int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - } - break; - } - case 10: { - com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder subBuilder = com.google.protobuf.DescriptorProtos.FileDescriptorProto.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - addFile(subBuilder.buildPartial()); - break; - } - } - } - } - - private int bitField0_; - - // repeated .google.protobuf.FileDescriptorProto file = 1; - private java.util.List file_ = - java.util.Collections.emptyList(); - private void ensureFileIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - file_ = new java.util.ArrayList(file_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.DescriptorProtos.FileDescriptorProto, com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder> fileBuilder_; - - public java.util.List getFileList() { - if (fileBuilder_ == null) { - return java.util.Collections.unmodifiableList(file_); - } else { - return fileBuilder_.getMessageList(); - } - } - public int getFileCount() { - if (fileBuilder_ == null) { - return file_.size(); - } else { - return fileBuilder_.getCount(); - } - } - public com.google.protobuf.DescriptorProtos.FileDescriptorProto getFile(int index) { - if (fileBuilder_ == null) { - return file_.get(index); - } else { - return fileBuilder_.getMessage(index); - } - } - public Builder setFile( - int index, com.google.protobuf.DescriptorProtos.FileDescriptorProto value) { - if (fileBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFileIsMutable(); - file_.set(index, value); - onChanged(); - } else { - fileBuilder_.setMessage(index, value); - } - return this; - } - public Builder setFile( - int index, com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder builderForValue) { - if (fileBuilder_ == null) { - ensureFileIsMutable(); - file_.set(index, builderForValue.build()); - onChanged(); - } else { - fileBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - public Builder addFile(com.google.protobuf.DescriptorProtos.FileDescriptorProto value) { - if (fileBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFileIsMutable(); - file_.add(value); - onChanged(); - } else { - fileBuilder_.addMessage(value); - } - return this; - } - public Builder addFile( - int index, com.google.protobuf.DescriptorProtos.FileDescriptorProto value) { - if (fileBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFileIsMutable(); - file_.add(index, value); - onChanged(); - } else { - fileBuilder_.addMessage(index, value); - } - return this; - } - public Builder addFile( - com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder builderForValue) { - if (fileBuilder_ == null) { - ensureFileIsMutable(); - file_.add(builderForValue.build()); - onChanged(); - } else { - fileBuilder_.addMessage(builderForValue.build()); - } - return this; - } - public Builder addFile( - int index, com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder builderForValue) { - if (fileBuilder_ == null) { - ensureFileIsMutable(); - file_.add(index, builderForValue.build()); - onChanged(); - } else { - fileBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - public Builder addAllFile( - Iterable values) { - if (fileBuilder_ == null) { - ensureFileIsMutable(); - super.addAll(values, file_); - onChanged(); - } else { - fileBuilder_.addAllMessages(values); - } - return this; - } - public Builder clearFile() { - if (fileBuilder_ == null) { - file_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - fileBuilder_.clear(); - } - return this; - } - public Builder removeFile(int index) { - if (fileBuilder_ == null) { - ensureFileIsMutable(); - file_.remove(index); - onChanged(); - } else { - fileBuilder_.remove(index); - } - return this; - } - public com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder getFileBuilder( - int index) { - return getFileFieldBuilder().getBuilder(index); - } - public com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder getFileOrBuilder( - int index) { - if (fileBuilder_ == null) { - return file_.get(index); } else { - return fileBuilder_.getMessageOrBuilder(index); - } - } - public java.util.List - getFileOrBuilderList() { - if (fileBuilder_ != null) { - return fileBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(file_); - } - } - public com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder addFileBuilder() { - return getFileFieldBuilder().addBuilder( - com.google.protobuf.DescriptorProtos.FileDescriptorProto.getDefaultInstance()); - } - public com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder addFileBuilder( - int index) { - return getFileFieldBuilder().addBuilder( - index, com.google.protobuf.DescriptorProtos.FileDescriptorProto.getDefaultInstance()); - } - public java.util.List - getFileBuilderList() { - return getFileFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.DescriptorProtos.FileDescriptorProto, com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder> - getFileFieldBuilder() { - if (fileBuilder_ == null) { - fileBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.DescriptorProtos.FileDescriptorProto, com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder>( - file_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - file_ = null; - } - return fileBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.protobuf.FileDescriptorSet) - } - - static { - defaultInstance = new FileDescriptorSet(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:google.protobuf.FileDescriptorSet) - } - - public interface FileDescriptorProtoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional string name = 1; - boolean hasName(); - String getName(); - - // optional string package = 2; - boolean hasPackage(); - String getPackage(); - - // repeated string dependency = 3; - java.util.List getDependencyList(); - int getDependencyCount(); - String getDependency(int index); - - // repeated .google.protobuf.DescriptorProto message_type = 4; - java.util.List - getMessageTypeList(); - com.google.protobuf.DescriptorProtos.DescriptorProto getMessageType(int index); - int getMessageTypeCount(); - java.util.List - getMessageTypeOrBuilderList(); - com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder getMessageTypeOrBuilder( - int index); - - // repeated .google.protobuf.EnumDescriptorProto enum_type = 5; - java.util.List - getEnumTypeList(); - com.google.protobuf.DescriptorProtos.EnumDescriptorProto getEnumType(int index); - int getEnumTypeCount(); - java.util.List - getEnumTypeOrBuilderList(); - com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder getEnumTypeOrBuilder( - int index); - - // repeated .google.protobuf.ServiceDescriptorProto service = 6; - java.util.List - getServiceList(); - com.google.protobuf.DescriptorProtos.ServiceDescriptorProto getService(int index); - int getServiceCount(); - java.util.List - getServiceOrBuilderList(); - com.google.protobuf.DescriptorProtos.ServiceDescriptorProtoOrBuilder getServiceOrBuilder( - int index); - - // repeated .google.protobuf.FieldDescriptorProto extension = 7; - java.util.List - getExtensionList(); - com.google.protobuf.DescriptorProtos.FieldDescriptorProto getExtension(int index); - int getExtensionCount(); - java.util.List - getExtensionOrBuilderList(); - com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder getExtensionOrBuilder( - int index); - - // optional .google.protobuf.FileOptions options = 8; - boolean hasOptions(); - com.google.protobuf.DescriptorProtos.FileOptions getOptions(); - com.google.protobuf.DescriptorProtos.FileOptionsOrBuilder getOptionsOrBuilder(); - - // optional .google.protobuf.SourceCodeInfo source_code_info = 9; - boolean hasSourceCodeInfo(); - com.google.protobuf.DescriptorProtos.SourceCodeInfo getSourceCodeInfo(); - com.google.protobuf.DescriptorProtos.SourceCodeInfoOrBuilder getSourceCodeInfoOrBuilder(); - } - public static final class FileDescriptorProto extends - com.google.protobuf.GeneratedMessage - implements FileDescriptorProtoOrBuilder { - // Use FileDescriptorProto.newBuilder() to construct. - private FileDescriptorProto(Builder builder) { - super(builder); - } - private FileDescriptorProto(boolean noInit) {} - - private static final FileDescriptorProto defaultInstance; - public static FileDescriptorProto getDefaultInstance() { - return defaultInstance; - } - - public FileDescriptorProto getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileDescriptorProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileDescriptorProto_fieldAccessorTable; - } - - private int bitField0_; - // optional string name = 1; - public static final int NAME_FIELD_NUMBER = 1; - private Object name_; - public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public String getName() { - Object ref = name_; - if (ref instanceof String) { - return (String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - if (com.google.protobuf.Internal.isValidUtf8(bs)) { - name_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getNameBytes() { - Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string package = 2; - public static final int PACKAGE_FIELD_NUMBER = 2; - private Object package_; - public boolean hasPackage() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public String getPackage() { - Object ref = package_; - if (ref instanceof String) { - return (String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - if (com.google.protobuf.Internal.isValidUtf8(bs)) { - package_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getPackageBytes() { - Object ref = package_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - package_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // repeated string dependency = 3; - public static final int DEPENDENCY_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList dependency_; - public java.util.List - getDependencyList() { - return dependency_; - } - public int getDependencyCount() { - return dependency_.size(); - } - public String getDependency(int index) { - return dependency_.get(index); - } - - // repeated .google.protobuf.DescriptorProto message_type = 4; - public static final int MESSAGE_TYPE_FIELD_NUMBER = 4; - private java.util.List messageType_; - public java.util.List getMessageTypeList() { - return messageType_; - } - public java.util.List - getMessageTypeOrBuilderList() { - return messageType_; - } - public int getMessageTypeCount() { - return messageType_.size(); - } - public com.google.protobuf.DescriptorProtos.DescriptorProto getMessageType(int index) { - return messageType_.get(index); - } - public com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder getMessageTypeOrBuilder( - int index) { - return messageType_.get(index); - } - - // repeated .google.protobuf.EnumDescriptorProto enum_type = 5; - public static final int ENUM_TYPE_FIELD_NUMBER = 5; - private java.util.List enumType_; - public java.util.List getEnumTypeList() { - return enumType_; - } - public java.util.List - getEnumTypeOrBuilderList() { - return enumType_; - } - public int getEnumTypeCount() { - return enumType_.size(); - } - public com.google.protobuf.DescriptorProtos.EnumDescriptorProto getEnumType(int index) { - return enumType_.get(index); - } - public com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder getEnumTypeOrBuilder( - int index) { - return enumType_.get(index); - } - - // repeated .google.protobuf.ServiceDescriptorProto service = 6; - public static final int SERVICE_FIELD_NUMBER = 6; - private java.util.List service_; - public java.util.List getServiceList() { - return service_; - } - public java.util.List - getServiceOrBuilderList() { - return service_; - } - public int getServiceCount() { - return service_.size(); - } - public com.google.protobuf.DescriptorProtos.ServiceDescriptorProto getService(int index) { - return service_.get(index); - } - public com.google.protobuf.DescriptorProtos.ServiceDescriptorProtoOrBuilder getServiceOrBuilder( - int index) { - return service_.get(index); - } - - // repeated .google.protobuf.FieldDescriptorProto extension = 7; - public static final int EXTENSION_FIELD_NUMBER = 7; - private java.util.List extension_; - public java.util.List getExtensionList() { - return extension_; - } - public java.util.List - getExtensionOrBuilderList() { - return extension_; - } - public int getExtensionCount() { - return extension_.size(); - } - public com.google.protobuf.DescriptorProtos.FieldDescriptorProto getExtension(int index) { - return extension_.get(index); - } - public com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder getExtensionOrBuilder( - int index) { - return extension_.get(index); - } - - // optional .google.protobuf.FileOptions options = 8; - public static final int OPTIONS_FIELD_NUMBER = 8; - private com.google.protobuf.DescriptorProtos.FileOptions options_; - public boolean hasOptions() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - public com.google.protobuf.DescriptorProtos.FileOptions getOptions() { - return options_; - } - public com.google.protobuf.DescriptorProtos.FileOptionsOrBuilder getOptionsOrBuilder() { - return options_; - } - - // optional .google.protobuf.SourceCodeInfo source_code_info = 9; - public static final int SOURCE_CODE_INFO_FIELD_NUMBER = 9; - private com.google.protobuf.DescriptorProtos.SourceCodeInfo sourceCodeInfo_; - public boolean hasSourceCodeInfo() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - public com.google.protobuf.DescriptorProtos.SourceCodeInfo getSourceCodeInfo() { - return sourceCodeInfo_; - } - public com.google.protobuf.DescriptorProtos.SourceCodeInfoOrBuilder getSourceCodeInfoOrBuilder() { - return sourceCodeInfo_; - } - - private void initFields() { - name_ = ""; - package_ = ""; - dependency_ = com.google.protobuf.LazyStringArrayList.EMPTY; - messageType_ = java.util.Collections.emptyList(); - enumType_ = java.util.Collections.emptyList(); - service_ = java.util.Collections.emptyList(); - extension_ = java.util.Collections.emptyList(); - options_ = com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance(); - sourceCodeInfo_ = com.google.protobuf.DescriptorProtos.SourceCodeInfo.getDefaultInstance(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - for (int i = 0; i < getMessageTypeCount(); i++) { - if (!getMessageType(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < getEnumTypeCount(); i++) { - if (!getEnumType(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < getServiceCount(); i++) { - if (!getService(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < getExtensionCount(); i++) { - if (!getExtension(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasOptions()) { - if (!getOptions().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getNameBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getPackageBytes()); - } - for (int i = 0; i < dependency_.size(); i++) { - output.writeBytes(3, dependency_.getByteString(i)); - } - for (int i = 0; i < messageType_.size(); i++) { - output.writeMessage(4, messageType_.get(i)); - } - for (int i = 0; i < enumType_.size(); i++) { - output.writeMessage(5, enumType_.get(i)); - } - for (int i = 0; i < service_.size(); i++) { - output.writeMessage(6, service_.get(i)); - } - for (int i = 0; i < extension_.size(); i++) { - output.writeMessage(7, extension_.get(i)); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(8, options_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeMessage(9, sourceCodeInfo_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getNameBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getPackageBytes()); - } - { - int dataSize = 0; - for (int i = 0; i < dependency_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(dependency_.getByteString(i)); - } - size += dataSize; - size += 1 * getDependencyList().size(); - } - for (int i = 0; i < messageType_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, messageType_.get(i)); - } - for (int i = 0; i < enumType_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, enumType_.get(i)); - } - for (int i = 0; i < service_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, service_.get(i)); - } - for (int i = 0; i < extension_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, extension_.get(i)); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, options_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, sourceCodeInfo_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @Override - protected Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); - } - public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); - } - public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); - } - public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } - public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } - public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static com.google.protobuf.DescriptorProtos.FileDescriptorProto parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(com.google.protobuf.DescriptorProtos.FileDescriptorProto prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements com.google.protobuf.DescriptorProtos.FileDescriptorProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileDescriptorProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FileDescriptorProto_fieldAccessorTable; - } - - // Construct using com.google.protobuf.DescriptorProtos.FileDescriptorProto.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getMessageTypeFieldBuilder(); - getEnumTypeFieldBuilder(); - getServiceFieldBuilder(); - getExtensionFieldBuilder(); - getOptionsFieldBuilder(); - getSourceCodeInfoFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - package_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - dependency_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - if (messageTypeBuilder_ == null) { - messageType_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - messageTypeBuilder_.clear(); - } - if (enumTypeBuilder_ == null) { - enumType_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - } else { - enumTypeBuilder_.clear(); - } - if (serviceBuilder_ == null) { - service_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - } else { - serviceBuilder_.clear(); - } - if (extensionBuilder_ == null) { - extension_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - } else { - extensionBuilder_.clear(); - } - if (optionsBuilder_ == null) { - options_ = com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance(); - } else { - optionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000080); - if (sourceCodeInfoBuilder_ == null) { - sourceCodeInfo_ = com.google.protobuf.DescriptorProtos.SourceCodeInfo.getDefaultInstance(); - } else { - sourceCodeInfoBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000100); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.protobuf.DescriptorProtos.FileDescriptorProto.getDescriptor(); - } - - public com.google.protobuf.DescriptorProtos.FileDescriptorProto getDefaultInstanceForType() { - return com.google.protobuf.DescriptorProtos.FileDescriptorProto.getDefaultInstance(); - } - - public com.google.protobuf.DescriptorProtos.FileDescriptorProto build() { - com.google.protobuf.DescriptorProtos.FileDescriptorProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private com.google.protobuf.DescriptorProtos.FileDescriptorProto buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - com.google.protobuf.DescriptorProtos.FileDescriptorProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public com.google.protobuf.DescriptorProtos.FileDescriptorProto buildPartial() { - com.google.protobuf.DescriptorProtos.FileDescriptorProto result = new com.google.protobuf.DescriptorProtos.FileDescriptorProto(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.name_ = name_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.package_ = package_; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - dependency_ = new com.google.protobuf.UnmodifiableLazyStringList( - dependency_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.dependency_ = dependency_; - if (messageTypeBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008)) { - messageType_ = java.util.Collections.unmodifiableList(messageType_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.messageType_ = messageType_; - } else { - result.messageType_ = messageTypeBuilder_.build(); - } - if (enumTypeBuilder_ == null) { - if (((bitField0_ & 0x00000010) == 0x00000010)) { - enumType_ = java.util.Collections.unmodifiableList(enumType_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.enumType_ = enumType_; - } else { - result.enumType_ = enumTypeBuilder_.build(); - } - if (serviceBuilder_ == null) { - if (((bitField0_ & 0x00000020) == 0x00000020)) { - service_ = java.util.Collections.unmodifiableList(service_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.service_ = service_; - } else { - result.service_ = serviceBuilder_.build(); - } - if (extensionBuilder_ == null) { - if (((bitField0_ & 0x00000040) == 0x00000040)) { - extension_ = java.util.Collections.unmodifiableList(extension_); - bitField0_ = (bitField0_ & ~0x00000040); - } - result.extension_ = extension_; - } else { - result.extension_ = extensionBuilder_.build(); - } - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { - to_bitField0_ |= 0x00000004; - } - if (optionsBuilder_ == null) { - result.options_ = options_; - } else { - result.options_ = optionsBuilder_.build(); - } - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { - to_bitField0_ |= 0x00000008; - } - if (sourceCodeInfoBuilder_ == null) { - result.sourceCodeInfo_ = sourceCodeInfo_; - } else { - result.sourceCodeInfo_ = sourceCodeInfoBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.protobuf.DescriptorProtos.FileDescriptorProto) { - return mergeFrom((com.google.protobuf.DescriptorProtos.FileDescriptorProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.protobuf.DescriptorProtos.FileDescriptorProto other) { - if (other == com.google.protobuf.DescriptorProtos.FileDescriptorProto.getDefaultInstance()) return this; - if (other.hasName()) { - setName(other.getName()); - } - if (other.hasPackage()) { - setPackage(other.getPackage()); - } - if (!other.dependency_.isEmpty()) { - if (dependency_.isEmpty()) { - dependency_ = other.dependency_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureDependencyIsMutable(); - dependency_.addAll(other.dependency_); - } - onChanged(); - } - if (messageTypeBuilder_ == null) { - if (!other.messageType_.isEmpty()) { - if (messageType_.isEmpty()) { - messageType_ = other.messageType_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureMessageTypeIsMutable(); - messageType_.addAll(other.messageType_); - } - onChanged(); - } - } else { - if (!other.messageType_.isEmpty()) { - if (messageTypeBuilder_.isEmpty()) { - messageTypeBuilder_.dispose(); - messageTypeBuilder_ = null; - messageType_ = other.messageType_; - bitField0_ = (bitField0_ & ~0x00000008); - messageTypeBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getMessageTypeFieldBuilder() : null; - } else { - messageTypeBuilder_.addAllMessages(other.messageType_); - } - } - } - if (enumTypeBuilder_ == null) { - if (!other.enumType_.isEmpty()) { - if (enumType_.isEmpty()) { - enumType_ = other.enumType_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureEnumTypeIsMutable(); - enumType_.addAll(other.enumType_); - } - onChanged(); - } - } else { - if (!other.enumType_.isEmpty()) { - if (enumTypeBuilder_.isEmpty()) { - enumTypeBuilder_.dispose(); - enumTypeBuilder_ = null; - enumType_ = other.enumType_; - bitField0_ = (bitField0_ & ~0x00000010); - enumTypeBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getEnumTypeFieldBuilder() : null; - } else { - enumTypeBuilder_.addAllMessages(other.enumType_); - } - } - } - if (serviceBuilder_ == null) { - if (!other.service_.isEmpty()) { - if (service_.isEmpty()) { - service_ = other.service_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureServiceIsMutable(); - service_.addAll(other.service_); - } - onChanged(); - } - } else { - if (!other.service_.isEmpty()) { - if (serviceBuilder_.isEmpty()) { - serviceBuilder_.dispose(); - serviceBuilder_ = null; - service_ = other.service_; - bitField0_ = (bitField0_ & ~0x00000020); - serviceBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getServiceFieldBuilder() : null; - } else { - serviceBuilder_.addAllMessages(other.service_); - } - } - } - if (extensionBuilder_ == null) { - if (!other.extension_.isEmpty()) { - if (extension_.isEmpty()) { - extension_ = other.extension_; - bitField0_ = (bitField0_ & ~0x00000040); - } else { - ensureExtensionIsMutable(); - extension_.addAll(other.extension_); - } - onChanged(); - } - } else { - if (!other.extension_.isEmpty()) { - if (extensionBuilder_.isEmpty()) { - extensionBuilder_.dispose(); - extensionBuilder_ = null; - extension_ = other.extension_; - bitField0_ = (bitField0_ & ~0x00000040); - extensionBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getExtensionFieldBuilder() : null; - } else { - extensionBuilder_.addAllMessages(other.extension_); - } - } - } - if (other.hasOptions()) { - mergeOptions(other.getOptions()); - } - if (other.hasSourceCodeInfo()) { - mergeSourceCodeInfo(other.getSourceCodeInfo()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - for (int i = 0; i < getMessageTypeCount(); i++) { - if (!getMessageType(i).isInitialized()) { - - return false; - } - } - for (int i = 0; i < getEnumTypeCount(); i++) { - if (!getEnumType(i).isInitialized()) { - - return false; - } - } - for (int i = 0; i < getServiceCount(); i++) { - if (!getService(i).isInitialized()) { - - return false; - } - } - for (int i = 0; i < getExtensionCount(); i++) { - if (!getExtension(i).isInitialized()) { - - return false; - } - } - if (hasOptions()) { - if (!getOptions().isInitialized()) { - - return false; - } - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder( - this.getUnknownFields()); - while (true) { - int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - name_ = input.readBytes(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - package_ = input.readBytes(); - break; - } - case 26: { - ensureDependencyIsMutable(); - dependency_.add(input.readBytes()); - break; - } - case 34: { - com.google.protobuf.DescriptorProtos.DescriptorProto.Builder subBuilder = com.google.protobuf.DescriptorProtos.DescriptorProto.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - addMessageType(subBuilder.buildPartial()); - break; - } - case 42: { - com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder subBuilder = com.google.protobuf.DescriptorProtos.EnumDescriptorProto.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - addEnumType(subBuilder.buildPartial()); - break; - } - case 50: { - com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.Builder subBuilder = com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - addService(subBuilder.buildPartial()); - break; - } - case 58: { - com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder subBuilder = com.google.protobuf.DescriptorProtos.FieldDescriptorProto.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - addExtension(subBuilder.buildPartial()); - break; - } - case 66: { - com.google.protobuf.DescriptorProtos.FileOptions.Builder subBuilder = com.google.protobuf.DescriptorProtos.FileOptions.newBuilder(); - if (hasOptions()) { - subBuilder.mergeFrom(getOptions()); - } - input.readMessage(subBuilder, extensionRegistry); - setOptions(subBuilder.buildPartial()); - break; - } - case 74: { - com.google.protobuf.DescriptorProtos.SourceCodeInfo.Builder subBuilder = com.google.protobuf.DescriptorProtos.SourceCodeInfo.newBuilder(); - if (hasSourceCodeInfo()) { - subBuilder.mergeFrom(getSourceCodeInfo()); - } - input.readMessage(subBuilder, extensionRegistry); - setSourceCodeInfo(subBuilder.buildPartial()); - break; - } - } - } - } - - private int bitField0_; - - // optional string name = 1; - private Object name_ = ""; - public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public String getName() { - Object ref = name_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - name_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setName(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = value; - onChanged(); - return this; - } - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000001); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - void setName(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000001; - name_ = value; - onChanged(); - } - - // optional string package = 2; - private Object package_ = ""; - public boolean hasPackage() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public String getPackage() { - Object ref = package_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - package_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setPackage(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - package_ = value; - onChanged(); - return this; - } - public Builder clearPackage() { - bitField0_ = (bitField0_ & ~0x00000002); - package_ = getDefaultInstance().getPackage(); - onChanged(); - return this; - } - void setPackage(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000002; - package_ = value; - onChanged(); - } - - // repeated string dependency = 3; - private com.google.protobuf.LazyStringList dependency_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureDependencyIsMutable() { - if (!((bitField0_ & 0x00000004) == 0x00000004)) { - dependency_ = new com.google.protobuf.LazyStringArrayList(dependency_); - bitField0_ |= 0x00000004; - } - } - public java.util.List - getDependencyList() { - return java.util.Collections.unmodifiableList(dependency_); - } - public int getDependencyCount() { - return dependency_.size(); - } - public String getDependency(int index) { - return dependency_.get(index); - } - public Builder setDependency( - int index, String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDependencyIsMutable(); - dependency_.set(index, value); - onChanged(); - return this; - } - public Builder addDependency(String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDependencyIsMutable(); - dependency_.add(value); - onChanged(); - return this; - } - public Builder addAllDependency( - Iterable values) { - ensureDependencyIsMutable(); - super.addAll(values, dependency_); - onChanged(); - return this; - } - public Builder clearDependency() { - dependency_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - void addDependency(com.google.protobuf.ByteString value) { - ensureDependencyIsMutable(); - dependency_.add(value); - onChanged(); - } - - // repeated .google.protobuf.DescriptorProto message_type = 4; - private java.util.List messageType_ = - java.util.Collections.emptyList(); - private void ensureMessageTypeIsMutable() { - if (!((bitField0_ & 0x00000008) == 0x00000008)) { - messageType_ = new java.util.ArrayList(messageType_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.DescriptorProtos.DescriptorProto, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder, com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> messageTypeBuilder_; - - public java.util.List getMessageTypeList() { - if (messageTypeBuilder_ == null) { - return java.util.Collections.unmodifiableList(messageType_); - } else { - return messageTypeBuilder_.getMessageList(); - } - } - public int getMessageTypeCount() { - if (messageTypeBuilder_ == null) { - return messageType_.size(); - } else { - return messageTypeBuilder_.getCount(); - } - } - public com.google.protobuf.DescriptorProtos.DescriptorProto getMessageType(int index) { - if (messageTypeBuilder_ == null) { - return messageType_.get(index); - } else { - return messageTypeBuilder_.getMessage(index); - } - } - public Builder setMessageType( - int index, com.google.protobuf.DescriptorProtos.DescriptorProto value) { - if (messageTypeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMessageTypeIsMutable(); - messageType_.set(index, value); - onChanged(); - } else { - messageTypeBuilder_.setMessage(index, value); - } - return this; - } - public Builder setMessageType( - int index, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder builderForValue) { - if (messageTypeBuilder_ == null) { - ensureMessageTypeIsMutable(); - messageType_.set(index, builderForValue.build()); - onChanged(); - } else { - messageTypeBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - public Builder addMessageType(com.google.protobuf.DescriptorProtos.DescriptorProto value) { - if (messageTypeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMessageTypeIsMutable(); - messageType_.add(value); - onChanged(); - } else { - messageTypeBuilder_.addMessage(value); - } - return this; - } - public Builder addMessageType( - int index, com.google.protobuf.DescriptorProtos.DescriptorProto value) { - if (messageTypeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMessageTypeIsMutable(); - messageType_.add(index, value); - onChanged(); - } else { - messageTypeBuilder_.addMessage(index, value); - } - return this; - } - public Builder addMessageType( - com.google.protobuf.DescriptorProtos.DescriptorProto.Builder builderForValue) { - if (messageTypeBuilder_ == null) { - ensureMessageTypeIsMutable(); - messageType_.add(builderForValue.build()); - onChanged(); - } else { - messageTypeBuilder_.addMessage(builderForValue.build()); - } - return this; - } - public Builder addMessageType( - int index, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder builderForValue) { - if (messageTypeBuilder_ == null) { - ensureMessageTypeIsMutable(); - messageType_.add(index, builderForValue.build()); - onChanged(); - } else { - messageTypeBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - public Builder addAllMessageType( - Iterable values) { - if (messageTypeBuilder_ == null) { - ensureMessageTypeIsMutable(); - super.addAll(values, messageType_); - onChanged(); - } else { - messageTypeBuilder_.addAllMessages(values); - } - return this; - } - public Builder clearMessageType() { - if (messageTypeBuilder_ == null) { - messageType_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - messageTypeBuilder_.clear(); - } - return this; - } - public Builder removeMessageType(int index) { - if (messageTypeBuilder_ == null) { - ensureMessageTypeIsMutable(); - messageType_.remove(index); - onChanged(); - } else { - messageTypeBuilder_.remove(index); - } - return this; - } - public com.google.protobuf.DescriptorProtos.DescriptorProto.Builder getMessageTypeBuilder( - int index) { - return getMessageTypeFieldBuilder().getBuilder(index); - } - public com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder getMessageTypeOrBuilder( - int index) { - if (messageTypeBuilder_ == null) { - return messageType_.get(index); } else { - return messageTypeBuilder_.getMessageOrBuilder(index); - } - } - public java.util.List - getMessageTypeOrBuilderList() { - if (messageTypeBuilder_ != null) { - return messageTypeBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(messageType_); - } - } - public com.google.protobuf.DescriptorProtos.DescriptorProto.Builder addMessageTypeBuilder() { - return getMessageTypeFieldBuilder().addBuilder( - com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance()); - } - public com.google.protobuf.DescriptorProtos.DescriptorProto.Builder addMessageTypeBuilder( - int index) { - return getMessageTypeFieldBuilder().addBuilder( - index, com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance()); - } - public java.util.List - getMessageTypeBuilderList() { - return getMessageTypeFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.DescriptorProtos.DescriptorProto, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder, com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> - getMessageTypeFieldBuilder() { - if (messageTypeBuilder_ == null) { - messageTypeBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.DescriptorProtos.DescriptorProto, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder, com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder>( - messageType_, - ((bitField0_ & 0x00000008) == 0x00000008), - getParentForChildren(), - isClean()); - messageType_ = null; - } - return messageTypeBuilder_; - } - - // repeated .google.protobuf.EnumDescriptorProto enum_type = 5; - private java.util.List enumType_ = - java.util.Collections.emptyList(); - private void ensureEnumTypeIsMutable() { - if (!((bitField0_ & 0x00000010) == 0x00000010)) { - enumType_ = new java.util.ArrayList(enumType_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.DescriptorProtos.EnumDescriptorProto, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder> enumTypeBuilder_; - - public java.util.List getEnumTypeList() { - if (enumTypeBuilder_ == null) { - return java.util.Collections.unmodifiableList(enumType_); - } else { - return enumTypeBuilder_.getMessageList(); - } - } - public int getEnumTypeCount() { - if (enumTypeBuilder_ == null) { - return enumType_.size(); - } else { - return enumTypeBuilder_.getCount(); - } - } - public com.google.protobuf.DescriptorProtos.EnumDescriptorProto getEnumType(int index) { - if (enumTypeBuilder_ == null) { - return enumType_.get(index); - } else { - return enumTypeBuilder_.getMessage(index); - } - } - public Builder setEnumType( - int index, com.google.protobuf.DescriptorProtos.EnumDescriptorProto value) { - if (enumTypeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEnumTypeIsMutable(); - enumType_.set(index, value); - onChanged(); - } else { - enumTypeBuilder_.setMessage(index, value); - } - return this; - } - public Builder setEnumType( - int index, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder builderForValue) { - if (enumTypeBuilder_ == null) { - ensureEnumTypeIsMutable(); - enumType_.set(index, builderForValue.build()); - onChanged(); - } else { - enumTypeBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - public Builder addEnumType(com.google.protobuf.DescriptorProtos.EnumDescriptorProto value) { - if (enumTypeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEnumTypeIsMutable(); - enumType_.add(value); - onChanged(); - } else { - enumTypeBuilder_.addMessage(value); - } - return this; - } - public Builder addEnumType( - int index, com.google.protobuf.DescriptorProtos.EnumDescriptorProto value) { - if (enumTypeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEnumTypeIsMutable(); - enumType_.add(index, value); - onChanged(); - } else { - enumTypeBuilder_.addMessage(index, value); - } - return this; - } - public Builder addEnumType( - com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder builderForValue) { - if (enumTypeBuilder_ == null) { - ensureEnumTypeIsMutable(); - enumType_.add(builderForValue.build()); - onChanged(); - } else { - enumTypeBuilder_.addMessage(builderForValue.build()); - } - return this; - } - public Builder addEnumType( - int index, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder builderForValue) { - if (enumTypeBuilder_ == null) { - ensureEnumTypeIsMutable(); - enumType_.add(index, builderForValue.build()); - onChanged(); - } else { - enumTypeBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - public Builder addAllEnumType( - Iterable values) { - if (enumTypeBuilder_ == null) { - ensureEnumTypeIsMutable(); - super.addAll(values, enumType_); - onChanged(); - } else { - enumTypeBuilder_.addAllMessages(values); - } - return this; - } - public Builder clearEnumType() { - if (enumTypeBuilder_ == null) { - enumType_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - enumTypeBuilder_.clear(); - } - return this; - } - public Builder removeEnumType(int index) { - if (enumTypeBuilder_ == null) { - ensureEnumTypeIsMutable(); - enumType_.remove(index); - onChanged(); - } else { - enumTypeBuilder_.remove(index); - } - return this; - } - public com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder getEnumTypeBuilder( - int index) { - return getEnumTypeFieldBuilder().getBuilder(index); - } - public com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder getEnumTypeOrBuilder( - int index) { - if (enumTypeBuilder_ == null) { - return enumType_.get(index); } else { - return enumTypeBuilder_.getMessageOrBuilder(index); - } - } - public java.util.List - getEnumTypeOrBuilderList() { - if (enumTypeBuilder_ != null) { - return enumTypeBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(enumType_); - } - } - public com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder addEnumTypeBuilder() { - return getEnumTypeFieldBuilder().addBuilder( - com.google.protobuf.DescriptorProtos.EnumDescriptorProto.getDefaultInstance()); - } - public com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder addEnumTypeBuilder( - int index) { - return getEnumTypeFieldBuilder().addBuilder( - index, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.getDefaultInstance()); - } - public java.util.List - getEnumTypeBuilderList() { - return getEnumTypeFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.DescriptorProtos.EnumDescriptorProto, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder> - getEnumTypeFieldBuilder() { - if (enumTypeBuilder_ == null) { - enumTypeBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.DescriptorProtos.EnumDescriptorProto, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder>( - enumType_, - ((bitField0_ & 0x00000010) == 0x00000010), - getParentForChildren(), - isClean()); - enumType_ = null; - } - return enumTypeBuilder_; - } - - // repeated .google.protobuf.ServiceDescriptorProto service = 6; - private java.util.List service_ = - java.util.Collections.emptyList(); - private void ensureServiceIsMutable() { - if (!((bitField0_ & 0x00000020) == 0x00000020)) { - service_ = new java.util.ArrayList(service_); - bitField0_ |= 0x00000020; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.DescriptorProtos.ServiceDescriptorProto, com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.ServiceDescriptorProtoOrBuilder> serviceBuilder_; - - public java.util.List getServiceList() { - if (serviceBuilder_ == null) { - return java.util.Collections.unmodifiableList(service_); - } else { - return serviceBuilder_.getMessageList(); - } - } - public int getServiceCount() { - if (serviceBuilder_ == null) { - return service_.size(); - } else { - return serviceBuilder_.getCount(); - } - } - public com.google.protobuf.DescriptorProtos.ServiceDescriptorProto getService(int index) { - if (serviceBuilder_ == null) { - return service_.get(index); - } else { - return serviceBuilder_.getMessage(index); - } - } - public Builder setService( - int index, com.google.protobuf.DescriptorProtos.ServiceDescriptorProto value) { - if (serviceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureServiceIsMutable(); - service_.set(index, value); - onChanged(); - } else { - serviceBuilder_.setMessage(index, value); - } - return this; - } - public Builder setService( - int index, com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.Builder builderForValue) { - if (serviceBuilder_ == null) { - ensureServiceIsMutable(); - service_.set(index, builderForValue.build()); - onChanged(); - } else { - serviceBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - public Builder addService(com.google.protobuf.DescriptorProtos.ServiceDescriptorProto value) { - if (serviceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureServiceIsMutable(); - service_.add(value); - onChanged(); - } else { - serviceBuilder_.addMessage(value); - } - return this; - } - public Builder addService( - int index, com.google.protobuf.DescriptorProtos.ServiceDescriptorProto value) { - if (serviceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureServiceIsMutable(); - service_.add(index, value); - onChanged(); - } else { - serviceBuilder_.addMessage(index, value); - } - return this; - } - public Builder addService( - com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.Builder builderForValue) { - if (serviceBuilder_ == null) { - ensureServiceIsMutable(); - service_.add(builderForValue.build()); - onChanged(); - } else { - serviceBuilder_.addMessage(builderForValue.build()); - } - return this; - } - public Builder addService( - int index, com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.Builder builderForValue) { - if (serviceBuilder_ == null) { - ensureServiceIsMutable(); - service_.add(index, builderForValue.build()); - onChanged(); - } else { - serviceBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - public Builder addAllService( - Iterable values) { - if (serviceBuilder_ == null) { - ensureServiceIsMutable(); - super.addAll(values, service_); - onChanged(); - } else { - serviceBuilder_.addAllMessages(values); - } - return this; - } - public Builder clearService() { - if (serviceBuilder_ == null) { - service_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - } else { - serviceBuilder_.clear(); - } - return this; - } - public Builder removeService(int index) { - if (serviceBuilder_ == null) { - ensureServiceIsMutable(); - service_.remove(index); - onChanged(); - } else { - serviceBuilder_.remove(index); - } - return this; - } - public com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.Builder getServiceBuilder( - int index) { - return getServiceFieldBuilder().getBuilder(index); - } - public com.google.protobuf.DescriptorProtos.ServiceDescriptorProtoOrBuilder getServiceOrBuilder( - int index) { - if (serviceBuilder_ == null) { - return service_.get(index); } else { - return serviceBuilder_.getMessageOrBuilder(index); - } - } - public java.util.List - getServiceOrBuilderList() { - if (serviceBuilder_ != null) { - return serviceBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(service_); - } - } - public com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.Builder addServiceBuilder() { - return getServiceFieldBuilder().addBuilder( - com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.getDefaultInstance()); - } - public com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.Builder addServiceBuilder( - int index) { - return getServiceFieldBuilder().addBuilder( - index, com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.getDefaultInstance()); - } - public java.util.List - getServiceBuilderList() { - return getServiceFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.DescriptorProtos.ServiceDescriptorProto, com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.ServiceDescriptorProtoOrBuilder> - getServiceFieldBuilder() { - if (serviceBuilder_ == null) { - serviceBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.DescriptorProtos.ServiceDescriptorProto, com.google.protobuf.DescriptorProtos.ServiceDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.ServiceDescriptorProtoOrBuilder>( - service_, - ((bitField0_ & 0x00000020) == 0x00000020), - getParentForChildren(), - isClean()); - service_ = null; - } - return serviceBuilder_; - } - - // repeated .google.protobuf.FieldDescriptorProto extension = 7; - private java.util.List extension_ = - java.util.Collections.emptyList(); - private void ensureExtensionIsMutable() { - if (!((bitField0_ & 0x00000040) == 0x00000040)) { - extension_ = new java.util.ArrayList(extension_); - bitField0_ |= 0x00000040; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.DescriptorProtos.FieldDescriptorProto, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> extensionBuilder_; - - public java.util.List getExtensionList() { - if (extensionBuilder_ == null) { - return java.util.Collections.unmodifiableList(extension_); - } else { - return extensionBuilder_.getMessageList(); - } - } - public int getExtensionCount() { - if (extensionBuilder_ == null) { - return extension_.size(); - } else { - return extensionBuilder_.getCount(); - } - } - public com.google.protobuf.DescriptorProtos.FieldDescriptorProto getExtension(int index) { - if (extensionBuilder_ == null) { - return extension_.get(index); - } else { - return extensionBuilder_.getMessage(index); - } - } - public Builder setExtension( - int index, com.google.protobuf.DescriptorProtos.FieldDescriptorProto value) { - if (extensionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExtensionIsMutable(); - extension_.set(index, value); - onChanged(); - } else { - extensionBuilder_.setMessage(index, value); - } - return this; - } - public Builder setExtension( - int index, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder builderForValue) { - if (extensionBuilder_ == null) { - ensureExtensionIsMutable(); - extension_.set(index, builderForValue.build()); - onChanged(); - } else { - extensionBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - public Builder addExtension(com.google.protobuf.DescriptorProtos.FieldDescriptorProto value) { - if (extensionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExtensionIsMutable(); - extension_.add(value); - onChanged(); - } else { - extensionBuilder_.addMessage(value); - } - return this; - } - public Builder addExtension( - int index, com.google.protobuf.DescriptorProtos.FieldDescriptorProto value) { - if (extensionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExtensionIsMutable(); - extension_.add(index, value); - onChanged(); - } else { - extensionBuilder_.addMessage(index, value); - } - return this; - } - public Builder addExtension( - com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder builderForValue) { - if (extensionBuilder_ == null) { - ensureExtensionIsMutable(); - extension_.add(builderForValue.build()); - onChanged(); - } else { - extensionBuilder_.addMessage(builderForValue.build()); - } - return this; - } - public Builder addExtension( - int index, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder builderForValue) { - if (extensionBuilder_ == null) { - ensureExtensionIsMutable(); - extension_.add(index, builderForValue.build()); - onChanged(); - } else { - extensionBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - public Builder addAllExtension( - Iterable values) { - if (extensionBuilder_ == null) { - ensureExtensionIsMutable(); - super.addAll(values, extension_); - onChanged(); - } else { - extensionBuilder_.addAllMessages(values); - } - return this; - } - public Builder clearExtension() { - if (extensionBuilder_ == null) { - extension_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - } else { - extensionBuilder_.clear(); - } - return this; - } - public Builder removeExtension(int index) { - if (extensionBuilder_ == null) { - ensureExtensionIsMutable(); - extension_.remove(index); - onChanged(); - } else { - extensionBuilder_.remove(index); - } - return this; - } - public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder getExtensionBuilder( - int index) { - return getExtensionFieldBuilder().getBuilder(index); - } - public com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder getExtensionOrBuilder( - int index) { - if (extensionBuilder_ == null) { - return extension_.get(index); } else { - return extensionBuilder_.getMessageOrBuilder(index); - } - } - public java.util.List - getExtensionOrBuilderList() { - if (extensionBuilder_ != null) { - return extensionBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(extension_); - } - } - public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder addExtensionBuilder() { - return getExtensionFieldBuilder().addBuilder( - com.google.protobuf.DescriptorProtos.FieldDescriptorProto.getDefaultInstance()); - } - public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder addExtensionBuilder( - int index) { - return getExtensionFieldBuilder().addBuilder( - index, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.getDefaultInstance()); - } - public java.util.List - getExtensionBuilderList() { - return getExtensionFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.DescriptorProtos.FieldDescriptorProto, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> - getExtensionFieldBuilder() { - if (extensionBuilder_ == null) { - extensionBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.DescriptorProtos.FieldDescriptorProto, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder>( - extension_, - ((bitField0_ & 0x00000040) == 0x00000040), - getParentForChildren(), - isClean()); - extension_ = null; - } - return extensionBuilder_; - } - - // optional .google.protobuf.FileOptions options = 8; - private com.google.protobuf.DescriptorProtos.FileOptions options_ = com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.DescriptorProtos.FileOptions, com.google.protobuf.DescriptorProtos.FileOptions.Builder, com.google.protobuf.DescriptorProtos.FileOptionsOrBuilder> optionsBuilder_; - public boolean hasOptions() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - public com.google.protobuf.DescriptorProtos.FileOptions getOptions() { - if (optionsBuilder_ == null) { - return options_; - } else { - return optionsBuilder_.getMessage(); - } - } - public Builder setOptions(com.google.protobuf.DescriptorProtos.FileOptions value) { - if (optionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - options_ = value; - onChanged(); - } else { - optionsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000080; - return this; - } - public Builder setOptions( - com.google.protobuf.DescriptorProtos.FileOptions.Builder builderForValue) { - if (optionsBuilder_ == null) { - options_ = builderForValue.build(); - onChanged(); - } else { - optionsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000080; - return this; - } - public Builder mergeOptions(com.google.protobuf.DescriptorProtos.FileOptions value) { - if (optionsBuilder_ == null) { - if (((bitField0_ & 0x00000080) == 0x00000080) && - options_ != com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance()) { - options_ = - com.google.protobuf.DescriptorProtos.FileOptions.newBuilder(options_).mergeFrom(value).buildPartial(); - } else { - options_ = value; - } - onChanged(); - } else { - optionsBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000080; - return this; - } - public Builder clearOptions() { - if (optionsBuilder_ == null) { - options_ = com.google.protobuf.DescriptorProtos.FileOptions.getDefaultInstance(); - onChanged(); - } else { - optionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000080); - return this; - } - public com.google.protobuf.DescriptorProtos.FileOptions.Builder getOptionsBuilder() { - bitField0_ |= 0x00000080; - onChanged(); - return getOptionsFieldBuilder().getBuilder(); - } - public com.google.protobuf.DescriptorProtos.FileOptionsOrBuilder getOptionsOrBuilder() { - if (optionsBuilder_ != null) { - return optionsBuilder_.getMessageOrBuilder(); - } else { - return options_; - } - } - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.DescriptorProtos.FileOptions, com.google.protobuf.DescriptorProtos.FileOptions.Builder, com.google.protobuf.DescriptorProtos.FileOptionsOrBuilder> - getOptionsFieldBuilder() { - if (optionsBuilder_ == null) { - optionsBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.DescriptorProtos.FileOptions, com.google.protobuf.DescriptorProtos.FileOptions.Builder, com.google.protobuf.DescriptorProtos.FileOptionsOrBuilder>( - options_, - getParentForChildren(), - isClean()); - options_ = null; - } - return optionsBuilder_; - } - - // optional .google.protobuf.SourceCodeInfo source_code_info = 9; - private com.google.protobuf.DescriptorProtos.SourceCodeInfo sourceCodeInfo_ = com.google.protobuf.DescriptorProtos.SourceCodeInfo.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.DescriptorProtos.SourceCodeInfo, com.google.protobuf.DescriptorProtos.SourceCodeInfo.Builder, com.google.protobuf.DescriptorProtos.SourceCodeInfoOrBuilder> sourceCodeInfoBuilder_; - public boolean hasSourceCodeInfo() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } - public com.google.protobuf.DescriptorProtos.SourceCodeInfo getSourceCodeInfo() { - if (sourceCodeInfoBuilder_ == null) { - return sourceCodeInfo_; - } else { - return sourceCodeInfoBuilder_.getMessage(); - } - } - public Builder setSourceCodeInfo(com.google.protobuf.DescriptorProtos.SourceCodeInfo value) { - if (sourceCodeInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sourceCodeInfo_ = value; - onChanged(); - } else { - sourceCodeInfoBuilder_.setMessage(value); - } - bitField0_ |= 0x00000100; - return this; - } - public Builder setSourceCodeInfo( - com.google.protobuf.DescriptorProtos.SourceCodeInfo.Builder builderForValue) { - if (sourceCodeInfoBuilder_ == null) { - sourceCodeInfo_ = builderForValue.build(); - onChanged(); - } else { - sourceCodeInfoBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000100; - return this; - } - public Builder mergeSourceCodeInfo(com.google.protobuf.DescriptorProtos.SourceCodeInfo value) { - if (sourceCodeInfoBuilder_ == null) { - if (((bitField0_ & 0x00000100) == 0x00000100) && - sourceCodeInfo_ != com.google.protobuf.DescriptorProtos.SourceCodeInfo.getDefaultInstance()) { - sourceCodeInfo_ = - com.google.protobuf.DescriptorProtos.SourceCodeInfo.newBuilder(sourceCodeInfo_).mergeFrom(value).buildPartial(); - } else { - sourceCodeInfo_ = value; - } - onChanged(); - } else { - sourceCodeInfoBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000100; - return this; - } - public Builder clearSourceCodeInfo() { - if (sourceCodeInfoBuilder_ == null) { - sourceCodeInfo_ = com.google.protobuf.DescriptorProtos.SourceCodeInfo.getDefaultInstance(); - onChanged(); - } else { - sourceCodeInfoBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000100); - return this; - } - public com.google.protobuf.DescriptorProtos.SourceCodeInfo.Builder getSourceCodeInfoBuilder() { - bitField0_ |= 0x00000100; - onChanged(); - return getSourceCodeInfoFieldBuilder().getBuilder(); - } - public com.google.protobuf.DescriptorProtos.SourceCodeInfoOrBuilder getSourceCodeInfoOrBuilder() { - if (sourceCodeInfoBuilder_ != null) { - return sourceCodeInfoBuilder_.getMessageOrBuilder(); - } else { - return sourceCodeInfo_; - } - } - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.DescriptorProtos.SourceCodeInfo, com.google.protobuf.DescriptorProtos.SourceCodeInfo.Builder, com.google.protobuf.DescriptorProtos.SourceCodeInfoOrBuilder> - getSourceCodeInfoFieldBuilder() { - if (sourceCodeInfoBuilder_ == null) { - sourceCodeInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.DescriptorProtos.SourceCodeInfo, com.google.protobuf.DescriptorProtos.SourceCodeInfo.Builder, com.google.protobuf.DescriptorProtos.SourceCodeInfoOrBuilder>( - sourceCodeInfo_, - getParentForChildren(), - isClean()); - sourceCodeInfo_ = null; - } - return sourceCodeInfoBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.protobuf.FileDescriptorProto) - } - - static { - defaultInstance = new FileDescriptorProto(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:google.protobuf.FileDescriptorProto) - } - - public interface DescriptorProtoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional string name = 1; - boolean hasName(); - String getName(); - - // repeated .google.protobuf.FieldDescriptorProto field = 2; - java.util.List - getFieldList(); - com.google.protobuf.DescriptorProtos.FieldDescriptorProto getField(int index); - int getFieldCount(); - java.util.List - getFieldOrBuilderList(); - com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder getFieldOrBuilder( - int index); - - // repeated .google.protobuf.FieldDescriptorProto extension = 6; - java.util.List - getExtensionList(); - com.google.protobuf.DescriptorProtos.FieldDescriptorProto getExtension(int index); - int getExtensionCount(); - java.util.List - getExtensionOrBuilderList(); - com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder getExtensionOrBuilder( - int index); - - // repeated .google.protobuf.DescriptorProto nested_type = 3; - java.util.List - getNestedTypeList(); - com.google.protobuf.DescriptorProtos.DescriptorProto getNestedType(int index); - int getNestedTypeCount(); - java.util.List - getNestedTypeOrBuilderList(); - com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder getNestedTypeOrBuilder( - int index); - - // repeated .google.protobuf.EnumDescriptorProto enum_type = 4; - java.util.List - getEnumTypeList(); - com.google.protobuf.DescriptorProtos.EnumDescriptorProto getEnumType(int index); - int getEnumTypeCount(); - java.util.List - getEnumTypeOrBuilderList(); - com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder getEnumTypeOrBuilder( - int index); - - // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; - java.util.List - getExtensionRangeList(); - com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange getExtensionRange(int index); - int getExtensionRangeCount(); - java.util.List - getExtensionRangeOrBuilderList(); - com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder getExtensionRangeOrBuilder( - int index); - - // optional .google.protobuf.MessageOptions options = 7; - boolean hasOptions(); - com.google.protobuf.DescriptorProtos.MessageOptions getOptions(); - com.google.protobuf.DescriptorProtos.MessageOptionsOrBuilder getOptionsOrBuilder(); - } - public static final class DescriptorProto extends - com.google.protobuf.GeneratedMessage - implements DescriptorProtoOrBuilder { - // Use DescriptorProto.newBuilder() to construct. - private DescriptorProto(Builder builder) { - super(builder); - } - private DescriptorProto(boolean noInit) {} - - private static final DescriptorProto defaultInstance; - public static DescriptorProto getDefaultInstance() { - return defaultInstance; - } - - public DescriptorProto getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_fieldAccessorTable; - } - - public interface ExtensionRangeOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional int32 start = 1; - boolean hasStart(); - int getStart(); - - // optional int32 end = 2; - boolean hasEnd(); - int getEnd(); - } - public static final class ExtensionRange extends - com.google.protobuf.GeneratedMessage - implements ExtensionRangeOrBuilder { - // Use ExtensionRange.newBuilder() to construct. - private ExtensionRange(Builder builder) { - super(builder); - } - private ExtensionRange(boolean noInit) {} - - private static final ExtensionRange defaultInstance; - public static ExtensionRange getDefaultInstance() { - return defaultInstance; - } - - public ExtensionRange getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_ExtensionRange_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_ExtensionRange_fieldAccessorTable; - } - - private int bitField0_; - // optional int32 start = 1; - public static final int START_FIELD_NUMBER = 1; - private int start_; - public boolean hasStart() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public int getStart() { - return start_; - } - - // optional int32 end = 2; - public static final int END_FIELD_NUMBER = 2; - private int end_; - public boolean hasEnd() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public int getEnd() { - return end_; - } - - private void initFields() { - start_ = 0; - end_ = 0; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeInt32(1, start_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeInt32(2, end_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, start_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, end_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @Override - protected Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); - } - public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); - } - public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); - } - public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } - public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } - public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_ExtensionRange_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_ExtensionRange_fieldAccessorTable; - } - - // Construct using com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - start_ = 0; - bitField0_ = (bitField0_ & ~0x00000001); - end_ = 0; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.getDescriptor(); - } - - public com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange getDefaultInstanceForType() { - return com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.getDefaultInstance(); - } - - public com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange build() { - com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange buildPartial() { - com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange result = new com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.start_ = start_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.end_ = end_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange) { - return mergeFrom((com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange other) { - if (other == com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.getDefaultInstance()) return this; - if (other.hasStart()) { - setStart(other.getStart()); - } - if (other.hasEnd()) { - setEnd(other.getEnd()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder( - this.getUnknownFields()); - while (true) { - int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - start_ = input.readInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - end_ = input.readInt32(); - break; - } - } - } - } - - private int bitField0_; - - // optional int32 start = 1; - private int start_ ; - public boolean hasStart() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public int getStart() { - return start_; - } - public Builder setStart(int value) { - bitField0_ |= 0x00000001; - start_ = value; - onChanged(); - return this; - } - public Builder clearStart() { - bitField0_ = (bitField0_ & ~0x00000001); - start_ = 0; - onChanged(); - return this; - } - - // optional int32 end = 2; - private int end_ ; - public boolean hasEnd() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public int getEnd() { - return end_; - } - public Builder setEnd(int value) { - bitField0_ |= 0x00000002; - end_ = value; - onChanged(); - return this; - } - public Builder clearEnd() { - bitField0_ = (bitField0_ & ~0x00000002); - end_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.protobuf.DescriptorProto.ExtensionRange) - } - - static { - defaultInstance = new ExtensionRange(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:google.protobuf.DescriptorProto.ExtensionRange) - } - - private int bitField0_; - // optional string name = 1; - public static final int NAME_FIELD_NUMBER = 1; - private Object name_; - public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public String getName() { - Object ref = name_; - if (ref instanceof String) { - return (String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - String s = bs.toStringUtf8(); - if (com.google.protobuf.Internal.isValidUtf8(bs)) { - name_ = s; - } - return s; - } - } - private com.google.protobuf.ByteString getNameBytes() { - Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // repeated .google.protobuf.FieldDescriptorProto field = 2; - public static final int FIELD_FIELD_NUMBER = 2; - private java.util.List field_; - public java.util.List getFieldList() { - return field_; - } - public java.util.List - getFieldOrBuilderList() { - return field_; - } - public int getFieldCount() { - return field_.size(); - } - public com.google.protobuf.DescriptorProtos.FieldDescriptorProto getField(int index) { - return field_.get(index); - } - public com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder getFieldOrBuilder( - int index) { - return field_.get(index); - } - - // repeated .google.protobuf.FieldDescriptorProto extension = 6; - public static final int EXTENSION_FIELD_NUMBER = 6; - private java.util.List extension_; - public java.util.List getExtensionList() { - return extension_; - } - public java.util.List - getExtensionOrBuilderList() { - return extension_; - } - public int getExtensionCount() { - return extension_.size(); - } - public com.google.protobuf.DescriptorProtos.FieldDescriptorProto getExtension(int index) { - return extension_.get(index); - } - public com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder getExtensionOrBuilder( - int index) { - return extension_.get(index); - } - - // repeated .google.protobuf.DescriptorProto nested_type = 3; - public static final int NESTED_TYPE_FIELD_NUMBER = 3; - private java.util.List nestedType_; - public java.util.List getNestedTypeList() { - return nestedType_; - } - public java.util.List - getNestedTypeOrBuilderList() { - return nestedType_; - } - public int getNestedTypeCount() { - return nestedType_.size(); - } - public com.google.protobuf.DescriptorProtos.DescriptorProto getNestedType(int index) { - return nestedType_.get(index); - } - public com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder getNestedTypeOrBuilder( - int index) { - return nestedType_.get(index); - } - - // repeated .google.protobuf.EnumDescriptorProto enum_type = 4; - public static final int ENUM_TYPE_FIELD_NUMBER = 4; - private java.util.List enumType_; - public java.util.List getEnumTypeList() { - return enumType_; - } - public java.util.List - getEnumTypeOrBuilderList() { - return enumType_; - } - public int getEnumTypeCount() { - return enumType_.size(); - } - public com.google.protobuf.DescriptorProtos.EnumDescriptorProto getEnumType(int index) { - return enumType_.get(index); - } - public com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder getEnumTypeOrBuilder( - int index) { - return enumType_.get(index); - } - - // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; - public static final int EXTENSION_RANGE_FIELD_NUMBER = 5; - private java.util.List extensionRange_; - public java.util.List getExtensionRangeList() { - return extensionRange_; - } - public java.util.List - getExtensionRangeOrBuilderList() { - return extensionRange_; - } - public int getExtensionRangeCount() { - return extensionRange_.size(); - } - public com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange getExtensionRange(int index) { - return extensionRange_.get(index); - } - public com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder getExtensionRangeOrBuilder( - int index) { - return extensionRange_.get(index); - } - - // optional .google.protobuf.MessageOptions options = 7; - public static final int OPTIONS_FIELD_NUMBER = 7; - private com.google.protobuf.DescriptorProtos.MessageOptions options_; - public boolean hasOptions() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - public com.google.protobuf.DescriptorProtos.MessageOptions getOptions() { - return options_; - } - public com.google.protobuf.DescriptorProtos.MessageOptionsOrBuilder getOptionsOrBuilder() { - return options_; - } - - private void initFields() { - name_ = ""; - field_ = java.util.Collections.emptyList(); - extension_ = java.util.Collections.emptyList(); - nestedType_ = java.util.Collections.emptyList(); - enumType_ = java.util.Collections.emptyList(); - extensionRange_ = java.util.Collections.emptyList(); - options_ = com.google.protobuf.DescriptorProtos.MessageOptions.getDefaultInstance(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - for (int i = 0; i < getFieldCount(); i++) { - if (!getField(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < getExtensionCount(); i++) { - if (!getExtension(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < getNestedTypeCount(); i++) { - if (!getNestedType(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < getEnumTypeCount(); i++) { - if (!getEnumType(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasOptions()) { - if (!getOptions().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getNameBytes()); - } - for (int i = 0; i < field_.size(); i++) { - output.writeMessage(2, field_.get(i)); - } - for (int i = 0; i < nestedType_.size(); i++) { - output.writeMessage(3, nestedType_.get(i)); - } - for (int i = 0; i < enumType_.size(); i++) { - output.writeMessage(4, enumType_.get(i)); - } - for (int i = 0; i < extensionRange_.size(); i++) { - output.writeMessage(5, extensionRange_.get(i)); - } - for (int i = 0; i < extension_.size(); i++) { - output.writeMessage(6, extension_.get(i)); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(7, options_); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getNameBytes()); - } - for (int i = 0; i < field_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, field_.get(i)); - } - for (int i = 0; i < nestedType_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, nestedType_.get(i)); - } - for (int i = 0; i < enumType_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, enumType_.get(i)); - } - for (int i = 0; i < extensionRange_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, extensionRange_.get(i)); - } - for (int i = 0; i < extension_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, extension_.get(i)); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, options_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @Override - protected Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static com.google.protobuf.DescriptorProtos.DescriptorProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static com.google.protobuf.DescriptorProtos.DescriptorProto parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); - } - public static com.google.protobuf.DescriptorProtos.DescriptorProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data).buildParsed(); - } - public static com.google.protobuf.DescriptorProtos.DescriptorProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return newBuilder().mergeFrom(data, extensionRegistry) - .buildParsed(); - } - public static com.google.protobuf.DescriptorProtos.DescriptorProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static com.google.protobuf.DescriptorProtos.DescriptorProto parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); - } - public static com.google.protobuf.DescriptorProtos.DescriptorProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input)) { - return builder.buildParsed(); - } else { - return null; - } - } - public static com.google.protobuf.DescriptorProtos.DescriptorProto parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - Builder builder = newBuilder(); - if (builder.mergeDelimitedFrom(input, extensionRegistry)) { - return builder.buildParsed(); - } else { - return null; - } - } - public static com.google.protobuf.DescriptorProtos.DescriptorProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return newBuilder().mergeFrom(input).buildParsed(); - } - public static com.google.protobuf.DescriptorProtos.DescriptorProto parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return newBuilder().mergeFrom(input, extensionRegistry) - .buildParsed(); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(com.google.protobuf.DescriptorProtos.DescriptorProto prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_fieldAccessorTable; - } - - // Construct using com.google.protobuf.DescriptorProtos.DescriptorProto.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getFieldFieldBuilder(); - getExtensionFieldBuilder(); - getNestedTypeFieldBuilder(); - getEnumTypeFieldBuilder(); - getExtensionRangeFieldBuilder(); - getOptionsFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - if (fieldBuilder_ == null) { - field_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - fieldBuilder_.clear(); - } - if (extensionBuilder_ == null) { - extension_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - extensionBuilder_.clear(); - } - if (nestedTypeBuilder_ == null) { - nestedType_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - nestedTypeBuilder_.clear(); - } - if (enumTypeBuilder_ == null) { - enumType_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - } else { - enumTypeBuilder_.clear(); - } - if (extensionRangeBuilder_ == null) { - extensionRange_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - } else { - extensionRangeBuilder_.clear(); - } - if (optionsBuilder_ == null) { - options_ = com.google.protobuf.DescriptorProtos.MessageOptions.getDefaultInstance(); - } else { - optionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000040); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.protobuf.DescriptorProtos.DescriptorProto.getDescriptor(); - } - - public com.google.protobuf.DescriptorProtos.DescriptorProto getDefaultInstanceForType() { - return com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance(); - } - - public com.google.protobuf.DescriptorProtos.DescriptorProto build() { - com.google.protobuf.DescriptorProtos.DescriptorProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - private com.google.protobuf.DescriptorProtos.DescriptorProto buildParsed() - throws com.google.protobuf.InvalidProtocolBufferException { - com.google.protobuf.DescriptorProtos.DescriptorProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException( - result).asInvalidProtocolBufferException(); - } - return result; - } - - public com.google.protobuf.DescriptorProtos.DescriptorProto buildPartial() { - com.google.protobuf.DescriptorProtos.DescriptorProto result = new com.google.protobuf.DescriptorProtos.DescriptorProto(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.name_ = name_; - if (fieldBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002)) { - field_ = java.util.Collections.unmodifiableList(field_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.field_ = field_; - } else { - result.field_ = fieldBuilder_.build(); - } - if (extensionBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004)) { - extension_ = java.util.Collections.unmodifiableList(extension_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.extension_ = extension_; - } else { - result.extension_ = extensionBuilder_.build(); - } - if (nestedTypeBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008)) { - nestedType_ = java.util.Collections.unmodifiableList(nestedType_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.nestedType_ = nestedType_; - } else { - result.nestedType_ = nestedTypeBuilder_.build(); - } - if (enumTypeBuilder_ == null) { - if (((bitField0_ & 0x00000010) == 0x00000010)) { - enumType_ = java.util.Collections.unmodifiableList(enumType_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.enumType_ = enumType_; - } else { - result.enumType_ = enumTypeBuilder_.build(); - } - if (extensionRangeBuilder_ == null) { - if (((bitField0_ & 0x00000020) == 0x00000020)) { - extensionRange_ = java.util.Collections.unmodifiableList(extensionRange_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.extensionRange_ = extensionRange_; - } else { - result.extensionRange_ = extensionRangeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000002; - } - if (optionsBuilder_ == null) { - result.options_ = options_; - } else { - result.options_ = optionsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.protobuf.DescriptorProtos.DescriptorProto) { - return mergeFrom((com.google.protobuf.DescriptorProtos.DescriptorProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.protobuf.DescriptorProtos.DescriptorProto other) { - if (other == com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance()) return this; - if (other.hasName()) { - setName(other.getName()); - } - if (fieldBuilder_ == null) { - if (!other.field_.isEmpty()) { - if (field_.isEmpty()) { - field_ = other.field_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureFieldIsMutable(); - field_.addAll(other.field_); - } - onChanged(); - } - } else { - if (!other.field_.isEmpty()) { - if (fieldBuilder_.isEmpty()) { - fieldBuilder_.dispose(); - fieldBuilder_ = null; - field_ = other.field_; - bitField0_ = (bitField0_ & ~0x00000002); - fieldBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getFieldFieldBuilder() : null; - } else { - fieldBuilder_.addAllMessages(other.field_); - } - } - } - if (extensionBuilder_ == null) { - if (!other.extension_.isEmpty()) { - if (extension_.isEmpty()) { - extension_ = other.extension_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureExtensionIsMutable(); - extension_.addAll(other.extension_); - } - onChanged(); - } - } else { - if (!other.extension_.isEmpty()) { - if (extensionBuilder_.isEmpty()) { - extensionBuilder_.dispose(); - extensionBuilder_ = null; - extension_ = other.extension_; - bitField0_ = (bitField0_ & ~0x00000004); - extensionBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getExtensionFieldBuilder() : null; - } else { - extensionBuilder_.addAllMessages(other.extension_); - } - } - } - if (nestedTypeBuilder_ == null) { - if (!other.nestedType_.isEmpty()) { - if (nestedType_.isEmpty()) { - nestedType_ = other.nestedType_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureNestedTypeIsMutable(); - nestedType_.addAll(other.nestedType_); - } - onChanged(); - } - } else { - if (!other.nestedType_.isEmpty()) { - if (nestedTypeBuilder_.isEmpty()) { - nestedTypeBuilder_.dispose(); - nestedTypeBuilder_ = null; - nestedType_ = other.nestedType_; - bitField0_ = (bitField0_ & ~0x00000008); - nestedTypeBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getNestedTypeFieldBuilder() : null; - } else { - nestedTypeBuilder_.addAllMessages(other.nestedType_); - } - } - } - if (enumTypeBuilder_ == null) { - if (!other.enumType_.isEmpty()) { - if (enumType_.isEmpty()) { - enumType_ = other.enumType_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureEnumTypeIsMutable(); - enumType_.addAll(other.enumType_); - } - onChanged(); - } - } else { - if (!other.enumType_.isEmpty()) { - if (enumTypeBuilder_.isEmpty()) { - enumTypeBuilder_.dispose(); - enumTypeBuilder_ = null; - enumType_ = other.enumType_; - bitField0_ = (bitField0_ & ~0x00000010); - enumTypeBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getEnumTypeFieldBuilder() : null; - } else { - enumTypeBuilder_.addAllMessages(other.enumType_); - } - } - } - if (extensionRangeBuilder_ == null) { - if (!other.extensionRange_.isEmpty()) { - if (extensionRange_.isEmpty()) { - extensionRange_ = other.extensionRange_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureExtensionRangeIsMutable(); - extensionRange_.addAll(other.extensionRange_); - } - onChanged(); - } - } else { - if (!other.extensionRange_.isEmpty()) { - if (extensionRangeBuilder_.isEmpty()) { - extensionRangeBuilder_.dispose(); - extensionRangeBuilder_ = null; - extensionRange_ = other.extensionRange_; - bitField0_ = (bitField0_ & ~0x00000020); - extensionRangeBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getExtensionRangeFieldBuilder() : null; - } else { - extensionRangeBuilder_.addAllMessages(other.extensionRange_); - } - } - } - if (other.hasOptions()) { - mergeOptions(other.getOptions()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - for (int i = 0; i < getFieldCount(); i++) { - if (!getField(i).isInitialized()) { - - return false; - } - } - for (int i = 0; i < getExtensionCount(); i++) { - if (!getExtension(i).isInitialized()) { - - return false; - } - } - for (int i = 0; i < getNestedTypeCount(); i++) { - if (!getNestedType(i).isInitialized()) { - - return false; - } - } - for (int i = 0; i < getEnumTypeCount(); i++) { - if (!getEnumType(i).isInitialized()) { - - return false; - } - } - if (hasOptions()) { - if (!getOptions().isInitialized()) { - - return false; - } - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder( - this.getUnknownFields()); - while (true) { - int tag = input.readTag(); - switch (tag) { - case 0: - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - this.setUnknownFields(unknownFields.build()); - onChanged(); - return this; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - name_ = input.readBytes(); - break; - } - case 18: { - com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder subBuilder = com.google.protobuf.DescriptorProtos.FieldDescriptorProto.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - addField(subBuilder.buildPartial()); - break; - } - case 26: { - com.google.protobuf.DescriptorProtos.DescriptorProto.Builder subBuilder = com.google.protobuf.DescriptorProtos.DescriptorProto.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - addNestedType(subBuilder.buildPartial()); - break; - } - case 34: { - com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder subBuilder = com.google.protobuf.DescriptorProtos.EnumDescriptorProto.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - addEnumType(subBuilder.buildPartial()); - break; - } - case 42: { - com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.Builder subBuilder = com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - addExtensionRange(subBuilder.buildPartial()); - break; - } - case 50: { - com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder subBuilder = com.google.protobuf.DescriptorProtos.FieldDescriptorProto.newBuilder(); - input.readMessage(subBuilder, extensionRegistry); - addExtension(subBuilder.buildPartial()); - break; - } - case 58: { - com.google.protobuf.DescriptorProtos.MessageOptions.Builder subBuilder = com.google.protobuf.DescriptorProtos.MessageOptions.newBuilder(); - if (hasOptions()) { - subBuilder.mergeFrom(getOptions()); - } - input.readMessage(subBuilder, extensionRegistry); - setOptions(subBuilder.buildPartial()); - break; - } - } - } - } - - private int bitField0_; - - // optional string name = 1; - private Object name_ = ""; - public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - public String getName() { - Object ref = name_; - if (!(ref instanceof String)) { - String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); - name_ = s; - return s; - } else { - return (String) ref; - } - } - public Builder setName(String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = value; - onChanged(); - return this; - } - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000001); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - void setName(com.google.protobuf.ByteString value) { - bitField0_ |= 0x00000001; - name_ = value; - onChanged(); - } - - // repeated .google.protobuf.FieldDescriptorProto field = 2; - private java.util.List field_ = - java.util.Collections.emptyList(); - private void ensureFieldIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - field_ = new java.util.ArrayList(field_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.DescriptorProtos.FieldDescriptorProto, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> fieldBuilder_; - - public java.util.List getFieldList() { - if (fieldBuilder_ == null) { - return java.util.Collections.unmodifiableList(field_); - } else { - return fieldBuilder_.getMessageList(); - } - } - public int getFieldCount() { - if (fieldBuilder_ == null) { - return field_.size(); - } else { - return fieldBuilder_.getCount(); - } - } - public com.google.protobuf.DescriptorProtos.FieldDescriptorProto getField(int index) { - if (fieldBuilder_ == null) { - return field_.get(index); - } else { - return fieldBuilder_.getMessage(index); - } - } - public Builder setField( - int index, com.google.protobuf.DescriptorProtos.FieldDescriptorProto value) { - if (fieldBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFieldIsMutable(); - field_.set(index, value); - onChanged(); - } else { - fieldBuilder_.setMessage(index, value); - } - return this; - } - public Builder setField( - int index, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder builderForValue) { - if (fieldBuilder_ == null) { - ensureFieldIsMutable(); - field_.set(index, builderForValue.build()); - onChanged(); - } else { - fieldBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - public Builder addField(com.google.protobuf.DescriptorProtos.FieldDescriptorProto value) { - if (fieldBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFieldIsMutable(); - field_.add(value); - onChanged(); - } else { - fieldBuilder_.addMessage(value); - } - return this; - } - public Builder addField( - int index, com.google.protobuf.DescriptorProtos.FieldDescriptorProto value) { - if (fieldBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFieldIsMutable(); - field_.add(index, value); - onChanged(); - } else { - fieldBuilder_.addMessage(index, value); - } - return this; - } - public Builder addField( - com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder builderForValue) { - if (fieldBuilder_ == null) { - ensureFieldIsMutable(); - field_.add(builderForValue.build()); - onChanged(); - } else { - fieldBuilder_.addMessage(builderForValue.build()); - } - return this; - } - public Builder addField( - int index, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder builderForValue) { - if (fieldBuilder_ == null) { - ensureFieldIsMutable(); - field_.add(index, builderForValue.build()); - onChanged(); - } else { - fieldBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - public Builder addAllField( - Iterable values) { - if (fieldBuilder_ == null) { - ensureFieldIsMutable(); - super.addAll(values, field_); - onChanged(); - } else { - fieldBuilder_.addAllMessages(values); - } - return this; - } - public Builder clearField() { - if (fieldBuilder_ == null) { - field_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - fieldBuilder_.clear(); - } - return this; - } - public Builder removeField(int index) { - if (fieldBuilder_ == null) { - ensureFieldIsMutable(); - field_.remove(index); - onChanged(); - } else { - fieldBuilder_.remove(index); - } - return this; - } - public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder getFieldBuilder( - int index) { - return getFieldFieldBuilder().getBuilder(index); - } - public com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder getFieldOrBuilder( - int index) { - if (fieldBuilder_ == null) { - return field_.get(index); } else { - return fieldBuilder_.getMessageOrBuilder(index); - } - } - public java.util.List - getFieldOrBuilderList() { - if (fieldBuilder_ != null) { - return fieldBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(field_); - } - } - public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder addFieldBuilder() { - return getFieldFieldBuilder().addBuilder( - com.google.protobuf.DescriptorProtos.FieldDescriptorProto.getDefaultInstance()); - } - public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder addFieldBuilder( - int index) { - return getFieldFieldBuilder().addBuilder( - index, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.getDefaultInstance()); - } - public java.util.List - getFieldBuilderList() { - return getFieldFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.DescriptorProtos.FieldDescriptorProto, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> - getFieldFieldBuilder() { - if (fieldBuilder_ == null) { - fieldBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.DescriptorProtos.FieldDescriptorProto, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder>( - field_, - ((bitField0_ & 0x00000002) == 0x00000002), - getParentForChildren(), - isClean()); - field_ = null; - } - return fieldBuilder_; - } - - // repeated .google.protobuf.FieldDescriptorProto extension = 6; - private java.util.List extension_ = - java.util.Collections.emptyList(); - private void ensureExtensionIsMutable() { - if (!((bitField0_ & 0x00000004) == 0x00000004)) { - extension_ = new java.util.ArrayList(extension_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.DescriptorProtos.FieldDescriptorProto, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> extensionBuilder_; - - public java.util.List getExtensionList() { - if (extensionBuilder_ == null) { - return java.util.Collections.unmodifiableList(extension_); - } else { - return extensionBuilder_.getMessageList(); - } - } - public int getExtensionCount() { - if (extensionBuilder_ == null) { - return extension_.size(); - } else { - return extensionBuilder_.getCount(); - } - } - public com.google.protobuf.DescriptorProtos.FieldDescriptorProto getExtension(int index) { - if (extensionBuilder_ == null) { - return extension_.get(index); - } else { - return extensionBuilder_.getMessage(index); - } - } - public Builder setExtension( - int index, com.google.protobuf.DescriptorProtos.FieldDescriptorProto value) { - if (extensionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExtensionIsMutable(); - extension_.set(index, value); - onChanged(); - } else { - extensionBuilder_.setMessage(index, value); - } - return this; - } - public Builder setExtension( - int index, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder builderForValue) { - if (extensionBuilder_ == null) { - ensureExtensionIsMutable(); - extension_.set(index, builderForValue.build()); - onChanged(); - } else { - extensionBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - public Builder addExtension(com.google.protobuf.DescriptorProtos.FieldDescriptorProto value) { - if (extensionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExtensionIsMutable(); - extension_.add(value); - onChanged(); - } else { - extensionBuilder_.addMessage(value); - } - return this; - } - public Builder addExtension( - int index, com.google.protobuf.DescriptorProtos.FieldDescriptorProto value) { - if (extensionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExtensionIsMutable(); - extension_.add(index, value); - onChanged(); - } else { - extensionBuilder_.addMessage(index, value); - } - return this; - } - public Builder addExtension( - com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder builderForValue) { - if (extensionBuilder_ == null) { - ensureExtensionIsMutable(); - extension_.add(builderForValue.build()); - onChanged(); - } else { - extensionBuilder_.addMessage(builderForValue.build()); - } - return this; - } - public Builder addExtension( - int index, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder builderForValue) { - if (extensionBuilder_ == null) { - ensureExtensionIsMutable(); - extension_.add(index, builderForValue.build()); - onChanged(); - } else { - extensionBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - public Builder addAllExtension( - Iterable values) { - if (extensionBuilder_ == null) { - ensureExtensionIsMutable(); - super.addAll(values, extension_); - onChanged(); - } else { - extensionBuilder_.addAllMessages(values); - } - return this; - } - public Builder clearExtension() { - if (extensionBuilder_ == null) { - extension_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - extensionBuilder_.clear(); - } - return this; - } - public Builder removeExtension(int index) { - if (extensionBuilder_ == null) { - ensureExtensionIsMutable(); - extension_.remove(index); - onChanged(); - } else { - extensionBuilder_.remove(index); - } - return this; - } - public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder getExtensionBuilder( - int index) { - return getExtensionFieldBuilder().getBuilder(index); - } - public com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder getExtensionOrBuilder( - int index) { - if (extensionBuilder_ == null) { - return extension_.get(index); } else { - return extensionBuilder_.getMessageOrBuilder(index); - } - } - public java.util.List - getExtensionOrBuilderList() { - if (extensionBuilder_ != null) { - return extensionBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(extension_); - } - } - public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder addExtensionBuilder() { - return getExtensionFieldBuilder().addBuilder( - com.google.protobuf.DescriptorProtos.FieldDescriptorProto.getDefaultInstance()); - } - public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder addExtensionBuilder( - int index) { - return getExtensionFieldBuilder().addBuilder( - index, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.getDefaultInstance()); - } - public java.util.List - getExtensionBuilderList() { - return getExtensionFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.DescriptorProtos.FieldDescriptorProto, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> - getExtensionFieldBuilder() { - if (extensionBuilder_ == null) { - extensionBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.DescriptorProtos.FieldDescriptorProto, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder>( - extension_, - ((bitField0_ & 0x00000004) == 0x00000004), - getParentForChildren(), - isClean()); - extension_ = null; - } - return extensionBuilder_; - } - - // repeated .google.protobuf.DescriptorProto nested_type = 3; - private java.util.List nestedType_ = - java.util.Collections.emptyList(); - private void ensureNestedTypeIsMutable() { - if (!((bitField0_ & 0x00000008) == 0x00000008)) { - nestedType_ = new java.util.ArrayList(nestedType_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.DescriptorProtos.DescriptorProto, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder, com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> nestedTypeBuilder_; - - public java.util.List getNestedTypeList() { - if (nestedTypeBuilder_ == null) { - return java.util.Collections.unmodifiableList(nestedType_); - } else { - return nestedTypeBuilder_.getMessageList(); - } - } - public int getNestedTypeCount() { - if (nestedTypeBuilder_ == null) { - return nestedType_.size(); - } else { - return nestedTypeBuilder_.getCount(); - } - } - public com.google.protobuf.DescriptorProtos.DescriptorProto getNestedType(int index) { - if (nestedTypeBuilder_ == null) { - return nestedType_.get(index); - } else { - return nestedTypeBuilder_.getMessage(index); - } - } - public Builder setNestedType( - int index, com.google.protobuf.DescriptorProtos.DescriptorProto value) { - if (nestedTypeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNestedTypeIsMutable(); - nestedType_.set(index, value); - onChanged(); - } else { - nestedTypeBuilder_.setMessage(index, value); - } - return this; - } - public Builder setNestedType( - int index, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder builderForValue) { - if (nestedTypeBuilder_ == null) { - ensureNestedTypeIsMutable(); - nestedType_.set(index, builderForValue.build()); - onChanged(); - } else { - nestedTypeBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - public Builder addNestedType(com.google.protobuf.DescriptorProtos.DescriptorProto value) { - if (nestedTypeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNestedTypeIsMutable(); - nestedType_.add(value); - onChanged(); - } else { - nestedTypeBuilder_.addMessage(value); - } - return this; - } - public Builder addNestedType( - int index, com.google.protobuf.DescriptorProtos.DescriptorProto value) { - if (nestedTypeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNestedTypeIsMutable(); - nestedType_.add(index, value); - onChanged(); - } else { - nestedTypeBuilder_.addMessage(index, value); - } - return this; - } - public Builder addNestedType( - com.google.protobuf.DescriptorProtos.DescriptorProto.Builder builderForValue) { - if (nestedTypeBuilder_ == null) { - ensureNestedTypeIsMutable(); - nestedType_.add(builderForValue.build()); - onChanged(); - } else { - nestedTypeBuilder_.addMessage(builderForValue.build()); - } - return this; - } - public Builder addNestedType( - int index, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder builderForValue) { - if (nestedTypeBuilder_ == null) { - ensureNestedTypeIsMutable(); - nestedType_.add(index, builderForValue.build()); - onChanged(); - } else { - nestedTypeBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - public Builder addAllNestedType( - Iterable values) { - if (nestedTypeBuilder_ == null) { - ensureNestedTypeIsMutable(); - super.addAll(values, nestedType_); - onChanged(); - } else { - nestedTypeBuilder_.addAllMessages(values); - } - return this; - } - public Builder clearNestedType() { - if (nestedTypeBuilder_ == null) { - nestedType_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - nestedTypeBuilder_.clear(); - } - return this; - } - public Builder removeNestedType(int index) { - if (nestedTypeBuilder_ == null) { - ensureNestedTypeIsMutable(); - nestedType_.remove(index); - onChanged(); - } else { - nestedTypeBuilder_.remove(index); - } - return this; - } - public com.google.protobuf.DescriptorProtos.DescriptorProto.Builder getNestedTypeBuilder( - int index) { - return getNestedTypeFieldBuilder().getBuilder(index); - } - public com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder getNestedTypeOrBuilder( - int index) { - if (nestedTypeBuilder_ == null) { - return nestedType_.get(index); } else { - return nestedTypeBuilder_.getMessageOrBuilder(index); - } - } - public java.util.List - getNestedTypeOrBuilderList() { - if (nestedTypeBuilder_ != null) { - return nestedTypeBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(nestedType_); - } - } - public com.google.protobuf.DescriptorProtos.DescriptorProto.Builder addNestedTypeBuilder() { - return getNestedTypeFieldBuilder().addBuilder( - com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance()); - } - public com.google.protobuf.DescriptorProtos.DescriptorProto.Builder addNestedTypeBuilder( - int index) { - return getNestedTypeFieldBuilder().addBuilder( - index, com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance()); - } - public java.util.List - getNestedTypeBuilderList() { - return getNestedTypeFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.DescriptorProtos.DescriptorProto, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder, com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> - getNestedTypeFieldBuilder() { - if (nestedTypeBuilder_ == null) { - nestedTypeBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.DescriptorProtos.DescriptorProto, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder, com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder>( - nestedType_, - ((bitField0_ & 0x00000008) == 0x00000008), - getParentForChildren(), - isClean()); - nestedType_ = null; - } - return nestedTypeBuilder_; - } - - // repeated .google.protobuf.EnumDescriptorProto enum_type = 4; - private java.util.List enumType_ = - java.util.Collections.emptyList(); - private void ensureEnumTypeIsMutable() { - if (!((bitField0_ & 0x00000010) == 0x00000010)) { - enumType_ = new java.util.ArrayList(enumType_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.DescriptorProtos.EnumDescriptorProto, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder> enumTypeBuilder_; - - public java.util.List getEnumTypeList() { - if (enumTypeBuilder_ == null) { - return java.util.Collections.unmodifiableList(enumType_); - } else { - return enumTypeBuilder_.getMessageList(); - } - } - public int getEnumTypeCount() { - if (enumTypeBuilder_ == null) { - return enumType_.size(); - } else { - return enumTypeBuilder_.getCount(); - } - } - public com.google.protobuf.DescriptorProtos.EnumDescriptorProto getEnumType(int index) { - if (enumTypeBuilder_ == null) { - return enumType_.get(index); - } else { - return enumTypeBuilder_.getMessage(index); - } - } - public Builder setEnumType( - int index, com.google.protobuf.DescriptorProtos.EnumDescriptorProto value) { - if (enumTypeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEnumTypeIsMutable(); - enumType_.set(index, value); - onChanged(); - } else { - enumTypeBuilder_.setMessage(index, value); - } - return this; - } - public Builder setEnumType( - int index, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder builderForValue) { - if (enumTypeBuilder_ == null) { - ensureEnumTypeIsMutable(); - enumType_.set(index, builderForValue.build()); - onChanged(); - } else { - enumTypeBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - public Builder addEnumType(com.google.protobuf.DescriptorProtos.EnumDescriptorProto value) { - if (enumTypeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEnumTypeIsMutable(); - enumType_.add(value); - onChanged(); - } else { - enumTypeBuilder_.addMessage(value); - } - return this; - } - public Builder addEnumType( - int index, com.google.protobuf.DescriptorProtos.EnumDescriptorProto value) { - if (enumTypeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEnumTypeIsMutable(); - enumType_.add(index, value); - onChanged(); - } else { - enumTypeBuilder_.addMessage(index, value); - } - return this; - } - public Builder addEnumType( - com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder builderForValue) { - if (enumTypeBuilder_ == null) { - ensureEnumTypeIsMutable(); - enumType_.add(builderForValue.build()); - onChanged(); - } else { - enumTypeBuilder_.addMessage(builderForValue.build()); - } - return this; - } - public Builder addEnumType( - int index, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder builderForValue) { - if (enumTypeBuilder_ == null) { - ensureEnumTypeIsMutable(); - enumType_.add(index, builderForValue.build()); - onChanged(); - } else { - enumTypeBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - public Builder addAllEnumType( - Iterable values) { - if (enumTypeBuilder_ == null) { - ensureEnumTypeIsMutable(); - super.addAll(values, enumType_); - onChanged(); - } else { - enumTypeBuilder_.addAllMessages(values); - } - return this; - } - public Builder clearEnumType() { - if (enumTypeBuilder_ == null) { - enumType_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - enumTypeBuilder_.clear(); - } - return this; - } - public Builder removeEnumType(int index) { - if (enumTypeBuilder_ == null) { - ensureEnumTypeIsMutable(); - enumType_.remove(index); - onChanged(); - } else { - enumTypeBuilder_.remove(index); - } - return this; - } - public com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder getEnumTypeBuilder( - int index) { - return getEnumTypeFieldBuilder().getBuilder(index); - } - public com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder getEnumTypeOrBuilder( - int index) { - if (enumTypeBuilder_ == null) { - return enumType_.get(index); } else { - return enumTypeBuilder_.getMessageOrBuilder(index); - } - } - public java.util.List - getEnumTypeOrBuilderList() { - if (enumTypeBuilder_ != null) { - return enumTypeBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(enumType_); - } - } - public com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder addEnumTypeBuilder() { - return getEnumTypeFieldBuilder().addBuilder( - com.google.protobuf.DescriptorProtos.EnumDescriptorProto.getDefaultInstance()); - } - public com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder addEnumTypeBuilder( - int index) { - return getEnumTypeFieldBuilder().addBuilder( - index, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.getDefaultInstance()); - } - public java.util.List - getEnumTypeBuilderList() { - return getEnumTypeFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.DescriptorProtos.EnumDescriptorProto, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder> - getEnumTypeFieldBuilder() { - if (enumTypeBuilder_ == null) { - enumTypeBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.DescriptorProtos.EnumDescriptorProto, com.google.protobuf.DescriptorProtos.EnumDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder>( - enumType_, - ((bitField0_ & 0x00000010) == 0x00000010), - getParentForChildren(), - isClean()); - enumType_ = null; - } - return enumTypeBuilder_; - } - - // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; - private java.util.List extensionRange_ = - java.util.Collections.emptyList(); - private void ensureExtensionRangeIsMutable() { - if (!((bitField0_ & 0x00000020) == 0x00000020)) { - extensionRange_ = new java.util.ArrayList(extensionRange_); - bitField0_ |= 0x00000020; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange, com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.Builder, com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder> extensionRangeBuilder_; - - public java.util.List getExtensionRangeList() { - if (extensionRangeBuilder_ == null) { - return java.util.Collections.unmodifiableList(extensionRange_); - } else { - return extensionRangeBuilder_.getMessageList(); - } - } - public int getExtensionRangeCount() { - if (extensionRangeBuilder_ == null) { - return extensionRange_.size(); - } else { - return extensionRangeBuilder_.getCount(); - } - } - public com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange getExtensionRange(int index) { - if (extensionRangeBuilder_ == null) { - return extensionRange_.get(index); - } else { - return extensionRangeBuilder_.getMessage(index); - } - } - public Builder setExtensionRange( - int index, com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange value) { - if (extensionRangeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExtensionRangeIsMutable(); - extensionRange_.set(index, value); - onChanged(); - } else { - extensionRangeBuilder_.setMessage(index, value); - } - return this; - } - public Builder setExtensionRange( - int index, com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.Builder builderForValue) { - if (extensionRangeBuilder_ == null) { - ensureExtensionRangeIsMutable(); - extensionRange_.set(index, builderForValue.build()); - onChanged(); - } else { - extensionRangeBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - public Builder addExtensionRange(com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange value) { - if (extensionRangeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExtensionRangeIsMutable(); - extensionRange_.add(value); - onChanged(); - } else { - extensionRangeBuilder_.addMessage(value); - } - return this; - } - public Builder addExtensionRange( - int index, com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange value) { - if (extensionRangeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExtensionRangeIsMutable(); - extensionRange_.add(index, value); - onChanged(); - } else { - extensionRangeBuilder_.addMessage(index, value); - } - return this; - } - public Builder addExtensionRange( - com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.Builder builderForValue) { - if (extensionRangeBuilder_ == null) { - ensureExtensionRangeIsMutable(); - extensionRange_.add(builderForValue.build()); - onChanged(); - } else { - extensionRangeBuilder_.addMessage(builderForValue.build()); - } - return this; - } - public Builder addExtensionRange( - int index, com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.Builder builderForValue) { - if (extensionRangeBuilder_ == null) { - ensureExtensionRangeIsMutable(); - extensionRange_.add(index, builderForValue.build()); - onChanged(); - } else { - extensionRangeBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - public Builder addAllExtensionRange( - Iterable values) { - if (extensionRangeBuilder_ == null) { - ensureExtensionRangeIsMutable(); - super.addAll(values, extensionRange_); - onChanged(); - } else { - extensionRangeBuilder_.addAllMessages(values); - } - return this; - } - public Builder clearExtensionRange() { - if (extensionRangeBuilder_ == null) { - extensionRange_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - } else { - extensionRangeBuilder_.clear(); - } - return this; - } - public Builder removeExtensionRange(int index) { - if (extensionRangeBuilder_ == null) { - ensureExtensionRangeIsMutable(); - extensionRange_.remove(index); - onChanged(); - } else { - extensionRangeBuilder_.remove(index); - } - return this; - } - public com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.Builder getExtensionRangeBuilder( - int index) { - return getExtensionRangeFieldBuilder().getBuilder(index); - } - public com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder getExtensionRangeOrBuilder( - int index) { - if (extensionRangeBuilder_ == null) { - return extensionRange_.get(index); } else { - return extensionRangeBuilder_.getMessageOrBuilder(index); - } - } - public java.util.List - getExtensionRangeOrBuilderList() { - if (extensionRangeBuilder_ != null) { - return extensionRangeBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(extensionRange_); - } - } - public com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.Builder addExtensionRangeBuilder() { - return getExtensionRangeFieldBuilder().addBuilder( - com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.getDefaultInstance()); - } - public com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.Builder addExtensionRangeBuilder( - int index) { - return getExtensionRangeFieldBuilder().addBuilder( - index, com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.getDefaultInstance()); - } - public java.util.List - getExtensionRangeBuilderList() { - return getExtensionRangeFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange, com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.Builder, com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder> - getExtensionRangeFieldBuilder() { - if (extensionRangeBuilder_ == null) { - extensionRangeBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange, com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange.Builder, com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder>( - extensionRange_, - ((bitField0_ & 0x00000020) == 0x00000020), - getParentForChildren(), - isClean()); - extensionRange_ = null; - } - return extensionRangeBuilder_; - } - - // optional .google.protobuf.MessageOptions options = 7; - private com.google.protobuf.DescriptorProtos.MessageOptions options_ = com.google.protobuf.DescriptorProtos.MessageOptions.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.DescriptorProtos.MessageOptions, com.google.protobuf.DescriptorProtos.MessageOptions.Builder, com.google.protobuf.DescriptorProtos.MessageOptionsOrBuilder> optionsBuilder_; - public boolean hasOptions() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - public com.google.protobuf.DescriptorProtos.MessageOptions getOptions() { - if (optionsBuilder_ == null) { - return options_; - } else { - return optionsBuilder_.getMessage(); - } - } - public Builder setOptions(com.google.protobuf.DescriptorProtos.MessageOptions value) { - if (optionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - options_ = value; - onChanged(); - } else { - optionsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000040; - return this; - } - public Builder setOptions( - com.google.protobuf.DescriptorProtos.MessageOptions.Builder builderForValue) { - if (optionsBuilder_ == null) { - options_ = builderForValue.build(); - onChanged(); - } else { - optionsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000040; - return this; - } - public Builder mergeOptions(com.google.protobuf.DescriptorProtos.MessageOptions value) { - if (optionsBuilder_ == null) { - if (((bitField0_ & 0x00000040) == 0x00000040) && - options_ != com.google.protobuf.DescriptorProtos.MessageOptions.getDefaultInstance()) { - options_ = - com.google.protobuf.DescriptorProtos.MessageOptions.newBuilder(options_).mergeFrom(value).buildPartial(); - } else { - options_ = value; - } - onChanged(); - } else { - optionsBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000040; - return this; - } - public Builder clearOptions() { - if (optionsBuilder_ == null) { - options_ = com.google.protobuf.DescriptorProtos.MessageOptions.getDefaultInstance(); - onChanged(); - } else { - optionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000040); - return this; - } - public com.google.protobuf.DescriptorProtos.MessageOptions.Builder getOptionsBuilder() { - bitField0_ |= 0x00000040; - onChanged(); - return getOptionsFieldBuilder().getBuilder(); - } - public com.google.protobuf.DescriptorProtos.MessageOptionsOrBuilder getOptionsOrBuilder() { - if (optionsBuilder_ != null) { - return optionsBuilder_.getMessageOrBuilder(); - } else { - return options_; - } - } - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.DescriptorProtos.MessageOptions, com.google.protobuf.DescriptorProtos.MessageOptions.Builder, com.google.protobuf.DescriptorProtos.MessageOptionsOrBuilder> - getOptionsFieldBuilder() { - if (optionsBuilder_ == null) { - optionsBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.DescriptorProtos.MessageOptions, com.google.protobuf.DescriptorProtos.MessageOptions.Builder, com.google.protobuf.DescriptorProtos.MessageOptionsOrBuilder>( - options_, - getParentForChildren(), - isClean()); - options_ = null; - } - return optionsBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.protobuf.DescriptorProto) - } - - static { - defaultInstance = new DescriptorProto(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:google.protobuf.DescriptorProto) - } - - public interface FieldDescriptorProtoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional string name = 1; - boolean hasName(); - String getName(); - - // optional int32 number = 3; - boolean hasNumber(); - int getNumber(); - - // optional .google.protobuf.FieldDescriptorProto.Label label = 4; - boolean hasLabel(); - com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Label getLabel(); - - // optional .google.protobuf.FieldDescriptorProto.Type type = 5; - boolean hasType(); - com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type getType(); - - // optional string type_name = 6; - boolean hasTypeName(); - String getTypeName(); - - // optional string extendee = 2; - boolean hasExtendee(); - String getExtendee(); - - // optional string default_value = 7; - boolean hasDefaultValue(); - String getDefaultValue(); - - // optional .google.protobuf.FieldOptions options = 8; - boolean hasOptions(); - com.google.protobuf.DescriptorProtos.FieldOptions getOptions(); - com.google.protobuf.DescriptorProtos.FieldOptionsOrBuilder getOptionsOrBuilder(); - } - public static final class FieldDescriptorProto extends - com.google.protobuf.GeneratedMessage - implements FieldDescriptorProtoOrBuilder { - // Use FieldDescriptorProto.newBuilder() to construct. - private FieldDescriptorProto(Builder builder) { - super(builder); - } - private FieldDescriptorProto(boolean noInit) {} - - private static final FieldDescriptorProto defaultInstance; - public static FieldDescriptorProto getDefaultInstance() { - return defaultInstance; - } - - public FieldDescriptorProto getDefaultInstanceForType() { - return defaultInstance; - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FieldDescriptorProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.protobuf.DescriptorProtos.internal_static_google_protobuf_FieldDescriptorProto_fieldAccessorTable; - } - - public enum Type - implements com.google.protobuf.ProtocolMessageEnum { - TYPE_DOUBLE(0, 1), - TYPE_FLOAT(1, 2), - TYPE_INT64(2, 3), - TYPE_UINT64(3, 4), - TYPE_INT32(4, 5), - TYPE_FIXED64(5, 6), - TYPE_FIXED32(6, 7), - TYPE_BOOL(7, 8), - TYPE_STRING(8, 9), - TYPE_GROUP(9, 10), - TYPE_MESSAGE(10, 11), - TYPE_BYTES(11, 12), - TYPE_UINT32(12, 13), - TYPE_ENUM(13, 14), - TYPE_SFIXED32(14, 15), - TYPE_SFIXED64(15, 16), - TYPE_SINT32(16, 17), - TYPE_SINT64(17, 18), - ; - - public static final int TYPE_DOUBLE_VALUE = 1; - public static final int TYPE_FLOAT_VALUE = 2; - public static final int TYPE_INT64_VALUE = 3; - public static final int TYPE_UINT64_VALUE = 4; - public static final int TYPE_INT32_VALUE = 5; - public static final int TYPE_FIXED64_VALUE = 6; - public static final int TYPE_FIXED32_VALUE = 7; - public static final int TYPE_BOOL_VALUE = 8; - public static final int TYPE_STRING_VALUE = 9; - public static final int TYPE_GROUP_VALUE = 10; - public static final int TYPE_MESSAGE_VALUE = 11; - public static final int TYPE_BYTES_VALUE = 12; - public static final int TYPE_UINT32_VALUE = 13; - public static final int TYPE_ENUM_VALUE = 14; - public static final int TYPE_SFIXED32_VALUE = 15; - public static final int TYPE_SFIXED64_VALUE = 16; - public static final int TYPE_SINT32_VALUE = 17; - public static final int TYPE_SINT64_VALUE = 18; - - - public final int getNumber() { return value; } - - public static Type valueOf(int value) { - switch (value) { - case 1: return TYPE_DOUBLE; - case 2: return TYPE_FLOAT; - case 3: return TYPE_INT64; - case 4: return TYPE_UINT64; - case 5: return TYPE_INT32; - case 6: return TYPE_FIXED64; - case 7: return TYPE_FIXED32; - case 8: return TYPE_BOOL; - case 9: return TYPE_STRING; - case 10: return TYPE_GROUP; - case 11: return TYPE_MESSAGE; - case 12: return TYPE_BYTES; - case 13: return TYPE_UINT32; - case 14: return TYPE_ENUM; - case 15: return TYPE_SFIXED32; - case 16: return TYPE_SFIXED64; - case 17: return TYPE_SINT32; - case 18: return TYPE_SINT64; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.valueOf(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.protobuf.DescriptorProtos.FieldDescriptorProto.getDescriptor().getEnumTypes().get(0); - } - - private static final Type[] VALUES = { - TYPE_DOUBLE, TYPE_FLOAT, TYPE_INT64, TYPE_UINT64, TYPE_INT32, TYPE_FIXED64, TYPE_FIXED32, TYPE_BOOL, TYPE_STRING, TYPE_GROUP, TYPE_MESSAGE, TYPE_BYTES, TYPE_UINT32, TYPE_ENUM, TYPE_SFIXED32, TYPE_SFIXED64, TYPE_SINT32, TYPE_SINT64, - }; - - public static Type valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int index; - private final int value; - - private Type(int index, int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.protobuf.FieldDescriptorProto.Type) - } - - public enum Label - implements com.google.protobuf.ProtocolMessageEnum { - LABEL_OPTIONAL(0, 1), - LABEL_REQUIRED(1, 2), - LABEL_REPEATED(2, 3), - ; - - public static final int LABEL_OPTIONAL_VALUE = 1; - public static final int LABEL_REQUIRED_VALUE = 2; - public static final int LABEL_REPEATED_VALUE = 3; - - - public final int getNumber() { return value; } - - public static Label valueOf(int value) { - switch (value) { - case 1: return LABEL_OPTIONAL; - case 2: return LABEL_REQUIRED; - case 3: return LABEL_REPEATED; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap