From 28fb11ff9284bca779ad71d9f50a6d364b1722eb Mon Sep 17 00:00:00 2001 From: Steve Ayers Date: Thu, 31 Aug 2023 16:04:45 -0400 Subject: [PATCH 01/17] Crosstests rename --- .github/workflows/ci.yml | 14 +- .gitignore | 8 +- Makefile | 40 +-- README.md | 20 +- buf.work.yaml | 2 +- {crosstests => conformance}/buf.gen.yaml | 4 +- .../common/build.gradle.kts | 0 .../kotlin/connectrpc/conformance}/ssl/SSL.kt | 12 +- .../connectrpc/conformance}/ssl/TestSuite.kt | 4 +- .../google-java/build.gradle.kts | 2 +- .../connectrpc/conformance/Conformance.kt | 12 +- {crosstests => conformance}/proto/buf.yaml | 0 .../proto/grpc/testing/empty.proto | 0 .../proto/grpc/testing/messages.proto | 0 .../proto/grpc/testing/test.proto | 0 .../proto/server/v1/server.proto | 0 .../java/build/buf/google/rpc/Status.java | 227 +++++++++--------- gradle/libs.versions.toml | 2 +- gradle/wrapper/gradle-wrapper.jar | Bin 59536 -> 61608 bytes gradle/wrapper/gradle-wrapper.properties | 3 +- gradlew | 18 +- gradlew.bat | 15 +- settings.gradle.kts | 6 +- 23 files changed, 207 insertions(+), 182 deletions(-) rename {crosstests => conformance}/buf.gen.yaml (95%) rename {crosstests => conformance}/common/build.gradle.kts (100%) rename {crosstests/common/src/main/kotlin/build/buf/connect/crosstest => conformance/common/src/main/kotlin/connectrpc/conformance}/ssl/SSL.kt (95%) rename {crosstests/common/src/main/kotlin/build/buf/connect/crosstest => conformance/common/src/main/kotlin/connectrpc/conformance}/ssl/TestSuite.kt (94%) rename {crosstests => conformance}/google-java/build.gradle.kts (94%) rename crosstests/google-java/src/test/kotlin/build/buf/connect/crosstest/CrossTest.kt => conformance/google-java/src/test/kotlin/connectrpc/conformance/Conformance.kt (98%) rename {crosstests => conformance}/proto/buf.yaml (100%) rename {crosstests => conformance}/proto/grpc/testing/empty.proto (100%) rename {crosstests => conformance}/proto/grpc/testing/messages.proto (100%) rename {crosstests => conformance}/proto/grpc/testing/test.proto (100%) rename {crosstests => conformance}/proto/server/v1/server.proto (100%) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9bcaad12..68c9a756 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,7 +38,7 @@ jobs: git diff-index --quiet HEAD -- - name: Build project run: make build - crosstests: + conformance: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -53,14 +53,14 @@ jobs: - uses: actions/setup-go@v4 with: cache: false - - name: Generate proto files for cross tests. - run: make generatecrosstests + - name: Generate proto files for conformance tests. + run: make generateconformance - name: Start test server - run: make crosstestserverrun - - name: Run crosstests - run: make crosstestsrun + run: make conformanceserverrun + - name: Run conformance tests + run: make conformancerun - name: Stop test server - run: make crosstestserverstop + run: make conformanceserverstop license-headers: runs-on: ubuntu-latest steps: diff --git a/.gitignore b/.gitignore index a831177c..1f2fbbd5 100644 --- a/.gitignore +++ b/.gitignore @@ -5,10 +5,10 @@ !gradle-wrapper.jar /examples/generated-google-java/src/main/ /examples/generated-google-javalite/src/main/ -/crosstests/google-java/src/main/kotlin/generated/ -/crosstests/google-java/src/main/java/generated/ -/crosstests/google-javalite/src/main/kotlin/generated/ -/crosstests/google-javalite/src/main/java/generated/ +/conformance/google-java/src/main/kotlin/generated/ +/conformance/google-java/src/main/java/generated/ +/conformance/google-javalite/src/main/kotlin/generated/ +/conformance/google-javalite/src/main/java/generated/ /local.properties /protoc-gen-connect-kotlin/src/test/java/ /.gradle diff --git a/Makefile b/Makefile index bbfa75c3..7639c50c 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ MAKEFLAGS += --no-print-directory BIN := .tmp/bin CACHE := .tmp/cache LICENSE_HEADER_YEAR_RANGE := 2022-2023 -CROSSTEST_VERSION := 162d496c009e2ffb1a638b4a2ea789e9cc3331bb +CONFORMANCE_VERSION := 162d496c009e2ffb1a638b4a2ea789e9cc3331bb LICENSE_HEADER_VERSION := v1.26.1 PROTOC_VERSION ?= 24.1 GRADLE_ARGS ?= @@ -38,32 +38,32 @@ clean: ## Cleans the underlying build. rm -rf examples/generated-google-java/src/main rm -rf examples/generated-google-javalite/src/main - rm -rf crosstests/google-java/src/main/java/generated - rm -rf crosstests/google-java/src/main/kotlin/generated - rm -rf crosstests/google-javalite/src/main/java/generated - rm -rf crosstests/google-javalite/src/main/kotlin/generated + rm -rf conformance/google-java/src/main/java/generated + rm -rf conformance/google-java/src/main/kotlin/generated + rm -rf conformance/google-javalite/src/main/java/generated + rm -rf conformance/google-javalite/src/main/kotlin/generated rm -rf protoc-gen-connect-kotlin/src/test/java/ -.PHONY: crosstestserverrun -crosstestserverrun: crosstestserverstop ## Run the server for cross tests. +.PHONY: conformanceserverrun +conformanceserverrun: conformanceserverstop ## Run the server for conformance tests. docker run --rm --name serverconnect -p 8080:8080 -p 8081:8081 -d \ - bufbuild/connect-crosstest:$(CROSSTEST_VERSION) \ + connectrpc/conformance:$(CONFORMANCE_VERSION) \ /usr/local/bin/serverconnect --h1port "8080" --h2port "8081" --cert "cert/localhost.crt" --key "cert/localhost.key" docker run --rm --name servergrpc -p 8083:8083 -d \ - bufbuild/connect-crosstest:$(CROSSTEST_VERSION) \ + connectrpc/conformance:$(CONFORMANCE_VERSION) \ /usr/local/bin/servergrpc --port "8083" --cert "cert/localhost.crt" --key "cert/localhost.key" -.PHONY: crosstestserverstop -crosstestserverstop: ## Stop the server for cross tests. +.PHONY: conformanceserverstop +conformanceserverstop: ## Stop the server for conformance tests. -docker container stop serverconnect servergrpc -.PHONY: crosstestsrun -crosstestsrun: crosstestsrunjava ## Run the cross tests. +.PHONY: conformancerun +conformancerun: conformancerunjava ## Run the conformance tests. -.PHONY: crosstestsrunjava -crosstestsrunjava: ## Run the cross tests for protoc-gen-java integration. - ./gradlew $(GRADLE_ARGS) crosstest:google-java:test +.PHONY: conformancerunjava +conformancerunjava: ## Run the conformance tests for protoc-gen-java integration. + ./gradlew $(GRADLE_ARGS) conformance:google-java:test ifeq ($(UNAME_OS),Darwin) PROTOC_OS := osx @@ -92,14 +92,14 @@ $(PROTOC): @touch $@ .PHONY: generate -generate: $(PROTOC) buildplugin generatecrosstests generateexamples ## Generate proto files for the entire project. +generate: $(PROTOC) buildplugin generateconformance generateexamples ## Generate proto files for the entire project. buf generate --template protoc-gen-connect-kotlin/buf.gen.yaml -o protoc-gen-connect-kotlin buf generate --template extensions/buf.gen.yaml -o extensions buf.build/googleapis/googleapis make licenseheaders -.PHONY: generatecrosstests -generatecrosstests: $(PROTOC) buildplugin ## Generate protofiles for cross tests. - buf generate --template crosstests/buf.gen.yaml -o crosstests +.PHONY: generateconformance +generateconformance: $(PROTOC) buildplugin ## Generate protofiles for conformance tests. + buf generate --template conformance/buf.gen.yaml -o conformance .PHONY: generateexamples generateexamples: $(PROTOC) buildplugin ## Generate proto files for example apps. diff --git a/README.md b/README.md index 701d234b..c428f5a4 100644 --- a/README.md +++ b/README.md @@ -104,7 +104,7 @@ Comprehensive documentation for everything, including [interceptors][interceptors], [streaming][streaming], and [error handling][error-handling] is available on the [connect.build website][getting-started]. -## Generation Options +## Generation Options | **Option** | **Type** | **Default** | **Details** | |--------------------------------|:--------:|:-----------:|-------------------------------------------------| @@ -114,10 +114,10 @@ is available on the [connect.build website][getting-started]. ## Example Apps -Example apps are available in [`/examples`](./examples). First, run `make generate` to generate +Example apps are available in [`/examples`](./examples). First, run `make generate` to generate code for the Protobuf plugins. -For the [Android example](./examples/android), you can run `make installandroid` to build and install +For the [Android example](./examples/android), you can run `make installandroid` to build and install a fully functional Android application using Connect-Kotlin. Additionally, there are pure Kotlin examples that demonstrate a simple main executable using Connect-Kotlin: @@ -146,10 +146,10 @@ for details. ## Ecosystem * [connect-swift]: Swift clients for idiomatic gRPC & Connect RPC -* [connect-web]: TypeScript clients for web browsers +* [connect-es]: Type-safe APIs with Protobuf and TypeScript. * [connect-go]: Service handlers and clients for GoLang * [Buf Studio][buf-studio]: web UI for ad-hoc RPCs -* [connect-crosstest]: gRPC and gRPC-Web interoperability tests +* [connect-conformance]: gRPC and gRPC-Web interoperability tests ## Status @@ -162,19 +162,19 @@ Offered under the [Apache 2 license][license]. [blog]: https://buf.build/blog/connect-a-better-grpc [buf-studio]: https://buf.build/studio -[connect-crosstest]: https://github.com/bufbuild/connect-crosstest -[connect-go]: https://github.com/bufbuild/connect-go +[connect-conformance]: https://github.com/connectrpc/conformance +[connect-go]: https://github.com/connectrpc/connect-go [connect-protocol]: https://connect.build/docs/protocol [connect-swift]: https://github.com/bufbuild/connect-swift -[connect-web]: https://www.npmjs.com/package/@bufbuild/connect-web +[connect-es]: https://github.com/connectrpc/connect-es [error-handling]: https://connect.build/docs/kotlin/errors [getting-started]: https://connect.build/docs/kotlin/getting-started [grpc-protocol]: https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md [grpc-web-protocol]: https://github.com/grpc/grpc-web [interceptors]: https://connect.build/docs/kotlin/interceptors -[license]: https://github.com/bufbuild/connect-go/blob/main/LICENSE +[license]: https://github.com/connectrpc/connect-go/blob/main/LICENSE [protobuf]: https://developers.google.com/protocol-buffers [protocol]: https://connect.build/docs/protocol -[server reflection]: https://github.com/bufbuild/connect-grpcreflect-go +[server reflection]: https://github.com/connectrpc/connect-grpcreflect-go [slack]: https://buf.build/links/slack [streaming]: https://connect.build/docs/kotlin/using-clients#using-generated-clients diff --git a/buf.work.yaml b/buf.work.yaml index 743411dd..a1bb9b02 100644 --- a/buf.work.yaml +++ b/buf.work.yaml @@ -1,4 +1,4 @@ version: v1 directories: - - crosstests/proto + - conformance/proto - protoc-gen-connect-kotlin/proto diff --git a/crosstests/buf.gen.yaml b/conformance/buf.gen.yaml similarity index 95% rename from crosstests/buf.gen.yaml rename to conformance/buf.gen.yaml index 75a66f61..eb0089d7 100644 --- a/crosstests/buf.gen.yaml +++ b/conformance/buf.gen.yaml @@ -2,7 +2,7 @@ version: v1 managed: enabled: true plugins: - # Java crosstests. + # Java conformance. - plugin: connect-kotlin out: google-java/src/main/kotlin/generated path: ./protoc-gen-connect-kotlin/build/install/protoc-gen-connect-kotlin/bin/protoc-gen-connect-kotlin @@ -16,7 +16,7 @@ plugins: - plugin: kotlin out: google-java/src/main/kotlin/generated protoc_path: .tmp/bin/protoc - # Javalite crosstests. + # Javalite conformance. - plugin: connect-kotlin out: google-javalite/src/main/kotlin/generated path: ./protoc-gen-connect-kotlin/build/install/protoc-gen-connect-kotlin/bin/protoc-gen-connect-kotlin diff --git a/crosstests/common/build.gradle.kts b/conformance/common/build.gradle.kts similarity index 100% rename from crosstests/common/build.gradle.kts rename to conformance/common/build.gradle.kts diff --git a/crosstests/common/src/main/kotlin/build/buf/connect/crosstest/ssl/SSL.kt b/conformance/common/src/main/kotlin/connectrpc/conformance/ssl/SSL.kt similarity index 95% rename from crosstests/common/src/main/kotlin/build/buf/connect/crosstest/ssl/SSL.kt rename to conformance/common/src/main/kotlin/connectrpc/conformance/ssl/SSL.kt index feef0bea..4ce56344 100644 --- a/crosstests/common/src/main/kotlin/build/buf/connect/crosstest/ssl/SSL.kt +++ b/conformance/common/src/main/kotlin/connectrpc/conformance/ssl/SSL.kt @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package build.buf.connect.crosstest.ssl +package connectrpc.conformance.ssl import okhttp3.tls.HandshakeCertificates import okhttp3.tls.HeldCertificate @@ -32,7 +32,7 @@ fun sslContext(): Pair { val certificate = clientCert.byteInputStream(Charsets.UTF_8).use { stream -> CertificateFactory.getInstance("X.509").generateCertificate(stream) as X509Certificate } - val certificateAuthority = crosstestCACert.byteInputStream(Charsets.UTF_8).use { stream -> + val certificateAuthority = conformanceCACert.byteInputStream(Charsets.UTF_8).use { stream -> CertificateFactory.getInstance("X.509").generateCertificate(stream) as X509Certificate } val publicKey = certificate.getPublicKey() as RSAPublicKey @@ -56,7 +56,7 @@ fun sslContext(): Pair { return result.sslSocketFactory() to result.trustManager } -// https://github.com/bufbuild/connect-crosstest/blob/main/cert/client.crt +// https://github.com/connectrpc/conformance/blob/main/cert/client.crt // cert issues: https://stackoverflow.com/questions/9210514/unable-to-find-valid-certification-path-to-requested-target-error-even-after-c private const val clientCert = """-----BEGIN CERTIFICATE----- MIIEODCCAiCgAwIBAgIRAJTCeo42f8lts3VeDnN7CVwwDQYJKoZIhvcNAQELBQAw @@ -84,9 +84,9 @@ FjL/opqnz8GV8od9hLHJfwclPBSEA0fp7yNvOzKm1lNPEX009ME1hK4dLKNCqv3x g+mJcflVCfjEqJzfEy4wPq5SJzOIzXva6DyBpA== -----END CERTIFICATE-----""" -// https://github.com/bufbuild/connect-crosstest/blob/main/cert/CrosstestCA.crt +// https://github.com/connectrpc/conformance/blob/main/cert/ConformanceCA.crt // Certificate authority for the trusted cert. -private const val crosstestCACert = """-----BEGIN CERTIFICATE----- +private const val conformanceCACert = """-----BEGIN CERTIFICATE----- MIIE7DCCAtSgAwIBAgIBATANBgkqhkiG9w0BAQsFADAWMRQwEgYDVQQDEwtDcm9z c3Rlc3RDQTAeFw0yMjA1MDMxNzA5NTlaFw0yMzExMDMxNzE5NTZaMBYxFDASBgNV BAMTC0Nyb3NzdGVzdENBMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA @@ -149,7 +149,7 @@ YfnVHhS0VV49dKIqrsP8o1qZJRhjcq/J/Rrm2ZFHfdLCOOnd9VG4W2I1WB9MDc4t raq4CptHPEywZgBR95C0Jv3y -----END PRIVATE KEY-----""" -// https://github.com/bufbuild/connect-crosstest/blob/main/cert/client.key +// https://github.com/connectrpc/conformance/blob/main/cert/client.key const val rsaClientKey = """-----BEGIN RSA PRIVATE KEY----- MIIEpAIBAAKCAQEAqCSOgQ3rFjxEZu84yxgPT6dF0kd656XnF0yiAcGpq9+YK/yL eIwGTDAVAR4XbywdKQI9f4ZVi7w0ErkAb37K9iq6jr7VTj9HOSgs8B47y5soYb4z diff --git a/crosstests/common/src/main/kotlin/build/buf/connect/crosstest/ssl/TestSuite.kt b/conformance/common/src/main/kotlin/connectrpc/conformance/ssl/TestSuite.kt similarity index 94% rename from crosstests/common/src/main/kotlin/build/buf/connect/crosstest/ssl/TestSuite.kt rename to conformance/common/src/main/kotlin/connectrpc/conformance/ssl/TestSuite.kt index abcc31ae..025aa178 100644 --- a/crosstests/common/src/main/kotlin/build/buf/connect/crosstest/ssl/TestSuite.kt +++ b/conformance/common/src/main/kotlin/connectrpc/conformance/ssl/TestSuite.kt @@ -12,10 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. -package build.buf.connect.crosstest.ssl +package connectrpc.conformance.ssl /** - * Test suite for the different cross testing for + * Test suite for the different conformance testing for * protoc-gen-java, protoc-gen-javalite. * * Primarily to help keep all the suites in sync. diff --git a/crosstests/google-java/build.gradle.kts b/conformance/google-java/build.gradle.kts similarity index 94% rename from crosstests/google-java/build.gradle.kts rename to conformance/google-java/build.gradle.kts index 7f6dd476..2e47e6d2 100644 --- a/crosstests/google-java/build.gradle.kts +++ b/conformance/google-java/build.gradle.kts @@ -24,7 +24,7 @@ dependencies { implementation(libs.kotlin.coroutines.core) implementation(libs.protobuf.kotlin) - implementation(project(":crosstests:common")) + implementation(project(":conformance:common")) implementation(project(":extensions:google-java")) implementation(project(":okhttp")) diff --git a/crosstests/google-java/src/test/kotlin/build/buf/connect/crosstest/CrossTest.kt b/conformance/google-java/src/test/kotlin/connectrpc/conformance/Conformance.kt similarity index 98% rename from crosstests/google-java/src/test/kotlin/build/buf/connect/crosstest/CrossTest.kt rename to conformance/google-java/src/test/kotlin/connectrpc/conformance/Conformance.kt index caaf52c5..ba6f2de5 100644 --- a/crosstests/google-java/src/test/kotlin/build/buf/connect/crosstest/CrossTest.kt +++ b/conformance/google-java/src/test/kotlin/connectrpc/conformance/Conformance.kt @@ -12,13 +12,13 @@ // See the License for the specific language governing permissions and // limitations under the License. -package build.buf.connect.crosstest +package connectrpc.conformance import build.buf.connect.Code import build.buf.connect.ProtocolClientConfig import build.buf.connect.RequestCompression import build.buf.connect.compression.GzipCompressionPool -import build.buf.connect.crosstest.ssl.sslContext +import connectrpc.conformance.ssl.sslContext import build.buf.connect.extensions.GoogleJavaProtobufStrategy import build.buf.connect.impl.ProtocolClient import build.buf.connect.okhttp.ConnectOkHttpClient @@ -54,7 +54,7 @@ import java.util.concurrent.TimeUnit @RunWith(Parameterized::class) -class CrossTest( +class Conformance( private val protocol: NetworkProtocol ) { private lateinit var connectClient: ProtocolClient @@ -122,7 +122,7 @@ class CrossTest( val countDownLatch = CountDownLatch(1) val expectedErrorDetail = errorDetail { reason = "soirée 🎉" - domain = "connect-crosstest" + domain = "connect-conformance" } val stream = testServiceConnectClient.failStreamingOutputCall() val sizes = listOf( @@ -356,7 +356,7 @@ class CrossTest( fun failUnary(): Unit = runBlocking { val expectedErrorDetail = errorDetail { reason = "soirée 🎉" - domain = "connect-crosstest" + domain = "connect-conformance" } val countDownLatch = CountDownLatch(1) testServiceConnectClient.failUnaryCall(simpleRequest {}) { response -> @@ -493,7 +493,7 @@ class CrossTest( fun failUnaryBlocking(): Unit = runBlocking { val expectedErrorDetail = errorDetail { reason = "soirée 🎉" - domain = "connect-crosstest" + domain = "connect-conformance" } val response = testServiceConnectClient.failUnaryCallBlocking(simpleRequest {}).execute() assertThat(response.code).isEqualTo(Code.RESOURCE_EXHAUSTED) diff --git a/crosstests/proto/buf.yaml b/conformance/proto/buf.yaml similarity index 100% rename from crosstests/proto/buf.yaml rename to conformance/proto/buf.yaml diff --git a/crosstests/proto/grpc/testing/empty.proto b/conformance/proto/grpc/testing/empty.proto similarity index 100% rename from crosstests/proto/grpc/testing/empty.proto rename to conformance/proto/grpc/testing/empty.proto diff --git a/crosstests/proto/grpc/testing/messages.proto b/conformance/proto/grpc/testing/messages.proto similarity index 100% rename from crosstests/proto/grpc/testing/messages.proto rename to conformance/proto/grpc/testing/messages.proto diff --git a/crosstests/proto/grpc/testing/test.proto b/conformance/proto/grpc/testing/test.proto similarity index 100% rename from crosstests/proto/grpc/testing/test.proto rename to conformance/proto/grpc/testing/test.proto diff --git a/crosstests/proto/server/v1/server.proto b/conformance/proto/server/v1/server.proto similarity index 100% rename from crosstests/proto/server/v1/server.proto rename to conformance/proto/server/v1/server.proto diff --git a/extensions/google-java/src/main/java/build/buf/google/rpc/Status.java b/extensions/google-java/src/main/java/build/buf/google/rpc/Status.java index c0593b4c..13ec1e17 100644 --- a/extensions/google-java/src/main/java/build/buf/google/rpc/Status.java +++ b/extensions/google-java/src/main/java/build/buf/google/rpc/Status.java @@ -23,7 +23,6 @@ * different programming environments, including REST APIs and RPC APIs. It is * used by [gRPC](https://github.com/grpc). Each `Status` message contains * three pieces of data: error code, error message, and error details. - * * You can find out more about this error model and how to work with it in the * [API Design Guide](https://cloud.google.com/apis/design/errors). * @@ -51,6 +50,74 @@ protected java.lang.Object newInstance( return new Status(); } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Status( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + code_ = input.readInt32(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + details_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + details_.add( + input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + details_ = java.util.Collections.unmodifiableList(details_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return build.buf.google.rpc.StatusProto.internal_static_google_rpc_Status_descriptor; @@ -65,7 +132,7 @@ protected java.lang.Object newInstance( } public static final int CODE_FIELD_NUMBER = 1; - private int code_ = 0; + private int code_; /** *
    * The status code, which should be an enum value of
@@ -81,8 +148,7 @@ public int getCode() {
   }
 
   public static final int MESSAGE_FIELD_NUMBER = 2;
-  @SuppressWarnings("serial")
-  private volatile java.lang.Object message_ = "";
+  private volatile java.lang.Object message_;
   /**
    * 
    * A developer-facing error message, which should be in English. Any
@@ -134,7 +200,6 @@ public java.lang.String getMessage() {
   }
 
   public static final int DETAILS_FIELD_NUMBER = 3;
-  @SuppressWarnings("serial")
   private java.util.List details_;
   /**
    * 
@@ -222,7 +287,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     for (int i = 0; i < details_.size(); i++) {
       output.writeMessage(3, details_.get(i));
     }
-    getUnknownFields().writeTo(output);
+    unknownFields.writeTo(output);
   }
 
   @java.lang.Override
@@ -242,7 +307,7 @@ public int getSerializedSize() {
       size += com.google.protobuf.CodedOutputStream
         .computeMessageSize(3, details_.get(i));
     }
-    size += getUnknownFields().getSerializedSize();
+    size += unknownFields.getSerializedSize();
     memoizedSize = size;
     return size;
   }
@@ -263,7 +328,7 @@ public boolean equals(final java.lang.Object obj) {
         .equals(other.getMessage())) return false;
     if (!getDetailsList()
         .equals(other.getDetailsList())) return false;
-    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+    if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
 
@@ -282,7 +347,7 @@ public int hashCode() {
       hash = (37 * hash) + DETAILS_FIELD_NUMBER;
       hash = (53 * hash) + getDetailsList().hashCode();
     }
-    hash = (29 * hash) + getUnknownFields().hashCode();
+    hash = (29 * hash) + unknownFields.hashCode();
     memoizedHashCode = hash;
     return hash;
   }
@@ -331,13 +396,11 @@ public static build.buf.google.rpc.Status parseFrom(
     return com.google.protobuf.GeneratedMessageV3
         .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static build.buf.google.rpc.Status parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static build.buf.google.rpc.Status parseDelimitedFrom(
       java.io.InputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -385,7 +448,6 @@ protected Builder newBuilderForType(
    * different programming environments, including REST APIs and RPC APIs. It is
    * used by [gRPC](https://github.com/grpc). Each `Status` message contains
    * three pieces of data: error code, error message, and error details.
-   *
    * You can find out more about this error model and how to work with it in the
    * [API Design Guide](https://cloud.google.com/apis/design/errors).
    * 
@@ -411,27 +473,33 @@ public static final class Builder extends // Construct using build.buf.google.rpc.Status.newBuilder() private Builder() { - + maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getDetailsFieldBuilder(); + } } @java.lang.Override public Builder clear() { super.clear(); - bitField0_ = 0; code_ = 0; + message_ = ""; + if (detailsBuilder_ == null) { details_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); } else { - details_ = null; detailsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -458,32 +526,20 @@ public build.buf.google.rpc.Status build() { @java.lang.Override public build.buf.google.rpc.Status buildPartial() { build.buf.google.rpc.Status result = new build.buf.google.rpc.Status(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(build.buf.google.rpc.Status result) { + int from_bitField0_ = bitField0_; + result.code_ = code_; + result.message_ = message_; if (detailsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { details_ = java.util.Collections.unmodifiableList(details_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } result.details_ = details_; } else { result.details_ = detailsBuilder_.build(); } - } - - private void buildPartial0(build.buf.google.rpc.Status result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.code_ = code_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.message_ = message_; - } + onBuilt(); + return result; } @java.lang.Override @@ -535,14 +591,13 @@ public Builder mergeFrom(build.buf.google.rpc.Status other) { } if (!other.getMessage().isEmpty()) { message_ = other.message_; - bitField0_ |= 0x00000002; onChanged(); } if (detailsBuilder_ == null) { if (!other.details_.isEmpty()) { if (details_.isEmpty()) { details_ = other.details_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureDetailsIsMutable(); details_.addAll(other.details_); @@ -555,7 +610,7 @@ public Builder mergeFrom(build.buf.google.rpc.Status other) { detailsBuilder_.dispose(); detailsBuilder_ = null; details_ = other.details_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); detailsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDetailsFieldBuilder() : null; @@ -564,7 +619,7 @@ public Builder mergeFrom(build.buf.google.rpc.Status other) { } } } - this.mergeUnknownFields(other.getUnknownFields()); + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -579,53 +634,17 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } + build.buf.google.rpc.Status parsedMessage = null; try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - code_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - message_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - com.google.protobuf.Any m = - input.readMessage( - com.google.protobuf.Any.parser(), - extensionRegistry); - if (detailsBuilder_ == null) { - ensureDetailsIsMutable(); - details_.add(m); - } else { - detailsBuilder_.addMessage(m); - } - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (build.buf.google.rpc.Status) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - onChanged(); - } // finally + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } return this; } private int bitField0_; @@ -655,9 +674,8 @@ public int getCode() { * @return This builder for chaining. */ public Builder setCode(int value) { - + code_ = value; - bitField0_ |= 0x00000001; onChanged(); return this; } @@ -671,7 +689,7 @@ public Builder setCode(int value) { * @return This builder for chaining. */ public Builder clearCode() { - bitField0_ = (bitField0_ & ~0x00000001); + code_ = 0; onChanged(); return this; @@ -739,9 +757,11 @@ public java.lang.String getMessage() { */ public Builder setMessage( java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } + message_ = value; - bitField0_ |= 0x00000002; onChanged(); return this; } @@ -757,8 +777,8 @@ public Builder setMessage( * @return This builder for chaining. */ public Builder clearMessage() { + message_ = getDefaultInstance().getMessage(); - bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -776,10 +796,12 @@ public Builder clearMessage() { */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + message_ = value; - bitField0_ |= 0x00000002; onChanged(); return this; } @@ -787,9 +809,9 @@ public Builder setMessageBytes( private java.util.List details_ = java.util.Collections.emptyList(); private void ensureDetailsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { details_ = new java.util.ArrayList(details_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; } } @@ -994,7 +1016,7 @@ public Builder addAllDetails( public Builder clearDetails() { if (detailsBuilder_ == null) { details_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { detailsBuilder_.clear(); @@ -1106,7 +1128,7 @@ public com.google.protobuf.Any.Builder addDetailsBuilder( detailsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( details_, - ((bitField0_ & 0x00000004) != 0), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); details_ = null; @@ -1146,18 +1168,7 @@ public Status parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); + return new Status(input, extensionRegistry); } }; diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 8b1e1910..5c57b3a6 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -15,7 +15,7 @@ protobuf = "3.24.1" [libraries] android = { module = "com.google.android:android", version.ref = "android" } -android-plugin = { module = "com.android.tools.build:gradle", version = "8.0.0" } +android-plugin = { module = "com.android.tools.build:gradle", version = "8.1.0" } androidx-annotations = { module = "androidx.annotation:annotation", version = "1.1.0" } androidx-appcompat = { module = "androidx.appcompat:appcompat", version = "1.0.2" } androidx-compose = { module = "androidx.activity:activity-compose", version = "1.4.0" } diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index 7454180f2ae8848c63b8b4dea2cb829da983f2fa..ccebba7710deaf9f98673a68957ea02138b60d0a 100644 GIT binary patch delta 39624 zcmaI7V|1obvn?9iwrv|7+qP{xZ=8;8+twS~cG6Kt9oy*S_TJ~7ea<(=9rw?wAFI~$ zYgW~KYE~sKf>-W?Ln_OGLtrEoVkY6CgJL8xx%@i{$^YxXOxnc!Z=1rh4v_)_ii?2( z0s;dA0s%FGV%$6qD=7T7(@>XohBO3}|2~Fu zd_Kes>`?_XEIU~Bjw9}Pz0-wkP*b5sy}0%Dd42CUvwfb)1|u4J1Yn+%5qWqrFW1Esajt?}`3!?vIAPb-^qcpvDxa{H;c(duM~m zeZU^*uZbpbG(HR`L@g}LjND&%fa>1_XEam-N0gFjl+FPA1=mNH(NOiu*H?6q^O_#w zRP*yUKUhrn`!7DSJSk*J{*QRim+K3GUw(!C6<+;6NL=#*b)BLvCil|;l@6oH!~76` zI&vmc>!`29d<7g}!el4-`98LM$?^z!g`RX$YmlDZpHB*>;R`9nG5O6VGkfI<8MfV} z2i6^tRCE<6(m9?h(8m#LjD(4}OOyW;5($^;v3Aab1w2bLP&P7|>JBpwrwd_l>y9x5 zxUV$ocI94~cy%ZxP}-ydm@q*k1>+%C7*6Qj)8 zSS?AP6yvunr4awoB)@$96Sc!sy+ajBSo7q97bl^uH76=8pCEaR$k}O~v#D zN!k?`dTR@rBNDQlMTUb77;n6u;NI>aypX&nss(? ztsrq)>ldjT11|RyX>gjMxgg=D8}9BLduYT37v!D=+Nqe>=(VNz&~7}feB@BxOl{ge znYPQ%C(SB)d{s@6wk%qbDCFjaT zFzuX0@se|SvPf~-m5`|IX)xvEQKe!6!(YkR&HI^yPQ~LT_ow9)E~jmIoyc%qg#;yJ zuMC{|u1{lTbWKDc!HP4+x*bmpJ6`-DLLQ4AuI;N(;E!)?fEOs$l|CP$n8=DQwu4zV z0(X3)CdVg=u<9)^g7}bngqKn|kdBbuKA7=aD$nkfHn4pEKtlGb6O#1vr!e zWfZQmE|BZA>DrWS|5o`)6P8&K#U`oyD&9#&C(fI*%qfp%7xzO$C`vi3z`a-%wVJ9r zto-L&b|n^Pbmgje9t=&fAv*ksDAhW`v3Q3(wX_i*z-Amx@>==cs5EL+6@Cwvt|5w& zjHa>1K#59$pTm4%0^$%CFI9p^77(tOsY!E@f>I%W8fHNy8cOhU{3#XHRzJsfTRkzg zcf5fe%0YnvbGj6G9Iagxm39Co5ysI3x88C!qkomH%{Ya*SQy1=%DAjnt0rDTHH5Z7 zkrK`T2vO20Qnh5qKW>c`Shs$QPubxh;vPq$Qliqy>Q!5|Q2^R7kv9#^u=TFEInNIi zbFaTx4x2>Bo>p<$@#L{2KigLyziKKfP*a`!N{-O7jm?ETo(nLpU-L$~6kw}RYqUeg z_x!rlX5-|Sl>#RBn!sFUiN(wv4tX}0R9Q0v8VBTJd!9~ zwHW4`St5p*6Kn1kJ|^axr&z_atNM+KvdQbzEXO7ZppSOeRtrkGZ2j#{;e`0Yv4&1d z>>`kfnL{)Bb!*5Cww-!@tTSneo^x5b;=8+i**d2rH0qa0ms9bo+EfLOD!pZa1MS!* zE2m;U+OS80|6nIJx6qd?P_ZC+FS!E1XU0ucA$?t+(+%4VPT5@IJRrWI?y!u@A(44+ z*h8_W^OroGmx{SP-pl;8IFvl%A(2(F?1_i4m4$dOuZcgqo(gPBMbzqdyPx;>Pv|(U zBP`zqS%q!dZ1X>p(;;g1>SgvD&Xy`gGHO_V$WuHDF=Wde*guFo*fc_-txRM9^A$!s z@D+cGE5_W%6`5aaA1Jta*Jlw^l!)l^|B{DkyG1_or!0+)`#YugeZYTWToN#A^pd*hnZd-p{|*B;ou1S zHu{{{py0sl{xqHtyPp!KcOYqiY^4n|befpjf*>d2jQhVSl{h$&OXu+KY`4Tn?^E+7 zu7wQBn1r{Gt=3Qv?3MXY>(b735XAZ7gtXvw$Ahjidc=>MR*i*ireN@TX@#QJqZC-E z7A{b7Y%owh&8@5R=-*?o3@Ka3b!qrijl~*>)ws3xb=hG!Fq%+IFkvA84cuD1@pDba zN-m}1;NOK@QJmluMB~3)YIDTNeInVdv!BI@v78-B4~JWOVOO;iMmK^mH-5%6!R`PP zL4iN>e}$NBz=3D{MrhyPv>sL1h{|b#?=a?ew0gZBA`*!1jn^u;@kLS^Z&TDJ-e11P z5j2R3EPSvdq7ps3!f?)SjfJavaNabO=Wp@-$vw31@4`}#dJAQ3!^YmYlVI(k{`bBT4baTk|o@xqhG zm(c$glxlemfobyh5<9_e4{cNztgGV45>{0&$23{jt|e>YKpG|+#BIN0dF3?M`T>YpFdK5okH&qbvF z!)s4pZTeGsqm%)9JdKRX)g-&9^rFnEAu!s?pvSs2Fv-9B%M30=Hz~Iy{2>d5v?X2u(d156Hp2Sa zDDARJt7&7JleA(XbP_7FZH3G;&t18`w}#NHqA$^QY7p{a1xr{sUqnokq3|E z35-g>?0bMT4xYQiW-20kn?rTi80+AIeS?EmDF^I@gqEvVAmg}eb9x+OPDHf@`f;+O z)gOzEkwHd$9Tyi1@5f{J>3nI-@N~Kf#gFIqIGDtqQtp#uhYK}l0h0}Z3mXT6aiG4c z#;T(xpLyEp@nvn~(=Y<8nDM3pP8j$&VeQGM*m?6b@85naGh5gIFvAxeGS1?w{+Oz3 z6b}JpA=Kw|M$Jzdu5qfK5Gfsq@)@yQ7*zM@V6U!ZdjAkiH384m^?KYio_cK;19|qG zWWMsD^sSx0FHFg-L?rnCF65l9&wmCk)>|J($hk8wC?$C=w|XsK!iNhFVZup0?*}UR zVe4AkWAJgs;Bi4S%N3`Y*Oij{=?`HJ=&AtrNO6Zf?k!9DO0dHs|12&*1BC|B-(vBw z`-(hC-wA`kZ`)XG&PDBspZuT`*N}c2z)M+Q#1PTpJu@_iNd5?FlHh2eY;ClHX~v9^ zo$z!Ox4`IF5WyHZ=c?1kaE1`sCe2k$UJL#!npm>N%+d{Ku2zc4vmKpJC}l)nxFN5b zL?3t*U6M19)dr_?7o(B69rY2Xiz5h>f8gnKD7DhWmvLP1UnbwL54v4njN*YJ-PLlT zAR*FoDP}UXbcyxT&n)3ROZxg>k@`Oo4)icCNHK|10JK+<2x&nC(>n)6lZ}brl2TwQ zEJ&&tFw@$*fQdm#LSie z#~e7#9qR#lLjH&R`O4?XDDC?0J|!k8wpVckQMeSOk;Nah7yfzuMlD+YOn=Lhikw;> zv-^+JrzK`}@5;z+AIxeHV43XbI@={8h?K-p0DP7>zB#V!bd2xn!?w__k=l0>txcoXYEngy!&}O$QEB(E;-+ z0gHQo*sJJf$UdhAs#l|%vI7?qaHJ?@&whOxMRp} zfM*2uNGHU1|3jrTlhP~6m+l79T;kzK#kenGJgQ%j-`S3O`tSZeZN6U989g&Q3VsFH zg|T3Q88*IRXQ;}85~|o7t5)V`q*p>Vc(b@ES3lTej1o7fG=@>}5=cb&3rb>og9Z)B zq}spA`R{q4Ad-jJ-v2=hCa+A#$0jNPz^EB*Z!9phpobFM<24~Qs+2WK*mxy~D->s*Y3rhjgAlJEgUyOz&Ovb5BhC$(>8`}b5!ZX< zk^DzZ=IO@jfM6C9a-!l4d0~VncJDtc5;T23#b0m`5D$0|5P_7!DvA`(1AM@!=7s8( zCdyYlBTqa7+94F$uO+?}h+9Z-nSqTk2$)U`=n4-}yQLfk46VU*_U7#)%y*c88256* zWVYTo%4tsTJWM(IgdzZ(qBYN(YNgzSX%*v*0CJyW!lBv}zdkE=(@e}^0qVT=6j0z>nZYxlz-ve#}TikWMD8{Oa^wq|?gK z&Xj&nU-R8FU;6`~ECRluMyVljTCHuiVT05%`y-I)={CPY-w1K5va}NC=gaO|*N99lnP~4aN}E0d2HI$jX5gzhBlPfAYqx@* z@T@Gu7rB3vw<+@1jm^z4KSw^6l|4~_J*Y_fST_ZJIXhr!oMtnkrC3*%EdtrO$>xdK z`EjxKT8wTC-5xn0r-}HtU+~w6oHKEt7zuftbidgeX2Cnse!#>ik3%Tyl2-nWSs{)P zw6M}Jq41(v8bGCXOBdgt}rl1!aLy4e127cEg+ZH}LM5J_yeiH*;goScI8YU}c&douAKuLxoF)RmDP@yOchZ zN~~C$&s@5_C)il~Tw1G#sNgY-@3$ZzlI<;i{bY_*OSRz8oXwj$AR-RyMPlnI{9^h? zezap@DZjlBHF>@FZ(69Dt1i(tg6oeEI74><&eq6iWCD{HLL2nwux{|3Cq}J4GG1ZRWn+#qj>dHs!5*`MeV>(IpCyvr)o464PcA6| zPZgN>7smxN)Y;^jp8ys8=)sI(eWK;{aIon`scHYvud-8QUl1qh7MupSif)Qeq^`qw z26KD_$BNiTpf;zMOl4}^XsW>QAG@S@Ld_cQV>zPF>vAmeGNk({{=G3A`CG7H5MtV{ z{}!R17HB1{^hHL7-!>ggpq(I-ugYNxy|IdfK{nvNhH-5YdX2t;aQD)LIR*_xopVau zp*(Mn=*G*}dxibaIwVj5F9!z=0^*%woFNUs(7^icEnQx%!axZzr-)UiBQ0u4YNVMm zj|HV%fVIsv7RQagCZj!7AFV!z$Q>OF7{gu1g-{ola2`ZmfdH4<&s7=M5e&Q&z9smE zLYC_3sP>h^zNUm#Kw#Ky za5A*4w;`qwe88)4ohYBSOmld2vsVFl_M;QDHEe6)mWO^y{Idu8zib!YWM-bHd z#aak=43p^rEk8CoNSt>p!~<{->VH~AL5d5YM-hmi(Yoo+u2KppEcLlfs`*b%Z7?~A+sSlFHd9*iFkPj+;DML_DYsYcF<*Mt{pPRA0%siT+|mK;=nivi zdj^+0v5VL7sE!6_ZSH40!G`hGLF73iwLF$ac%DA*{EDYgsW#QrmwUEpAKU|FJwn2R z(0HO+#^VfVxL+_*+YTNo4$HOAB7FW~E6r^Xtani{)NNm06laYaprN)3J3}`1dhO`I z!?R-_A8y$#_)e6ekE(4bY?cFPfp+%_{bR1As@s2Qc;igLo4bNr#>RY1u%oz->%O6^vIV&_~3>+MO0DEX&-7(qvWys{R>nk!Cr(IGA$_NKYFVQHP284&C z0YwI>Mj-H*t`zxT*KVRNMAWq)wiIN3Y5mnxt*h}kUkNMYueRx|uDM#%m{nh%+>+N) zCeL4c)gfN|wG>_U_A>0d++tu^==;{N=m5v-ly0U2Li62V_d z=fKpPHisq|Qc? zJL1Qo{FH(5*`p(CS5XV(#_@UkA6>3q$msR1A3Ge5g5Rn|-I-%7qrTE5H9iW#R4trb zookgh7^j2}@SHT7`75)aUJEU&5?3VOi$Ba6lQJptxWpWaqr0S}*lgk~@nAgkCY{&Z zY>c?-KHcE#^E}}Jz+}Cw?yWBSzp(lmMksl3j6~~%Rx%e;$L?`nbFGY+E4**FYHU%v zb`Xwy1?`wH%6FdJWqU@|7fX5*tVHHH5Hd!$VYRX)NgqFJCr3B}V2?+*OwC<;`ILAJ zz)OGNtq=qzC(116+>0PDMT#gu1g?7d;Af`D6Mxnr>yT$f z*Y@gfEO|ePlo>IpysM~3&|N3DRv$>7&92b*X8kJTR-+FeP-tZuoP}AICd{O{68A|D z6i-|1;hse2h*?*rHymdiX<1s2MREt*jTXe*jSgVE)4X)3>M#X}we}-jfZxO?V*WXg ziWd_K3%62PG%5=d8m#?VI+cQX35?yWU_H?v=Am2Oa;tD$?y5Bb)1cfCjsBBI5m&ZL zYYT(;(=2hs<^I!w0rRHNAooXx_dLHyo0Fhh2+?)~U~94iu@$Mv{Ekf5%f#&WmFK)) zVfv-aA@H08tMM2X3>upCf}#2Y_qZT$#>_gi+=%ZB&9g+{RzBEYQ z#OD25zdx4 zHQspgA$I@6>WZRrY_q>s#oM{>2B~SCaNwPuZo1XJ133c8oJl@Ug2n;y28mE8snEF4 zoszF@Kos{#zq9-&w9(J+gYN^ttFHesDK@1$07(t%MR`Q-4$=ge<(kg^lq0X5KSl^- zpNI^HY3K@4K)db=a)s^PEBOP4;pCz~S$PzQ3E@ahThvWT6U5X&g?HUXrjA;$e{_;!14Xitex37lW{6V4XI8L|$Gq55Sc@ocxAh<51M<=gl$MP##=oub zch)d*>3%lIi*Ld=2gAVF7Qdn$ilZY?c|Q$g>nsaWI#?Zz;X6Hcdy__q9)uGQAX^A1 z>HP_!47HH)np<`YJZZZs=4BiO<)UZ6|H#mS58s?ip9P2dusvgwkw@u1(kUO*_hk zdx+`-J<|4)a>4?ohyRQ>l7-Yx_S{s=v>bMK2t;|*s5o=XR$^$Q9G0>#S7%2+AgN*MKs@EKFh(MW z`qO0mn~Vt;2nb!Iz=Cz_WkfZ(r}#@bliL#<)^vSEB2Qq(V^X4)-qHWVm*t9aOWlO- z4c#e*sI_>LrA%qU!%Z@N&(J2Y;Vz}Ld@wm8GaIDe`x;0X}=@I>oP}9sF zi7TO{B2wtSNDbZU)t-lATqhkx8cyz$KQalX3rD2Q6kvlL<;0jj_9C+7Ku|Zj=uCtS zhU6qO;xl*03;u`=AnA+gTRLKDy@_-#0MlpUu-|_t&rNnuH)SyTM`QZ1DKj;V=U9Dk z-a8q`-Qlwxk28l?VK|9TQKQ}bANm8jTq~HR7uP|o!XikS;PZ#tVD5i19-0h4|KN{I z-n6Z06zMfN6gf12eigETb4I_-5>Q1OEbD$B904@{3Mon4rK279h*?Tsg!fRX4ZG5B~8!EsKU96h2+ z%&C^k!<(zoSoT;SCk$I+0|h zqATUIVBi&lvgDH1NdIK1lOgYhw`^>H!By*q0o>1r%&F#D6gII^Z16-(WEA7%6+HSi%Y~_V$%>Ky^&!+PkY{qBl(a4f68H40b@}Mte^uN)CXTnwZiR?xTsykcfyy1{pbeev8Xkl-2i$nuHBo3zJ}AFLuFZuw6RWot;i>JrJ}=;$l=G(F zL^~t_&}(Fde;*^bDG3pgag&qwy4G%g?mu3MDzX&QiWlD|RN@gUj{}xYOe9xUzMh^1$F+^ow|0doca<#knJa z6XsdO8dlDj#S&UdIhifLTK(zR5rm}GZH0H{%}j<f4(hksJsot&nP>iXM&u zShB&tVk>G5mUw_(vHt{#a>Dt5bT~wjF?miZSabpT%P*P0^sZ!ZsTwHnDhtCMyOhmz47^O;l2sDxtIxjd;TI1lBhkE zHj#{E!bXHdY~fR%nLI9v@aa@oTWKsT`X^&_81Qc!E5nTvLbaV==^zYyY_;XLBLln` zzdJWPXxLR>vWGTN`xp-$RS{pVf=IgqFn;B4!31nMX!H(~@5d}W;KpWO=mxH$iWs9h z)?L3bwj9R@jMxV)|P%ixfrFow3r2s!R-N`X#wUkCwyne~Wb$B7yT5A87J02Ff^Pb5x zCM_?ZcOdZ_n?tPHq(dLIy$tCBV7iRtF#buq>w9yFuP*E4?a*%{*nVuineX{}!)Qu7gxzs&pDwF|u}LQN74tKgWz%dCHrr7)1^WC}t9q>#q{CFQIm z8S@ElQ;>R-RECs$cVs|>sE=`tJCsBKxIzHD#%AURr>=?{^}_gy8ihBt7u^mz#mXFX zCG!R^8l@;Tzq)u7-d-7C9_ke&!W)ja-Ygrrcwm|4ft2A+Ufi13@fRgUFFp`AX?uwA zo+n9fh{sWFmf#*JmM=?m>b|sLZe-Hvy~?h~F}HKgQxm2&QEnwyP&m7Ig8-h_Z=D=Z zYi=&E$=EEJ?geR~1)m)Uiv5WWjHLag>Yy{DzaU=`gB3$uc<&L)$^ z`9}Iryw)O&5kUUKD-Z$%gzdjoj)n$wfPvGJF-D*wEe5=sKTzRh9K|KHNo6N*(3)&< zB+OoprF&xso}*UI$8OhC@;ill*ZLq_c!1bKz-gKapF%q2+5eGu-e=BdYY!0k1?C)- z9>-D5#a3x~HzJ9s#CWM)iO$9>cqY*RQ{{UYX6zYKB&U7lyCm3y^J4HM@)$4&NbMT@ z@k%Y~!caMID68e+j~c<$Z|?!l=_)CU5U`H>n!gM?W=0y> zC8nyCL+6AJXLeV1<62r=l8}TgJ*3;~$0P(hj_rE%NOnA_((NKU;k!>sLAfGblRJp2 z3C25WStLS3^~JeU;g&sP)9sxLz;#?pgg-JNVIJ+v;+|jfgFC`Fsw2?dpuAkceh_fF zDB%(kCSUo2R%rAa495fB2n3v8uxF;{Qz66aglGT=xt{eD;AaJ%m0KH?HuNmHh_3cL z;7VVJu zkZVh!^mUd?Q$B~jy=jo_IXD8l836j9P}xfR4&M0(6}x}UNa6p6O3WXk6w+p1*gAY8 zcy7n-Q|uPA<^r()YgD-Sz32v?KQ1TGC60}kBhyPC9+6L zGMrpDPmQ;E4dS1+R)BNIH~?>mHK8|KHOtlAS4&XC0EDVx?%kcUicH$n)Eu=AERy$v#3F>QwGx z+o;x=0T_LzO$n@&(ih-mTiVzZQ_2i=%GLR$#w}dy&;L2&Srk5abpA-cP^I@U)DbZ` zMboL84tGt`I$u4aQ((fv;oNV;H9&(KF}0Luv6PS!z=2&KFBx>cNS^o;|APZ1L7Y>E zF|(Bdh23t5m7M^7EHoqMZxn>j^ZBEP9mF9M0I4IATyOaKXzB-trR2q7FtBQpa{DeM zWrh<*k`JK)6JrI+jMdR$UQ9szzgN5iR~ z&dWa^hzL1UhshP%IZeK}7QJR&$ZM|25gvjGyORz*T+Vp84SB@Nh5{$iz6RBiH4Ezo zn`$AYbBOzOFjHAY$5*_zwPeh&fWu}35TEZc=D{%{nP6ftbqA)4XDd(&dsSa-Z(B=h z(Ta+E-Ak*HwDO@KR=*4sM2DK%MKY6oj_b^2Q0GE=@Tw6ik=qo-r$a#kj*L67iude1nso8`mGiS>KsN5{;e#I>Z@ zXmS~@Q4Z*WB9nB~_|*nQaxD5w?Ba-5YD(}O(qR!&nh)ItZP@R-Q^mL?50~Ns@<}*dmkpxg~Caf`{) zH0E47puaJekw}iI&gq>h$Ty$oH=^Ube&T`ZBjNtv1$Q-nOasAbawWPw*7f6E<40B9JEw08PTH7mgQqz zZk=X6Z)zI&R5V2lZ*;g9QO0IPry=oKELRhk>Q4bnkP6q)@qxMxi{Dh+_P?jAUo^HQ z!_K!3dVbW#ZCRV*Es@nhU5^ETeH%CO2SG27C33;KLT{E5U4={mL=y1F&lT&CY??O{ z8^saM5*Z`JB}iofC%9-Cig;cBMq;KdY6|Ta2$$iN+E81J=;`&m&OQ+-Biv;wNVO)? zBJ?S>@Ll8VsogP{VlgRc{$ya|-$Qn4q8eCDAZ^NcxBgje%^uZijM0!ct+f~PVLcQ= z1SYR;Hd}L`aUS^sC?7Y1ZBP+7YhqE)pCmd56Y-C!#2hsvUX$&)kFegFNxRJ}NdN6@ zi1m>faUOAvR`>5gjWm;XOcOHH5*VwFj=A9m8enoNylXg*p-dO|U4*e+<(<1^kQ$|Q zr^r$@vTr+bQG+Gu@QVNW%gh>anJ$Q1tu9p(%oIL@5T)7=2sS!!5W7ywfnYhhaBV1D ztzHmg1@z25KET{b>3+twdiF5jJX0&~xqf%1vjo<-N57fn#j(1{Q6tlHqHWkOX|e)H z{v?En8GLz@tj#&DoR@0jxE5S49tDCoOoB)FmlPCMnGGiP(lr_^n=TLG-Z_}nk?y5t zlI|r#S1ob?=y8Zld&WKk+XfOH(`L+aRWwqZ=-(rC{7NzP#Anxj{2aACv7}3-E7cL- zlzdhyz{oc-fUIqH=v)^9gKPIp$F4l%SZy-jTGs95RHP-X%q zqxYU;pRFx`68F&ob?ESQX0betxE+Mg>9dkJe&m-85U59UiZR|n;r$ii6diU5>dT07 zZVew+rO2^yaI5Q7G#)I1~II5r zN&puFNW^~?z(AB0oRD#(no&MHh)zzP5vnrxBjeOgCmz3;;9}BFJ64=?ht7a4?`Kik zqN%7dz*NR+3g7*o> z^V;@|VAt^(tlC%zS8gvvCDvQYyfRwLh*HB2=oqbIrm4NuH@UEIH%U_S$?f1>SgpL? zUi7|y*HS)J_O913LTY!v=Q)>3e1w3tg~B;C(lR>a-CHUD%q*E}6|cp@SmVK(9#-e6 zsA^mj2?rd9T)skDc$>0Ym|w_E#gcAsd<4`kgzQ_o<#cs*SE|OjTE(^4c0meh;=y47 z_&fhRT<7KR#F=7O!q-z9ThO=+C%wo_2{zx2kyqJy7L}Y1>&^1eR|wsCbf3dz!Bq&5 zvTx%#wG5>~O~i#=knNX(KQK&{;!UUeZ`Q%-Dtbi=Rt(JjnVk7;6DP^XzXq`?^meAx z&?i&LlOyDGY)zpgXg4=JTP;=unE!!Q9;pba>h+$4du9h9Re9F69m_5rJhEy> zdSW$c51kU@2&ve)Y)0|%-ZOXjfjeAx5NG+KyT{3Z$J}A$0Jyqsw3CYb+gp4SoqxSA z0>b+@XUw}|}FCbz*BhQ z^)WxBuF@mm+N?FK%&=D@gF6eCt2tx+SIi$i=X!;E{G>63zjdM$)?8+Tm7BR;6;%*7 zM`3Ftr>#uC3X+zQ00h4|T1$w6@GB~-GkO_3@FRcAX?|mUd9!xBcT{sZ<#vhP2jJLv z>zzD!_A&n8^2=os0?~3|-bRG}4e)`}`KV3vx~*z~v>XiI1f~cMmya8~;%(XaH0>$C zjoJz6N#v;MyQ1hK_aszgde=%!GeDWy7ej!rZiV{se0w|_*xwxAIBrV~PH=o!sk3I- z>-SFBoQCfze^N9fk!m@EjDaH5T#epF9H{aJp?Xk8CXVBWO`q_EC57zV1ESB5;q!+p z>AbS$cS0Atk5vlz`wOAXJjold&G1*2Ts(GMnIi)Pc`UdUNz3LH4%GZu`lb#a9*x0Z z>&XViV+yxV=5qEzWzvXpnu9O`C2HO{i1+j}bnKK4i`_b{o7+w~V%Clo6O-%auVfY# zekIWQDgQXHD%}m;Hk2=+2Pl3EWh7Qkm8?AbAes1LT?tCw-BWnBmJZ{??rLO9R8i72 zFkVQI;$j|SzZ8n2W;_2st57d6Ms)C{)X-IJe+2HMnX0!8oEx(YPG7w;km! z%jlP#H?N}BKBrAT_TYCb{TNB;YD#RD?gB==Im+Y9Gf9-{G3BVN0|NXdb&%(10=A=3 zFqJ-3rcT0fB4b#>qm<(`c!;qdI`KejOo4IsV2tWQ?}MdA<3YZ=PRqyI{=B)j@J3lsf*P?R6y zZp`R~W*x#?rpYpySH;RvJakOCQ}BoH8fi>y^-B_~!mHC^ewmedjJ`!9BFmG+y=*hI zeJ1VV{Ug#Q5a-l#qPdwmBlP_I+r)C4=MB6s^oEVQV#0~$1W+>5Kc0N%s1lGMcpU6A z!5@!?$cyJ`z2Sw?!V!C4z!`9g73TSg3dJ1%YpuDp%gOu zHYK*}sUOp|%&17*%HbSguF7eTn6*@C+GC}}K^BEYQ_4`uO`7A9inMedy}F|5Yt|To zZFz(X0Wj;KSvF5Rz$(OeB4@f-tDL%we?LY=`tN?aAs+}_i=x_MY+)zb-R*)ie)}T< z{dtA{qA*QpKC=7Qe};S>Khu|p<#Dyi0w}AbBqAu!#8>5{t1*F?6B-2K24y)-#p$&; zz*6!y^Rng%QhjU24hY^hj&HK{mP)4yP4pTFz>^>_b841W;k-TD788Yc{m96a{&bGS z$(fSp7rfH;P^SGxM)bJdPg%Gs*Poz5V@jy(0ICv8%4by87xEeZohkS37+g1Dw?8Z; zw}fMB4Y&q3hdQ50{a-T!dPX;)OUvg2a;)2)jEP(^oYrvbUSJJ={>p)_)I{_;<;2uPe@nT&m z#!l+kZ~y{4E9bQH+5hS2oZq=3nd#b;Pi9(lt)=4YzTe#*%$`*l)W)>52S)H;*w zC&QgL^TTzM_}6A~Pk!>z$q0{Mq>=Ls;Ln|W^f-QNnB7t+UD~Oo~0h_3)M2h z$ce=Qw4!xo>${VVxD;zarY}SVnn;34Pk2K~v(kd}b)X#RTuj=)%#jI}klWQ1d1l#y zmKJdX`tdI*dqMm8n^E0}*)HAnkYw!rNnwD`9cisnLkSC`ij+nt^`(d+t(fgFAY0Xg z%c$CS6TVBSXB6kxMx@O#90N@pwv)?z2kj|;SdP)dN?^w8Gtu1@w|3Z`DQlqA-*5VG zr?Oh4y+J@Fd-Ta$0}xE}#^7DmWW%)nuaaDX#8D&t-`M6;z_g|eD^k4~PL)X=LAWJu zuw>15nCnKx+|AFIo$d9p50Zci0D}v#wEgimXIZ=s!91pQK}WqGvau-s6ctMdE}gljcj zmnAbWRh~f(G-^6|S|fX;_@(xoW~(`nGRFV65>A}(gZmpi{0p*8XMZyl;2mH0)=Pi1 z^Wqlv$}7z0i+1sZrsP?B3ch5~GLOx14yol{I*%<gtjH7PyH=jK&|!gRu_6w zMV;jbHQ``t!oE-h7=1Qwvf6#mt5bP>fT~ubM!Xu;Twv**fr;iX+^ezg%Dm23z#RZ7 zrsds;BNzL-|8R~iEDzTQ(63~Wg{8wD#N6KtO-h7N?+9!z7)bq`g+>hoV+6lZ^l_g& z#Oh`+OLD$N#+oEv9DIgb3q&1FB-3nh-5H`cNOg$4(r3zr*D zvu`-~&~Ddi>5aJZbS0X5hPQ99@XMoz=ij)d`1@qvZ%ulf<2{)I{h;*UovjvwaRiuu z8$q`7b}IvS9Xbx3Omi|DO#c0Pg?CwT+{@g{z~< z|M>mSm}pNorgh-Id2*b8A{o{H-$Pv+XEl2pXC^ay6F0YTbvdtPNsKS5X7W)@Zy42~ zk}5nR8H_|-l5h$D2c)RAje>V(7*%OZ6g!WY#bnx8=~;QsSJW%A`*5+liR&-5uA7AO zGr~;>>=}`mtj>haJul)Cz}MeH%AkkW`XGT2u=qoC^a5QTrvp(?Y*vk+;Q7b1ePnMo7N_^xI424UGO~#Ul#<2}#vi zR-8lhX@t%SvCs*=F9OKjE)2Sbu9X0(AAHb?uHJWpy8K#wspbGF5nCP4Qkr zfA>pwzCTkdai+(vT5g_zWDhOtwR*+Piss&UcdNeuSXK^~tueA|YhX9m^*#eQy#4k% z(0(=|gV54G^=@FSwEg7`V^aGe0AKEx?dum_ok;of-=M+&hpTg7t^{hcb;q`C+eyc^ zZJ*fY>Dabyo1Ko+vDHz>_K9_SX6n||d{w(@|ASTUuJ!Eaja4_M$ku7U{r3~u-_9JW zhMPFZV7g9Q(|Kq0>`T=VC%gQ@C3mUQEc0qUT)K?M?LrVrP+x|_Zo<7tOM7D}SL0Sf zb#jS11o%+hvUG5jbDtwX7ej(iUL9!<$%y9Qe&w#dqm)+3hFK%FrMTBE!zs2wCNJQJ z$_W`DfB19$f*p0YI9mQTUFOK=57*_Ekl@|$7%1|7&X`zX7PF3m5~`J>?!oAXV1+n| zP;r~EI`UB2vLnArr0O3SXY`8i8QLa*b~GoP03bi^C&p-W%H&7bd-QIa*Zddw(ayHh zfvJV+(>!vw!ycz9?s>G3ST;v%f@R+YcUQIw4z?Jqvtd-x%7%jux3AQtKgmb(_fh*j}FRt|wi|QCzVZ|1g zG$6G|0x)8V#m^!a0&+!S+xv(QM&CJG1LjzzoZv2ZC~NdFwpz%`UyTb@-C*Co;iYhbNdQIkCrU!w=O`2P8j;LIH7OGjVhWj2bD{(l%Uwt3y}^Y? z!jWVcpT7ygyIe?si{ThfZI0!-d0hRxzh8YK`Ic`c+|TY>oGg+muJ zdbfnPW60XtGP~*|B`qbYc|JzKE6m)PvF()KCa>8~*%y;EMM5#R-;qHmg~YP-{-kV1 z!wK7R0kNd7K4>M#j$~4?!XdX-^a@i24o~caLzcdyI=W1E$~UhoKRpF z6>)Fs9%UrKV4cCgL)xb?3wE7Gzdm5Oy^AQ)BPBmwIXf;bu_`y=nm{0Ltoqg~a;*hA zLS(PV*yiG__99tzDWPvNV&iF)J>R8ncMdZWN!50_A^5+Q#)KpH(X*t4vH)zc$<2?Ddd?_|Nfy zFOg*m3kIEglj5+pS_7UFIBHnYuO*Y?s(S-X?FOB^fV47u*2 zTFq^w0w+?e0ei{i_jEW3wuf|sNz|i=%{Z@>$1TKSZ(Ozq9c>Nb$7L~GW z<5O5KE?GNMI-63fRipkjL6_0E$g9IZPf7CDITlx|ttmFp60VNF;;}Bx?&JSf|_L{dYh)2;CI9_Q;PpPw}jvJHgG zDcU<_(m5Acbwtin1oHQoJoq&Z!!K2@uG89#>TitdgFX5RLTuUon}D=F|d++N9w(CW${ zyxl+Uz6}cHMSvylEG_c3v&QdFxoW`QS-4#_smYbY-#(qxftqb^Zj-0 z(rP>oS8@Nqv|bKGPQ)JIkyTBa)53e>mi{HScn@GTwu3v*-K?dv`)mu(Ry0=7MRNqd zoYHWI=9Cx*D8$P4YE4w!04azk2tl!7@@qjJ!Kl1#87rJkp=J+{G#XbBPl{Det2OIE zyck%Bxg$E6*7R%sCxS8c!P8fe$S98Tb)g5rLO~BKKxQfZHZBcFmNBmcUltqhK$r=- z{%f*kJX+K!?A{qWXF*B``|k_POe~8#r{QSR_=+>by+Hhe*XnfR7mqs!Y-1qK1+0Z$ z0>&_gwK&U%*~u6txs2KjU9W^N3$(R0@*vq9c@ZCqI~Cb2_E=_)1>F9y41y2+9+vNY zQh}_(+$^cEPxLO3(}-%z!F?Ceh$7jjVQ&9)n{-Pz8FJuLvOof)*o}+l0~eiBKKL?A zc|U(Y#XOjmq%zALUm-Qgdy5(ZIthr}o;L(pw$B?&S+ITLeBVp>_$3nkrX*;Vu!$bs z>IeIcHp&y8m>NCY;5P=dOcEgUBHZ~Khj)xxv9qHq=^Gkxt{cJ^ zNb17n?n21d|MbBr$*_Ak{|jr8PGY99|APnC{h?Ju!BQ91n2d-xe zn_8%axv_+IQ$35{qlkKUA+* zTWQ(n8$L}fYhGE#EM%F(YIjc8l+WVL5VyK47<$>S)*3u*R*#)O6l*?pQHUor`1((~ z5L@8DcI^EUVDRPE5mMO>GdqpzOz!jzmOrAg$^6F_9TVMOw)yJh*xpeA`#^Q#~z z(@9|p6Oa8_a>k&A5xv*2SHR+S5#CNoXG>|uCiKVw(*S#Sij~ec{F6}+h)Z6_LWn$Q zrNYU6T||r;QzR0+O!09M;Tc@eW^bM8c0UrMwGJjQKjBmdrEuC=tp1NXXuT_ZU!TE$ zl@2w7)8Fi``X=WMo}=w^F4>cCwNmlZ4Isnmo;`2oFGDL&NHR9onE=S9D8ja<8?3G{fR@%rg?%qG zpBEEYVJ_VEl6_n+ACZW?;Wm|7OqYsvUw=|0CJIVyHd9^ij_2h7EjVOC-i8H-p5S(W zq8Hm(BS!WWvB`Wo=2H4ae=;q0iD*&lRnExJtR6r$USODe;_eE z6S2LE$^g-cPiXe%BNp$v73B=5t-$$2+|Gd0)Y~1f^EkNI4qabd@s@oNcL*Q_CqHKl z`t>&y)Upu~au7tT(~;;r#D!ere`RgUD3pd?6=5!~4F*i}?$ z9bC4RV8?RvP)XJaJy|hKKI|dP7^{VmvZ30Na6hNND)9L06Ms-OJW8-QiG^F z2=L9yG-@@XGD{tj$@}KWRn$~i1Dc#v^nxy@m3(h~oqD^PKqxPGM2e~aLg7A&qa8p`BFze z-Sj03vEGo);NuQ;0^{AFi{Vj6q|tJ<@53AohC}1!(J;v~mt59GQ0j4I{+b_NVi0M2 z7?_{jt=8GH&$6nx|8%Xth)QO1Bgn7RD9y-m=ONs{DsutPZy}r%o@LEEi&S7?3q^30 zWd~t0Nh_`P8Ki6n>$KQVsk$qgvcS!%`I@uUiWUCUo&DLt2UNXZE!)>GzcEY*GWH-m z#j;nelN&tXC(7GA|FL()A`eWT;xTAgYPIS@9vau^_SW`ia*YSMy@mW1uPuJRvag{8 zC(!3T-0Z#9Rmu`U1AnPM{ew9F?Uzm(CeVHx=Lko=82zAnUp*Wl@8vvm*IJ~(lcgbC zH5>z`5HHrJ19+5m7hRSae`#;22~F6r%R9yfVyODf7KTUELRerLZ%&Nx9h)!R*>DUg z-g498#BTOoZMs>0VP9u}o+y1wF>l|^(mQ6K`-*jV0|^h=YQr1q&`pGk7ji|Tm3mB; z60iBIfdn`HDu1q>Z7xYRTt!Zmq{1;f#dz5wEf$-b0T{i+Ex5d?!4yHMpQw?0F!>i3 zd3t7gQwPBN&>WakOj(U{9NoG^h*gIg&2x^pbyj@A?Q)IW*EXHtWfFD9qM)u-Gd?fC zW&QZW%WNZHy5oXy3*}*uHdNeEO3g1}n?SMTVQK4rE3Z7djkl~?RZYU6WhkqyX91*7 z$ekVu0o-A#MQ|FtAEp*mr~=6aWd{~GYr&sVAujN5N;`4Ij4d;f(?Kd4(w`ly%JPe6 zOSL57y@Kfh5Q>~+7gyqT8{YB^QS*%9b%Ueu9tZykmprc0Uvo0D zVSz;sV(Jw~r^shX7vEse|4*>f? zmx7E=1Dw`_^ZzgOt8dEHiJFHDkCZi%m0tc4mfQqf6&)ScVn6{LTBDbeXT0BndS=tq zr4GSSvu1gvu6}u8rOetATxx{5xUFt)K~ewhv2XQJcjxof$l+D^czZpWZQ<$lt?hlP z>)8L8|9B%K<@wKbfnQQ&`rYhZRcPRGQNqa+ka%j8jWsF=Yvw*NhltoWIuGi?%nM9# zJQ`Oc>>feJJRu_3fE1tyCO8lVj{_G8;dRH!h8a^NVcHNO=hLk-g*v1lTBvcTySHSY z763ncJ0~DCKIHadfkJfbW0uJ>_in~JBJSW{Jy=24+bU?3<(fbc1e0AI^bkRDPF5tT!`hNco9{fpr6KbXvso!kBh0 zU@%)VT(k_{thWmtHv6bT!LK1C?Y|mXq=s^5RRnTw; z1#e6%vZ2{0V`*5Ffw{fAD|Ds3j_QR-D^PipI3b$mRoyFpm^d*MJl0r9tm-3i7^4|q zO{l)E!B>Ch=;E9(=!dmER@xRmB-Kh+I%XynYxAjRE|L&2)s`fx(Y z=Ddk_V}4a59eRA0@7iW<#9sJB1}l@!#%6PQMV+6YwA)kqOnux&kN!puzh8GpM@M^G z8+3Ngza|_yvvXOrwKKD-u&JU9Sk`6dSLk8KA!0eK(OOmGW~l8(+W6B(@Yxxbful=2 zX+U(~M%E$e#N^UM;~E98&9C_NcO+V!LrRW`>_E3T2{$TIrUQ3zlL_UNh5)+g&25R{b3`_RuJb z0AK4CVx;IcB=>A_Q5oMmjS28s#V_L-Jt(`DSMuF06-Sfga-0lHT8^Kp#zN!Z%$+Wn zL4R%A`#4(Iuw__p1Ss%Uff+}AMAZ=(r2ddn>8_7)lvo-C=bsAtURP^2psa@!vcZ)w zF!k$=Ft~Z=?oKQ}FNDb6N};+h5a!a!Hr-za85I4eK69fCDlP@~jpzTMWLy zU#Q>cSP8H!i+3Wk1{wprR3CLA-R`%A%q8sioL!Ouc59r)rh=gmx0z^$9M)@T@Gd_o zgjh+dMYh|eP?5(XdJqRJg7DZLRC3UWIV0E|*`#!WsT(SkJQW zDB=xAJ2rtQWRJ{G25uuuyn5o5=k2ObLClhI1lq{;&vf#k^A!1rlZ<*AvF6IztT`ZA zInuKQ^q)k9Q=c@{8SOG)_NnbE)A^?jYBTsN!t?#+bP6_|prQXdU=%SiUR!zs+!Erf zrVjeX`7*BY%wtTr;RiM+haz~ts@d@-H0s%TlLof~B8WNCfh=~&Pvd)Sm5kC3lgmYz zDEQ?bw0|5k#nCdom7tB5aAAY=>e^uZrxSn68jR>kwY-t=1I4GoJpop&x(VUI;C29L zt@3cny=X*<4iLQpz%n<{P(Nq$$9TOZz3BL9OoaR5iLA}u(&owpw!SSh;|8e*WJYn` z56Qp;56-|Pl$9sH^FY;JTkTpLQe+0tW%lEmCV#x_Z>x(!ryG`okZ)A*H=_# zg!J6N@9K&(@9Ae$)Y_olpS*`~5_|JP;=}ya0Q4TIzqal)0ZO|c_{L+ab|6;4;(0-L z6~x)KO}*8+Rdex9HG9H^XXrlF-5kzO&Yjv@CjXjIV8QN2X8AGgG5*d>ht0e0tI9tA z@P*PRA^tqw@Z5>kYphhqd>j6j607A0=5GX{B3YQBcb_;Rc`s{so~^?97I#=7E{kjm zE(-D|csE;roSnE$%EBg2+}Hf*yMrTR)E?|OS#P~trake1w*Q8OD z+aZ}R;5gwDEl1USK~_~FJO_vSQF^B_Zsf1Z+miQ8sp|zl{Eu*<&^V}}{$e+lC{7@1eeg@EL+l`Ill0$b1Y6M(DN85RxNd)6q`Nj%}QzBO(}~f@+HE_ zezE#2DMTNhfg1J+M)du(;XY?2?~}dh9_e6ySEuXmWzKK$EVlaFj?m)(eMA-nEJBPH z?cp1G=-g-IUYBUXxY7(jI|3I%CwI z$Yj_3U5|g|#m`Kv`C)4-=be53twp_0IGB37A)*MBIUfN%P%v{AEYn>5>hk-Sl5hDh zl0IUjt4M@g{IBxFAb*zlkzkc7;e2x3O3`No*Cgv3^q&4sCTdRKg24LQr{_2PUo%dm zF9=0;611zF6L&?oE`b<<>CEu3nQ$-K!2OPAhYcXdEVE1=ZF97k*D!mJB25b??R)&F z@Lv)!px_qMG6UBq+7~YZi;uf+yzjsP&fHHfzX)+I{@~ru?6&Tz9B)@n-C2rLbBfOX zRvkMDbISbhI2Nyl$UjHl{eq9?Fg+1Q-*+QV6Go(^$VnHkVeCon>VZQ?o+n#&K+7b2 z{urIpGERcd@p|sTGGOs-4|%=iOXa!)4#u?6x};fl8=;bTs!Z)@wIT6TbALA@4GmN5 zGIQ+9B=+dpA@C4SJ#J^efSmtO#<$K+{pZQJ`r$Cu$%={#d<#5Ssd9t9Dfl@K6^EQ-lHpf5nldeSxTs>s?R;ejwOt0nLEqu@(-_z&0+g>tJ5 z%a!d~t44Z~WiW^jFRuA+ z4$L~_aOHwFgDiIfY(uR*2*Zj}=b2$N*NIn!(qOH*?YuToAdX4F-Wp-tu$s=PNYDVL z(p?$ZyZPPFOh&lnPpe@gv`xm`(|0%O&8&ymJF$G`{XJfzkoJ%(`7hU#6yTF)@cv^! z)lNO%F6zrHlcp# z)wi3htuN_lP7&{1**w5)^cDLqdX@gj=+-1{XXBD(JNGUIh{Js&%yN4@h(D_`74xkp z;%da3L~G->qLP1wriQELgXsjnLcFT05EDuOSP6`AF^97~-d2KcSeO#ZT*zI6&mtuO zqg8N{03SvzFJ)1Ly;w+T;`5uaEOb%UjH;_5Wm|BxO&Mj|)b~Vk&E)?+W+~_#WCa)< z0tyKxC_stzAfkb*ayHke_~ZqxB+>`iLyk6WBC>?PPJGl*3M@%0s=5K8@LA{@q2rw8 z+BbayBH3-DrqvWHjwqRU0SEW!mZQ5-kjXZj>aH-);-JEXDq@Ooe^OEf0x>X@EKC;aMp? z1qThq%T`EkbhWyU%Cb_u>||RTx#}{ys`TEapFk`DxqFlpVJ594i(P|kc`*7C;_*Jo#!bMN z%W0~Q8-k4Yd1c)Kv8xVsmE0U1+;NPIY71VCCD*g3M7lwxFF|f80 zLjd{>O3+nQ> z4W2nM%rAH%HFVBQr#hMPt8|V{fAZCiU6?2-gW|Yr#T)DvGk5bdg zmaiE=pyIO7G8>1mXbp1gPDI`5_A;F9O;>!}6rhZkVdch&4}^JJpD)-Q!@(6B#l~8O-iIkBn&nb^TB zpBB_1!YM&yroS_Kxs%xu5KOq|M88nyTYdP6VhJ#^oGUA9>-5d+2CNVoHAm-};FS>>cGvphI z3Tv$R?}U;hw1n#CfQCFL=7@Yr}&(XP{0;PBR!P&0oQ~a|2fp)gD(+9_T z!ZIdl%fh$$T6e3%{GM-JIZ9zUn@$;Z>SPZ!AoD0=ByB!3D>9y_FXeIq+<)_&C$TTO z6lzsV5jf|}d1bf{F#qvUE4TvE;b#UX9_j`vs^<26N|Jj}WWkwg_gpj)WrVv>E{*yV zMBxMJ(iSJdyJW81FD+aH-%h5i3Hp_ekP@XrdtuhX7sp>*_g4wHj;EAd z!DJ9f=wow%CgP&m2VtpQP!y+4+vfrD^5&7xsPGdKk4SSH2-ZaGZnkxPgADbp)=i7! zF$C_9?lF2BcFus2beWfSu$ai&3px_X@OUIIUvj|0@qxjbhmuWwjO1tN&pQ*4VkMI4 znV6jqRbP5MeIcIMi>fLLfI@avP;^6L=#r2sNudSXubcL;ni+a zMZ98u$K(hSXu*x%zcUalKGy`*1HXKHeM-W5E>`>k1sIfels$dLuF?kW%8-A_d_fY2 zg)`7O5grgN#G#4&!em1wj(Fl#C;di=DIF;Jt6lH~t~Qh{$D%HFLJv-{b<&ct>!R|z z)P0h)aTS3_4PvnZhLP!wj@={AIpq&d4IBdIzbI8b0DDi@F@fiC-|q%N0FeY%6V zX$hKbe#woXd=Q=RQt=QjhORjuJaS6xU@V|(^2_F@tm#RqZ680(w-^mr2-!Z=!dymQ1_MJ5lWlypr&J zve09aLGkSlK1ayQ-$Hl7GYg~a)C3g`*b#fc9{>Li&7AW3A8Mvf1r77>(qkO@FLN~- z-zmob_G(PfwMK^j7Oo_xAbqC?YWw(OY7>3+U9e4BfZNa(5m*z@wab(0iglqQBfyPV z!*YU&6-rX~3;~kYvphW0MFcC`ZS|eb(^lRF>FGxR7}4C@FnZ?!F)JmuKhH@X)kj|6 zrZ1>_a;T_|?#KP^x8JsYU0*+K=f7Qxqd@3{0cS)J7>U&cdNW~iA~;ci@v&MKl!QrW zgN>mj>=qW@F0sEHk#?yBex-UDjSfxv@Xic5uqS(m#X9yTM{FGbMedFMWyG}4)tMrD zmF&V}L@;=s33?#w4YK^HI+}9>*!Gd9x*E{Wx^d|B_oFiNmZsYCra_?~+nn5Z8u!N8 zW-2MDli3p#=+z#46Y~ZFVM$PWH^#FNu91}N-|#Rb!HqGi@h#}dc089)#}IR_dxOwlI& z^*I$k*VdV(AJn^pR&KFSgE~)Jy+X5bi&xD@ZbY_{(xlPyicj7Ks3ikjF2W|+TU@b% zOV5ZaghoDR+(sBETg<2_ot{RmJuleY4#vbyxtmgdQI!`%$;8r=m>N2+#Lg8(VVt{5 zequLJx)7hY5kK0h!93=w))v9JLD9g@#gy;Z5w19-wm;li(3q};Vs}}lqfW@MTtzgG zI7q=~d?{PuM)60sm9n#)*L_Uwyua`q9*bd>UXM6qRC5v-6_&a6&plHE!_g@l4u@fc=rugg+ujSK#LHnB$Wq=Uy_ z?jt&JTpl$J%egU?X<7y+$IofiA1(jf8Vti$Z9?Fv(TJ9VX@9iq^G_{@ZLc{O?g_P# zM5P;6jTs9x&FCLgi*%emkuqq(irtS5j&M%D`(uGb_l(%kvEKquJQ^B2dwb)v{RZAw z`B(nAIk@3(4SHYs-*euIzXZ?aq0*TC2nqDh+|-o*(gR+%f>BWqD>m%K)P$tDc^~z4cvmJ>xj4^R3Q@uiS33Mppzc za#U2*2QbKf5b(cyy^9Z|WTIB)L>qaHx`Rr&=~B%lnJ*4VS@NrNWc}y>koCD}oZzd5 zW>H7LlzcnGrS_P~pzN6?sfZHQ{pJh*RD&4!Vht~svd}-7bye~DJ>X21{0{5He09Pv z6QA3DGpV9>2T%D;J) z<&md?Jkey9tRN3yW|0m^d?2m2gl1)XbjNE zG-MKO$`5@T#Tk~ey4Ygwmn}Jlg90D7s0%a%#tx-70z0TtQur#1hJRGg90C{f?x1VU zA@Hrt`#XsG>*+bn1LT{VLGCNe1f4S?4K9cDePAilBIGXOtB9^#Pa3c3Aw@Tt)?1>7b zcs&8~=PPd#f!av060Q5%OknNSfNjWV8yll z2-b+`!ZM2pHnnAf$v>3b!LD%ZieaFH;Z9;f&*7*hf>>NuXlHibs93sFdkd&u()D^-qQz#r7!Q=%!7u|s~XSn~l`G0x@u?{Q(A#z~Ty zC+EI`MO;r}cLhIoI-*uST^P@RdIG^kc#1j#Hexlx7qe05`ga+MHrhqO> zx1>Svc1?RUy57KKQo`RGyCvR?6`_r8j&kXpD+^wiyjto)D+hO~tLKjS-(%VW-aSTe zR}@7eL&)jWKqcGPX6KHKMJ@>Bp*z@OPBgn65v*+qDjUkya&t4Ro_~3F&ppM~WH&<> zPew~59&kMuF*t@YG z1dt5{qC{_55TmS2G$2j7o`n#zIGM?rdf=vM;2!)c7v3p>e2)v-iKRrOd2g`$p*IFZ z62llLCF((@E+otAV0(hhR|C@;c|rnIXU+)7$*K1`mvYE|C5Ov^s6V|tBa4d`lsFC$ z)@aBmi{5Oe>bgY@eo#7WqYtkSpN%?#D;r5I$zq%RcdHT6($r?$vF4M)sdG-Ecz#%(bTM*Xxn-)^~%qa%Z(1W;oz7Hey5Pz=_w2SpY0*a5JQFWC*1B2= z2-xsL)+DS5-hKAicHXaiv%;7CF{axAz5UOGKox6=2m6dbBhTBeeX=O za5yLYs`j+4e-+sk6iOzXin;gOS@zq}L;myJASNBSrRVnxR^#8)CgMAVw?O3L zUdbazk(eCCW=`~F1?N4iIVPz>8SG09Ucoa^JtJC`5Mf?Y}(#H zAbBeX22 zyO)w>{5PY^5fbIXpXimJZFOx-D_iaEO?8!&Ce_w$o%(iOb!&Qd`sXW}4w`*mT}}XY zSz_={A(^XyYi6sD0=L;7pZ5^IYno!d_xb|QI~^PNGCZ1TZyV}^5;z$SRU?|0s!$p` zfe}gIdkoC`!EqJ4S2CxlaKTiCj9Ya8|lnIOP`wBB1aN+Yj+pw*fI@fWY zm-4Bf)MnJh32l>75O8gm-U3K~n`4UXjU&pFJ~f;LH;V}V>7!P5{_z6&=M@}lH;cB8 zE1e_Cc44o!jt@r8}H)0jO=s zrPyt#v%nc_wY8jTcbsRUyGN1E&(ncUn<^dcySX0A1X^rZO9fW;JoFS&wLhEZJ_QY5K4(#M~i(}dxJ`}f)o*V<5RYLjJ4fe{ob!aWF(t{@#oET{jw&?r;b+<%K zGMoPx`m@$XM@e6!PIr7QX)cLaZt2iFIwgXY!}@{pD1f#+Wg4Ork9If(zyl~BlciA4 zW)_}Yw-67obmcpv||}9{Fs{GwLJjo^n(d*v2hA(w{)a+O*LfN6D6WOY(pJx2!705 zld64j=vJ;Ns;jrFA&^;Gv_I*;Cpyl*s`U zHK(88{7zoo@H=bi*$uazL|}^ZI#Vm3+X9EzZqP@PHwmlS*vgP?2mLD5YYm;3jo(sV zZGU!%Dbrq7(qx-3NSTgUrfitb7kAHo%L2I;cWZ{_qTP;hP&6+xqbZu(Dla*C2dtaaq$EVCgz=QA^c1jAho0SsWJP>o*#*yUWVOC zArn}*xE?E!Z$9M_)meIYSmiui9*U7RifBm6arDDkCnxStb?w)3d^fHRwOSsl?^W_H zccSgyd?lLr`zcTdQ@ON6Y2VIt!P(V~H{2YtyE|IGU8K&tc>wkAVMjKa`hvsYfRIil zmHL@?P^$NRo4ZI}D4a>c`dKQC!H*uPhW?SNH7HYS|77#rL*IV$(OL~+R#HT3QbdTPx}G;8)zF=raK?`~63p+T0B61RT^|P62pQEFQeuw0$nq)Kg6E;jBaXn5 z?_>*2*+x9->8Bt}!Ma7`Q_Vc$LKu%%h<{FfGGB>`*@d$2h6))cOY(0X-O<0mM`<)3 zCdwPm+@TDs7A@VoMvWJJc#IqFS6`sxoKpWGeSN?zr}-DHJ}9n}h{Aw&)E>p-jTZtH zGHr3ns8P*jEZSW6Pii1S7P%KUO{6GT_Z{(P`^?Vn_1U}NXY`EM%~Mii?j&v;u<#z` zMJey;&hY!r^pi}B@-cCr=&_M+(&^@6TJON78U=3&Eg!`iK2OSk&L({EUR$g)qxEoi z6C*HapO2Z(8PLcbpaoOs-H1dZI(ISHM0|=oGgE(_A4Okg+}SpLY^rno;V*LR*QI<+ za%-qyMWh+Yc}=M^95SCk9W?WF`+-lg^a2)`X!Fp-g}sUgN0z-Tc+!ZF3YPgiNgYFCFtq$8)Le%igj2!M39U75P(oI z$&yV9Vn}ix^y-h!D;Z3u-#JQq!Py6FH5rk!=3dbHz#deE`&KHeH# zlAC7AQO!GmbfnsE9)U{fiXS)RD*MMCpG3b3?@h<^_9KomTjAvF_NruRq6t&SBL@`n z2rn*JQbQbWC1`11jwR!O4fiC&Y-WA?U@9^-=_^i3-e>W_=J&E|X7`tB^p%Q3SPF1PuG{bkB@EUuaHrZ@s znGGT%S?KZ}XJT-pbvTh3_5!XIBvC+XaaBG<43B?{IMnD+Fwc`yd!Qma^m8%H11Ukf zbsLJ(Z93{fw2^2Uus{1+4i-xC;b5D`5H-*Sk2Uiz^3k~Ffs(EO@X%3peKpNz55`N+ zP0W6ZZsXF-YtVX^ooR0Mls~0jU&3D9;EoHxlGSJtRqz3mDnA(Zd#3SxLWU8 zIJ7Pft~PWi<{_RT*aBgj>cp8YXan0l3z*v8Y~sy`zP$4J@%p~4cnqY7Gp0YZsIRdk zj4_4&nD2sy(k-#1WW4Q{p?f=v(?A>%HERn>s+#HG|4>a{wo-cCaGkr`UmdZ_Pw19# zHE0T9Iusl3gK26}_i$q;menmEek)|^x;67$#}hVY{-yOtTMt+QHb7<@n!>=&#e8AY z3a(l~{Pu~)C?%SSPl26KBo()|5X<1%>8(1Sh$$b_*%g2G%W}aJ*A(Fa1{ne?hcCVzD7&i}f$*VQtlnhr62fl6QDa$^|GrKh=T2cUA;wZOJUKvY za)8_`nt-4MI5m+~skUA#)CXa+mH3{qo76L!6v1+zM2*K}C8`*aWGxYzDYHV4zlo+v zi3u1GNK`81UA2K=S(fs|9p}0Y)g@pnxk1)Jipet6dIfqk<}~|Age+eWjBmOb%xfdZ z;-S$Y5m2~V^3dC~W@U-ZZy&}vwmAKP_-G__4bjT7s|3UGkRJMF1v5jPqEw!zAtpf# zKUZ^?L*=AK?I7{2^ohu=-bUy@W8dT|;rrd?2z@0T>j|t4-O@RO3I= zpXI@(C8xl7qlKsWn}z0p(zNtz3MZQpA^aw7muG=LQ3sOz1pEv(jMG7gZZ`DOCF(Xp zh9Upf=THX(^~sdxOHgYmlWXStqIVhKexMu1pd|r>Uu4C9wbn*R)r)de7lDZJgCge1 zy!yAqp~w>4&BcsjQBb_!tnJlp`U!4QGc-YJrYOKTzaOJJd@?hVb1rPO+M+8|oKZ?8 z>egAwZfVm@499A(?1nH=79ZLtHHCW-TE-!125b6qJ*Uvt+;G0zGCZcsbevg^qbV7V z1CBhN|Mn?7mv=nu_OKldO?g0JJgS>0k|^5KpO?uZ)k9s)mz+rVC05Mkd2uM#!+QH# z-+=?Yir&g8oYG(f>cwdJEN7E47<{eIh!@0-d|;>sz&yo$W8!ro3(6S3!fPc)vGI2r%qan(eWJ0N>oR9fFt8Ev~A*qHKsD8cff zkLp5$WvI5D8BW;eRH9ybR<=Pfbc5v~{M`fQxuXXp1Li6!bD4+x3|Wsx*4koh=Np2} z3I6_>cDCan+<@!!fN;hEv(+}az<(&HM51OYJOv@WQpaL^n|7Kf&TPh*-3c$^`U8#{ z0MoM9ecoK(72k&-PEjjz=;t1h{Gs+L^zn_IXYLdvuHq8%rq-SE7`$z`#*xrUL3$2c zwyu!c=jzrk@zW^@2z9EjV&FQv4G<~0tyfLlDLKVo?v)>c>1@VHY=t<4wf2?xRP&x& zRB`zMV7*~&FI)>CN#pFAAb3(g4W#eE;5huP&0}6|c9VMkZF-7AL}RYEfSzQaST_WF zeE5Pt4RJ5#G&SK-@8rYM+MfstY*Gy<(j47~T<28S_G7Q>+b)-!F_q~GzyZFzHXpga z-KWr%c}qT^as9OMJ%RPS{EfANVRB;gBNJmIj&juxbLr&o@RK!utu*;l$SH3CVeGIV z7gj`NcWZCPQRpTXdZt@L#d`lq?=;jsSDBWsc?tmp0)CDFR-9sgbtT>%Xnqh_{-YuT zn`kpfGOzCRGVvsb6R{E(ApxGce5k-}o~5|QhVOw^F(decob+^zJ_xBK41}6bdAelL z)=(6oX_iU@w;=EU!oZsHs#+TVf*3IHA}N+$z$X@EN$TlNz@}IcOOCDfTts)5$1i-? zgm>BfK)66<1Z_&u$UjdviC+U-w@Nc$S|M6F6D|_@4TRRpU_`!*GV$mT<1@eUOoiX# zEQ8FvPyn3 zbVxLgcnoDoLLF+m{sIzPxG4D~CqlWYDz9o~P^SasC-t-W;6pp!R_8 zcv5nxxcydHKCamaZp2a9Cuy1f)iv?BoFuG~VFLWeIg6YNYJolfHD!|PB5J%f za$@+s(79J@2HL>lzqQ1`@A@W@^$|0tMQ%@GIbx-?lQt!14U%V#rk!DcYkV7{}2n^jI ziiCuebcb{~3=%#G!HaaKG*Z$6A|NV=NOvP4@T67vulPiGZ>|5V1$XA0{e7p;S~K&V zy>HN8E5+V0g@Ct}#UI?qJfhRw`{>fzM%W;po~~_%WRF0F>+t7bDINKnpqfbvx4jK2 zhM)9#UkV6>($5zt(>yLwOL$`60aT;IQk6NF~5GmDuk ziv%fE-9OZnb4V+&l;vsnxDBNl6}jq3SrG*dt2>K{ma{!xi&i&!SWW#rV2buZWlyo$ zj%bB{lv4j1POYdWq8XR1NwI3HC1|P_>kjVi<5-h0UwqB%Zn1^-7OiJnkI0%i9scG# zsuHYE^uAUQIVdorkA7<0R5HGBiTG{H;7 z(PJZPmNCN*?||rw*x$OY>+yn2rgV@)l?LaTrYQ3mE-a*iTE=6H`_xCq&pvrsxexj+ zz_L&7?gcJzrsk_qDW)ppk1D<$(WqI^(p}HtSuYS7%IbH0lyx&}bB?qcQ0_1A721$P ziX9c#$t3wnx|%3Nx%N0z^vT81mluoM$eqEs}B<#@wztv*&nu3@D1gh;T>^b@C=^otHMI#X-#(xBWA19ep< z^E~?eZ$3&3+`PrOk1yGyOyBD6a;rVXk@d&LawHXkk=FJL z*U@=)u+uk=q_GVJI(plj=Q=+m$l- z+F=a|5kCwn!JyrzWmB=aJmU;ErzPNZ-EFHofVpjW=2{|Qhm~;wnU=#GQu@PX+5tH9 zs*_N*DLg5-k7aV74BL`e)uAgJUJ5K^i@hWNfxt-8-mOSk--pg6%K`^7B)N@SZ58D7 z1oxjRE==zt2n)=Q|A`^^hgb$snINmuG<@Fzmx=Pv&;nv>V$5@w zb*WJa22|k9I!!RJ;1}P)%p?smD$ZDYK!zf$PtImmZ>1|iT zR;Wv2Tql_$IjgEw=k!8o?}%F`J~BwUXWNl1bJE$SNzA5dxoJ~sbYQ1%+Vmy58RniG zNf;XhLD*Ww5ZNAvmV!Q#{dQT%(r$!m2J^jy(E7(1at1ybRFM7v_xLAd5zn2g9*~?o z_r)rvwIUw+rx7Wan9_EQUu)rZOr(cp4=>^k?TC->-+11K!z}TF)263q%r9?{nIWK` z*NCm*p1<;Thx)7U9?yhzbF9c26d}hv8pG?{s5XzK#2`MKPns0Gb`1^F_P2GvY8HyX z80K~CU|ji18O<6Qf%yiPkb*3)O5S>E7Ygefe$?UR)zQAcxs;lP{ItrWofULIG}~am z+*k&G(py1IRy&e!+t3(Z*$L&^4T(0rsYVn9|QF~@y{Z8BSW)2b~Wk$m)$pnQ1 z@GF|dUsd%xh_))!NUi_ttDnKtn*=;I<)?Co3xjRr!8igB$rBe;A{wl?qOef0#k5EM zH3}*+Mj;f07CI8I`nx^jzP3M?|bcURrv~#O^79{j#e0!Tshvnkd&@lhFJ^Ok4sFivBqZr^J5X5Uh$cd z2U;EiAH!xhqu=sG0yABSX!Pl%awj`*2eHCZ@Fjy7N#1UGDU}#Z->78KK$%WN zjPkWslbG3Zf^JbMYD-GG{h;fffgQXmP~oRi3_HXR=$e*nhc0e4S+p1WslMa5XlNyr zXlU%Gd?7QF*noyJ2}o&9u}FEMQJFGI0GNp|li)O%$60wZKDtFhvWR0PtXG9AWR`M6 z1hBNMs_N~%XIuLEwgd5JRi3@t(oa-(92v9n)rcRJHgA4w+5DDYvl)1Gz1JB_{bb}Y zdcS45ae99PIPu+aL*v?Zf%3&}e16<6E zRyKJbExET#miC#_^=_^VqvKZ*Bh#Sz%Jlf~s5Cz_IDf^Uypg8Tb*D)rf79PZ#o^iyCdrmIRrUxA zu>8JBaFI&Jsnwqt;#!pd-dV?JIaxqp0L-!Qtj#>Kl+Be=lKuJ*3=XU+LU zyV%r}-RfrKXvKc_1%8+{*He@eEHrho(nmh&kt!;oiuqw77^$G_+vOCjCrH-ND9cj$q#$MYoGd8me zRfz|O4$C7g9R|L6ZOiODhaAX9Shb)BgN1!gV0twU)S$=BIE8ymR*9{uK6t~i{OPtG zG$VG~;ND4{v;QD`(zbwmi)^m{giYPj*eB@vD0EV+@yqv^Cr05(k$g@$c4N62@oPgP zyzeW)UqL!JG7aV}opK%%XtldCuvAN>$>4rf3fStqMb%QI83d~>U1Ar$ax0msF)uI*QFv&#h{A1QLo26s9AraPHb6Pc(I&np{nOFfW*2OgQ+-=vr@YgwW61R^UroOmKGCTY05!d9XPVdRk)D?~m$ahSA4NymyrM18)?k16 z*0wM*AT1=)Z`CI!epojEV_L_J%UN%mCtjzszhIP{v*kT(`mQ;UkeK{o1xuZhRX1R` zZKQn8|6Tr+{el(+=49+vVE%DtiU<8dk5Dh1ldAg=~b{Hk!9wof!p|0-_^gXy)O6NyAr9HaD`{B z6-tFndDQ4OK5BVyoM*CUYT|Dp4XW)slrLXx>V8LEWr-k#B6YUez8iF!>U^g}YHx#K zNuAQV-|=mj9ajY4*_=%N1pZ8w>eI`)%2EXdQ3CSxQI`!&8+%#Fta_Qsy$S;j?u@Uw zA+>UDdh@xjw1!xHadU1bb1BE34esfQcl~Qq!(hn!*|*!uhj-wD2)_7Fm+V)}(?2<$ zbk1!I+@L%Vtzdnbu3EXY#8qAtW_xJ-#wd!Cnx=r`X}~8v9gC^Q^<=^1ej?>njhVqO z^sg!OWB|Dz3Tc&kNedR5@x$kW8Yyi0W#W+Om1<-r1#wQ@efgKNRri$EKVJzDkPKO~ zSC!+G%=(I{(=~iq(zvpAz#@V#{v&y1VR!mHGI0%T6^{=hiY&r9E%=AMONOk&3W3us z??|uPT=(i|cb^_xNEF&0pEG8;w-G?kR^_<0)_ng3;`7rNp`K1HF3ARAJ=t6SUDwh8 zWJ~?9=9s#*Q($Un$VyFOL77EH4&IZx#ACYmS<+#6h857X>M^-uPLB^q(DdB^LzmqW z>VEOh2Bs=&R}gC~)h+#1EpbD}>7EpKTYPQlmfk8ydeHXk-$ZU|U1sQ&HFT0Ad><4K zRgu5?jOI~jaRF(ftg9`J@IcICygH{HPvqqUbBRFRWs-E3Oa}p-OR#Wm+rLIAA;1fZkKFztJPVrlQd~@5qj)P$mPLk zaX$1GjtH&d`tYKgy21#bcesUEY|q<90wUpCW(YUPSM#oif>HS#LJ@X8QpDQ&{K%+y z4sMS5;-dR=Nq`vHep%H2CS$daPf}g)1ZTvLaczvD6b1%Dhs?sjTW-k1B zg>s#B{e1GZM(abN+o=H|j*n&-VT=H6fuk%&U^xT+_zLl^+Phaz7mkSL8j|N)@DeP9 z7l(u?B83w>4A;BFVI4IgZjxCgU9XUJ(Z>&5D0(AFdtTXgR&B#(SG6y9x}ytNV5^&V zCTX)6O-2?K;N&I;bLOb!zuXgIwN0QG+*ypd6JnrfaYd}AIRX)QNS=B#PQB~HwNNfw z8w2}U zAFe(7B9-f_6jLQjgiVF@LqtWbM0#So_>r;yWi{f*ZxuBiRBvnF`VtyfnQ6ciTAFSd z!jYC@Youbqg{q<>%^Eis{p#C^Lf*~w<#(+TRnUMjML&)-hGk#ZxHYMI)IZ-<+V@nb z(vy*mc35v{|6vyf<1hx<^@WMA8($6?GRhH-K1A3N;VxMOZUIjj9|Xg`g}{F_2%{Fa zsd^&U=sB3g(36?#-C7akjyi-1Q)nI#0Y){a~_ff|5pqN zpi{(VQUd!!@Lw~+o>sJ-cQ$&#O_`v(AUv;w+pCL)mHe?kE&I$8b@mV<9fwU{9 z9RW0apkU#zl#B8p0PaqUft^U1hC@z>z&B7}bea>)xHJQYRFDH%g)pEANsay6oE`-Q z0%q_aN|dKX4lAUXzx*PD&-=}%IxYS-Lk7AcnuSBwVPFOvIC+Ro@$VsBIk0;PxXn^Q zhG|bRC9@3YhNI5YEF&9KB4PyzVtx+E@05%3XFP>RN0D*=+a)&FOXeToXJ1czP#5;M z1^CQGIWwOcdCf7Nt7FS)i%cD?V-w`IQn~nL9tBXDaQaXlRlb;2vCnz`Wu) z&ld!0FF;2HPd&e!XFR8r_)`KD_%aU;g)msk0qTFk&N=(H^x|)Sxu}V2fZKxfIY+0G zi!BROkadYuM<)yCm)NQ3BG}(rkPh+Un0}T7;llqJ&p%3c|L*a;3~0ayyj!F?C+c`A zGzM%hQbGpg!D2X2UQPlpaAVM9t6_}K=m;J>dOS+s?%SFL&z+_4BoTF8~qUqyajP0Ho)+*9EhP= zfkW`@0O=LUU#l40#T-9*fPbZ*J89DX!cID61^%a65PZrC{0B_v@L%v5NASPb=)XCF zf7hCeQu=>xE-(iFXQIydO2Nhd^AP!+a#1)g0BTtD+!$Zr!~Bf{pSdVvHxSD4uQ8?= zfkQ03!1Ia{a2>?~ZjTV1^L2q3?t(8R?=zD^T-N`z_X7RX1;b(gGeZOs6yO`hI#=Hx zsu?si#tUX|k^h)cfYTc~3WqE|IrCGGOLevs7Qmum;Is(I!T?B(VS#wXF*sx@8O-E6 z!;y-eKi0C-PAw$Gh=KbT8gzDp2jstDy3nA=^iz{&IUImb9Q!{5a2j$8Zbc}_6b*(t zo~2wAN5MaaH2*QW5FB}C@^k7o3r~%BCdk3=$WFi^nBdV0PMQD2&x1G`%y`~*nn7&L za@NNkF#GANf3gXmm|~rk5L=(`{bbK6M#7pF$e27o9T&c8ywIMFK0v@31}slP&&}S2 hZ&ohAZw!ENPAW}xOmH}U>dT6v!O6irHTm=1{{Sjmu=fA} delta 37640 zcmY(pV{oQl@UEMQIdLYoZQHhO+nPMFZN0H=PmGB*$wZUnjWaPO#`&H7-?h&^-+I;R zs`a5)RbSorT?K|pUW9^CRe*v?z)jk`3-v@h+Kh<+Z{*45LEsZ32p!?75|!v%;9<=FBo{3 zRXe7ZM! z98qkC_kq3Jr|u(PUJ~iwCsJ*p-a(%Pqgj9Xc7Lc+p}K;6c)u(#FRF9=)wo4iY?p4? z60^8uurIVZQIm2}Ce`pi{UcuL|JWR#Q8Q{kW;nuMAGNtQh~oc6&3J6c<$o3S|5VZL z3u7$_36WS~;2Z71buHB@aK)V3L^u?)d zgL#sy&e{9ax^%(*s{V)IV@T%*!UNSBd;4;hcLk8Pe=pE0CuiO_IJ4fm^Y77!=TrFo zoh`WZNlqF9lihd(2H~4Tb~-DS1^(64wO9r#g_*WAa+amxcmVrRGJrkN7mtQxX*i_i z)<+_)tlALaYBUUoq0Ua;MP@iVh_L|~D(37j(?wz? zH)m`19Dj#1&V*2`b2-ZiEQ!yJt#^vxxg*64X#g`#J%-t-v$plgb=PvP(#c)s>9y7b zia~oDB#rs6W!COA<7^EAUGZ+oDkF@MMA#i>xh|YHyh}y{7$8zNEO<5xxxiDLg$P4b-Y1$G*5>uV zUS3pq1J;l+0lZpsti6iEQIx5uk^MRLBoj{ttVWACl|oS5nKj68VY0Gc7aeC$BJ8jj zOJY7VO(CumzCL^t5jhn@iNu|q84KnD=<_A zdu!zT6mz@J)LDflk;4=e9Y)D6N1$>&y?&_rrn(jkV6v+KV*+;gTjsyS5vg@l(vR3b zWJ+XMkIxyWiTvfj0A>dq5_)wLTyc&a<+vLiN^(sxvcN#kdN14v*xh#Mq8y&vfu!{* z6*7&MY+F>Q3qUL5H~;=>yDT2XY_CY`)P)3FFwH2X>`1n_*;bC{o$+g>X%?nvM%-jh z{Su%6)DM)s>(8&%@BC#c4QMzLh#-smk-I+w3c6 zvKP8e?Wjtrs`6uFL54F}HGH*3xYgPqw0cYfyc3EwSa=vazJ~dV>jie^&gSULF$&&* z9()2Rpu znE8a?Ed8MOFZsAmq#w2ju_f(GE2H2u@zv>w{bMm?o9u@pbMk$DrRtOAzCj}K1&~M= z3x4P=(l{yeU=jNh_4U5EFo-vvA`w}tQT>g_4UH=Hhxpp zUz@=oXPTamj%0)trn)RGmcHmFJ|vYE1EQUS0VzJdJQbE??HpA%$|iGf*ShFur0~

hZ6yjbL-Opwj#IyQ(UF?vIf z4d(E~5gbUZe(F1qo~fD7%8DqYqqWH_E@mWD1BaOMw*MYyb6N2cH17W!fNi2#3)71a zuLDF78$XQ2UaZt?285enI1diqh6AhK7rTNZhrhl+7a+B`WReN~&4_XE81f#=*jNg^ zws{JbU|@o290loJZr%dl*$5dov?4Fr+`@k6n-0t%Yj2mk{Q|Gl6a{<0-SB^qte@DX z9`-ciUKeQ-867xFrQ_*qMC1iV*chT)HULV;t(chVX+zUiIl*KPZFyw+w}$fgSm6c; zIH#60xHI(!>=x;0@}1Pr?nZ9v?p~epLkuM+hr9^CH1c$v%5$&Mj@NT1ca?lMrw=N} zU9v{qO#_&lZ7b85RtW#5+6-$N)B9-b!fdUV;O!K5wOiu+z#ltsoMi9Guu+B7KLLid zkeqlOi;0ME5{s6H>5wsM#h|Wqv!xe@5%Swky8TuL<0Blhxman0u9liF#qz+>`d%j| z9LrohOTJ&u*WXz~sIKog!8U27VXN@gab6r~{E*yXsj<$F%FA)T;FJw< z6A_8C&gS{v{69Ob`-;HrcCUp%H57f&%!wuolTpkJq0SEYWEpRkM1U%wMIPoQEw zp`o|^Wj7XuS_jZ5WWJRiS&<<(!$<1j>Qz|eg~YQAhNP(f*9o|X`lG&tmHPM%2i)&1K(?cb+b2s}$eA>0t1{ ztMZr4Ut5H}iiPOz*gztd8XguSVcKNzJCpxEjunK~Zx%yAKm@@-KydzV7PoOXvvf@R z2w(#KcxXsreO@S?C^_?Rj>=c-R%5WqZBk0T6-gD96`8)64HUIOZsvjR_x^4BdRUx_ z9B}aGmdx-9pCY5q@CNe>Kj}Q}VvekDwxyMUumnyo`FaOD9`bkidLI|>3WH!>@u{F> z*zn82Z6U&awZAyj`l22)?n6RQ-Bt&2$Gw1j4m7P`TH)B;zFZd1eR66~!`LFUp|Zqj zSbx_sQAiR7m%@{-ntgnUtN~}OG{4A@lCumCE0uJ|oXu;=a`GQrWxe3F2HFJ7>-|WmY@=zMy%q-b&gsd4F&vf;p!d>h*$?(FuMnE{!d0$V8tdJ2Nbx8u z+$51CHpf2nu`!@RUt1fdJ3jh8?>+?`i}uq;>9=(>?9*6H*^|XxKkGm?Mh2-4Q6anG z$&ASavJ8}edw?HTJbOMb#H{H|FBdSMuERLy>1e}H%f9Q2GQpQvY$7L>NH=qmefWgz zL3pRT(EPJG{EXk(m2sb1!X)4*%RbX6m3RVC`?TrY`7dE1!-xT4r&|=+w)0O{-pz3a z+Cr$BA+n~55-vVv^2y|P;C;~5^D(?5AtX_eJzPEZh1Y92|E-3)*0QZhPYo#RIITXa zu;-&(4=vlHG=ZIPwe@yB8fPD=&ic2BMWyzGSEsD}sLD1%wNKCHMEjdnXH0<4b-hzi zAC!V7V3ymWuatOHE!GOxhq-y_&~J5o5>)j~nvBq$BXuL-e%ltmzVfo*>XK8dZj4SV zA(ebDmuRl;Pe#SgUQ@Fq;S=C&X5@=mK*N1%CSR_D`0M^Pyj5M6#VmOnEbL#aC)nVO zE=OkjS6z)}KzRdii8D80W&w49-2nc(LT=<2{9bq{!Epl4TTyOTNS8%IZP1_VYZg1R zT!$R~;T`Y-Pm}E58VMHb{-_6tl&ENCmm%DmQh_16DvAe+uMSTzLK?uxfVm@yZXY(c z&@Dj^hD-$sd9$FP`UHc)$q$vGet!{JS(t#>e%iq+tUb(^V8L>i1&;hN65X-FuCM{q zJr~Vum1M<8NMk9MZR%RIVizz`D(-qbg;Xke*{Up;(x*(3P*ioP&FdqHFX1RyH7rDq z9iFbAUBbZh^^T`2!B&h{Yl&4W3}y+wMGV_L#ERHO+z(alaQvrosp}~Vaq;yF>-Xl* z|Cz1-&w!QWsxm`|0Rd4(4FN%xX68c-Fk3j9d3cQJA@~}sWC%~_Z@1nPZp!aT%E3dn z@EXg(BdnQ56Tvaur0RNyVv74V7dTP1P?l9Prc?-pXQymSc_GNS^l~d4I5k|qHx^HqrMAnN;KXOF3w;(YL(<1 z7k@2iY%&4E5bF;k33+~Dxm_>-0u!^18FM|fzWSb^2&;ha#vUOT8PR9e7a8vs^7^($ zR{F#_xe$NX7#%dP(1!8Uj3?v8N|k8-(sX{VXWGRzcKWUOXw`Y(Kn7| zv7pbE)APhMO32!4Kd~2|9+udl&tjK!t8<=7F4O07NBm~kYPf|(bpl%h#jjfQKEAZW zVi`O&eR7A&Viy?J7Y_?wTcx+wsPE~WRa>>LvdJ%+mpXp6;xyRXN8nmN(ZdVz@vjk$ zYQB|Iziavw4$m}KwYHf&39)*kw74~i)%|o2(K9IMuhje+b#b+PHNm)PIPqigmIj(C zAr4x6n*N;fb8Fq~zY3(OktzDpwS;c3vs9v&FHw?Raom zTiEVpz}niL8x@07<6@iL*xK~aatWYqtF4D>AsV(=XsEC3?fp>?pbDJ-Me=Tcynnp- zi|FkQD{+ynM>4#3h^_ds{or*L$IjYadIL6dON;>B9Jubgs-wyzjK9kXrLd+ZfZQ>1 z>2ZC|N@3IBe$-2|W5W5?J%RIyMWkIcYLVpoTqB$>m;TT9~p*lN+*h?gYjy@$@0 zmq-C;J6EKs?(Pi(>(dnk-u&e->|0q<=IE^v)$RU~r3DFX*akWIPB%?tnhB%vm-i>m z6zi2&iTJ~dH)29PS}M|`Yt;O+Dezyt=M+0aV((!0o4+@S+vdt;>Kudo-Anw&I5oN< zMh?URH|wvq#1pAfk%d*rRRXo#PFeB$V4jc?LoJ9DEt6IOL&cze4S(+|HrUytQ!H?L zOL8^pfcaMJ>bTwOBuB(r1LjOx*!`Z$Jp@m5-&bSn!Q4%nH0pHdKQTy06^CFE=x#|BV?T0j*U0p+cuJ= z-{-n%BzfaEn|V;Gq@vHI`cjDVkF~Ej$-D=k#F&Pmw+?H5lcOp}#e1JT!Fu&7 z*{#6h##UzNQvtstlKftY{SX}>l^+%w3!S`z^Su;k~fk~T(ArfU-KmDA2CWY6qk2HzJ z4p|ClHYnwS3z|)y(K8;yr$(x60cDt4i}iNVtT)h2ml~8Hg8cj# z4vb1Pln1ST{>+dq3p=fH#((Ei$T!(Ch?vOCjGLsdqbBtP1Y?$;5Jx9nO>;GjG(%+; zI`EsDy2^a(LyV>vXe!+~eFUwr-_#vEZH*MoQ zH?xR4B{yXKTKh?NPWV75D#t9ddLicrCCTcO#(lwfAbH^&JRHnu{rc#zbNs%^X-;Tb(EUt zFA#T%Z$N=r<0iYkT>Wq|mB>WPCsFr_X2EDb>WKkggfX}A_BZDTKOnI$^OT1u zQgfpgq_{uv+)>vliE%y|f$!X;#}@MLPmhLv%9o>@E!`z{@(@0(V*kbzB)?zzys7A$ zOSJri7bL!a1;1JNijIJP!_TFyznoGPe=v1EM+zI6db1cjzH?|JRhUx9Ig|uRp@X;y1=bt3R9rII*D zBPy;^5g)vk79=e)L8ZEb8DYZ>fx=HDCkM+fFbV~>^S`}aI3_I5Z#j{wp{0b9|e zp*cDWG@g(_%NLwH%V`^kI7mQ8&IfLI@H=~p0Fy61WL_yOMz3yW>|kt&r}Ky^)SjW^ zHx+5;CWe?zb@5W4(+T{6Q5J_cp%3ABhOd7}Av=q;RuK|_!A1z*v~?16PO3%wz})$@ z;5n0C%1-mljQ7{Q%*u=Jw+_L>jrMQ&17BbNJvvnlNbd7I%|iB{FRcSoh)^1$s;HcV zxCz|niKD|PXI>gSZWhk1&W{+{2=J^-EBbCw7(D+#&#DaOzco#PQNo-dmlRD>93H4@ zPjd7LZZL!`T#6|aL8tf7r7#00!TCblt&$d*TdR>abpOuMlN0($i!$eVYi*=;(z(5= zGl~oioxI?RDK;IdKMY`Lw3-m1ppl@U5%RaZ+WHxgGS=BAxfPJrkz$u~{eHRRH>W7) zPSs#V%VY&(M^afx2nU8d0|{5I5l|5Hd-Kn@D|L4ad5*aVKJzhVP81Yk@*@>3^Q6XK zbsB4U#BCEGHq($q@sbXcnw&nbJWF-#VpmS_nEf0aD{2WwDg%xnHROo7QaMz$z67kg z?rHOvRQ4o5RRm%iN81di@cG({dE5pq8cM4$a`3K7VyDwj+lR9*H z5eYDiIjgbI)iu*Y_lk868k^B6%%RSzOD9k!x0||35u_VwbHR_!>k}~lQkYH#E}{`@ z6E#TrH+m2-B?R>F5XwQ)GjlMrW$#Z4(?JVY4D7z8wS`8-W#_?UkKGOpn8wb8KBl4` zpK>**?62EE-R~Y;aSOj>F=yyHPq#Yo2I~-|`^!%H^U4&$1YnKs^a+Mx^*4=rK$?Gn z;CLm4t_n*ArO(Ug{7ckktD}Y2-@E`nI=I5(~h`m4&8d;e`7&XMI&xdleAH zR&UAR4Sz{hZch-+O%@KAvM}G5CfjTmiRqF)*y9wlx?MqM4jeWqetBLs%Ujnggv;xCAQdC$rcuo`pU~j!ffa9ZdpR-hAxPEzYy? z1iGOakyrf}(g%JrdW+vo7fG!+ae$SJ%x}3aiGf%e8844mZKT z2bBgVXfK@@Y6#!+aTc8JW44}H#|vi&0K|Qj;{=hg8ylo?;Tuh<9U9}>+koEpu`rFG z8*kXpKdGO@OA7;8{m~B!MdzeEd^b#u)rUPVn40dPgcb*Z((F4?t6?mQQk-$x%kL*E zy1@B8gb?kgz9w_0%{nGx`p*K@p^$dp>afs+wUB1rZohm(D2s#3y2)hsRLzQpo;1xV zw0>A3)MbT(i-vj;IsARFe&ifu1&8lA5!Ebyuz%_lQQO7IXwHU3@@aamcFNQ1ioW_O zhQ55(619DavwfyMT+^$%zO+ekV+kD73E*(=6{z*M$VK)}ken)g&2R@gi^~V~hwmqk)- zDK*s^^iED)!`d%ur>Ch>#;OBKz=Y%7zch&k#>VM|J!DXCy)-U8D}t$lE9!Y0-a8W? zFIMOi-b*6N-qlj8uAiavcpKciqBq9`v98)%vlF(DM_TOzG$^b1E^lk!b7+v432$&* zVZv6ga|cxXU#G~`AMl8;0XJbQ#qJ&r`E9oxP%(HtIa*Z z_$sIRE~gvp1JjMxwughcOQ}(I#|Ziv#c`LFEpGZkyS={gtNAszb4)^YjsLVWCSCNj z)(Q0m^!?{0%FL!bo(kY>L(1?Rrgy_@^cQOSXin969(0I26gYl)dhUrSYQ5xgc;@VQ z)igGXdKD?l)={XS5w2!jVu;z zk45AkGNW+ZcEw|eMqoF_!}mg)=|-4fI5gj35LFw>Ne{l^rXAabr06B&QA4R#8AY}a z)bB9(3)X*-PEefjIq0h7oX{pYZCTDGv@OQM#Vf> z{u;%dmXL^;0_cmF5TA;MjNQytxxu&cYQpL12>H#XspoXsC$UZ9E-Iu5T38lMpCK@_ z&|ja;0uH2#=!1OhY_juAZBlCgPE=b!P*MK0<=(Tw43bnj1%_1~asLsX5mqum^>1&m zA%aqiiA3?X4U?Um;SRr+EeMo{Nj->=R0ib)Q9hrYKJKD1Ty@2G!PF{@UI|{z++pRD zs#_|cJe-_0h=jGAo;5}&<88b^*s+s#kdgik)UheGfnd|n5Ru-jUlZfco(YbFAyviQ zqMai?-;L0|10a$hM1A=Fo>=~KnxtyTG~BZ<7J(L(Z+gLap~xAJ*k)aA{E0L_H@WV? zmAzd~V(@T4%Z;4@hM(!6kofJn^6YJWqQApDf#hivd4I{j?^OOjWI2I|g2A6D`SnS%y?c={3L7dXjm4!+ zu1pzstusTw0a1WHc<5FIHPHf34B@UEw7oZs{y%Z(+fuD2t*TBv`T2o zux)1%^d9&E&gTzARjO2~tY9P*_>cACFM~{+yAQqMP_a8i_^J*PP}rCJobumKpos)C z8D6zHe}pcBq(710ZsopjW&cr~sOYHlrJ(W&KLzBDPYyIIqn2OMnc5tc8Ke zhaEN0Xu_Nv3Fb%00$)`i&zD=In;&?D#{BZAy$S%*|ClvM&hgS<(pLX-YXqI+wf;-H zfc-Dr`7eCSt%3aZ|2a2Q-FtFs5g;I#a3CP)|657nq@m`)rfqJc10Y>EU#to24>(X; zKD&;-T%2erCqRMYHZiveH zX-$x$%0B*AE2lrw_IRId9zAZuF#3Kac?9(-4oz!m%8k?ai8J@B zkJY*w57lbTxJ@>y-RSoz$Nn(*`uG$4kN$Fu0IP2?iRbyo8XM9@?OGe#%Qr7pzt3n$ zK$9^8@^VZ7d+T_jS2O(D8T)GJ{r2pKyKf=k_SFR3TUSvD7J&Nm8BQw@9<}C)Rh?d% ztzwUySe>*dcY2oL)HZ_>`48=)9&h2nm6VdSM{J`!94q z*lH%C@OzyY01Og)oa}Y`am)_l&d0OGGBPyAwe8jIAjcDSAI5s1F*9(`87{kN{u=rX&W~z^hA{u zwyO;w51C~~9k+;M@C}(rniZKh&?(61AY-j^y$!|eSfA9goNNHjr8WC;bN@h5 z{@w|2anVu`M^J3&K_tpELC-w3BSi;IDZPT|*(mpv>I}NT@RMJa=RLCJ1x0`rxe6nh z`@6yhkYc+}Y4mbB^|!p4$T~hKQ*ySL%YVLv!@k#EET|u3Si6*I#ZZfk-Sk|lsA6YH&9xW# zXRWs}%^{SQX^PCdFk$m0C*I-!!P;uexs|I1puun&-}UCeBeCsdgp1Dk)3FVhX9@37 z4um!$)uAX6Z9{5wDmyIyGq3i}ldIivy$e(x5;I`JW+xGpY|E+KSJNO_XhQviUjS(! z0ht+DYAOv~$xn>mAL4@X`L;Z1nX3$AO8Zm)w548NeYeK!s43C~youOf3hsR(_ESa# zunHBWkqu1$e7b#b29k&@TuZ#k4kdBDK_{`rQKz*^s33Dh;|IkS(mi!Yn(Subll$gI zqUZl|B~;P5W7Tzi*)2b@F_2@;l;`Gmq1P@mB^tSAL z1tfdJVvd%#ZvypxJ=?wyb9GM2Zl=Y=?C0m+Y%V26Sl${`f6ie#luGGs`JyA8y8@=oUa~!S8I(=sbY3P)ee2j6JL&P z&zd=0-jvs*r><5$^fCe}m$~D(Yi06Ig^~YK$E&cGX^#qTX3sARs{L%71P@abvRyL8 zuoOX7r`4wOTzG--#W^ja z82SB2#F4ktZ{Jcq38QFz{mt3Op+Q6z7AG`&Zt%}u$Ol=HkZ}r-chRh)zxU9{%c0U? zcigm?UP3l<3fax9J!0R5D45w%zXy|c zcj@I)mK}vGFANh zF~1~EBX~ylua*)ruzq7`hOccRu3Ze_g1)CVZ%(`dp|HAg%$Z_dN@89PTjyJ3&si`K zOV@^NN5=tZU%}oqfmzSS{ECtaZs;;kTw(acWo09@B?Yg=`?%c?dz3G1qQ8>dolTR` z*}6R7M^vk7GkhjTkPrDbJPB!NF9e<9$j75ciG(1j2cB`|;P}P$q~44aHO0R(K>aJV z#T`KmJwem9M5i92_31bl#s1SEQMs?WfW4m$dCUOp@lp;X@_((qCCk?CB?FmQAs@&; z?nLx4BH38!<%E5uB~L+LOg+kDxG2lkdNUxhMXr+rSE$v^e(R)B*xHKc6;@x~Bc=%E zc-q8N)zHlve!=1{bG>tVG_&?4%zM#}-^*msT*R_fHoFtbrilqL_@32N-dI%}fNUUh zQ^o*<*Bp{}AQ-||&e{`5y~4=2!)Vx2IFEUg|CVnnbDG8_UuZ!jE`&%@=fbolLsgHC zabs}W8nQegbzXXajcg2kP30Za9osX^9*(V0tRTE~by8Bt z4*jW4?NEZJ-daOn>6zDC-5*9PVXx!uM6z`>qjC&Ea0J|Q2mB8OR)S9dFV^F8#M;yT z&#)W$p9D$%zgUm71`eQP`yUY!r0W-m<%9kC(K5l9_GL*`{F`l_zM}^Vm_B?&T%64b zgOn^Bx(sywHIJ;7!bQi> zS9HyE)mCs9(s)iIshf)SoBSmcPPD_131Fsjs4FV-x&Pqkrsu7{m~JdGwf^R=$X1+< zx%ckGT((lgX`hks7j&vsq*2{8TfdRr(zb}i!D|LqEY({nz8ml4s>r{A&AEgm{?@dg z`7a@a$gAWO=ibPoqG!9A!}Ck{+mFeI9G17W<%$2v} z{9zAdrq$V2NW98nNL80qbnte?UZ%8vwOcepDD<>aX*8s?py6q%ul_B&=auo zmmjtZnf93Tr0DUuZo;wpbLW5GRn2dg_sa<+muv%JCBx~onR_a!KN(Zk5H94Nl+jU| zdt7Gdn429h+WIFRUpuzwS2dr6w&HLlwqP_H%%)pfsM1=UDH6~8NCIMqd0wb?8{HZZ zf;>5;Q*KJw3!RB2;c1}HW1d@Y3TcBS7~YEYo7zEl$i}xHs!;2il^Q!RF>n5E9b@+eW#urq)D+mNt@9Ov}4(&g+hwe0e?2s#G+btu{nt2bC_-(Z$ zr4-Rz3m^>WT*JMo4W&J$g^KL6NE$+BhgWGcIE~gQO;;=Db)HSy%NN;Clqho|g!gc9 zS>-TM{%Z`}9ROb;77UjSF4v)EP&JPY-sTk~7#^VPwT7gjM-4_ML zMZ<;G^0+B)Gk(>@9AjG_PI|*k&|Rv7T0vH(u_0YCx4lEn{!znVWNJo-WkSAMVIY?w zwqEUsmoyY^&=Fx9K`{M#^|DhLz8_I?mB3t~;ZP-0nuMy465eP}W&> z2jPODN3}D|zjT{p@fMFWQ(%gHDX~MrEAl6sJ!eh%Nr}Fkj#l8Djw+b#NHwR`K2OhS z#L*s!@0pWtTWiLEKeOB~&LSu3yugA^rnGjea^3p_ra4aeXyKWYE5+uY{c4}zTrLt> zb5;0ParIOiSg@ZPU72cd7#lM!){GU^FO?k~j2*2X9m<_@5; z*GKoJ3uzV7)rKW|eUPZXiZwReY^+krV7kI7x7Y51FUqk`7L@0$OUupG*YndNVh~Ik zPWwo=^Qe2@!YDr-7~K%y-5Qr|BTOv*q6x08ncSJjmMlq${H2-Yoo=7E@kB7SRv?RN#|%Dqv|g{I`FH)g#qfYSNPeogW_zf$q@w=PTYtYzdTCDkGON zg0`?x+0kFAeu_SZN(BNimF9AmGSW|BXa@QxI%w4as?FuFpBJY}2M_m*?g9Qhi##Ps zK?2u-d(M@M5L2XTfRWKVuB6cj?$lrWiQQVH*NNRmB)D<3DgX&?0K;NZ6KriC zHi}v|%JfTn5noOet_Q+rH1|YoNCk3(La5&W-BifxRxkYJj95|+_HIu6l0>GPM}s}v zq&qkl87FbMH%t3Fo*{Sazkhg|i6uEW&@BE0an!DUHY3nDN#v47E7i-o;_uja;W0sW zg*0uq!m=Nj*T5_H@|H-5mC>{en_w-%bfu#0P1L)dnmMG7wH!kudFVKD19b^<&5v0J z-M}>fcK(L!{ISevGpp4Xl0kp#&oN>f^l%7Am$E5Vo}cHBqGPKnD&4ZO$n@|qPsRD% zx)N7c$oB6v9|AcUgg=Xz!~9oeL^d3MI;Z>D6R7NVWCEfoC-5=%jF#XGh9A`|0#3}T z*%KYHOym)@mGHwM`9#9EGD0xnsK=3()ecMvwbV_Kd(9p5pnU!~uXn*7b3z_P@#rve zvebLFD<3v5o(8wiD7CPa@GGwH%J!3D)YtEv1eARf2s;$vxBKB&0tkO-5OyjN{v=`a zlTgeE$pKYC_!s5~&NydoachxZn~99}NWJ5rA5trv%}Qmql7#jM{l_TQXy!^y1Vg^u zU_HbEd%<1721be`p^7hAW;_pQp(^Ui|5Ck0CL1P<@nPhag6>nCzDRrFymIZi-7hx` zMt5boJBZv6e|y}8&^sSlF2P_K6iam{Mrk;Jumhm5N**7aDO9T3mXMzzALQWWPJ&>O zj&@|d`NW5JVHh*fGSC8G>!YYR-;v-x65!RuD7Zxs_%)j|mY6TgiO8MtL*049{#D9b zH}0WZs<2W;ZjfaePndO*M1n7=OiR+FGuk@7Y@6`ZKZt&i{QoVEVK%mq8G&hnl~RBs z(kdzzR;(r+%=&FHf?9masIB@vSpz)k@MaylDv{ z$5kJr_$V+?{^Jks+G8`~-A&xQ9|an&zZ;ihpPEKYJ7_sHg8AC%>z78fkdJC}cXk_k zJ!sD@GFHPo_uY5C36FSRmiSleKGtZP4!`W)ENg)E$f!1zO8GaGe~3#_$0{rJITxfy zJZ5GY9o9H|bdCzi9D$|Y%dGSt^E#9eMzk9`N7QO23VFFIZ_>?*QQ3>CF@PK=LViuR zbi~O0tngz(-jZRoS*9NrvX@+4-}|OjMkbh;8**6%I8Frx0ZwXK8lNIe`E_c} z+%Nx4%8z;<1o!juUK!?w+h!VF(jFYT5ofVxKdIr+Zyh1bDx%Q3Vt&F(3=3PS;nP&T z=>|O$>IWSXF0wc&=E?`pid%TdHX*A!8k2E^ATMWs`K36VlRIfmaSxQzkYxHPm-c1N z01*!aJr4-__wmeY*?OiCW2VI=- z0{4IaMN}~eV-VwhF%|@b1QP@V>Ho%K0)U(hIgbM4r~F!$XtNwV266~SCanHHDnB`C z>$_Qkv;`>x?5vK})umV?$NG$p66_3UC8_!q{mxZq@0E@3%g!d>4D??_9%mJ)CnW}V zCRny!w|^WL1Y~~lJ@yHxygv?ENVa8v;+Op}q@2}TQcS7P&8?2Gl`qSoZY(CvxC1;B zY+IZ;ZdV~r_&7&-RDPT~l9={9aj5tR6o-=;IoUp-#D023e7#KllSm`<>JK5n?^TEQm|e z{kj$uvUw4&($1)^QGK5Bt?CvWvYXus`{ELlWXKpEFX&!LsS1XKN!xuCf#}$8VVuYa-?Au|ET>7aSfXce`^M1O)mc?}xrlb2@q$QCe}-yRVp5E{_x&rChdIt))l?dUfyL z%a%wxk~f_EEVQ8)anfD@sxUVVQXbm+Tslh>F$o{smK)al+Yu@d$;Xkv#GfFAz8_67u$w{}OOK6NT zU|mm19PaajoTnq0EZ<`CPezE&3$B0g)X5rbG4&BjtDHC=@rCXOF4PHdM$sr+31R74 zDV(IvKXR2sX^Og;mz*jbuWvmOkYhc1xyRD%2n2GZ6-(-WkZkifhE=1T6Cq?*B&5_B z%aJEKw!F5Q|c0$^AI(?R|{5&E& zV&SQQtaTh3MB0?V>C@UKUUSg}Wt7NKDc3BzRb-(hRLbwc*A&2^T zdo5SLneMFO6MeJ#-j1-3x>UbG|A5ig1|EB|>Lx|S-PBGr<1R5he|{(2UtfMcu1 zEOg0N>SFsfB9-TwS7;_uP*(tDwX}+P+N!M2R?{*Lw}~%+XlzmUrKn7?w;6S$@^=g{nnT1l=mGw!=+Rr%6i-;i`) zB+q+MqG{-+`HhQA8o}UR>4EUL<(nVqwt*cE`G*06HsemUBFE5Hri}GsI1cG}at_y` z%rde~mN|}d1X(k*b>yLSse;xCH=Z*y<=#mc)0=j{)N{$jY{gV+bFYp2UvnRA2YMCi z#?gZWd;tFGQkL@dZi!$y)Xd|cQphKQFmQO4I6_oK^PHG7UF3+_uq(NG^IzZ$am8mL zUPF;fF=t$vo*?6xddl#7`kXwtN1>r>id~=jKWU$@^lgt}+Tpp{55z8IFGs%(BzT=o##Nd+5ePcqle<03q>@iLFtFAj5Pf2$3v|Euc?NoUZ(g2oOi zD7Nu>L3!7%j5B~PpSC46 zEIv{2UmYj?ePip_+lRV!kDDVoRylc-`+x=z=YNa6lAAryfm{w%Bq9P)QYiI#erc8J zFFkVv60l2sI2xmcL3tj|-(K(oiB}8Hq=4@6{N1Q2nc}#JCWv`b;@uvdUQm(kHivZ?jZbN5C#B` z&wL^3zyvdweKxH}wF+*K7^jz>nFKFc>UPauWSQz7zdlFLK?zpfsrBcbUeI8ZxB4I& zP!2cqP>0N+UWehMp1xTHMceIHbK(5P%VeEBCHB^XnVWbr0|`rXp1#40)ZFQqs$Z^? zwX2s&SlzgmOgq_iO$U1j%+n=gjRTty&N{i-izJt9%p4;Z6?mwd(u{N&5?wszkBqbl zwJL}VI2{4V1POQrS1&`XBKd6?y0(u|#WDluhoWu#P>V1*ez=^BRvNsip&OaHsLWUC zRAwWgwmE|Ep4AuZ(<4UOYEiN(%rF{}Dp#I^7<%?Ms=@#BdnYb>der;Xgi&6MmM24l*T{#bQ$-q%&V%taPD-Q$T< zDNx~VjR$-lnDZezk@v}g#<9*73{F(i>`U&}a{+)PC zX>AVL^NG<3c$q^$t6foJOJ42YI%&JVo<`ce^Z&!uIRPGHaA!`S(k0>Uyc+s#1p)&Vln4@`6{?zt_-eVYSOQHs^{m~Y!RA1t2 zb(QO`TjF3uA1f;IPNPdla26knY$flKvxmvh&5E+Kb~0_)$II{Y z)?a9?=86ruzJha9wpg-xUG|kc9Ucycz`Tj6qS3`TrqZ~1onH*@B;|}{%+nt6E%j9| z9a(;f%NLF=0Q7$keb?O;;|5x5po(z~TC;Nw#)f%P>rlX?9nhg#RrXq~UPgr}zh)$O z;tKo!SQ(kMzN^nVr5rwJ=e(BUiTl5GzRbuf$4kZ0x;B(-`E#WcD0o!bDv}pkZ>D$= zwvY)LObbvRU{1=f`J8;&un=)c#7f!dx3-4z$0`t=1GZERIZUFZkxB<5DEG_di{jW+ zr}P}O)!2%M7fBp?i^A$snhi)zimv*N^G#S8lhY5$%M&&0mbMrv&H9?c%2+f_S#T1{ z?KPeaZD*k-OdS@;#2qFLxQ|!txK`9mu=1qEHl7p5f>=9s7&;q6lis5EYlLQY=0X*G zG<$i)d~zV+pT0pk-L5XF;{wGKR)swDlwC{~b31qg6NAIk zM&{bW*918d{ISaw{$~UK?2MNcmbNKFpUs^+0N;7cg9Yl{$GJPh4dJrHh2%~-Vn;q5 zbqU>zHvd^Eaf|zJhZF;mT3>vv@@I=1{#%pKFa93H%lBIka4xTfxf-nE!6;&wR`l3x zIYopd|Bz8lH3H(A!gHus+RFI(kRh9J#QaE7CF^Zy>X^=3svgh#|!Wo6;57@ z0LU{5l1DO@1|O6PnC0a0qk+@#(;+Nm>o}DJwg+2UNUMDcwqzZet1@V>484Ew-jLg9gm>!d8i*>lK=OVeGFRB-mfUXDKqoZgI`XVmz+{Hyhg*Ly z(vn^2x5Wqp#RPQ3-_MHvq7;`rFt4u#16t7CSpD#_W&(caKlBfLUb9lJO- zJgZWEsiEI_M-?1a2UGeh^9wa0CK>!o4^Q~ss|4ohTIChnYZc}xTRqXfVtfkk28=lr zg(jbgjq6?*-dz>3m1)3QgSyo|FR?KkW;Z(p9ACk`nw7hqsQU|e?Q?H9?C>MGkkl04 z6aDp8EAxqG*+ig`*aUCs6h;PiV+f3Xp5H(#c|{8*KG3pUz>zUd6^}jTRLasRPxnwE zY*7^?2cGx$fdqPG=&wbj=oQKA2EbC#gUAWUwheI+-+bV01FKTp`XYs`T4B-`&6#TG zwF#bNeLjF=;TVS|GA`!IJo&jrTm?lHgFryUz-J^Yj%|r_xT2&eFt&@# zkPN4bM4B~4ul?pe2)HB@^4a0}7xiFb)=d|#Xp z0CBVL4clW@ctH*@aQKC~Xf|p2hS1Z?proAT36BT-Qt={!gyov^0L>e+vod1Ka0nl{ z5-IN_Cwe7CLv>?6Epp{APOM|w7cTxpSKq*>y;#v^7-dabYwJf~onQxf*k%J2`dPl# zE$C5`U3<4UuzeFss9m>!hsuN}pc;B2$`^xboXaiVfo~)@e@wKV>{8(VXrMiHq#A-b zT%f^fSIh-7bO;Fg^sWcVPgiDmeG#6h$>i%(1j%#jWI1>qsX3_~*Qbrnlj46&E zJ^&7N1|$EM3+m)Zl0x3-x8;Qfc@PLpHwzPMG1ztAFEvt zIL8CxyzUwaDcV2h!!lI!JVG_RiG(A=n>q-Ka^aT*GLHE99N6pR1TY8H z^I=w;T)j1?m!NJ1{YcwD`fNg&gkc;bQ1!OfUFVJ>D9%Rh(WQlcNUH=vp9F&w-f(E~ zKtb^;^hO$p0If@~7zPN9r+(b@rL~5y?7t6eAP?9thuMFh=mI|QW@8=y>Uk0Le`09( zOM0_Gw_gogKj0mcy~qfE^LhL$(9Z9~`^8XD^I)&^t6>-XLH~`w*OlMOF#p=rPLS^% z<$Bhn?px%T5nizbTTJ(r<=Z&C$Bn;IHwpcPmGNXL^i9+|SYWKln^3U>S zWG>MH5Lk3&t|QksC2mAr?jOd@2$oY7M~%2T4SK|w3PS7RuO-~4;*SJAntUS2CR}8A zU%l2}EacBPnF1Bw&>^-ME4oZNB3ukE`AH6P0)VuN&tXFLj$(1bbPb~L50DY-qVbj% z>I0S`!T3#BD2ptmu^G`JECZhu>mr?sb(R1~U`Wn5=a)LjJw1oFMkM5OM)kN%mLVlV zEC6b3NM{)Ca1`cR11|5DrO45SOmw2GD_zod^!ZbVY8gtqDj;XeBD?Wlx#Jw^uE6>e1b@Q6K2HV5cl3-kU=qIK{1JcYN9^ArKEQnN zBMaZtd@38Cj^FvurhbQ~?kB7ie}+?#EVI3BI_nfG zUx3Mo&?8>51RKN4G+90C*`|O^X2Yf~+SYcqJfXixXTbp!BKr2h*)b zJMl{)l{V^gkA!@;Faeyn8)cp^)vDw)9yhKD6!%X5d)Yo#1GiN$ce~uVR zY^g8aqIi~aaV9~f(&qcr_1(3s^_}!=^4{ZBnGs?6seueXC`sK&H71Y?)z$Vd00?lJ zv;Hk3aO5KE#DSZ5$ZTA5%xx45!%PWnmj+h8-sG+B*3=zKZL*`oM`?FckK(o zo)Lj3ON=!Olq5rR+pDVFkb^nvBhO|K!dOrT-|q0)1Vv)K^9*m;YSIMw{^=KmTRe}W zLtl1qmmHA4hbi>HrE(i6Kw@Oc!Y8_VC%3g%bWXd+kK3;ke4Ze*e85_6%n)7o0+Gz+ zKvod^ilb`*Mmxcb!95QO%l4|{ubu%X`Hi$6{|~k|!Sq#u{Fp!Iudtiu1}1@le_SR* zl8`@-{YgY{wEu4ft>mvjtOo%C5`_G(_$R;;WHR*)Dj+u5UJ+FoY0R?V;m?7LY#x{| z2)Z@mUNH;|3AB{D9J(kt%5DOE&XH6{Qdbp)KaD&YMehyhOF;~)Cv1v&b_NA&6YG86 z=jGMo+^%6Ca6ZTs&reJ8uQAARl97;juq3pX+#X*hIE&&qA9+*xKoZ0p78Yb2p_f7t zDwlow06^(70&tvW3%UBV3bD$%{m6c`3D>Bs7~Lgb702F2{oHdhKpZUMS?NDcdk_0K z%M5y1<%%L-NOc~|$XknA&2-9`>WMXM(2Q9ByOz85v(|O1z6Y^;0p{7^`hFGR8BZtL zjE>9A7ve}~(^f}5p0L^OU-X!wg5BJo*pKMecff?T2cH66M7G19fwz)mOBwUm3u{9M z90vU>;?*2B8Xlc5yR9SJ$=Awbku#e*8#g!2yBI27l1C5ymx$e_;-d3|4cAluXOc>> zA#riK^UJt4$3C~yD@k=sKG`zne5f_77+QkR#ZX2$CQe3>Ab#8S8kMbxU_uj)i&Bcyg5aTlLJ z6gPEAgWsBXZ&oA{ejyld)i>OG_k)-sc_0!elDt7x`qQiroHKd-({|s~!_#&jXw6It zAh^gK0{FG+e3hk0St3L z(Dl|H3v(a+;;P8O^$qO-7L9*eA^%u`s{qSA5*lrxXMPlQ-5H&XB3O<__-c?JT}lpu zx@hzQSOifNSCK}T4cklt+QksQaDvFSyy5|90w#f)d^{hHr4Ed`LKwn4L429+Q3+@Q zI-wDTj5wH2GbqC*Aq1{5DyxNn$QziY226UANS%BflwC>%Vnb*qn}7%$m<83w;v4vX zqJ3c?$&YeG^dFNm-VfcU`Y*B%Si%H615i(}zkk!e9v*11K-j?{j|L>z!GS^17O!XQ zuZp(VMG)6;%UZq*tx}hv{zc1LSad60(W4Yilc zvQzRGZl@+6Ly;;Y+?8dg$cT7$1?A+Iw-+Je^+`10-#zJ4f2I(`+Yhun-waK~@Ef?f z6K^k$kocPqWePxyCL!V;Djy&zTruHsC!K!Yh*8(j0|5y>EBzP^u_n`?fX znQeW0my?BUo;3;URM8C{4nY>`8E;L&<`SEpcjtFAJt=Rm?%;<4Yj#^pwV%`!nj3Vi zIS~GPl0HF*i;2nZUtvUNZ)|37r`_>1`%TFt(H@jE{4<3ZGRSwxP8wtYe+mp2xn(Bz zb|XALqj5!%&j1I@W#m40MPL4~d;fUC7c8E_klhKt^K$X@MFum2v1q(?Y+Jmp4o^{A zUSl)fwyogBbZ$_Yk#(!F#hJ=>hIL}jfzRZQqZV7%YD!4Wg3HY&u}AKzDtM=aQJ?~= zd=~u$bEA);v5Q(8M2j+Dm3_;!w0W9%hQ;fepmDoa?~eLx4}^jSE;p~aWjWG-{$!_W z!_*A^S6#>>y3Sjd!w@kvihk8InfTgS%5PVGqIINs zIPI_y@dfy}fNF;}M0ht>p*xEKnN$(=LMn0aJC@^dG1;|6kVQN|Ba0icsm)mkCB2A5 z8jAKBMYKo4!uE#VfJdC?)Js@Qx>>i}72%qFolh}tZVI@82;bYcS!6XVV#1H}LDG?d zL9p0?p;c})ebqRN2>hWGfokcLJ zjV}_?DHW7eP{m0>{Wg=r)}*eZYLK70V!!h?q2H(?6UX3fX)i7$;b??{p84+b7>99e zkcrT^;oao$>}puPQiI#iCi_#@nfXLd5T@pfyIU}--{=jc{NxgzVUsv@4Y@nPtCXFs=CT)%fJ@Z@Xmh||A8TDV!@L`AqqjDot z#Xcp%s5Lr3(46Cum^8hZ>NGASkNNS$91QXWQ|^Tv_1w3U+`E2>&TMf|cB_!2%oool zGkLH8cSE&L#W}|QlO6OMqEG#n*Wi;tvO>9JD$6Pioq{kg)Q?nqD^9wujMJ0PFJAmZ zc!cnl5*=_Xhc%{*4N$(-{E#2rRsR6}PN}b(i-`b;#pkeGM2E5VEX#SW8s5AX)>6~1Mp=F7bu`}&^09DF z8N*3z_HHQYtSvZkQ)&AA724Lt6M4DoasJ7JKcSOR=WB!^Ic3OoTv_E6#&usFRn%K} ze&-LEPDRQo;=Jc6o1*oKZV@W}pqGZ(<}o?MbC%iZa;8FPmv!c7*lgQ1DGtT7fu_jJ zntuh)n7fAZ<2AD{1H}-;mf3ZB6n`pC&Zh1ZGKTw8S{^)-N@($6GyF?$rGVNhBBX1FYSTo z6WJ8+ky~DXKFXelj=WANcjTjrj!uK2NM~G2h!u%6hAV6SIC14XD-o?* z1y%mRh)1O4{Y)f4q13cVOQ;_f+H1j_F0REuf(xTBrjyIsl|XS+x6VlV0!7(ESunW7 z1lwSA2`+7}&=?|ib_3?5S~{o3ZB_%oZRwd9PQt2niO0bkZVP4_?b^D^txGw(YA9ry z=QIQ{2Jh@4x=ClE$(Zzo%ol2jcdD9+|UV!Jy3Ju;&u@|}r$if9hDNmaTT>4G@o z2YEH7AZLO}FyheJmyY!Gm+xu>7VSI4$vEIi))^{1RJQDFl!-{=LQ1-tOSBRYBAZ@# zE(oR~Kai|UzSO6YRpd5V#~1rk5HVF*IS`+W{2DK+S>tx3vScW5fUtLKOmwk?xLmqb zks2al$qi{I{D5ANyF-l=8+Cbv*=OJj;7l^8mWNubvPzq{;#^=5DkB~Ct1h1a-G?Iq z+q)^nw(CV8$Jk+urVl@Hdaeg(IpmJCPEMbbqrWLh!lba+wp0aWYr7LYo*6- zP#pvbOu$1uyH`7icb}6}2fwEV_Kyy@_TFejA;7txYT_QYyFl!3Atqz^F{7mvgcK6u zS+(RkrXzH7bw~8zQSDWvph;m>&E&AS`J_D2RW?b&!J`l&P;v!&^+2E6H*lgxN`TPq zO5nK_F~XuyM5!VeCZzzB`o*9jYL`SUZ^RqFiFRU!t5lmSQ8LQ(r%$Xf(OSf?v`;Mw5=&sJ@rS{3T};{Rynp!n#}kUO&)2Qs0_DSLWF_&SHtaYY|_Wh9*;7YZKV zn#wAtrxh~L*D`cxk$^p!lJ3Y^0wk#=#Oay0G% zt$oF|8tkQy@e?@EoG%`plkCw4eeZpP{AVGxY#t3u_!C8jpIijXk9I~AR7mpo&#M`_ z#Qzl}RT$#`cRuYF?;PR(>k%?^i(koS_(}k3{(5>PC8X;J^aA>3aOC;`k<@537-8v~ z-B$g7A{*qJ;=bT{gPQ$f!7?TvWw)6z&a)1ICc3RyDBn3#(>ad4+`O#6{J*~L(EEur z$k<31r9{<4U`bF+upUgHp1H!fuV81&!QzhjuYu|X!o6Fzz?YOYDft!o<}jKD->ZTVA9&OdnzSge)GOq!mH;!+U1-KEqL zB#f9aFxs(PE^umt1zbIurc*GQsssRN(d62itVZL~R(bU`E)=+$r#~LzGRgG@4-}k- zYc6DrwjJY@*5x`31`KDe76xJRc;{xMlnk|S@x3_?8>kgY^D5#S*1J2c$iPYI)5nF~ z_I@yNV{q9gN#L^$qt$ZGJ&{qw6k)<)Li8tC#p-@z<5aAbQh9MK*}%@40?mNEAVmLW z7rt9#h$cK&f$0Nk(e$MirWkG%?^=7Cw^|KiLY}G$-}Wfmpmh@R#-iX*nj8ETv`==5 zj9ei#of2JPTWL7zusuL!gN{ifzry8YmSS#{TX3hjvsE84p zj5d#&sPV&wd8cXRE0lU_c|8CXgytm2gykW{BSy_fbRr|%QdS&qYPn4zXtLrGKB5W^-k*tQ+IJVxos@ zb6wE}CY)agEf&mm(G~xtzExR+_USs^`37FM9RWVsKO+2%1C&~z)hNIl!UR@rGAHgM zeh<+WnrbGaN2QF`-Y-${rQhNj z^H!)vcE~k$(3fOG8_qIoFz2$E1ZtXf zF*`l`Wntmz@P5D6MhIl#ycrOu3~C+Yp3GKTWJMGy4XRr2CigGHcwDX9CpX$=0-0k- zX(E}uio$!Pr6%g1mSTt9`bvo(AP+oj8DEm?OFt~J!Rz^!Mbu@Y3Wcu>j&}1=URU5C zn?YM4r5na`O7CaDHC7rhWzA%E-Sc4odKi1{B~mdZvhFf*6dNXA>CWUrW|0tr7k5=w zeeeF|zhv;(@sKSM_SLXR`<154fXQyVk{(x1ALGbG)?Qt4_y+^qhYwj8aGGI$YCAbo z-h8SGkBdK!Z!&_pFsgBK9r|j?*RUTcxMKD-Y1E)i zBBamhn?esaTG>WV`y?v)I3koimr}_T4cBPX{#%?A4*!Qyo1WS3x7_SRB4~1YttUk> zmmOGOv@y*wc~?W2WpK>`Hdv<#`q)qJV+Ga27Fu!nFM45|{ox3C*xvwF8CHZ}ww?CQ zXZJ@d=fU`fcPyT5m!bv%EHDpxrDyOZl0uJY()#m1k;Nt9&635|Y?gAZkTZ1t!Y1iz z@I7o#B*MITMbR}wM!4gN_W5UVdi1iR2v3P(uXo=LyLX#mo`@`fX6`T5%S+7A|Ty@UhZjS}X(> z9B2=Nl57yUPRd-mQGq)i(ff_!w`W%8#N!~4!=(pED-)2>|CLT26D^PWksL@S18~_? zL;8xVIc#rSiq#zEa*$5=Xbx3liV2oAP6b zVwwL6-oy7o!+Mf(Fj-SLWXj!}>$uoxdcQ2=ull^tGxP^#3J+&dFuetXmt_g7A5Tms zHrAHFNFQnss=_0Tnt>UsRO+G-1&q4K;Sz5hwv!)l2qZBFxW{$JP;qd<;CW)d6uW_hsC4Q1GAp6S#S96X?uiIz54sb79r{c6{ zp=y&?ZCk6f>8VZrQ^+{(r74PLt;MT!DWYIW2M3y_?WVR#&F29(b@&ouJg@t!_jI0E zS2y`p^1RKav@$DIZlM9bDd}H|+^gtyy*yS>r9Seq`+AY1WyhOXQriuJm9EvMg^zo; zqgQ=srO48l^2XsA)F4z#E5KFK@4{a%j$~*ScY^jC$zpp8mM<51s2b}SYrkj9G$C4J zXqC!ROa#I6R1WqEJ!d2$$T(-OeJnu$qip}q4?O!N<$x8O+>Uwp<3;TTD36uy)u+?( zDq|J3N!H>w|Ao{5cMPDUo1woE&Rt&o<89<-BCnG(eA@cTZ zm`(JMNE`M@vh&!}aTo*E%RR_?Y&7ZX}`Vd|Fe(rrdu ztR_nmBu`Q|EE)slX^#Woiioxva=X@(ih_=H4XB3Z1dI{EmN?ehMuycPA+Rs;Ac0GyjFbq(GP?jnO0zJt zYpVhD>Mhim)kGw*yl#jEa7$;%!o1miQ|bUlt1p$LZ@mANs@Y6ar6d2tt*?I;R!Afp zqvIzVNkAt19*_e{RP}$*H5$L?dxKJ&%2aq1NrbwUFoqX%X-K)eT-I`YamaH4{`p^z z^l67kz{q!hG-Jk#k?#{B_U*y!6-2PO?Y`*A>=yU))-MH1LBRJ7az6zJY`rqI(KH?R z7W))Gt}I25U6F<9$S4hQUx_ceJu1u8ioQrIvKzT^VF|$Z)pve3*+=riJBPY0DDK81 zRO2{@qG^E^9pxC8Bt>2@#lM`yooq8v!@mys0WlOqIUibK>AA$giv*4wlg}Ew^W>@d z)MxS1Ytr1#@I`;=v1GnrITbm@J!m^pk#BU-<)089^ct%FoP5ILo?OcW`+#vV2w>sA+#Wr0LJ_j$CwTL0I+l%_d2@M^qlQYstUrp+P>56x*}07nnWmI>)z%uN6yWxC;YJzLyX3F->~2sxWOqz@08jV6CIgbopH7SkwQjI*OEdL0 ze+0|C>}VUG!O!-4%4o{WsIWtNK=^o88C8(;IR> z&a{@N;5ph~G`#|lUVaB$v*1Oyq$-Zr++Bmc9`r>}QC!LxK_06lh2zyM19z?mW`a3! z*dqMg%+J_#!!Mg!F$eg1ktc2IS2UiPBl4h(v7cc7sfK(nRA%QPfPg5Fldst+lWz|2 z05e)=o~Y_*-#r{N#Y@1li8SKQVy8)NfkC_)w&K;z;x!nw3~&<(2*s@K7K=f+S6vZN zQp!%E&X{~E)qj1q5WmAtUO2tD&U;vsi|s+IUk}rtceXsAAISk9_m6ErI=7)QK3n8P zz@D=0k`mM$DX3xx=A?|y1}NR9F`d#P0G1$N=&%^^b-E%D-ItUoqk0euItiR4<>+6p zOKE>6%SWBSNLftQX-sji4zl0Pw_+f%ZU>+UOvayJwt~XFy~PHLd_S=a1q}iz>-7hd z<=#?4%EBi@r)~!XG(UgmZ)JRX{P;@--6^f$k=(l+FK#`Or%z+6~lX#l0?$C3n zEp;M{pkP_i|9F7&)bUqUtXmr!ZJRi%TZ;8bR~F5=7`9WNaimpUmpGUW_>O!^zH=9+ z&18){ahr6lGr~40obvs{3}~+^0Q+&7nYZwMAO#4t!mGI>RQzWHv7LTZt<2&Hl?=4C zC2wq-f3JbCTp;0G)E{w{aG3pSD7?S#_F>Q{$mb@~HXJCIf;-P(^mOyCcfvBmI10^Q z)sLD`GsGiq>9_wV8ExCeg<5p+ziFhaA#3Rfnr1d7cm4`KKBS|racm!A1;kN>tML4) zn3m<9)SJSezibh%pb|CUV$JhDOUAq;q9yAlG7b;H1owacKGAc&FgGwrv(ulPVlmM1 z)}Eb$sU5O*A_{-jvF5EcbaXPRx_8Rr#z)hOOzplv%gC;}^4MH$b&kAWk%eIxF^4I% z(wGk_fk`V+A8^qt{3}t742a0p$(2K?{)4j?T+V=4o2}wj_olB>qr1Oc0WIsPw&bF& zxmj41Rbi3TmZ_u4;JxOsRXrx%lzt0S)h0VowN78(xUKd$K_L*{eD7M++QgEBH zwaRk%lgjF)75kYMI{?nh2&_)N15VA%HQut5HN0vyB>Q<^I%WphzphdYH28E7P!ofK zpRSi`XQmq@pLXu@J!KypR5dw@YB{Tk6^7bEgq31Rb>c-zej*L_EKTk1QfaDVS^t~$ z^DC=$54sLtE${5UIc=H>;#J0(9QEl$g~X9L6o2cubtYd&7a-sudaknD*sn5C8WDS} zJ>Fb}>MiKmP~A`T3$~sDw@S`66R9a8ac1vadN^~70%9@X_~uuTSk{h*ho7jwPW=*U zV9uAtgLNXt?l21uwo}fmn z3#h?`QPPA$c}b+mSxTc<<9JEj8dzdr6UND50=1|$X2tG6oCZY9h)*q&o#B;`roodK zTPOOzxmv1wxms%|*Ta9(d?;5r#h&ro8RoC(lLoc;7XZxTzZ(8x(Y#fq%yVX}7~*`Q z?CsPsy;IG;F>r)UPCw>+*z%;0j4G=Kxer@i5$|iAYb%TH1bAU4aS3Jh#p^gD+3$MR{EW3!}`?2tR*{Co#Ba0fWw~og7Sdcb9(&&m6iI<7S<%moJSs??8+3SJ*Koh zXCQDgZw4T@XnNguRf`r?8o~T+G-8PcWpKF%lN#{g23_2;I4hMX^oMd|Jp@}J$R&mZ zm~;RUJkP-Da1&`jq25tanNwJOH}M3+jVu}#aHK7vV%zE42>$RJXUKcUSoBnA6#T?8 zsIlHjX>{V>sRJHmm-Gc6j~>+xKgQ#5)~M6M008iPw?RixmNU7Rn>|oZ)H{u8znJ%X|QlpLFkzf zgHrwcvJ*)$2X8$5H$U-8bKc)M;=9smUSYRqx|c;n`icnti*tCOiTG9UKW{&>;oicM zpR()W=LY2a@AU-9?<_n3d&MOsw6Skb-0f9#Y?_F8Ik64UM)*YHa_HG`EXph+rU6aN z)#lEhI6)Ty=B`pCeXeK(ggA-mo=0$&%A=9OUMLW(+Krko+H*` zI8B`yc-7v0T#nqFTJG#EgM&pCA1|!?9i5b`an~t#`UR+jsYYatmU-Uj+TUt2ofCo% z8O73!?UKrkEuOxBY)pFwoDp@!q)iovT;fS{(Id}8ilKZ`1ftb0qE4arfBuumv~lZ* zsXR=(klQZT_{T;8&7?eX1d%)|zh`Pjn8$8P>mr|@sNZ#wUzJqSS%was^{^h)%g8xr z#?t;IEs%1sR$@bhC1|8?Lb&CyFvT;2qSIluN61248S%vd#KT^{(jtuC$Ue<8_`N}~ zDSX<3jnA=$pmB2Rw?4raKdl`%N?}wde|zb=^`Y04QuBq$FI12BK&Oc**Xzhw+9yf;K83b51h=Wh2&VG<+1b|eL)s>VNuCli@f_oJx`38 zgA8#vFbz{nQ&NlEna70x{bd{^4PJ_O5MGeS>mt`$FyRr0tp~4+ZiuLya`5l_aw(Pf zJqYam{2->EslP;6wH-r*AjzD~YMo$xw!kb4AKin4$8OQFJE`^{%y1#)I*7q$+{f$fZ-l4l<|srCK}H*HJ_M@aZ|m}IB4)>8ZAHH^zH*4C#q}w+(2LW!p2AECk;vl6e)VDMJB>;%U6jQ(JZ3n)qpM6Q$YLF5k;l5N zomp3u6Gx_mEoCgt1L9S2989zZy2Es}lID*ZEz>(g~B zw=FVw2u}Qa$^&)EsJX44juqEc!zKU~H9=i)rUS0Ov+d`cr(F;`bD(j2&vEKj2)b{< z>TV>aKBmmnJ1aVuEB3aSS+0`fdOOZ^M@H6- z`HIU2{Cl+AFt*8_I~e4D^hXXYL^G1Vc-=r@{P3FG`MiMt$I_|7(P#0hB}^sMjw%=Fdg+x;hH05{*6xS(9_aC016ln8wZQ_%qq9efiH8(Jt8EOYvx{T^@K zUTxSfIB0@Ztj4L$57IWitF`JD0GHe69}rQ+`H1cQvYEnvUAHJhYQ5Wa+bUX?O0>c& z##mY&ewOBCy=NhgFQq3Da)C2F?gX78j@T<+Q?Xbv>Y4S>qUW%?o`X?iMdJmkw%ky* z8uW+ia}9QLEi}SCv!9hxw^`wdsK*MUs=#MisDiFVVPk@IH#|oj8H{c;fMx*w@l&{F zH}RQO`&>d)@Nq*JBpl|W{zch^FL zlOO#$wEam3Z5Y#57!#=ooSx9A5Js>F9~)Bu95Z7o9Gy|3@gZQVjJH9pC;Xp>%7+i_#t;P5UV90QL%j4oD1$8};XDUIB8m;;1~xt9e4oj~Y5w){0K*6+Ss6j#2;0Pv)qbm&UP&K>`CW|! zAqB;icyxexm6Kc+B$G#cl`RQ2WkQmCaZLG#1g%%BYFgg!#DfRvd^duRoRh1!{eq?gC%W&B zbyq4@y?dO&4fJ061FniNNRR%64Q>Scxtj3aOAgwdg@zmP(^oi&6?gi+{RpCZs5XuJ zkJ62YkzUhG_%ROXUu0W;8yA^3pi^`Dh85HK?1d3ovxm0f`(hb!PT3Za+E=q^m2RWa zm8oR!4E;w>B#}sXUj9;CPj`|4p$#>Dv{+5WVQ0R})KT7F;ToiLo|Z7`@X^TaC-o(b zDLH)xM&qBbSp|I#ochSE#R&fZCQC5(V;|HzKF=4pYBF`d==+TAH(i?LG`qaL#{&XW z0?FxYy{79ol1;_IG*;m0IO|2DsUf#OA^r{+QLVYUO*D1sew#RKPHVmRKc_B-4>*XY>F8BoW4tYNRs{ zVHOW@@qrwSLgVeK#Y56~7U9>tCy(Z9mNG_mf-b4T3}#2oF!p9hGl1O}Un&1|B+;m-6b2FQv|p zXt@5*BWon@uMYNeWZQorB+Gw6$o^w2K&tAlBX4|WU% zioD#oMbO634#Rvs!_n%Nhr~Cfq3^;lT8(Br*~5xj7p}K)x+bSxdqqU+eR$N zF2%fL?vHBT;YwK%jG*bH==gpy-9jjre%cGigCO%s3JSCj6~Q4qdG@$ zarG$UXxX6@1vxL8Zh6zzEM=Gb0B4JKZBgQc@W5`Qcb^?T*=yTz7|#(LRxYr13a z)dfj=Uw@hMZ^SI4=U`WMw_TsNWljqwdwzLjj61NZTN=BoHeC!I@rwdG`17!2MTh&nAtg$TU}~vQKr3hw3{;2MInvF)Ypozc}?u4rZZ^iDn59BRm*fb`Q_dip4 zk&5^sF@93o?5Ka};(sG;h~#`}D1fz*-bmt?OjahR&re{`MkBwG-5%(_H0IX&BUJ$) zY*~)9hD5|^EuSO_g1LxH_Cb{KE0pz_M&pfO z{s4GlJD{;K|IeN5h3Ql5$PXn?MNf5ib@!FE6~#LIUr$H@+IMOMJhu%tUjR+^zO@F7 zJgb*r1V({{Tk5ZJ*Ed%9@3K9`*B5w!wSog!eD4>PA!B^f+Y?{Bfd$`-G3FJ#wGcGT z=ofOyF|3J|;Ud#+ug`teKK7Ltbn)MD`i1Z0hBH`|*aa36Z{}$3i6DJ3tHnxVZoY%L z<}nne?kRs!`_LNFohz~HxBwL86!~B|#fQJEvm#{_qpwqZ`52Se|CUoEyDv*MP?Vi# z(5kX!R!*?t-2S*{&(0T%jhXle%eXIBq~cI773+<;kl)y69;U_!m(%7Oyu}hr{VPFR7~ix=ajWpKTi3UJcIPnsr6x6Hv+UIS;41J@Q$R; zy}%}`EwJk*RQl*tJ?PgO)HTW%wEekty-)D;&&^91P9|yk*pyIzhqIkG>a4yT@wK#T zBvS+`6Gmn=DMqi!6j0Qzo$tAl7O-uzjHwmC{lHMwj zxJ72llTp=oEWOTR$^p0p8~IVTu^TYgz)YQ4S5u%UUJxF;}fsR~c@%w=~omkF2u0|68rm+5}KRRiDEdpj2Negbc1Q zH*IgJ_fTZyYb3q~DJ$!4l<-Sq7cG|K2I&`1*uu0(21Q;*57qH2&z&{dgqeV~hO&5{9JEwA^OW@GD?L4k)>719sfycy9I z`|~FM7L$xfD)SBPY;CHjZj+4#vrMzYv2(O;1&gj>mq#E!Y=iqK=4LR7kf!x$$(Wem zAj!~8l2D(!SBXM&%MLS8^XCHM=z-rr!Psuh zqSb4$cPQ1{tX~ZA3{QYki$pkqP#IuiOJ!J-2ZMEl);U1y%zW75I>2>BVs9tqP8jA2 zD72Op1_59&5m1olz;Y;9g~M1`EHU69RoE^T%&MZ`bW*qk3G7b1Ar=*jYpbGx?J1G> z1|uwlPS&leS7OLrM}MnNx{pkA{DVqj1-G88ff-5d?bw_lC>$mqaN^{A%t{oK`!q0q z7SBxJp2^bCTeu2|64!*!bm}JZ(BjIa-mgAnvj#|5P{|*48^4A4UB&%n7+AIw?3B1` zrVCaO;@F*m#vo}~aA)W=sz9G?l6%&T#1S_)$MjstEWD$)H+*SZC{8qKZ?!cv3c_95P^eAt8ECqd7 zbCmVpU+s!Yd}tR4NdwKy#qxhTg5Ao)+VlW332U*o?q%(~>>CbJS{_&^iRHxlF3iZ} z?>BIf&_hgRjf)8(Zm=}rTg*K-YPk9$>owI|ZhM3DM`0H!?ZjQhV+pcHETRnQv{3lu z(FY|6BZHMJqP@hLG=+{hE~$F*Ud^j3jXERt?V;*1tePDql`+nF5PB2mcH(pxvDg5Y zSQVd-zs*pgy6U4)mz^55tcSWTJ;a<;l3P@oST4!Fn+e%RHlhv#mtk8pZP<7C_)0ia8Q{Tlr+CI zxZIP5eTbEaTs9h!p~#~_>gq-pS$7NHNhGn-bI9`{$B;*PhN0k(u+mtnVZUJ1t{s+z z@zKOv-?645C=Zkx%h1J14DyfAFG!JKMJX-R#u~ z_OcjV4y_$Ji$2kcQ>57$_`U*;Yp2c!Q+|z- zFo&x$9BHsP6zTcw*=n@92FQhj3{kw1$YbTB!+$U%bP%u<+yX~8Jn?41tDp0INYBgI zA%BE{3>fe!)H)F$DN-wf=&s=U4t4>k`cFX!OG}pPWZ*Dj>`*)9pe>SPe2)pgOvD#y%#W6X8$i z3A&YV)f{}Q9q^e#ZSaqwr*@~+f%O3U)moA6M3?CMf6BV@cqq3w&d9A~%Qg)zF?N$B z`=0uVi%6D;>_U>YY%wTX_WN40jg)IEJIR*aShHri_GRocQ%FL;cczlL=AW7Od!Fxk zo^#H7-uZmq=RD67#~A-M?lH>;pM%+t=F%vY82Qt5gEX$aX7}Ht0o z9`@nI-`>M?51&vhiqlJ0J;Nr-8{e*Th;WzG)q3;Jsf)E$PIi?(5d2e1t{!~+?-gL> zgUe8LN|y1o)jt{Lxnq5gCTc&Yjq&*vct6|?Gzg}XGOWs9(6^wsNQa{o+NYk;~AsgdL*A`0%zG2Zsk@72t{ zRR?_aUU3a2bjZY;X0BX`~orcuk&m<_WR6?>?mr%;XQ{&CN@E$+~qlc$&vy&+!0P zc`wpQ-?!n!R>|DP*~}T1*QW-&Uj=a(qGA5NWbCQ-KxAk zW8h|7wu!<1`GtOggBuSShgXs~AE;)c=!`yiI-=I(4rUb*Swepo6qLTB83^guIJ-O) z+kJ1`Gg_Y!%Y*w8;z z<9*Q|Bvc83c3ul@H*Ln~9QgeqhmqNA>wK#>*(^1G#e^SOFYyUh04U9Q%LKEyxjst} z*k*6BTfsEZI4g}+i@?C6o~#NHIzy>fyD5F*t47?JJyHTs;*hlNVOFAk|BI5pTi$(Z z%WX>DR`2Oe{$&o=M@!gU`_b%?P8s%tei~IlJh$wUy$+^m*t0Me<++*)CvLwI|)u;>EpW$7&Hk;dR zZPxTwI(o4tVDVk7ZPsSmwQk;wUYYLCJHr~3n|unohE=eW7Z6)w^t)KZ1uayD!axt~ zL9p(O%=_z`_Dh4<)ZoQYiU}Nf)}K11-)O8jlc;CN$G9tdoaGve_VU=>QaWkO*<30T zJmu?>u$9v!NG3^xEdNTH@TG7+MAk;aptryUk3qUU)(~)CMX5e|^Gufe4u6Xwt$L1O z0z*maWdm9|abtDU^F6U8rje}oh8cJDeAw#a{HLf=cb%Dn)|=)7FfST9(O>@93$kTz zmKhHc7!)iPhEM%nd-B$dx|S!zi?o(zaX|nqj&bTi6Y}*9Nx}6;0?deYp4`}%X$JH9 z^#;DQR1&7GA(r;6UH$QvM)@_pAreg0;X%V}_vvlPJ+b7HA z0L)d&Z64{@I>FI8>I5_U95&~j0_XRUS?BI>L92%L_gp;baicnY4jM5@BSIzYDiQ6I z7MO^rlE@tGWW~C$H(geXtTqWv411hRF=TD(jNH_yX}$g)fa0V)(~M|ivT=f+7A+IT z!=(&my>f7$JprS|@{+5Vl>GKW-Q>LsqTQ1-8`8F&OWN%_KHj=E!&K+ISj)8@*8XEr z5N}>*aVx;H2C_R%P9-t4;~2hliiz$D&73vof{tbx)?M?Xi)?#J3k9o9w-q-+%;QNA z8aaR4_naHUzbh;BCAuiz)=9LVjZ!k~A`6Rrc!ya)p))40MDd<_VT#B^Zpz)->@{Um z@+SMw!4wamPC75gRlY^lHSJV7lQiWqNcZ|FP0pg6bo)F`3D;pR>}xlddW6~5HPKDJ z(ZC6pecxw5=@&8YsrGxtn`ZhBUoMW1c!dl>blp;a_XQ!B5c4@9+rUD!BSt#&N&2hh zmnK%@v;+L^ISSRZ{iWbEpnQVHoF)7sx$uSdt)aCoUJC)I@~s!X(N_jyues%ic(g+{MWy|e54;xSoK*<2$&W`6@5~h5D2+Z(ZR83P#JHV z`{{yLh#h*mLMRHJbH`sxF(TKj-iJZO04XlUmCdw++t{I5yi;(ekXox!`b*#IiiXrO zxzWyhi|?%uwD%IvxM^)SHKu*7yX}!+vDVf0Eq##QKCB#afTLy(4}>$`;2RK%I)w`v-X3OwZc#H*fKd6s^vl(EDGJ@9-H2I$$+0++05ORty=;FADAt>I)~=#ADAtW?jo3LlI^W8X_kP6}Zl`w__# zKEXjs5i0}(S||8GL40t}iAh%Q7ssUZ&ugbi!6Rh`;<*R1DoII5U}PjD!a(sP7a+32 z$@4p|$DS1Nik+N)3>yFz`W zC$BQ&dU5cD>&QtG66M2wNJugRoKGK8kRCjUpS>LxVn+q$k7a=7`GG`nA|e^}A+czc z{fI82+U-P??Xy2A)Q48HufZXvT!%fK2bd0<{J%n{n2(uC zRG^DUFHHC+316=Z3ic$s4u??65J2~J#v`^96@DPY!I1P_K!XX!LfiTA*)C)qBCO~l$C$Q0Q z4iMhJhlELPz#)yMAjo$p_Y{OE?htyU?)>xEg#Auq@n6fC9SEc!i7k#=PLv;j$a2Q} zKPimI^c=>*fdn`a$=L%qHzi2e8!+JZ6a}Q$1F)YGB>?!yIBE#Y6R4lUFWJZx9HQn4 z#88R>BGdTsN=?Hd1KuD210GBZfWUJQc!C6G_*j7@dg$RKd@hf&#E8)-5L0xI}LDW)Pd;|UF139#CcmEq zn;>M<145j@b?e{vyVepM64np6EnNm_H1;r{XNdxGdk`2~QeYqlmjVCG7bj5%{VO6v H_^bZ|3zHqB diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 0e5c8336..245d9e46 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,7 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip +networkTimeout=10000 zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/gradlew b/gradlew index 1b6c7873..79a61d42 100755 --- a/gradlew +++ b/gradlew @@ -55,7 +55,7 @@ # Darwin, MinGW, and NonStop. # # (3) This script is generated from the Groovy template -# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt # within the Gradle project. # # You can find Gradle at https://github.com/gradle/gradle/. @@ -80,10 +80,10 @@ do esac done -APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit - -APP_NAME="Gradle" +# This is normally unused +# shellcheck disable=SC2034 APP_BASE_NAME=${0##*/} +APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' @@ -143,12 +143,16 @@ fi if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then case $MAX_FD in #( max*) + # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC3045 MAX_FD=$( ulimit -H -n ) || warn "Could not query maximum file descriptor limit" esac case $MAX_FD in #( '' | soft) :;; #( *) + # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC3045 ulimit -n "$MAX_FD" || warn "Could not set maximum file descriptor limit to $MAX_FD" esac @@ -205,6 +209,12 @@ set -- \ org.gradle.wrapper.GradleWrapperMain \ "$@" +# Stop when "xargs" is not available. +if ! command -v xargs >/dev/null 2>&1 +then + die "xargs is not available" +fi + # Use "xargs" to parse quoted args. # # With -n1 it outputs one arg per line, with the quotes and backslashes removed. diff --git a/gradlew.bat b/gradlew.bat index ac1b06f9..6689b85b 100644 --- a/gradlew.bat +++ b/gradlew.bat @@ -14,7 +14,7 @@ @rem limitations under the License. @rem -@if "%DEBUG%" == "" @echo off +@if "%DEBUG%"=="" @echo off @rem ########################################################################## @rem @rem Gradle startup script for Windows @@ -25,7 +25,8 @@ if "%OS%"=="Windows_NT" setlocal set DIRNAME=%~dp0 -if "%DIRNAME%" == "" set DIRNAME=. +if "%DIRNAME%"=="" set DIRNAME=. +@rem This is normally unused set APP_BASE_NAME=%~n0 set APP_HOME=%DIRNAME% @@ -40,7 +41,7 @@ if defined JAVA_HOME goto findJavaFromJavaHome set JAVA_EXE=java.exe %JAVA_EXE% -version >NUL 2>&1 -if "%ERRORLEVEL%" == "0" goto execute +if %ERRORLEVEL% equ 0 goto execute echo. echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. @@ -75,13 +76,15 @@ set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar :end @rem End local scope for the variables with windows NT shell -if "%ERRORLEVEL%"=="0" goto mainEnd +if %ERRORLEVEL% equ 0 goto mainEnd :fail rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of rem the _cmd.exe /c_ return code! -if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 -exit /b 1 +set EXIT_CODE=%ERRORLEVEL% +if %EXIT_CODE% equ 0 set EXIT_CODE=1 +if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% +exit /b %EXIT_CODE% :mainEnd if "%OS%"=="Windows_NT" endlocal diff --git a/settings.gradle.kts b/settings.gradle.kts index dc77d669..c1b81f94 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -1,8 +1,8 @@ rootProject.name = "connect-kotlin" -include(":crosstests:common") -include(":crosstests:google-java") -include(":crosstests:google-javalite") +include(":conformance:common") +include(":conformance:google-java") +include(":conformance:google-javalite") if (extra.has("skipAndroid") && extra.get("skipAndroid").toString().toBoolean()) { println("Skipping Android build (skipAndroid=true)") } else { From a20e19b758ae16d95b7bd45582f2104bb0e014b3 Mon Sep 17 00:00:00 2001 From: Steve Ayers Date: Thu, 31 Aug 2023 16:31:26 -0400 Subject: [PATCH 02/17] Merge --- .github/workflows/ci.yml | 4 ---- Makefile | 16 +------------ conformance/google-java/build.gradle.kts | 1 + .../connectrpc/conformance/Conformance.kt | 23 +++++++++++++++++-- gradle/libs.versions.toml | 1 + 5 files changed, 24 insertions(+), 21 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 68c9a756..9bc77f19 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,12 +55,8 @@ jobs: cache: false - name: Generate proto files for conformance tests. run: make generateconformance - - name: Start test server - run: make conformanceserverrun - name: Run conformance tests run: make conformancerun - - name: Stop test server - run: make conformanceserverstop license-headers: runs-on: ubuntu-latest steps: diff --git a/Makefile b/Makefile index 7639c50c..4566275b 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,6 @@ MAKEFLAGS += --no-print-directory BIN := .tmp/bin CACHE := .tmp/cache LICENSE_HEADER_YEAR_RANGE := 2022-2023 -CONFORMANCE_VERSION := 162d496c009e2ffb1a638b4a2ea789e9cc3331bb LICENSE_HEADER_VERSION := v1.26.1 PROTOC_VERSION ?= 24.1 GRADLE_ARGS ?= @@ -26,7 +25,7 @@ $(BIN)/license-headers: Makefile .PHONY: build build: generate ## Build the entire project. - ./gradlew $(GRADLE_ARGS) build -x test + ./gradlew $(GRADLE_ARGS) build .PHONY: buildplugin buildplugin: ## Build the connect-kotlin protoc plugin. @@ -45,19 +44,6 @@ clean: ## Cleans the underlying build. rm -rf protoc-gen-connect-kotlin/src/test/java/ -.PHONY: conformanceserverrun -conformanceserverrun: conformanceserverstop ## Run the server for conformance tests. - docker run --rm --name serverconnect -p 8080:8080 -p 8081:8081 -d \ - connectrpc/conformance:$(CONFORMANCE_VERSION) \ - /usr/local/bin/serverconnect --h1port "8080" --h2port "8081" --cert "cert/localhost.crt" --key "cert/localhost.key" - docker run --rm --name servergrpc -p 8083:8083 -d \ - connectrpc/conformance:$(CONFORMANCE_VERSION) \ - /usr/local/bin/servergrpc --port "8083" --cert "cert/localhost.crt" --key "cert/localhost.key" - -.PHONY: conformanceserverstop -conformanceserverstop: ## Stop the server for conformance tests. - -docker container stop serverconnect servergrpc - .PHONY: conformancerun conformancerun: conformancerunjava ## Run the conformance tests. diff --git a/conformance/google-java/build.gradle.kts b/conformance/google-java/build.gradle.kts index 2e47e6d2..0060c05d 100644 --- a/conformance/google-java/build.gradle.kts +++ b/conformance/google-java/build.gradle.kts @@ -33,6 +33,7 @@ dependencies { testImplementation(libs.assertj) testImplementation(libs.mockito) testImplementation(libs.kotlin.coroutines.core) + testImplementation(libs.testcontainers) } configure { diff --git a/conformance/google-java/src/test/kotlin/connectrpc/conformance/Conformance.kt b/conformance/google-java/src/test/kotlin/connectrpc/conformance/Conformance.kt index ba6f2de5..e94185f3 100644 --- a/conformance/google-java/src/test/kotlin/connectrpc/conformance/Conformance.kt +++ b/conformance/google-java/src/test/kotlin/connectrpc/conformance/Conformance.kt @@ -43,10 +43,12 @@ import okhttp3.Protocol import org.assertj.core.api.Assertions.assertThat import org.assertj.core.api.Assertions.fail import org.junit.Before +import org.junit.ClassRule import org.junit.Test import org.junit.runner.RunWith import org.junit.runners.Parameterized import org.junit.runners.Parameterized.Parameters +import org.testcontainers.containers.GenericContainer import java.time.Duration import java.util.Base64 import java.util.concurrent.CountDownLatch @@ -63,6 +65,8 @@ class Conformance( private lateinit var testServiceConnectClient: TestServiceClient companion object { + const val CONFORMANCE_VERSION = "162d496c009e2ffb1a638b4a2ea789e9cc3331bb" + @JvmStatic @Parameters(name = "protocol") fun data(): Iterable { @@ -71,12 +75,27 @@ class Conformance( NetworkProtocol.GRPC ) } + + @JvmField + @ClassRule + val CONFORMANCE_CONTAINER = GenericContainer("connectrpc/conformance:$CONFORMANCE_VERSION") + .withExposedPorts(8080, 8081) + .withCommand( + "/usr/local/bin/serverconnect", + "--h1port", + "8080", + "--h2port", + "8081", + "--cert", + "cert/localhost.crt", + "--key", + "cert/localhost.key" + ) } @Before fun before() { - val port = 8081 - val host = "https://localhost:$port" + val host = "https://localhost:${CONFORMANCE_CONTAINER.getMappedPort(8081)}" val (sslSocketFactory, trustManager) = sslContext() val client = OkHttpClient.Builder() .protocols(listOf(Protocol.HTTP_2, Protocol.HTTP_1_1)) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 5c57b3a6..d2bd8cbe 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -45,6 +45,7 @@ protobuf-javalite = { module = "com.google.protobuf:protobuf-javalite", version. protobuf-kotlin = { module = "com.google.protobuf:protobuf-kotlin", version.ref = "protobuf" } protobuf-kotlinlite = { module = "com.google.protobuf:protobuf-kotlin-lite", version.ref = "protobuf" } spotless = { module = "com.diffplug.spotless:spotless-plugin-gradle", version = "6.13.0" } +testcontainers = { module = "org.testcontainers:testcontainers", version = "1.19.0" } [plugins] git = { id = "com.palantir.git-version", version = "3.0.0" } From d7faf64983b73d23af713a48a6bf7d09aec1a9f6 Mon Sep 17 00:00:00 2001 From: Steve Ayers Date: Thu, 31 Aug 2023 21:53:43 -0400 Subject: [PATCH 03/17] Lint --- .../src/test/kotlin/connectrpc/conformance/Conformance.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conformance/google-java/src/test/kotlin/connectrpc/conformance/Conformance.kt b/conformance/google-java/src/test/kotlin/connectrpc/conformance/Conformance.kt index e94185f3..28512adf 100644 --- a/conformance/google-java/src/test/kotlin/connectrpc/conformance/Conformance.kt +++ b/conformance/google-java/src/test/kotlin/connectrpc/conformance/Conformance.kt @@ -18,7 +18,6 @@ import build.buf.connect.Code import build.buf.connect.ProtocolClientConfig import build.buf.connect.RequestCompression import build.buf.connect.compression.GzipCompressionPool -import connectrpc.conformance.ssl.sslContext import build.buf.connect.extensions.GoogleJavaProtobufStrategy import build.buf.connect.impl.ProtocolClient import build.buf.connect.okhttp.ConnectOkHttpClient @@ -34,6 +33,7 @@ import com.grpc.testing.payload import com.grpc.testing.responseParameters import com.grpc.testing.simpleRequest import com.grpc.testing.streamingOutputCallRequest +import connectrpc.conformance.ssl.sslContext import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.async import kotlinx.coroutines.runBlocking From 30712b92ea87ec7bf8c20b252cfbae44998eaced Mon Sep 17 00:00:00 2001 From: Steve Ayers Date: Thu, 31 Aug 2023 22:02:29 -0400 Subject: [PATCH 04/17] Revert --- .../java/build/buf/google/rpc/Status.java | 227 +++++++++--------- 1 file changed, 108 insertions(+), 119 deletions(-) diff --git a/extensions/google-java/src/main/java/build/buf/google/rpc/Status.java b/extensions/google-java/src/main/java/build/buf/google/rpc/Status.java index 13ec1e17..c0593b4c 100644 --- a/extensions/google-java/src/main/java/build/buf/google/rpc/Status.java +++ b/extensions/google-java/src/main/java/build/buf/google/rpc/Status.java @@ -23,6 +23,7 @@ * different programming environments, including REST APIs and RPC APIs. It is * used by [gRPC](https://github.com/grpc). Each `Status` message contains * three pieces of data: error code, error message, and error details. + * * You can find out more about this error model and how to work with it in the * [API Design Guide](https://cloud.google.com/apis/design/errors). *

@@ -50,74 +51,6 @@ protected java.lang.Object newInstance( return new Status(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Status( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - code_ = input.readInt32(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - message_ = s; - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - details_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - details_.add( - input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - details_ = java.util.Collections.unmodifiableList(details_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return build.buf.google.rpc.StatusProto.internal_static_google_rpc_Status_descriptor; @@ -132,7 +65,7 @@ private Status( } public static final int CODE_FIELD_NUMBER = 1; - private int code_; + private int code_ = 0; /** *
    * The status code, which should be an enum value of
@@ -148,7 +81,8 @@ public int getCode() {
   }
 
   public static final int MESSAGE_FIELD_NUMBER = 2;
-  private volatile java.lang.Object message_;
+  @SuppressWarnings("serial")
+  private volatile java.lang.Object message_ = "";
   /**
    * 
    * A developer-facing error message, which should be in English. Any
@@ -200,6 +134,7 @@ public java.lang.String getMessage() {
   }
 
   public static final int DETAILS_FIELD_NUMBER = 3;
+  @SuppressWarnings("serial")
   private java.util.List details_;
   /**
    * 
@@ -287,7 +222,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     for (int i = 0; i < details_.size(); i++) {
       output.writeMessage(3, details_.get(i));
     }
-    unknownFields.writeTo(output);
+    getUnknownFields().writeTo(output);
   }
 
   @java.lang.Override
@@ -307,7 +242,7 @@ public int getSerializedSize() {
       size += com.google.protobuf.CodedOutputStream
         .computeMessageSize(3, details_.get(i));
     }
-    size += unknownFields.getSerializedSize();
+    size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
     return size;
   }
@@ -328,7 +263,7 @@ public boolean equals(final java.lang.Object obj) {
         .equals(other.getMessage())) return false;
     if (!getDetailsList()
         .equals(other.getDetailsList())) return false;
-    if (!unknownFields.equals(other.unknownFields)) return false;
+    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
 
@@ -347,7 +282,7 @@ public int hashCode() {
       hash = (37 * hash) + DETAILS_FIELD_NUMBER;
       hash = (53 * hash) + getDetailsList().hashCode();
     }
-    hash = (29 * hash) + unknownFields.hashCode();
+    hash = (29 * hash) + getUnknownFields().hashCode();
     memoizedHashCode = hash;
     return hash;
   }
@@ -396,11 +331,13 @@ public static build.buf.google.rpc.Status parseFrom(
     return com.google.protobuf.GeneratedMessageV3
         .parseWithIOException(PARSER, input, extensionRegistry);
   }
+
   public static build.buf.google.rpc.Status parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseDelimitedWithIOException(PARSER, input);
   }
+
   public static build.buf.google.rpc.Status parseDelimitedFrom(
       java.io.InputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -448,6 +385,7 @@ protected Builder newBuilderForType(
    * different programming environments, including REST APIs and RPC APIs. It is
    * used by [gRPC](https://github.com/grpc). Each `Status` message contains
    * three pieces of data: error code, error message, and error details.
+   *
    * You can find out more about this error model and how to work with it in the
    * [API Design Guide](https://cloud.google.com/apis/design/errors).
    * 
@@ -473,33 +411,27 @@ public static final class Builder extends // Construct using build.buf.google.rpc.Status.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getDetailsFieldBuilder(); - } + } @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; code_ = 0; - message_ = ""; - if (detailsBuilder_ == null) { details_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + details_ = null; detailsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -526,20 +458,32 @@ public build.buf.google.rpc.Status build() { @java.lang.Override public build.buf.google.rpc.Status buildPartial() { build.buf.google.rpc.Status result = new build.buf.google.rpc.Status(this); - int from_bitField0_ = bitField0_; - result.code_ = code_; - result.message_ = message_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(build.buf.google.rpc.Status result) { if (detailsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { details_ = java.util.Collections.unmodifiableList(details_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } result.details_ = details_; } else { result.details_ = detailsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(build.buf.google.rpc.Status result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.code_ = code_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.message_ = message_; + } } @java.lang.Override @@ -591,13 +535,14 @@ public Builder mergeFrom(build.buf.google.rpc.Status other) { } if (!other.getMessage().isEmpty()) { message_ = other.message_; + bitField0_ |= 0x00000002; onChanged(); } if (detailsBuilder_ == null) { if (!other.details_.isEmpty()) { if (details_.isEmpty()) { details_ = other.details_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureDetailsIsMutable(); details_.addAll(other.details_); @@ -610,7 +555,7 @@ public Builder mergeFrom(build.buf.google.rpc.Status other) { detailsBuilder_.dispose(); detailsBuilder_ = null; details_ = other.details_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); detailsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDetailsFieldBuilder() : null; @@ -619,7 +564,7 @@ public Builder mergeFrom(build.buf.google.rpc.Status other) { } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -634,17 +579,53 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - build.buf.google.rpc.Status parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + code_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + message_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + com.google.protobuf.Any m = + input.readMessage( + com.google.protobuf.Any.parser(), + extensionRegistry); + if (detailsBuilder_ == null) { + ensureDetailsIsMutable(); + details_.add(m); + } else { + detailsBuilder_.addMessage(m); + } + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (build.buf.google.rpc.Status) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } private int bitField0_; @@ -674,8 +655,9 @@ public int getCode() { * @return This builder for chaining. */ public Builder setCode(int value) { - + code_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -689,7 +671,7 @@ public Builder setCode(int value) { * @return This builder for chaining. */ public Builder clearCode() { - + bitField0_ = (bitField0_ & ~0x00000001); code_ = 0; onChanged(); return this; @@ -757,11 +739,9 @@ public java.lang.String getMessage() { */ public Builder setMessage( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - + if (value == null) { throw new NullPointerException(); } message_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -777,8 +757,8 @@ public Builder setMessage( * @return This builder for chaining. */ public Builder clearMessage() { - message_ = getDefaultInstance().getMessage(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -796,12 +776,10 @@ public Builder clearMessage() { */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); message_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -809,9 +787,9 @@ public Builder setMessageBytes( private java.util.List details_ = java.util.Collections.emptyList(); private void ensureDetailsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { details_ = new java.util.ArrayList(details_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; } } @@ -1016,7 +994,7 @@ public Builder addAllDetails( public Builder clearDetails() { if (detailsBuilder_ == null) { details_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { detailsBuilder_.clear(); @@ -1128,7 +1106,7 @@ public com.google.protobuf.Any.Builder addDetailsBuilder( detailsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( details_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); details_ = null; @@ -1168,7 +1146,18 @@ public Status parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Status(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; From a47b6b62cfd94c2a789d822b3e6c46ddd42d30ac Mon Sep 17 00:00:00 2001 From: Steve Ayers Date: Thu, 31 Aug 2023 22:06:51 -0400 Subject: [PATCH 05/17] Build --- .../java/build/buf/google/rpc/Status.java | 227 +++++++++--------- 1 file changed, 119 insertions(+), 108 deletions(-) diff --git a/extensions/google-java/src/main/java/build/buf/google/rpc/Status.java b/extensions/google-java/src/main/java/build/buf/google/rpc/Status.java index c0593b4c..13ec1e17 100644 --- a/extensions/google-java/src/main/java/build/buf/google/rpc/Status.java +++ b/extensions/google-java/src/main/java/build/buf/google/rpc/Status.java @@ -23,7 +23,6 @@ * different programming environments, including REST APIs and RPC APIs. It is * used by [gRPC](https://github.com/grpc). Each `Status` message contains * three pieces of data: error code, error message, and error details. - * * You can find out more about this error model and how to work with it in the * [API Design Guide](https://cloud.google.com/apis/design/errors). *
@@ -51,6 +50,74 @@ protected java.lang.Object newInstance( return new Status(); } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Status( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + code_ = input.readInt32(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + details_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + details_.add( + input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + details_ = java.util.Collections.unmodifiableList(details_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return build.buf.google.rpc.StatusProto.internal_static_google_rpc_Status_descriptor; @@ -65,7 +132,7 @@ protected java.lang.Object newInstance( } public static final int CODE_FIELD_NUMBER = 1; - private int code_ = 0; + private int code_; /** *
    * The status code, which should be an enum value of
@@ -81,8 +148,7 @@ public int getCode() {
   }
 
   public static final int MESSAGE_FIELD_NUMBER = 2;
-  @SuppressWarnings("serial")
-  private volatile java.lang.Object message_ = "";
+  private volatile java.lang.Object message_;
   /**
    * 
    * A developer-facing error message, which should be in English. Any
@@ -134,7 +200,6 @@ public java.lang.String getMessage() {
   }
 
   public static final int DETAILS_FIELD_NUMBER = 3;
-  @SuppressWarnings("serial")
   private java.util.List details_;
   /**
    * 
@@ -222,7 +287,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     for (int i = 0; i < details_.size(); i++) {
       output.writeMessage(3, details_.get(i));
     }
-    getUnknownFields().writeTo(output);
+    unknownFields.writeTo(output);
   }
 
   @java.lang.Override
@@ -242,7 +307,7 @@ public int getSerializedSize() {
       size += com.google.protobuf.CodedOutputStream
         .computeMessageSize(3, details_.get(i));
     }
-    size += getUnknownFields().getSerializedSize();
+    size += unknownFields.getSerializedSize();
     memoizedSize = size;
     return size;
   }
@@ -263,7 +328,7 @@ public boolean equals(final java.lang.Object obj) {
         .equals(other.getMessage())) return false;
     if (!getDetailsList()
         .equals(other.getDetailsList())) return false;
-    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+    if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
 
@@ -282,7 +347,7 @@ public int hashCode() {
       hash = (37 * hash) + DETAILS_FIELD_NUMBER;
       hash = (53 * hash) + getDetailsList().hashCode();
     }
-    hash = (29 * hash) + getUnknownFields().hashCode();
+    hash = (29 * hash) + unknownFields.hashCode();
     memoizedHashCode = hash;
     return hash;
   }
@@ -331,13 +396,11 @@ public static build.buf.google.rpc.Status parseFrom(
     return com.google.protobuf.GeneratedMessageV3
         .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static build.buf.google.rpc.Status parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
     return com.google.protobuf.GeneratedMessageV3
         .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static build.buf.google.rpc.Status parseDelimitedFrom(
       java.io.InputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -385,7 +448,6 @@ protected Builder newBuilderForType(
    * different programming environments, including REST APIs and RPC APIs. It is
    * used by [gRPC](https://github.com/grpc). Each `Status` message contains
    * three pieces of data: error code, error message, and error details.
-   *
    * You can find out more about this error model and how to work with it in the
    * [API Design Guide](https://cloud.google.com/apis/design/errors).
    * 
@@ -411,27 +473,33 @@ public static final class Builder extends // Construct using build.buf.google.rpc.Status.newBuilder() private Builder() { - + maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getDetailsFieldBuilder(); + } } @java.lang.Override public Builder clear() { super.clear(); - bitField0_ = 0; code_ = 0; + message_ = ""; + if (detailsBuilder_ == null) { details_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); } else { - details_ = null; detailsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -458,32 +526,20 @@ public build.buf.google.rpc.Status build() { @java.lang.Override public build.buf.google.rpc.Status buildPartial() { build.buf.google.rpc.Status result = new build.buf.google.rpc.Status(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(build.buf.google.rpc.Status result) { + int from_bitField0_ = bitField0_; + result.code_ = code_; + result.message_ = message_; if (detailsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { details_ = java.util.Collections.unmodifiableList(details_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } result.details_ = details_; } else { result.details_ = detailsBuilder_.build(); } - } - - private void buildPartial0(build.buf.google.rpc.Status result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.code_ = code_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.message_ = message_; - } + onBuilt(); + return result; } @java.lang.Override @@ -535,14 +591,13 @@ public Builder mergeFrom(build.buf.google.rpc.Status other) { } if (!other.getMessage().isEmpty()) { message_ = other.message_; - bitField0_ |= 0x00000002; onChanged(); } if (detailsBuilder_ == null) { if (!other.details_.isEmpty()) { if (details_.isEmpty()) { details_ = other.details_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureDetailsIsMutable(); details_.addAll(other.details_); @@ -555,7 +610,7 @@ public Builder mergeFrom(build.buf.google.rpc.Status other) { detailsBuilder_.dispose(); detailsBuilder_ = null; details_ = other.details_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); detailsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDetailsFieldBuilder() : null; @@ -564,7 +619,7 @@ public Builder mergeFrom(build.buf.google.rpc.Status other) { } } } - this.mergeUnknownFields(other.getUnknownFields()); + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @@ -579,53 +634,17 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } + build.buf.google.rpc.Status parsedMessage = null; try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - code_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - message_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - com.google.protobuf.Any m = - input.readMessage( - com.google.protobuf.Any.parser(), - extensionRegistry); - if (detailsBuilder_ == null) { - ensureDetailsIsMutable(); - details_.add(m); - } else { - detailsBuilder_.addMessage(m); - } - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (build.buf.google.rpc.Status) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - onChanged(); - } // finally + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } return this; } private int bitField0_; @@ -655,9 +674,8 @@ public int getCode() { * @return This builder for chaining. */ public Builder setCode(int value) { - + code_ = value; - bitField0_ |= 0x00000001; onChanged(); return this; } @@ -671,7 +689,7 @@ public Builder setCode(int value) { * @return This builder for chaining. */ public Builder clearCode() { - bitField0_ = (bitField0_ & ~0x00000001); + code_ = 0; onChanged(); return this; @@ -739,9 +757,11 @@ public java.lang.String getMessage() { */ public Builder setMessage( java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } + message_ = value; - bitField0_ |= 0x00000002; onChanged(); return this; } @@ -757,8 +777,8 @@ public Builder setMessage( * @return This builder for chaining. */ public Builder clearMessage() { + message_ = getDefaultInstance().getMessage(); - bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -776,10 +796,12 @@ public Builder clearMessage() { */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + message_ = value; - bitField0_ |= 0x00000002; onChanged(); return this; } @@ -787,9 +809,9 @@ public Builder setMessageBytes( private java.util.List details_ = java.util.Collections.emptyList(); private void ensureDetailsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { details_ = new java.util.ArrayList(details_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; } } @@ -994,7 +1016,7 @@ public Builder addAllDetails( public Builder clearDetails() { if (detailsBuilder_ == null) { details_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { detailsBuilder_.clear(); @@ -1106,7 +1128,7 @@ public com.google.protobuf.Any.Builder addDetailsBuilder( detailsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( details_, - ((bitField0_ & 0x00000004) != 0), + ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); details_ = null; @@ -1146,18 +1168,7 @@ public Status parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); + return new Status(input, extensionRegistry); } }; From a44631b03f737093dba138fdade3835a7be36561 Mon Sep 17 00:00:00 2001 From: Steve Ayers Date: Fri, 1 Sep 2023 15:13:50 -0400 Subject: [PATCH 06/17] Merge --- .../src/test/java/ElizaServiceClient.kt | 56 - .../test/java/ElizaServiceClientInterface.kt | 33 - .../src/test/java/NoPackage.java | 1213 - .../v1/EvilCommentsServiceClient.kt | 70 - .../v1/EvilCommentsServiceClientInterface.kt | 47 - .../buf/evilcomments/v1/Evilcomments.java | 917 - .../disabled/v1/Disabled.java | 1219 - .../disabled/v1/DisabledEmptyOuterClass.java | 1350 - .../disabled/v1/DisabledEmptyServiceClient.kt | 60 - .../v1/DisabledEmptyServiceClientInterface.kt | 36 - .../v1/DisabledInnerMessageServiceClient.kt | 68 - ...abledInnerMessageServiceClientInterface.kt | 45 - .../disabled/v1/DisabledNested.java | 920 - .../disabled/v1/DisabledServiceClient.kt | 58 - .../v1/DisabledServiceClientInterface.kt | 35 - .../javamultiplefiles/enabled/v1/Enabled.java | 78 - .../enabled/v1/EnabledEmpty.java | 435 - .../enabled/v1/EnabledEmptyOrBuilder.java | 23 - .../enabled/v1/EnabledEmptyOuterClass.java | 90 - .../enabled/v1/EnabledEmptyRPCRequest.java | 435 - .../v1/EnabledEmptyRPCRequestOrBuilder.java | 23 - .../enabled/v1/EnabledEmptyRPCResponse.java | 435 - .../v1/EnabledEmptyRPCResponseOrBuilder.java | 23 - .../enabled/v1/EnabledEmptyServiceClient.kt | 58 - .../v1/EnabledEmptyServiceClientInterface.kt | 35 - .../v1/EnabledInnerMessageServiceClient.kt | 67 - ...abledInnerMessageServiceClientInterface.kt | 43 - .../enabled/v1/EnabledNested.java | 79 - .../enabled/v1/EnabledOuterMessageNested.java | 855 - .../EnabledOuterMessageNestedOrBuilder.java | 23 - .../enabled/v1/EnabledRequest.java | 573 - .../enabled/v1/EnabledRequestOrBuilder.java | 35 - .../enabled/v1/EnabledResponse.java | 573 - .../enabled/v1/EnabledResponseOrBuilder.java | 35 - .../enabled/v1/EnabledServiceClient.kt | 58 - .../v1/EnabledServiceClientInterface.kt | 35 - .../unspecified/v1/EnabledNested.java | 920 - .../unspecified/v1/Unspecified.java | 1220 - .../v1/UnspecifiedEmptyOuterClass.java | 1351 - .../v1/UnspecifiedEmptyServiceClient.kt | 60 - .../UnspecifiedEmptyServiceClientInterface.kt | 37 - .../UnspecifiedInnerMessageServiceClient.kt | 68 - ...ifiedInnerMessageServiceClientInterface.kt | 45 - .../v1/UnspecifiedServiceClient.kt | 58 - .../v1/UnspecifiedServiceClientInterface.kt | 35 - .../java/grpc/testing/EmptyOuterClass.java | 499 - .../testing/LoadBalancerStatsServiceClient.kt | 103 - ...LoadBalancerStatsServiceClientInterface.kt | 60 - .../src/test/java/grpc/testing/Messages.java | 22646 ---------------- .../grpc/testing/ReconnectServiceClient.kt | 89 - .../ReconnectServiceClientInterface.kt | 47 - .../src/test/java/grpc/testing/Test.java | 101 - .../java/grpc/testing/TestServiceClient.kt | 315 - .../testing/TestServiceClientInterface.kt | 160 - .../testing/UnimplementedServiceClient.kt | 83 - .../UnimplementedServiceClientInterface.kt | 52 - .../XdsUpdateClientConfigureServiceClient.kt | 67 - ...teClientConfigureServiceClientInterface.kt | 44 - .../testing/XdsUpdateHealthServiceClient.kt | 89 - .../XdsUpdateHealthServiceClientInterface.kt | 47 - .../src/test/java/server/v1/Server.java | 2774 -- 61 files changed, 41108 deletions(-) delete mode 100644 protoc-gen-connect-kotlin/src/test/java/ElizaServiceClient.kt delete mode 100644 protoc-gen-connect-kotlin/src/test/java/ElizaServiceClientInterface.kt delete mode 100644 protoc-gen-connect-kotlin/src/test/java/NoPackage.java delete mode 100644 protoc-gen-connect-kotlin/src/test/java/buf/evilcomments/v1/EvilCommentsServiceClient.kt delete mode 100644 protoc-gen-connect-kotlin/src/test/java/buf/evilcomments/v1/EvilCommentsServiceClientInterface.kt delete mode 100644 protoc-gen-connect-kotlin/src/test/java/buf/evilcomments/v1/Evilcomments.java delete mode 100644 protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/disabled/v1/Disabled.java delete mode 100644 protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/disabled/v1/DisabledEmptyOuterClass.java delete mode 100644 protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/disabled/v1/DisabledEmptyServiceClient.kt delete mode 100644 protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/disabled/v1/DisabledEmptyServiceClientInterface.kt delete mode 100644 protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/disabled/v1/DisabledInnerMessageServiceClient.kt delete mode 100644 protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/disabled/v1/DisabledInnerMessageServiceClientInterface.kt delete mode 100644 protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/disabled/v1/DisabledNested.java delete mode 100644 protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/disabled/v1/DisabledServiceClient.kt delete mode 100644 protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/disabled/v1/DisabledServiceClientInterface.kt delete mode 100644 protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/Enabled.java delete mode 100644 protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledEmpty.java delete mode 100644 protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledEmptyOrBuilder.java delete mode 100644 protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledEmptyOuterClass.java delete mode 100644 protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledEmptyRPCRequest.java delete mode 100644 protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledEmptyRPCRequestOrBuilder.java delete mode 100644 protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledEmptyRPCResponse.java delete mode 100644 protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledEmptyRPCResponseOrBuilder.java delete mode 100644 protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledEmptyServiceClient.kt delete mode 100644 protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledEmptyServiceClientInterface.kt delete mode 100644 protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledInnerMessageServiceClient.kt delete mode 100644 protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledInnerMessageServiceClientInterface.kt delete mode 100644 protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledNested.java delete mode 100644 protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledOuterMessageNested.java delete mode 100644 protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledOuterMessageNestedOrBuilder.java delete mode 100644 protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledRequest.java delete mode 100644 protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledRequestOrBuilder.java delete mode 100644 protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledResponse.java delete mode 100644 protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledResponseOrBuilder.java delete mode 100644 protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledServiceClient.kt delete mode 100644 protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledServiceClientInterface.kt delete mode 100644 protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/unspecified/v1/EnabledNested.java delete mode 100644 protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/unspecified/v1/Unspecified.java delete mode 100644 protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/unspecified/v1/UnspecifiedEmptyOuterClass.java delete mode 100644 protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/unspecified/v1/UnspecifiedEmptyServiceClient.kt delete mode 100644 protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/unspecified/v1/UnspecifiedEmptyServiceClientInterface.kt delete mode 100644 protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/unspecified/v1/UnspecifiedInnerMessageServiceClient.kt delete mode 100644 protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/unspecified/v1/UnspecifiedInnerMessageServiceClientInterface.kt delete mode 100644 protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/unspecified/v1/UnspecifiedServiceClient.kt delete mode 100644 protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/unspecified/v1/UnspecifiedServiceClientInterface.kt delete mode 100644 protoc-gen-connect-kotlin/src/test/java/grpc/testing/EmptyOuterClass.java delete mode 100644 protoc-gen-connect-kotlin/src/test/java/grpc/testing/LoadBalancerStatsServiceClient.kt delete mode 100644 protoc-gen-connect-kotlin/src/test/java/grpc/testing/LoadBalancerStatsServiceClientInterface.kt delete mode 100644 protoc-gen-connect-kotlin/src/test/java/grpc/testing/Messages.java delete mode 100644 protoc-gen-connect-kotlin/src/test/java/grpc/testing/ReconnectServiceClient.kt delete mode 100644 protoc-gen-connect-kotlin/src/test/java/grpc/testing/ReconnectServiceClientInterface.kt delete mode 100644 protoc-gen-connect-kotlin/src/test/java/grpc/testing/Test.java delete mode 100644 protoc-gen-connect-kotlin/src/test/java/grpc/testing/TestServiceClient.kt delete mode 100644 protoc-gen-connect-kotlin/src/test/java/grpc/testing/TestServiceClientInterface.kt delete mode 100644 protoc-gen-connect-kotlin/src/test/java/grpc/testing/UnimplementedServiceClient.kt delete mode 100644 protoc-gen-connect-kotlin/src/test/java/grpc/testing/UnimplementedServiceClientInterface.kt delete mode 100644 protoc-gen-connect-kotlin/src/test/java/grpc/testing/XdsUpdateClientConfigureServiceClient.kt delete mode 100644 protoc-gen-connect-kotlin/src/test/java/grpc/testing/XdsUpdateClientConfigureServiceClientInterface.kt delete mode 100644 protoc-gen-connect-kotlin/src/test/java/grpc/testing/XdsUpdateHealthServiceClient.kt delete mode 100644 protoc-gen-connect-kotlin/src/test/java/grpc/testing/XdsUpdateHealthServiceClientInterface.kt delete mode 100644 protoc-gen-connect-kotlin/src/test/java/server/v1/Server.java diff --git a/protoc-gen-connect-kotlin/src/test/java/ElizaServiceClient.kt b/protoc-gen-connect-kotlin/src/test/java/ElizaServiceClient.kt deleted file mode 100644 index 9e7a52f9..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/ElizaServiceClient.kt +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated by connect-kotlin. DO NOT EDIT. -// -// Source: no_package.proto -// -import build.buf.connect.Headers -import build.buf.connect.MethodSpec -import build.buf.connect.ProtocolClientInterface -import build.buf.connect.ResponseMessage -import build.buf.connect.http.Cancelable -import kotlin.Unit - -public class ElizaServiceClient( - private val client: ProtocolClientInterface, -) : ElizaServiceClientInterface { - public override suspend fun say(request: NoPackage.SayRequest, headers: Headers): - ResponseMessage = client.unary( - request, - headers, - MethodSpec( - "ElizaService/Say", - NoPackage.SayRequest::class, - NoPackage.SayResponse::class, - ), - ) - - - public override fun say( - request: NoPackage.SayRequest, - headers: Headers, - onResult: (ResponseMessage) -> Unit, - ): Cancelable = client.unary( - request, - headers, - MethodSpec( - "ElizaService/Say", - NoPackage.SayRequest::class, - NoPackage.SayResponse::class, - ), - onResult - ) - -} diff --git a/protoc-gen-connect-kotlin/src/test/java/ElizaServiceClientInterface.kt b/protoc-gen-connect-kotlin/src/test/java/ElizaServiceClientInterface.kt deleted file mode 100644 index abfc8393..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/ElizaServiceClientInterface.kt +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated by connect-kotlin. DO NOT EDIT. -// -// Source: no_package.proto -// -import build.buf.connect.Headers -import build.buf.connect.ResponseMessage -import build.buf.connect.http.Cancelable -import kotlin.Unit - -public interface ElizaServiceClientInterface { - public suspend fun say(request: NoPackage.SayRequest, headers: Headers = emptyMap()): - ResponseMessage - - public fun say( - request: NoPackage.SayRequest, - headers: Headers = emptyMap(), - onResult: (ResponseMessage) -> Unit, - ): Cancelable -} diff --git a/protoc-gen-connect-kotlin/src/test/java/NoPackage.java b/protoc-gen-connect-kotlin/src/test/java/NoPackage.java deleted file mode 100644 index 9d2ba5a2..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/NoPackage.java +++ /dev/null @@ -1,1213 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: no_package.proto - -public final class NoPackage { - private NoPackage() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SayRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:SayRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * string sentence = 1 [json_name = "sentence"]; - * @return The sentence. - */ - java.lang.String getSentence(); - /** - * string sentence = 1 [json_name = "sentence"]; - * @return The bytes for sentence. - */ - com.google.protobuf.ByteString - getSentenceBytes(); - } - /** - * Protobuf type {@code SayRequest} - */ - public static final class SayRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SayRequest) - SayRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use SayRequest.newBuilder() to construct. - private SayRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SayRequest() { - sentence_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SayRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SayRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - sentence_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return NoPackage.internal_static_SayRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return NoPackage.internal_static_SayRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - NoPackage.SayRequest.class, NoPackage.SayRequest.Builder.class); - } - - public static final int SENTENCE_FIELD_NUMBER = 1; - private volatile java.lang.Object sentence_; - /** - * string sentence = 1 [json_name = "sentence"]; - * @return The sentence. - */ - @java.lang.Override - public java.lang.String getSentence() { - java.lang.Object ref = sentence_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sentence_ = s; - return s; - } - } - /** - * string sentence = 1 [json_name = "sentence"]; - * @return The bytes for sentence. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSentenceBytes() { - java.lang.Object ref = sentence_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sentence_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sentence_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sentence_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sentence_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sentence_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof NoPackage.SayRequest)) { - return super.equals(obj); - } - NoPackage.SayRequest other = (NoPackage.SayRequest) obj; - - if (!getSentence() - .equals(other.getSentence())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SENTENCE_FIELD_NUMBER; - hash = (53 * hash) + getSentence().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static NoPackage.SayRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static NoPackage.SayRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static NoPackage.SayRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static NoPackage.SayRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static NoPackage.SayRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static NoPackage.SayRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static NoPackage.SayRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static NoPackage.SayRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static NoPackage.SayRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static NoPackage.SayRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static NoPackage.SayRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static NoPackage.SayRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(NoPackage.SayRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SayRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:SayRequest) - NoPackage.SayRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return NoPackage.internal_static_SayRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return NoPackage.internal_static_SayRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - NoPackage.SayRequest.class, NoPackage.SayRequest.Builder.class); - } - - // Construct using NoPackage.SayRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - sentence_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return NoPackage.internal_static_SayRequest_descriptor; - } - - @java.lang.Override - public NoPackage.SayRequest getDefaultInstanceForType() { - return NoPackage.SayRequest.getDefaultInstance(); - } - - @java.lang.Override - public NoPackage.SayRequest build() { - NoPackage.SayRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public NoPackage.SayRequest buildPartial() { - NoPackage.SayRequest result = new NoPackage.SayRequest(this); - result.sentence_ = sentence_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof NoPackage.SayRequest) { - return mergeFrom((NoPackage.SayRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(NoPackage.SayRequest other) { - if (other == NoPackage.SayRequest.getDefaultInstance()) return this; - if (!other.getSentence().isEmpty()) { - sentence_ = other.sentence_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - NoPackage.SayRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (NoPackage.SayRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object sentence_ = ""; - /** - * string sentence = 1 [json_name = "sentence"]; - * @return The sentence. - */ - public java.lang.String getSentence() { - java.lang.Object ref = sentence_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sentence_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string sentence = 1 [json_name = "sentence"]; - * @return The bytes for sentence. - */ - public com.google.protobuf.ByteString - getSentenceBytes() { - java.lang.Object ref = sentence_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sentence_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string sentence = 1 [json_name = "sentence"]; - * @param value The sentence to set. - * @return This builder for chaining. - */ - public Builder setSentence( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - sentence_ = value; - onChanged(); - return this; - } - /** - * string sentence = 1 [json_name = "sentence"]; - * @return This builder for chaining. - */ - public Builder clearSentence() { - - sentence_ = getDefaultInstance().getSentence(); - onChanged(); - return this; - } - /** - * string sentence = 1 [json_name = "sentence"]; - * @param value The bytes for sentence to set. - * @return This builder for chaining. - */ - public Builder setSentenceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - sentence_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SayRequest) - } - - // @@protoc_insertion_point(class_scope:SayRequest) - private static final NoPackage.SayRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new NoPackage.SayRequest(); - } - - public static NoPackage.SayRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SayRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SayRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public NoPackage.SayRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SayResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:SayResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * string sentence = 1 [json_name = "sentence"]; - * @return The sentence. - */ - java.lang.String getSentence(); - /** - * string sentence = 1 [json_name = "sentence"]; - * @return The bytes for sentence. - */ - com.google.protobuf.ByteString - getSentenceBytes(); - } - /** - * Protobuf type {@code SayResponse} - */ - public static final class SayResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:SayResponse) - SayResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use SayResponse.newBuilder() to construct. - private SayResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SayResponse() { - sentence_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SayResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SayResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - sentence_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return NoPackage.internal_static_SayResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return NoPackage.internal_static_SayResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - NoPackage.SayResponse.class, NoPackage.SayResponse.Builder.class); - } - - public static final int SENTENCE_FIELD_NUMBER = 1; - private volatile java.lang.Object sentence_; - /** - * string sentence = 1 [json_name = "sentence"]; - * @return The sentence. - */ - @java.lang.Override - public java.lang.String getSentence() { - java.lang.Object ref = sentence_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sentence_ = s; - return s; - } - } - /** - * string sentence = 1 [json_name = "sentence"]; - * @return The bytes for sentence. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSentenceBytes() { - java.lang.Object ref = sentence_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sentence_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sentence_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sentence_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sentence_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sentence_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof NoPackage.SayResponse)) { - return super.equals(obj); - } - NoPackage.SayResponse other = (NoPackage.SayResponse) obj; - - if (!getSentence() - .equals(other.getSentence())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SENTENCE_FIELD_NUMBER; - hash = (53 * hash) + getSentence().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static NoPackage.SayResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static NoPackage.SayResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static NoPackage.SayResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static NoPackage.SayResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static NoPackage.SayResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static NoPackage.SayResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static NoPackage.SayResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static NoPackage.SayResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static NoPackage.SayResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static NoPackage.SayResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static NoPackage.SayResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static NoPackage.SayResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(NoPackage.SayResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SayResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:SayResponse) - NoPackage.SayResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return NoPackage.internal_static_SayResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return NoPackage.internal_static_SayResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - NoPackage.SayResponse.class, NoPackage.SayResponse.Builder.class); - } - - // Construct using NoPackage.SayResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - sentence_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return NoPackage.internal_static_SayResponse_descriptor; - } - - @java.lang.Override - public NoPackage.SayResponse getDefaultInstanceForType() { - return NoPackage.SayResponse.getDefaultInstance(); - } - - @java.lang.Override - public NoPackage.SayResponse build() { - NoPackage.SayResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public NoPackage.SayResponse buildPartial() { - NoPackage.SayResponse result = new NoPackage.SayResponse(this); - result.sentence_ = sentence_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof NoPackage.SayResponse) { - return mergeFrom((NoPackage.SayResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(NoPackage.SayResponse other) { - if (other == NoPackage.SayResponse.getDefaultInstance()) return this; - if (!other.getSentence().isEmpty()) { - sentence_ = other.sentence_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - NoPackage.SayResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (NoPackage.SayResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object sentence_ = ""; - /** - * string sentence = 1 [json_name = "sentence"]; - * @return The sentence. - */ - public java.lang.String getSentence() { - java.lang.Object ref = sentence_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sentence_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string sentence = 1 [json_name = "sentence"]; - * @return The bytes for sentence. - */ - public com.google.protobuf.ByteString - getSentenceBytes() { - java.lang.Object ref = sentence_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sentence_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string sentence = 1 [json_name = "sentence"]; - * @param value The sentence to set. - * @return This builder for chaining. - */ - public Builder setSentence( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - sentence_ = value; - onChanged(); - return this; - } - /** - * string sentence = 1 [json_name = "sentence"]; - * @return This builder for chaining. - */ - public Builder clearSentence() { - - sentence_ = getDefaultInstance().getSentence(); - onChanged(); - return this; - } - /** - * string sentence = 1 [json_name = "sentence"]; - * @param value The bytes for sentence to set. - * @return This builder for chaining. - */ - public Builder setSentenceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - sentence_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:SayResponse) - } - - // @@protoc_insertion_point(class_scope:SayResponse) - private static final NoPackage.SayResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new NoPackage.SayResponse(); - } - - public static NoPackage.SayResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SayResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SayResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public NoPackage.SayResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SayRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SayRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_SayResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_SayResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\020no_package.proto\"(\n\nSayRequest\022\032\n\010sent" + - "ence\030\001 \001(\tR\010sentence\")\n\013SayResponse\022\032\n\010s" + - "entence\030\001 \001(\tR\010sentence22\n\014ElizaService\022" + - "\"\n\003Say\022\013.SayRequest\032\014.SayResponse\"\000b\006pro" + - "to3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_SayRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_SayRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SayRequest_descriptor, - new java.lang.String[] { "Sentence", }); - internal_static_SayResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_SayResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_SayResponse_descriptor, - new java.lang.String[] { "Sentence", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/protoc-gen-connect-kotlin/src/test/java/buf/evilcomments/v1/EvilCommentsServiceClient.kt b/protoc-gen-connect-kotlin/src/test/java/buf/evilcomments/v1/EvilCommentsServiceClient.kt deleted file mode 100644 index 36d693c3..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/buf/evilcomments/v1/EvilCommentsServiceClient.kt +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated by connect-kotlin. DO NOT EDIT. -// -// Source: buf/evilcomments/v1/evilcomments.proto -// -package buf.evilcomments.v1 - -import build.buf.connect.Headers -import build.buf.connect.MethodSpec -import build.buf.connect.ProtocolClientInterface -import build.buf.connect.ResponseMessage -import build.buf.connect.http.Cancelable -import kotlin.Unit - -public class EvilCommentsServiceClient( - private val client: ProtocolClientInterface, -) : EvilCommentsServiceClientInterface { - /** - * This comment contains characters that should be escaped. - * @ is valid in KDoc, but not in proto. - * Comments in KDoc use C-style block comments, so */ and /* should be escaped. - * [ and ] characters should also be escaped. - */ - public override suspend fun evilComments(request: Evilcomments.EvilCommentsRequest, - headers: Headers): ResponseMessage = client.unary( - request, - headers, - MethodSpec( - "buf.evilcomments.v1.EvilCommentsService/EvilComments", - buf.evilcomments.v1.Evilcomments.EvilCommentsRequest::class, - buf.evilcomments.v1.Evilcomments.EvilCommentsResponse::class, - ), - ) - - - /** - * This comment contains characters that should be escaped. - * @ is valid in KDoc, but not in proto. - * Comments in KDoc use C-style block comments, so */ and /* should be escaped. - * [ and ] characters should also be escaped. - */ - public override fun evilComments( - request: Evilcomments.EvilCommentsRequest, - headers: Headers, - onResult: (ResponseMessage) -> Unit, - ): Cancelable = client.unary( - request, - headers, - MethodSpec( - "buf.evilcomments.v1.EvilCommentsService/EvilComments", - buf.evilcomments.v1.Evilcomments.EvilCommentsRequest::class, - buf.evilcomments.v1.Evilcomments.EvilCommentsResponse::class, - ), - onResult - ) - -} diff --git a/protoc-gen-connect-kotlin/src/test/java/buf/evilcomments/v1/EvilCommentsServiceClientInterface.kt b/protoc-gen-connect-kotlin/src/test/java/buf/evilcomments/v1/EvilCommentsServiceClientInterface.kt deleted file mode 100644 index 18af7441..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/buf/evilcomments/v1/EvilCommentsServiceClientInterface.kt +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated by connect-kotlin. DO NOT EDIT. -// -// Source: buf/evilcomments/v1/evilcomments.proto -// -package buf.evilcomments.v1 - -import build.buf.connect.Headers -import build.buf.connect.ResponseMessage -import build.buf.connect.http.Cancelable -import kotlin.Unit - -public interface EvilCommentsServiceClientInterface { - /** - * This comment contains characters that should be escaped. - * @ is valid in KDoc, but not in proto. - * Comments in KDoc use C-style block comments, so */ and /* should be escaped. - * [ and ] characters should also be escaped. - */ - public suspend fun evilComments(request: Evilcomments.EvilCommentsRequest, headers: Headers = - emptyMap()): ResponseMessage - - /** - * This comment contains characters that should be escaped. - * @ is valid in KDoc, but not in proto. - * Comments in KDoc use C-style block comments, so */ and /* should be escaped. - * [ and ] characters should also be escaped. - */ - public fun evilComments( - request: Evilcomments.EvilCommentsRequest, - headers: Headers = emptyMap(), - onResult: (ResponseMessage) -> Unit, - ): Cancelable -} diff --git a/protoc-gen-connect-kotlin/src/test/java/buf/evilcomments/v1/Evilcomments.java b/protoc-gen-connect-kotlin/src/test/java/buf/evilcomments/v1/Evilcomments.java deleted file mode 100644 index 23d37c50..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/buf/evilcomments/v1/Evilcomments.java +++ /dev/null @@ -1,917 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: buf/evilcomments/v1/evilcomments.proto - -package buf.evilcomments.v1; - -public final class Evilcomments { - private Evilcomments() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface EvilCommentsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.evilcomments.v1.EvilCommentsRequest) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code buf.evilcomments.v1.EvilCommentsRequest} - */ - public static final class EvilCommentsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:buf.evilcomments.v1.EvilCommentsRequest) - EvilCommentsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use EvilCommentsRequest.newBuilder() to construct. - private EvilCommentsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EvilCommentsRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EvilCommentsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EvilCommentsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return buf.evilcomments.v1.Evilcomments.internal_static_buf_evilcomments_v1_EvilCommentsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return buf.evilcomments.v1.Evilcomments.internal_static_buf_evilcomments_v1_EvilCommentsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - buf.evilcomments.v1.Evilcomments.EvilCommentsRequest.class, buf.evilcomments.v1.Evilcomments.EvilCommentsRequest.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof buf.evilcomments.v1.Evilcomments.EvilCommentsRequest)) { - return super.equals(obj); - } - buf.evilcomments.v1.Evilcomments.EvilCommentsRequest other = (buf.evilcomments.v1.Evilcomments.EvilCommentsRequest) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static buf.evilcomments.v1.Evilcomments.EvilCommentsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.evilcomments.v1.Evilcomments.EvilCommentsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.evilcomments.v1.Evilcomments.EvilCommentsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.evilcomments.v1.Evilcomments.EvilCommentsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.evilcomments.v1.Evilcomments.EvilCommentsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.evilcomments.v1.Evilcomments.EvilCommentsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.evilcomments.v1.Evilcomments.EvilCommentsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static buf.evilcomments.v1.Evilcomments.EvilCommentsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static buf.evilcomments.v1.Evilcomments.EvilCommentsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static buf.evilcomments.v1.Evilcomments.EvilCommentsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static buf.evilcomments.v1.Evilcomments.EvilCommentsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static buf.evilcomments.v1.Evilcomments.EvilCommentsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(buf.evilcomments.v1.Evilcomments.EvilCommentsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code buf.evilcomments.v1.EvilCommentsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:buf.evilcomments.v1.EvilCommentsRequest) - buf.evilcomments.v1.Evilcomments.EvilCommentsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return buf.evilcomments.v1.Evilcomments.internal_static_buf_evilcomments_v1_EvilCommentsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return buf.evilcomments.v1.Evilcomments.internal_static_buf_evilcomments_v1_EvilCommentsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - buf.evilcomments.v1.Evilcomments.EvilCommentsRequest.class, buf.evilcomments.v1.Evilcomments.EvilCommentsRequest.Builder.class); - } - - // Construct using buf.evilcomments.v1.Evilcomments.EvilCommentsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return buf.evilcomments.v1.Evilcomments.internal_static_buf_evilcomments_v1_EvilCommentsRequest_descriptor; - } - - @java.lang.Override - public buf.evilcomments.v1.Evilcomments.EvilCommentsRequest getDefaultInstanceForType() { - return buf.evilcomments.v1.Evilcomments.EvilCommentsRequest.getDefaultInstance(); - } - - @java.lang.Override - public buf.evilcomments.v1.Evilcomments.EvilCommentsRequest build() { - buf.evilcomments.v1.Evilcomments.EvilCommentsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public buf.evilcomments.v1.Evilcomments.EvilCommentsRequest buildPartial() { - buf.evilcomments.v1.Evilcomments.EvilCommentsRequest result = new buf.evilcomments.v1.Evilcomments.EvilCommentsRequest(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof buf.evilcomments.v1.Evilcomments.EvilCommentsRequest) { - return mergeFrom((buf.evilcomments.v1.Evilcomments.EvilCommentsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(buf.evilcomments.v1.Evilcomments.EvilCommentsRequest other) { - if (other == buf.evilcomments.v1.Evilcomments.EvilCommentsRequest.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - buf.evilcomments.v1.Evilcomments.EvilCommentsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (buf.evilcomments.v1.Evilcomments.EvilCommentsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:buf.evilcomments.v1.EvilCommentsRequest) - } - - // @@protoc_insertion_point(class_scope:buf.evilcomments.v1.EvilCommentsRequest) - private static final buf.evilcomments.v1.Evilcomments.EvilCommentsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new buf.evilcomments.v1.Evilcomments.EvilCommentsRequest(); - } - - public static buf.evilcomments.v1.Evilcomments.EvilCommentsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EvilCommentsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EvilCommentsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public buf.evilcomments.v1.Evilcomments.EvilCommentsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface EvilCommentsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.evilcomments.v1.EvilCommentsResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code buf.evilcomments.v1.EvilCommentsResponse} - */ - public static final class EvilCommentsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:buf.evilcomments.v1.EvilCommentsResponse) - EvilCommentsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use EvilCommentsResponse.newBuilder() to construct. - private EvilCommentsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EvilCommentsResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EvilCommentsResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EvilCommentsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return buf.evilcomments.v1.Evilcomments.internal_static_buf_evilcomments_v1_EvilCommentsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return buf.evilcomments.v1.Evilcomments.internal_static_buf_evilcomments_v1_EvilCommentsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - buf.evilcomments.v1.Evilcomments.EvilCommentsResponse.class, buf.evilcomments.v1.Evilcomments.EvilCommentsResponse.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof buf.evilcomments.v1.Evilcomments.EvilCommentsResponse)) { - return super.equals(obj); - } - buf.evilcomments.v1.Evilcomments.EvilCommentsResponse other = (buf.evilcomments.v1.Evilcomments.EvilCommentsResponse) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static buf.evilcomments.v1.Evilcomments.EvilCommentsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.evilcomments.v1.Evilcomments.EvilCommentsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.evilcomments.v1.Evilcomments.EvilCommentsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.evilcomments.v1.Evilcomments.EvilCommentsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.evilcomments.v1.Evilcomments.EvilCommentsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.evilcomments.v1.Evilcomments.EvilCommentsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.evilcomments.v1.Evilcomments.EvilCommentsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static buf.evilcomments.v1.Evilcomments.EvilCommentsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static buf.evilcomments.v1.Evilcomments.EvilCommentsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static buf.evilcomments.v1.Evilcomments.EvilCommentsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static buf.evilcomments.v1.Evilcomments.EvilCommentsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static buf.evilcomments.v1.Evilcomments.EvilCommentsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(buf.evilcomments.v1.Evilcomments.EvilCommentsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code buf.evilcomments.v1.EvilCommentsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:buf.evilcomments.v1.EvilCommentsResponse) - buf.evilcomments.v1.Evilcomments.EvilCommentsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return buf.evilcomments.v1.Evilcomments.internal_static_buf_evilcomments_v1_EvilCommentsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return buf.evilcomments.v1.Evilcomments.internal_static_buf_evilcomments_v1_EvilCommentsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - buf.evilcomments.v1.Evilcomments.EvilCommentsResponse.class, buf.evilcomments.v1.Evilcomments.EvilCommentsResponse.Builder.class); - } - - // Construct using buf.evilcomments.v1.Evilcomments.EvilCommentsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return buf.evilcomments.v1.Evilcomments.internal_static_buf_evilcomments_v1_EvilCommentsResponse_descriptor; - } - - @java.lang.Override - public buf.evilcomments.v1.Evilcomments.EvilCommentsResponse getDefaultInstanceForType() { - return buf.evilcomments.v1.Evilcomments.EvilCommentsResponse.getDefaultInstance(); - } - - @java.lang.Override - public buf.evilcomments.v1.Evilcomments.EvilCommentsResponse build() { - buf.evilcomments.v1.Evilcomments.EvilCommentsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public buf.evilcomments.v1.Evilcomments.EvilCommentsResponse buildPartial() { - buf.evilcomments.v1.Evilcomments.EvilCommentsResponse result = new buf.evilcomments.v1.Evilcomments.EvilCommentsResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof buf.evilcomments.v1.Evilcomments.EvilCommentsResponse) { - return mergeFrom((buf.evilcomments.v1.Evilcomments.EvilCommentsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(buf.evilcomments.v1.Evilcomments.EvilCommentsResponse other) { - if (other == buf.evilcomments.v1.Evilcomments.EvilCommentsResponse.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - buf.evilcomments.v1.Evilcomments.EvilCommentsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (buf.evilcomments.v1.Evilcomments.EvilCommentsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:buf.evilcomments.v1.EvilCommentsResponse) - } - - // @@protoc_insertion_point(class_scope:buf.evilcomments.v1.EvilCommentsResponse) - private static final buf.evilcomments.v1.Evilcomments.EvilCommentsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new buf.evilcomments.v1.Evilcomments.EvilCommentsResponse(); - } - - public static buf.evilcomments.v1.Evilcomments.EvilCommentsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EvilCommentsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EvilCommentsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public buf.evilcomments.v1.Evilcomments.EvilCommentsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_evilcomments_v1_EvilCommentsRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_buf_evilcomments_v1_EvilCommentsRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_evilcomments_v1_EvilCommentsResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_buf_evilcomments_v1_EvilCommentsResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n&buf/evilcomments/v1/evilcomments.proto" + - "\022\023buf.evilcomments.v1\"\025\n\023EvilCommentsReq" + - "uest\"\026\n\024EvilCommentsResponse2|\n\023EvilComm" + - "entsService\022e\n\014EvilComments\022(.buf.evilco" + - "mments.v1.EvilCommentsRequest\032).buf.evil" + - "comments.v1.EvilCommentsResponse\"\000b\006prot" + - "o3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_buf_evilcomments_v1_EvilCommentsRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_buf_evilcomments_v1_EvilCommentsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_buf_evilcomments_v1_EvilCommentsRequest_descriptor, - new java.lang.String[] { }); - internal_static_buf_evilcomments_v1_EvilCommentsResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_buf_evilcomments_v1_EvilCommentsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_buf_evilcomments_v1_EvilCommentsResponse_descriptor, - new java.lang.String[] { }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/disabled/v1/Disabled.java b/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/disabled/v1/Disabled.java deleted file mode 100644 index f865c4f6..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/disabled/v1/Disabled.java +++ /dev/null @@ -1,1219 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: buf/javamultiplefiles/disabled/v1/disabled.proto - -package buf.javamultiplefiles.disabled.v1; - -public final class Disabled { - private Disabled() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface DisabledRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.javamultiplefiles.disabled.v1.DisabledRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * string sentence = 1 [json_name = "sentence"]; - * @return The sentence. - */ - java.lang.String getSentence(); - /** - * string sentence = 1 [json_name = "sentence"]; - * @return The bytes for sentence. - */ - com.google.protobuf.ByteString - getSentenceBytes(); - } - /** - * Protobuf type {@code buf.javamultiplefiles.disabled.v1.DisabledRequest} - */ - public static final class DisabledRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:buf.javamultiplefiles.disabled.v1.DisabledRequest) - DisabledRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DisabledRequest.newBuilder() to construct. - private DisabledRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DisabledRequest() { - sentence_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DisabledRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DisabledRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - sentence_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return buf.javamultiplefiles.disabled.v1.Disabled.internal_static_buf_javamultiplefiles_disabled_v1_DisabledRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return buf.javamultiplefiles.disabled.v1.Disabled.internal_static_buf_javamultiplefiles_disabled_v1_DisabledRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - buf.javamultiplefiles.disabled.v1.Disabled.DisabledRequest.class, buf.javamultiplefiles.disabled.v1.Disabled.DisabledRequest.Builder.class); - } - - public static final int SENTENCE_FIELD_NUMBER = 1; - private volatile java.lang.Object sentence_; - /** - * string sentence = 1 [json_name = "sentence"]; - * @return The sentence. - */ - @java.lang.Override - public java.lang.String getSentence() { - java.lang.Object ref = sentence_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sentence_ = s; - return s; - } - } - /** - * string sentence = 1 [json_name = "sentence"]; - * @return The bytes for sentence. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSentenceBytes() { - java.lang.Object ref = sentence_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sentence_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sentence_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sentence_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sentence_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sentence_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof buf.javamultiplefiles.disabled.v1.Disabled.DisabledRequest)) { - return super.equals(obj); - } - buf.javamultiplefiles.disabled.v1.Disabled.DisabledRequest other = (buf.javamultiplefiles.disabled.v1.Disabled.DisabledRequest) obj; - - if (!getSentence() - .equals(other.getSentence())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SENTENCE_FIELD_NUMBER; - hash = (53 * hash) + getSentence().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static buf.javamultiplefiles.disabled.v1.Disabled.DisabledRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.disabled.v1.Disabled.DisabledRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.disabled.v1.Disabled.DisabledRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.disabled.v1.Disabled.DisabledRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.disabled.v1.Disabled.DisabledRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.disabled.v1.Disabled.DisabledRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.disabled.v1.Disabled.DisabledRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.disabled.v1.Disabled.DisabledRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static buf.javamultiplefiles.disabled.v1.Disabled.DisabledRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.disabled.v1.Disabled.DisabledRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static buf.javamultiplefiles.disabled.v1.Disabled.DisabledRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.disabled.v1.Disabled.DisabledRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(buf.javamultiplefiles.disabled.v1.Disabled.DisabledRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code buf.javamultiplefiles.disabled.v1.DisabledRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:buf.javamultiplefiles.disabled.v1.DisabledRequest) - buf.javamultiplefiles.disabled.v1.Disabled.DisabledRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return buf.javamultiplefiles.disabled.v1.Disabled.internal_static_buf_javamultiplefiles_disabled_v1_DisabledRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return buf.javamultiplefiles.disabled.v1.Disabled.internal_static_buf_javamultiplefiles_disabled_v1_DisabledRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - buf.javamultiplefiles.disabled.v1.Disabled.DisabledRequest.class, buf.javamultiplefiles.disabled.v1.Disabled.DisabledRequest.Builder.class); - } - - // Construct using buf.javamultiplefiles.disabled.v1.Disabled.DisabledRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - sentence_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return buf.javamultiplefiles.disabled.v1.Disabled.internal_static_buf_javamultiplefiles_disabled_v1_DisabledRequest_descriptor; - } - - @java.lang.Override - public buf.javamultiplefiles.disabled.v1.Disabled.DisabledRequest getDefaultInstanceForType() { - return buf.javamultiplefiles.disabled.v1.Disabled.DisabledRequest.getDefaultInstance(); - } - - @java.lang.Override - public buf.javamultiplefiles.disabled.v1.Disabled.DisabledRequest build() { - buf.javamultiplefiles.disabled.v1.Disabled.DisabledRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public buf.javamultiplefiles.disabled.v1.Disabled.DisabledRequest buildPartial() { - buf.javamultiplefiles.disabled.v1.Disabled.DisabledRequest result = new buf.javamultiplefiles.disabled.v1.Disabled.DisabledRequest(this); - result.sentence_ = sentence_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof buf.javamultiplefiles.disabled.v1.Disabled.DisabledRequest) { - return mergeFrom((buf.javamultiplefiles.disabled.v1.Disabled.DisabledRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(buf.javamultiplefiles.disabled.v1.Disabled.DisabledRequest other) { - if (other == buf.javamultiplefiles.disabled.v1.Disabled.DisabledRequest.getDefaultInstance()) return this; - if (!other.getSentence().isEmpty()) { - sentence_ = other.sentence_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - buf.javamultiplefiles.disabled.v1.Disabled.DisabledRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (buf.javamultiplefiles.disabled.v1.Disabled.DisabledRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object sentence_ = ""; - /** - * string sentence = 1 [json_name = "sentence"]; - * @return The sentence. - */ - public java.lang.String getSentence() { - java.lang.Object ref = sentence_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sentence_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string sentence = 1 [json_name = "sentence"]; - * @return The bytes for sentence. - */ - public com.google.protobuf.ByteString - getSentenceBytes() { - java.lang.Object ref = sentence_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sentence_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string sentence = 1 [json_name = "sentence"]; - * @param value The sentence to set. - * @return This builder for chaining. - */ - public Builder setSentence( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - sentence_ = value; - onChanged(); - return this; - } - /** - * string sentence = 1 [json_name = "sentence"]; - * @return This builder for chaining. - */ - public Builder clearSentence() { - - sentence_ = getDefaultInstance().getSentence(); - onChanged(); - return this; - } - /** - * string sentence = 1 [json_name = "sentence"]; - * @param value The bytes for sentence to set. - * @return This builder for chaining. - */ - public Builder setSentenceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - sentence_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:buf.javamultiplefiles.disabled.v1.DisabledRequest) - } - - // @@protoc_insertion_point(class_scope:buf.javamultiplefiles.disabled.v1.DisabledRequest) - private static final buf.javamultiplefiles.disabled.v1.Disabled.DisabledRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new buf.javamultiplefiles.disabled.v1.Disabled.DisabledRequest(); - } - - public static buf.javamultiplefiles.disabled.v1.Disabled.DisabledRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DisabledRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DisabledRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public buf.javamultiplefiles.disabled.v1.Disabled.DisabledRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DisabledResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.javamultiplefiles.disabled.v1.DisabledResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * string sentence = 1 [json_name = "sentence"]; - * @return The sentence. - */ - java.lang.String getSentence(); - /** - * string sentence = 1 [json_name = "sentence"]; - * @return The bytes for sentence. - */ - com.google.protobuf.ByteString - getSentenceBytes(); - } - /** - * Protobuf type {@code buf.javamultiplefiles.disabled.v1.DisabledResponse} - */ - public static final class DisabledResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:buf.javamultiplefiles.disabled.v1.DisabledResponse) - DisabledResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use DisabledResponse.newBuilder() to construct. - private DisabledResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DisabledResponse() { - sentence_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DisabledResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DisabledResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - sentence_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return buf.javamultiplefiles.disabled.v1.Disabled.internal_static_buf_javamultiplefiles_disabled_v1_DisabledResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return buf.javamultiplefiles.disabled.v1.Disabled.internal_static_buf_javamultiplefiles_disabled_v1_DisabledResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - buf.javamultiplefiles.disabled.v1.Disabled.DisabledResponse.class, buf.javamultiplefiles.disabled.v1.Disabled.DisabledResponse.Builder.class); - } - - public static final int SENTENCE_FIELD_NUMBER = 1; - private volatile java.lang.Object sentence_; - /** - * string sentence = 1 [json_name = "sentence"]; - * @return The sentence. - */ - @java.lang.Override - public java.lang.String getSentence() { - java.lang.Object ref = sentence_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sentence_ = s; - return s; - } - } - /** - * string sentence = 1 [json_name = "sentence"]; - * @return The bytes for sentence. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSentenceBytes() { - java.lang.Object ref = sentence_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sentence_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sentence_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sentence_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sentence_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sentence_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof buf.javamultiplefiles.disabled.v1.Disabled.DisabledResponse)) { - return super.equals(obj); - } - buf.javamultiplefiles.disabled.v1.Disabled.DisabledResponse other = (buf.javamultiplefiles.disabled.v1.Disabled.DisabledResponse) obj; - - if (!getSentence() - .equals(other.getSentence())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SENTENCE_FIELD_NUMBER; - hash = (53 * hash) + getSentence().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static buf.javamultiplefiles.disabled.v1.Disabled.DisabledResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.disabled.v1.Disabled.DisabledResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.disabled.v1.Disabled.DisabledResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.disabled.v1.Disabled.DisabledResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.disabled.v1.Disabled.DisabledResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.disabled.v1.Disabled.DisabledResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.disabled.v1.Disabled.DisabledResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.disabled.v1.Disabled.DisabledResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static buf.javamultiplefiles.disabled.v1.Disabled.DisabledResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.disabled.v1.Disabled.DisabledResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static buf.javamultiplefiles.disabled.v1.Disabled.DisabledResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.disabled.v1.Disabled.DisabledResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(buf.javamultiplefiles.disabled.v1.Disabled.DisabledResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code buf.javamultiplefiles.disabled.v1.DisabledResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:buf.javamultiplefiles.disabled.v1.DisabledResponse) - buf.javamultiplefiles.disabled.v1.Disabled.DisabledResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return buf.javamultiplefiles.disabled.v1.Disabled.internal_static_buf_javamultiplefiles_disabled_v1_DisabledResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return buf.javamultiplefiles.disabled.v1.Disabled.internal_static_buf_javamultiplefiles_disabled_v1_DisabledResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - buf.javamultiplefiles.disabled.v1.Disabled.DisabledResponse.class, buf.javamultiplefiles.disabled.v1.Disabled.DisabledResponse.Builder.class); - } - - // Construct using buf.javamultiplefiles.disabled.v1.Disabled.DisabledResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - sentence_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return buf.javamultiplefiles.disabled.v1.Disabled.internal_static_buf_javamultiplefiles_disabled_v1_DisabledResponse_descriptor; - } - - @java.lang.Override - public buf.javamultiplefiles.disabled.v1.Disabled.DisabledResponse getDefaultInstanceForType() { - return buf.javamultiplefiles.disabled.v1.Disabled.DisabledResponse.getDefaultInstance(); - } - - @java.lang.Override - public buf.javamultiplefiles.disabled.v1.Disabled.DisabledResponse build() { - buf.javamultiplefiles.disabled.v1.Disabled.DisabledResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public buf.javamultiplefiles.disabled.v1.Disabled.DisabledResponse buildPartial() { - buf.javamultiplefiles.disabled.v1.Disabled.DisabledResponse result = new buf.javamultiplefiles.disabled.v1.Disabled.DisabledResponse(this); - result.sentence_ = sentence_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof buf.javamultiplefiles.disabled.v1.Disabled.DisabledResponse) { - return mergeFrom((buf.javamultiplefiles.disabled.v1.Disabled.DisabledResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(buf.javamultiplefiles.disabled.v1.Disabled.DisabledResponse other) { - if (other == buf.javamultiplefiles.disabled.v1.Disabled.DisabledResponse.getDefaultInstance()) return this; - if (!other.getSentence().isEmpty()) { - sentence_ = other.sentence_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - buf.javamultiplefiles.disabled.v1.Disabled.DisabledResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (buf.javamultiplefiles.disabled.v1.Disabled.DisabledResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object sentence_ = ""; - /** - * string sentence = 1 [json_name = "sentence"]; - * @return The sentence. - */ - public java.lang.String getSentence() { - java.lang.Object ref = sentence_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sentence_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string sentence = 1 [json_name = "sentence"]; - * @return The bytes for sentence. - */ - public com.google.protobuf.ByteString - getSentenceBytes() { - java.lang.Object ref = sentence_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sentence_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string sentence = 1 [json_name = "sentence"]; - * @param value The sentence to set. - * @return This builder for chaining. - */ - public Builder setSentence( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - sentence_ = value; - onChanged(); - return this; - } - /** - * string sentence = 1 [json_name = "sentence"]; - * @return This builder for chaining. - */ - public Builder clearSentence() { - - sentence_ = getDefaultInstance().getSentence(); - onChanged(); - return this; - } - /** - * string sentence = 1 [json_name = "sentence"]; - * @param value The bytes for sentence to set. - * @return This builder for chaining. - */ - public Builder setSentenceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - sentence_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:buf.javamultiplefiles.disabled.v1.DisabledResponse) - } - - // @@protoc_insertion_point(class_scope:buf.javamultiplefiles.disabled.v1.DisabledResponse) - private static final buf.javamultiplefiles.disabled.v1.Disabled.DisabledResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new buf.javamultiplefiles.disabled.v1.Disabled.DisabledResponse(); - } - - public static buf.javamultiplefiles.disabled.v1.Disabled.DisabledResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DisabledResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DisabledResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public buf.javamultiplefiles.disabled.v1.Disabled.DisabledResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_javamultiplefiles_disabled_v1_DisabledRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_buf_javamultiplefiles_disabled_v1_DisabledRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_javamultiplefiles_disabled_v1_DisabledResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_buf_javamultiplefiles_disabled_v1_DisabledResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n0buf/javamultiplefiles/disabled/v1/disa" + - "bled.proto\022!buf.javamultiplefiles.disabl" + - "ed.v1\"-\n\017DisabledRequest\022\032\n\010sentence\030\001 \001" + - "(\tR\010sentence\".\n\020DisabledResponse\022\032\n\010sent" + - "ence\030\001 \001(\tR\010sentence2\210\001\n\017DisabledService" + - "\022u\n\010Disabled\0222.buf.javamultiplefiles.dis" + - "abled.v1.DisabledRequest\0323.buf.javamulti" + - "plefiles.disabled.v1.DisabledResponse\"\000B" + - "\002P\000b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_buf_javamultiplefiles_disabled_v1_DisabledRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_buf_javamultiplefiles_disabled_v1_DisabledRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_buf_javamultiplefiles_disabled_v1_DisabledRequest_descriptor, - new java.lang.String[] { "Sentence", }); - internal_static_buf_javamultiplefiles_disabled_v1_DisabledResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_buf_javamultiplefiles_disabled_v1_DisabledResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_buf_javamultiplefiles_disabled_v1_DisabledResponse_descriptor, - new java.lang.String[] { "Sentence", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/disabled/v1/DisabledEmptyOuterClass.java b/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/disabled/v1/DisabledEmptyOuterClass.java deleted file mode 100644 index 31da63c8..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/disabled/v1/DisabledEmptyOuterClass.java +++ /dev/null @@ -1,1350 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: buf/javamultiplefiles/disabled/v1/disabled_empty.proto - -package buf.javamultiplefiles.disabled.v1; - -public final class DisabledEmptyOuterClass { - private DisabledEmptyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface DisabledEmptyOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.javamultiplefiles.disabled.v1.DisabledEmpty) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code buf.javamultiplefiles.disabled.v1.DisabledEmpty} - */ - public static final class DisabledEmpty extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:buf.javamultiplefiles.disabled.v1.DisabledEmpty) - DisabledEmptyOrBuilder { - private static final long serialVersionUID = 0L; - // Use DisabledEmpty.newBuilder() to construct. - private DisabledEmpty(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DisabledEmpty() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DisabledEmpty(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DisabledEmpty( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.internal_static_buf_javamultiplefiles_disabled_v1_DisabledEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.internal_static_buf_javamultiplefiles_disabled_v1_DisabledEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmpty.class, buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmpty.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmpty)) { - return super.equals(obj); - } - buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmpty other = (buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmpty) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmpty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmpty parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmpty parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmpty parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmpty parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmpty parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmpty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmpty parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmpty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmpty parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmpty parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmpty parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmpty prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code buf.javamultiplefiles.disabled.v1.DisabledEmpty} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:buf.javamultiplefiles.disabled.v1.DisabledEmpty) - buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.internal_static_buf_javamultiplefiles_disabled_v1_DisabledEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.internal_static_buf_javamultiplefiles_disabled_v1_DisabledEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmpty.class, buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmpty.Builder.class); - } - - // Construct using buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmpty.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.internal_static_buf_javamultiplefiles_disabled_v1_DisabledEmpty_descriptor; - } - - @java.lang.Override - public buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmpty getDefaultInstanceForType() { - return buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmpty.getDefaultInstance(); - } - - @java.lang.Override - public buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmpty build() { - buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmpty result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmpty buildPartial() { - buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmpty result = new buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmpty(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmpty) { - return mergeFrom((buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmpty)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmpty other) { - if (other == buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmpty.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmpty parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmpty) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:buf.javamultiplefiles.disabled.v1.DisabledEmpty) - } - - // @@protoc_insertion_point(class_scope:buf.javamultiplefiles.disabled.v1.DisabledEmpty) - private static final buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmpty DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmpty(); - } - - public static buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmpty getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DisabledEmpty parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DisabledEmpty(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmpty getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DisabledEmptyRPCRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.javamultiplefiles.disabled.v1.DisabledEmptyRPCRequest) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code buf.javamultiplefiles.disabled.v1.DisabledEmptyRPCRequest} - */ - public static final class DisabledEmptyRPCRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:buf.javamultiplefiles.disabled.v1.DisabledEmptyRPCRequest) - DisabledEmptyRPCRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DisabledEmptyRPCRequest.newBuilder() to construct. - private DisabledEmptyRPCRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DisabledEmptyRPCRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DisabledEmptyRPCRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DisabledEmptyRPCRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.internal_static_buf_javamultiplefiles_disabled_v1_DisabledEmptyRPCRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.internal_static_buf_javamultiplefiles_disabled_v1_DisabledEmptyRPCRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCRequest.class, buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCRequest.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCRequest)) { - return super.equals(obj); - } - buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCRequest other = (buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCRequest) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code buf.javamultiplefiles.disabled.v1.DisabledEmptyRPCRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:buf.javamultiplefiles.disabled.v1.DisabledEmptyRPCRequest) - buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.internal_static_buf_javamultiplefiles_disabled_v1_DisabledEmptyRPCRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.internal_static_buf_javamultiplefiles_disabled_v1_DisabledEmptyRPCRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCRequest.class, buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCRequest.Builder.class); - } - - // Construct using buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.internal_static_buf_javamultiplefiles_disabled_v1_DisabledEmptyRPCRequest_descriptor; - } - - @java.lang.Override - public buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCRequest getDefaultInstanceForType() { - return buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCRequest.getDefaultInstance(); - } - - @java.lang.Override - public buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCRequest build() { - buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCRequest buildPartial() { - buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCRequest result = new buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCRequest(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCRequest) { - return mergeFrom((buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCRequest other) { - if (other == buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCRequest.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:buf.javamultiplefiles.disabled.v1.DisabledEmptyRPCRequest) - } - - // @@protoc_insertion_point(class_scope:buf.javamultiplefiles.disabled.v1.DisabledEmptyRPCRequest) - private static final buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCRequest(); - } - - public static buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DisabledEmptyRPCRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DisabledEmptyRPCRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DisabledEmptyRPCResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.javamultiplefiles.disabled.v1.DisabledEmptyRPCResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code buf.javamultiplefiles.disabled.v1.DisabledEmptyRPCResponse} - */ - public static final class DisabledEmptyRPCResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:buf.javamultiplefiles.disabled.v1.DisabledEmptyRPCResponse) - DisabledEmptyRPCResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use DisabledEmptyRPCResponse.newBuilder() to construct. - private DisabledEmptyRPCResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DisabledEmptyRPCResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DisabledEmptyRPCResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DisabledEmptyRPCResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.internal_static_buf_javamultiplefiles_disabled_v1_DisabledEmptyRPCResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.internal_static_buf_javamultiplefiles_disabled_v1_DisabledEmptyRPCResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCResponse.class, buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCResponse.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCResponse)) { - return super.equals(obj); - } - buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCResponse other = (buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCResponse) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code buf.javamultiplefiles.disabled.v1.DisabledEmptyRPCResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:buf.javamultiplefiles.disabled.v1.DisabledEmptyRPCResponse) - buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.internal_static_buf_javamultiplefiles_disabled_v1_DisabledEmptyRPCResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.internal_static_buf_javamultiplefiles_disabled_v1_DisabledEmptyRPCResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCResponse.class, buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCResponse.Builder.class); - } - - // Construct using buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.internal_static_buf_javamultiplefiles_disabled_v1_DisabledEmptyRPCResponse_descriptor; - } - - @java.lang.Override - public buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCResponse getDefaultInstanceForType() { - return buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCResponse.getDefaultInstance(); - } - - @java.lang.Override - public buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCResponse build() { - buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCResponse buildPartial() { - buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCResponse result = new buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCResponse) { - return mergeFrom((buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCResponse other) { - if (other == buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCResponse.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:buf.javamultiplefiles.disabled.v1.DisabledEmptyRPCResponse) - } - - // @@protoc_insertion_point(class_scope:buf.javamultiplefiles.disabled.v1.DisabledEmptyRPCResponse) - private static final buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCResponse(); - } - - public static buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DisabledEmptyRPCResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DisabledEmptyRPCResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_javamultiplefiles_disabled_v1_DisabledEmpty_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_buf_javamultiplefiles_disabled_v1_DisabledEmpty_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_javamultiplefiles_disabled_v1_DisabledEmptyRPCRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_buf_javamultiplefiles_disabled_v1_DisabledEmptyRPCRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_javamultiplefiles_disabled_v1_DisabledEmptyRPCResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_buf_javamultiplefiles_disabled_v1_DisabledEmptyRPCResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n6buf/javamultiplefiles/disabled/v1/disa" + - "bled_empty.proto\022!buf.javamultiplefiles." + - "disabled.v1\"\017\n\rDisabledEmpty\"\031\n\027Disabled" + - "EmptyRPCRequest\"\032\n\030DisabledEmptyRPCRespo" + - "nse2\244\001\n\024DisabledEmptyService\022\213\001\n\020Disable" + - "dEmptyRPC\022:.buf.javamultiplefiles.disabl" + - "ed.v1.DisabledEmptyRPCRequest\032;.buf.java" + - "multiplefiles.disabled.v1.DisabledEmptyR" + - "PCResponseB\002P\000b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_buf_javamultiplefiles_disabled_v1_DisabledEmpty_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_buf_javamultiplefiles_disabled_v1_DisabledEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_buf_javamultiplefiles_disabled_v1_DisabledEmpty_descriptor, - new java.lang.String[] { }); - internal_static_buf_javamultiplefiles_disabled_v1_DisabledEmptyRPCRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_buf_javamultiplefiles_disabled_v1_DisabledEmptyRPCRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_buf_javamultiplefiles_disabled_v1_DisabledEmptyRPCRequest_descriptor, - new java.lang.String[] { }); - internal_static_buf_javamultiplefiles_disabled_v1_DisabledEmptyRPCResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_buf_javamultiplefiles_disabled_v1_DisabledEmptyRPCResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_buf_javamultiplefiles_disabled_v1_DisabledEmptyRPCResponse_descriptor, - new java.lang.String[] { }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/disabled/v1/DisabledEmptyServiceClient.kt b/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/disabled/v1/DisabledEmptyServiceClient.kt deleted file mode 100644 index ed24d46a..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/disabled/v1/DisabledEmptyServiceClient.kt +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated by connect-kotlin. DO NOT EDIT. -// -// Source: buf/javamultiplefiles/disabled/v1/disabled_empty.proto -// -package buf.javamultiplefiles.disabled.v1 - -import build.buf.connect.Headers -import build.buf.connect.MethodSpec -import build.buf.connect.ProtocolClientInterface -import build.buf.connect.ResponseMessage -import build.buf.connect.http.Cancelable -import kotlin.Unit - -public class DisabledEmptyServiceClient( - private val client: ProtocolClientInterface, -) : DisabledEmptyServiceClientInterface { - public override suspend - fun disabledEmptyRPC(request: DisabledEmptyOuterClass.DisabledEmptyRPCRequest, - headers: Headers): ResponseMessage = - client.unary( - request, - headers, - MethodSpec( - "buf.javamultiplefiles.disabled.v1.DisabledEmptyService/DisabledEmptyRPC", - buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCRequest::class, - buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCResponse::class, - ), - ) - - - public override fun disabledEmptyRPC( - request: DisabledEmptyOuterClass.DisabledEmptyRPCRequest, - headers: Headers, - onResult: (ResponseMessage) -> Unit, - ): Cancelable = client.unary( - request, - headers, - MethodSpec( - "buf.javamultiplefiles.disabled.v1.DisabledEmptyService/DisabledEmptyRPC", - buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCRequest::class, - buf.javamultiplefiles.disabled.v1.DisabledEmptyOuterClass.DisabledEmptyRPCResponse::class, - ), - onResult - ) - -} diff --git a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/disabled/v1/DisabledEmptyServiceClientInterface.kt b/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/disabled/v1/DisabledEmptyServiceClientInterface.kt deleted file mode 100644 index 0b64502a..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/disabled/v1/DisabledEmptyServiceClientInterface.kt +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated by connect-kotlin. DO NOT EDIT. -// -// Source: buf/javamultiplefiles/disabled/v1/disabled_empty.proto -// -package buf.javamultiplefiles.disabled.v1 - -import build.buf.connect.Headers -import build.buf.connect.ResponseMessage -import build.buf.connect.http.Cancelable -import kotlin.Unit - -public interface DisabledEmptyServiceClientInterface { - public suspend fun disabledEmptyRPC(request: DisabledEmptyOuterClass.DisabledEmptyRPCRequest, - headers: Headers = emptyMap()): - ResponseMessage - - public fun disabledEmptyRPC( - request: DisabledEmptyOuterClass.DisabledEmptyRPCRequest, - headers: Headers = emptyMap(), - onResult: (ResponseMessage) -> Unit, - ): Cancelable -} diff --git a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/disabled/v1/DisabledInnerMessageServiceClient.kt b/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/disabled/v1/DisabledInnerMessageServiceClient.kt deleted file mode 100644 index a4a2d1c4..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/disabled/v1/DisabledInnerMessageServiceClient.kt +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated by connect-kotlin. DO NOT EDIT. -// -// Source: buf/javamultiplefiles/disabled/v1/disabled_nested.proto -// -package buf.javamultiplefiles.disabled.v1 - -import build.buf.connect.Headers -import build.buf.connect.MethodSpec -import build.buf.connect.ProtocolClientInterface -import build.buf.connect.ResponseMessage -import build.buf.connect.http.Cancelable -import kotlin.Unit - -public class DisabledInnerMessageServiceClient( - private val client: ProtocolClientInterface, -) : DisabledInnerMessageServiceClientInterface { - /** - * buf:lint:ignore RPC_REQUEST_STANDARD_NAME - * buf:lint:ignore RPC_RESPONSE_STANDARD_NAME - */ - public override suspend - fun disabledInnerMessageRPC(request: DisabledNested.DisabledOuterMessageNested.InnerMessage, - headers: Headers): ResponseMessage = - client.unary( - request, - headers, - MethodSpec( - "buf.javamultiplefiles.disabled.v1.DisabledInnerMessageService/DisabledInnerMessageRPC", - buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested.InnerMessage::class, - buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested.InnerMessage::class, - ), - ) - - - /** - * buf:lint:ignore RPC_REQUEST_STANDARD_NAME - * buf:lint:ignore RPC_RESPONSE_STANDARD_NAME - */ - public override fun disabledInnerMessageRPC( - request: DisabledNested.DisabledOuterMessageNested.InnerMessage, - headers: Headers, - onResult: (ResponseMessage) -> Unit, - ): Cancelable = client.unary( - request, - headers, - MethodSpec( - "buf.javamultiplefiles.disabled.v1.DisabledInnerMessageService/DisabledInnerMessageRPC", - buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested.InnerMessage::class, - buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested.InnerMessage::class, - ), - onResult - ) - -} diff --git a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/disabled/v1/DisabledInnerMessageServiceClientInterface.kt b/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/disabled/v1/DisabledInnerMessageServiceClientInterface.kt deleted file mode 100644 index eca4d46d..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/disabled/v1/DisabledInnerMessageServiceClientInterface.kt +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated by connect-kotlin. DO NOT EDIT. -// -// Source: buf/javamultiplefiles/disabled/v1/disabled_nested.proto -// -package buf.javamultiplefiles.disabled.v1 - -import build.buf.connect.Headers -import build.buf.connect.ResponseMessage -import build.buf.connect.http.Cancelable -import kotlin.Unit - -public interface DisabledInnerMessageServiceClientInterface { - /** - * buf:lint:ignore RPC_REQUEST_STANDARD_NAME - * buf:lint:ignore RPC_RESPONSE_STANDARD_NAME - */ - public suspend - fun disabledInnerMessageRPC(request: DisabledNested.DisabledOuterMessageNested.InnerMessage, - headers: Headers = emptyMap()): - ResponseMessage - - /** - * buf:lint:ignore RPC_REQUEST_STANDARD_NAME - * buf:lint:ignore RPC_RESPONSE_STANDARD_NAME - */ - public fun disabledInnerMessageRPC( - request: DisabledNested.DisabledOuterMessageNested.InnerMessage, - headers: Headers = emptyMap(), - onResult: (ResponseMessage) -> Unit, - ): Cancelable -} diff --git a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/disabled/v1/DisabledNested.java b/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/disabled/v1/DisabledNested.java deleted file mode 100644 index 60dff515..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/disabled/v1/DisabledNested.java +++ /dev/null @@ -1,920 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: buf/javamultiplefiles/disabled/v1/disabled_nested.proto - -package buf.javamultiplefiles.disabled.v1; - -public final class DisabledNested { - private DisabledNested() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface DisabledOuterMessageNestedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.javamultiplefiles.disabled.v1.DisabledOuterMessageNested) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code buf.javamultiplefiles.disabled.v1.DisabledOuterMessageNested} - */ - public static final class DisabledOuterMessageNested extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:buf.javamultiplefiles.disabled.v1.DisabledOuterMessageNested) - DisabledOuterMessageNestedOrBuilder { - private static final long serialVersionUID = 0L; - // Use DisabledOuterMessageNested.newBuilder() to construct. - private DisabledOuterMessageNested(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DisabledOuterMessageNested() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DisabledOuterMessageNested(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DisabledOuterMessageNested( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return buf.javamultiplefiles.disabled.v1.DisabledNested.internal_static_buf_javamultiplefiles_disabled_v1_DisabledOuterMessageNested_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return buf.javamultiplefiles.disabled.v1.DisabledNested.internal_static_buf_javamultiplefiles_disabled_v1_DisabledOuterMessageNested_fieldAccessorTable - .ensureFieldAccessorsInitialized( - buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested.class, buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested.Builder.class); - } - - public interface InnerMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.javamultiplefiles.disabled.v1.DisabledOuterMessageNested.InnerMessage) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code buf.javamultiplefiles.disabled.v1.DisabledOuterMessageNested.InnerMessage} - */ - public static final class InnerMessage extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:buf.javamultiplefiles.disabled.v1.DisabledOuterMessageNested.InnerMessage) - InnerMessageOrBuilder { - private static final long serialVersionUID = 0L; - // Use InnerMessage.newBuilder() to construct. - private InnerMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private InnerMessage() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new InnerMessage(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private InnerMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return buf.javamultiplefiles.disabled.v1.DisabledNested.internal_static_buf_javamultiplefiles_disabled_v1_DisabledOuterMessageNested_InnerMessage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return buf.javamultiplefiles.disabled.v1.DisabledNested.internal_static_buf_javamultiplefiles_disabled_v1_DisabledOuterMessageNested_InnerMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested.InnerMessage.class, buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested.InnerMessage.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested.InnerMessage)) { - return super.equals(obj); - } - buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested.InnerMessage other = (buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested.InnerMessage) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested.InnerMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested.InnerMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested.InnerMessage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested.InnerMessage parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested.InnerMessage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested.InnerMessage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested.InnerMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested.InnerMessage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested.InnerMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested.InnerMessage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested.InnerMessage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested.InnerMessage parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested.InnerMessage prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code buf.javamultiplefiles.disabled.v1.DisabledOuterMessageNested.InnerMessage} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:buf.javamultiplefiles.disabled.v1.DisabledOuterMessageNested.InnerMessage) - buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested.InnerMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return buf.javamultiplefiles.disabled.v1.DisabledNested.internal_static_buf_javamultiplefiles_disabled_v1_DisabledOuterMessageNested_InnerMessage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return buf.javamultiplefiles.disabled.v1.DisabledNested.internal_static_buf_javamultiplefiles_disabled_v1_DisabledOuterMessageNested_InnerMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested.InnerMessage.class, buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested.InnerMessage.Builder.class); - } - - // Construct using buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested.InnerMessage.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return buf.javamultiplefiles.disabled.v1.DisabledNested.internal_static_buf_javamultiplefiles_disabled_v1_DisabledOuterMessageNested_InnerMessage_descriptor; - } - - @java.lang.Override - public buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested.InnerMessage getDefaultInstanceForType() { - return buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested.InnerMessage.getDefaultInstance(); - } - - @java.lang.Override - public buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested.InnerMessage build() { - buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested.InnerMessage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested.InnerMessage buildPartial() { - buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested.InnerMessage result = new buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested.InnerMessage(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested.InnerMessage) { - return mergeFrom((buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested.InnerMessage)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested.InnerMessage other) { - if (other == buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested.InnerMessage.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested.InnerMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested.InnerMessage) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:buf.javamultiplefiles.disabled.v1.DisabledOuterMessageNested.InnerMessage) - } - - // @@protoc_insertion_point(class_scope:buf.javamultiplefiles.disabled.v1.DisabledOuterMessageNested.InnerMessage) - private static final buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested.InnerMessage DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested.InnerMessage(); - } - - public static buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested.InnerMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InnerMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InnerMessage(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested.InnerMessage getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested)) { - return super.equals(obj); - } - buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested other = (buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code buf.javamultiplefiles.disabled.v1.DisabledOuterMessageNested} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:buf.javamultiplefiles.disabled.v1.DisabledOuterMessageNested) - buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNestedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return buf.javamultiplefiles.disabled.v1.DisabledNested.internal_static_buf_javamultiplefiles_disabled_v1_DisabledOuterMessageNested_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return buf.javamultiplefiles.disabled.v1.DisabledNested.internal_static_buf_javamultiplefiles_disabled_v1_DisabledOuterMessageNested_fieldAccessorTable - .ensureFieldAccessorsInitialized( - buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested.class, buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested.Builder.class); - } - - // Construct using buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return buf.javamultiplefiles.disabled.v1.DisabledNested.internal_static_buf_javamultiplefiles_disabled_v1_DisabledOuterMessageNested_descriptor; - } - - @java.lang.Override - public buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested getDefaultInstanceForType() { - return buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested.getDefaultInstance(); - } - - @java.lang.Override - public buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested build() { - buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested buildPartial() { - buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested result = new buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested) { - return mergeFrom((buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested other) { - if (other == buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:buf.javamultiplefiles.disabled.v1.DisabledOuterMessageNested) - } - - // @@protoc_insertion_point(class_scope:buf.javamultiplefiles.disabled.v1.DisabledOuterMessageNested) - private static final buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested(); - } - - public static buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DisabledOuterMessageNested parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DisabledOuterMessageNested(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public buf.javamultiplefiles.disabled.v1.DisabledNested.DisabledOuterMessageNested getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_javamultiplefiles_disabled_v1_DisabledOuterMessageNested_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_buf_javamultiplefiles_disabled_v1_DisabledOuterMessageNested_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_javamultiplefiles_disabled_v1_DisabledOuterMessageNested_InnerMessage_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_buf_javamultiplefiles_disabled_v1_DisabledOuterMessageNested_InnerMessage_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n7buf/javamultiplefiles/disabled/v1/disa" + - "bled_nested.proto\022!buf.javamultiplefiles" + - ".disabled.v1\",\n\032DisabledOuterMessageNest" + - "ed\032\016\n\014InnerMessage2\321\001\n\033DisabledInnerMess" + - "ageService\022\261\001\n\027DisabledInnerMessageRPC\022J" + - ".buf.javamultiplefiles.disabled.v1.Disab" + - "ledOuterMessageNested.InnerMessage\032J.buf" + - ".javamultiplefiles.disabled.v1.DisabledO" + - "uterMessageNested.InnerMessageB\002P\000b\006prot" + - "o3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_buf_javamultiplefiles_disabled_v1_DisabledOuterMessageNested_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_buf_javamultiplefiles_disabled_v1_DisabledOuterMessageNested_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_buf_javamultiplefiles_disabled_v1_DisabledOuterMessageNested_descriptor, - new java.lang.String[] { }); - internal_static_buf_javamultiplefiles_disabled_v1_DisabledOuterMessageNested_InnerMessage_descriptor = - internal_static_buf_javamultiplefiles_disabled_v1_DisabledOuterMessageNested_descriptor.getNestedTypes().get(0); - internal_static_buf_javamultiplefiles_disabled_v1_DisabledOuterMessageNested_InnerMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_buf_javamultiplefiles_disabled_v1_DisabledOuterMessageNested_InnerMessage_descriptor, - new java.lang.String[] { }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/disabled/v1/DisabledServiceClient.kt b/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/disabled/v1/DisabledServiceClient.kt deleted file mode 100644 index 01a4dd62..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/disabled/v1/DisabledServiceClient.kt +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated by connect-kotlin. DO NOT EDIT. -// -// Source: buf/javamultiplefiles/disabled/v1/disabled.proto -// -package buf.javamultiplefiles.disabled.v1 - -import build.buf.connect.Headers -import build.buf.connect.MethodSpec -import build.buf.connect.ProtocolClientInterface -import build.buf.connect.ResponseMessage -import build.buf.connect.http.Cancelable -import kotlin.Unit - -public class DisabledServiceClient( - private val client: ProtocolClientInterface, -) : DisabledServiceClientInterface { - public override suspend fun disabled(request: Disabled.DisabledRequest, headers: Headers): - ResponseMessage = client.unary( - request, - headers, - MethodSpec( - "buf.javamultiplefiles.disabled.v1.DisabledService/Disabled", - buf.javamultiplefiles.disabled.v1.Disabled.DisabledRequest::class, - buf.javamultiplefiles.disabled.v1.Disabled.DisabledResponse::class, - ), - ) - - - public override fun disabled( - request: Disabled.DisabledRequest, - headers: Headers, - onResult: (ResponseMessage) -> Unit, - ): Cancelable = client.unary( - request, - headers, - MethodSpec( - "buf.javamultiplefiles.disabled.v1.DisabledService/Disabled", - buf.javamultiplefiles.disabled.v1.Disabled.DisabledRequest::class, - buf.javamultiplefiles.disabled.v1.Disabled.DisabledResponse::class, - ), - onResult - ) - -} diff --git a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/disabled/v1/DisabledServiceClientInterface.kt b/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/disabled/v1/DisabledServiceClientInterface.kt deleted file mode 100644 index 70ddb84f..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/disabled/v1/DisabledServiceClientInterface.kt +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated by connect-kotlin. DO NOT EDIT. -// -// Source: buf/javamultiplefiles/disabled/v1/disabled.proto -// -package buf.javamultiplefiles.disabled.v1 - -import build.buf.connect.Headers -import build.buf.connect.ResponseMessage -import build.buf.connect.http.Cancelable -import kotlin.Unit - -public interface DisabledServiceClientInterface { - public suspend fun disabled(request: Disabled.DisabledRequest, headers: Headers = emptyMap()): - ResponseMessage - - public fun disabled( - request: Disabled.DisabledRequest, - headers: Headers = emptyMap(), - onResult: (ResponseMessage) -> Unit, - ): Cancelable -} diff --git a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/Enabled.java b/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/Enabled.java deleted file mode 100644 index ec236bdb..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/Enabled.java +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: buf/javamultiplefiles/enabled/v1/enabled.proto - -package buf.javamultiplefiles.enabled.v1; - -public final class Enabled { - private Enabled() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_javamultiplefiles_enabled_v1_EnabledRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_buf_javamultiplefiles_enabled_v1_EnabledRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_javamultiplefiles_enabled_v1_EnabledResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_buf_javamultiplefiles_enabled_v1_EnabledResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n.buf/javamultiplefiles/enabled/v1/enabl" + - "ed.proto\022 buf.javamultiplefiles.enabled." + - "v1\",\n\016EnabledRequest\022\032\n\010sentence\030\001 \001(\tR\010" + - "sentence\"-\n\017EnabledResponse\022\032\n\010sentence\030" + - "\001 \001(\tR\010sentence2\202\001\n\016EnabledService\022p\n\007En" + - "abled\0220.buf.javamultiplefiles.enabled.v1" + - ".EnabledRequest\0321.buf.javamultiplefiles." + - "enabled.v1.EnabledResponse\"\000B\002P\001b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_buf_javamultiplefiles_enabled_v1_EnabledRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_buf_javamultiplefiles_enabled_v1_EnabledRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_buf_javamultiplefiles_enabled_v1_EnabledRequest_descriptor, - new java.lang.String[] { "Sentence", }); - internal_static_buf_javamultiplefiles_enabled_v1_EnabledResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_buf_javamultiplefiles_enabled_v1_EnabledResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_buf_javamultiplefiles_enabled_v1_EnabledResponse_descriptor, - new java.lang.String[] { "Sentence", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledEmpty.java b/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledEmpty.java deleted file mode 100644 index 7c290ed5..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledEmpty.java +++ /dev/null @@ -1,435 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: buf/javamultiplefiles/enabled/v1/enabled_empty.proto - -package buf.javamultiplefiles.enabled.v1; - -/** - * Protobuf type {@code buf.javamultiplefiles.enabled.v1.EnabledEmpty} - */ -public final class EnabledEmpty extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:buf.javamultiplefiles.enabled.v1.EnabledEmpty) - EnabledEmptyOrBuilder { -private static final long serialVersionUID = 0L; - // Use EnabledEmpty.newBuilder() to construct. - private EnabledEmpty(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EnabledEmpty() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EnabledEmpty(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EnabledEmpty( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return buf.javamultiplefiles.enabled.v1.EnabledEmptyOuterClass.internal_static_buf_javamultiplefiles_enabled_v1_EnabledEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return buf.javamultiplefiles.enabled.v1.EnabledEmptyOuterClass.internal_static_buf_javamultiplefiles_enabled_v1_EnabledEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - buf.javamultiplefiles.enabled.v1.EnabledEmpty.class, buf.javamultiplefiles.enabled.v1.EnabledEmpty.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof buf.javamultiplefiles.enabled.v1.EnabledEmpty)) { - return super.equals(obj); - } - buf.javamultiplefiles.enabled.v1.EnabledEmpty other = (buf.javamultiplefiles.enabled.v1.EnabledEmpty) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static buf.javamultiplefiles.enabled.v1.EnabledEmpty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.enabled.v1.EnabledEmpty parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.enabled.v1.EnabledEmpty parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.enabled.v1.EnabledEmpty parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.enabled.v1.EnabledEmpty parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.enabled.v1.EnabledEmpty parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.enabled.v1.EnabledEmpty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.enabled.v1.EnabledEmpty parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static buf.javamultiplefiles.enabled.v1.EnabledEmpty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.enabled.v1.EnabledEmpty parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static buf.javamultiplefiles.enabled.v1.EnabledEmpty parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.enabled.v1.EnabledEmpty parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(buf.javamultiplefiles.enabled.v1.EnabledEmpty prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code buf.javamultiplefiles.enabled.v1.EnabledEmpty} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:buf.javamultiplefiles.enabled.v1.EnabledEmpty) - buf.javamultiplefiles.enabled.v1.EnabledEmptyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return buf.javamultiplefiles.enabled.v1.EnabledEmptyOuterClass.internal_static_buf_javamultiplefiles_enabled_v1_EnabledEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return buf.javamultiplefiles.enabled.v1.EnabledEmptyOuterClass.internal_static_buf_javamultiplefiles_enabled_v1_EnabledEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - buf.javamultiplefiles.enabled.v1.EnabledEmpty.class, buf.javamultiplefiles.enabled.v1.EnabledEmpty.Builder.class); - } - - // Construct using buf.javamultiplefiles.enabled.v1.EnabledEmpty.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return buf.javamultiplefiles.enabled.v1.EnabledEmptyOuterClass.internal_static_buf_javamultiplefiles_enabled_v1_EnabledEmpty_descriptor; - } - - @java.lang.Override - public buf.javamultiplefiles.enabled.v1.EnabledEmpty getDefaultInstanceForType() { - return buf.javamultiplefiles.enabled.v1.EnabledEmpty.getDefaultInstance(); - } - - @java.lang.Override - public buf.javamultiplefiles.enabled.v1.EnabledEmpty build() { - buf.javamultiplefiles.enabled.v1.EnabledEmpty result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public buf.javamultiplefiles.enabled.v1.EnabledEmpty buildPartial() { - buf.javamultiplefiles.enabled.v1.EnabledEmpty result = new buf.javamultiplefiles.enabled.v1.EnabledEmpty(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof buf.javamultiplefiles.enabled.v1.EnabledEmpty) { - return mergeFrom((buf.javamultiplefiles.enabled.v1.EnabledEmpty)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(buf.javamultiplefiles.enabled.v1.EnabledEmpty other) { - if (other == buf.javamultiplefiles.enabled.v1.EnabledEmpty.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - buf.javamultiplefiles.enabled.v1.EnabledEmpty parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (buf.javamultiplefiles.enabled.v1.EnabledEmpty) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:buf.javamultiplefiles.enabled.v1.EnabledEmpty) - } - - // @@protoc_insertion_point(class_scope:buf.javamultiplefiles.enabled.v1.EnabledEmpty) - private static final buf.javamultiplefiles.enabled.v1.EnabledEmpty DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new buf.javamultiplefiles.enabled.v1.EnabledEmpty(); - } - - public static buf.javamultiplefiles.enabled.v1.EnabledEmpty getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnabledEmpty parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EnabledEmpty(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public buf.javamultiplefiles.enabled.v1.EnabledEmpty getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledEmptyOrBuilder.java b/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledEmptyOrBuilder.java deleted file mode 100644 index 8b2f10d7..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledEmptyOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: buf/javamultiplefiles/enabled/v1/enabled_empty.proto - -package buf.javamultiplefiles.enabled.v1; - -public interface EnabledEmptyOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.javamultiplefiles.enabled.v1.EnabledEmpty) - com.google.protobuf.MessageOrBuilder { -} diff --git a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledEmptyOuterClass.java b/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledEmptyOuterClass.java deleted file mode 100644 index 4ad0e23a..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledEmptyOuterClass.java +++ /dev/null @@ -1,90 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: buf/javamultiplefiles/enabled/v1/enabled_empty.proto - -package buf.javamultiplefiles.enabled.v1; - -public final class EnabledEmptyOuterClass { - private EnabledEmptyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_javamultiplefiles_enabled_v1_EnabledEmpty_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_buf_javamultiplefiles_enabled_v1_EnabledEmpty_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_javamultiplefiles_enabled_v1_EnabledEmptyRPCRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_buf_javamultiplefiles_enabled_v1_EnabledEmptyRPCRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_javamultiplefiles_enabled_v1_EnabledEmptyRPCResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_buf_javamultiplefiles_enabled_v1_EnabledEmptyRPCResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n4buf/javamultiplefiles/enabled/v1/enabl" + - "ed_empty.proto\022 buf.javamultiplefiles.en" + - "abled.v1\"\016\n\014EnabledEmpty\"\030\n\026EnabledEmpty" + - "RPCRequest\"\031\n\027EnabledEmptyRPCResponse2\236\001" + - "\n\023EnabledEmptyService\022\206\001\n\017EnabledEmptyRP" + - "C\0228.buf.javamultiplefiles.enabled.v1.Ena" + - "bledEmptyRPCRequest\0329.buf.javamultiplefi" + - "les.enabled.v1.EnabledEmptyRPCResponseB\002" + - "P\001b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_buf_javamultiplefiles_enabled_v1_EnabledEmpty_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_buf_javamultiplefiles_enabled_v1_EnabledEmpty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_buf_javamultiplefiles_enabled_v1_EnabledEmpty_descriptor, - new java.lang.String[] { }); - internal_static_buf_javamultiplefiles_enabled_v1_EnabledEmptyRPCRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_buf_javamultiplefiles_enabled_v1_EnabledEmptyRPCRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_buf_javamultiplefiles_enabled_v1_EnabledEmptyRPCRequest_descriptor, - new java.lang.String[] { }); - internal_static_buf_javamultiplefiles_enabled_v1_EnabledEmptyRPCResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_buf_javamultiplefiles_enabled_v1_EnabledEmptyRPCResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_buf_javamultiplefiles_enabled_v1_EnabledEmptyRPCResponse_descriptor, - new java.lang.String[] { }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledEmptyRPCRequest.java b/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledEmptyRPCRequest.java deleted file mode 100644 index 61afc986..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledEmptyRPCRequest.java +++ /dev/null @@ -1,435 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: buf/javamultiplefiles/enabled/v1/enabled_empty.proto - -package buf.javamultiplefiles.enabled.v1; - -/** - * Protobuf type {@code buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCRequest} - */ -public final class EnabledEmptyRPCRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCRequest) - EnabledEmptyRPCRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use EnabledEmptyRPCRequest.newBuilder() to construct. - private EnabledEmptyRPCRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EnabledEmptyRPCRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EnabledEmptyRPCRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EnabledEmptyRPCRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return buf.javamultiplefiles.enabled.v1.EnabledEmptyOuterClass.internal_static_buf_javamultiplefiles_enabled_v1_EnabledEmptyRPCRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return buf.javamultiplefiles.enabled.v1.EnabledEmptyOuterClass.internal_static_buf_javamultiplefiles_enabled_v1_EnabledEmptyRPCRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCRequest.class, buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCRequest.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCRequest)) { - return super.equals(obj); - } - buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCRequest other = (buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCRequest) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCRequest) - buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return buf.javamultiplefiles.enabled.v1.EnabledEmptyOuterClass.internal_static_buf_javamultiplefiles_enabled_v1_EnabledEmptyRPCRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return buf.javamultiplefiles.enabled.v1.EnabledEmptyOuterClass.internal_static_buf_javamultiplefiles_enabled_v1_EnabledEmptyRPCRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCRequest.class, buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCRequest.Builder.class); - } - - // Construct using buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return buf.javamultiplefiles.enabled.v1.EnabledEmptyOuterClass.internal_static_buf_javamultiplefiles_enabled_v1_EnabledEmptyRPCRequest_descriptor; - } - - @java.lang.Override - public buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCRequest getDefaultInstanceForType() { - return buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCRequest.getDefaultInstance(); - } - - @java.lang.Override - public buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCRequest build() { - buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCRequest buildPartial() { - buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCRequest result = new buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCRequest(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCRequest) { - return mergeFrom((buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCRequest other) { - if (other == buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCRequest.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCRequest) - } - - // @@protoc_insertion_point(class_scope:buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCRequest) - private static final buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCRequest(); - } - - public static buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnabledEmptyRPCRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EnabledEmptyRPCRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledEmptyRPCRequestOrBuilder.java b/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledEmptyRPCRequestOrBuilder.java deleted file mode 100644 index 66b9b024..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledEmptyRPCRequestOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: buf/javamultiplefiles/enabled/v1/enabled_empty.proto - -package buf.javamultiplefiles.enabled.v1; - -public interface EnabledEmptyRPCRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCRequest) - com.google.protobuf.MessageOrBuilder { -} diff --git a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledEmptyRPCResponse.java b/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledEmptyRPCResponse.java deleted file mode 100644 index 73f234d8..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledEmptyRPCResponse.java +++ /dev/null @@ -1,435 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: buf/javamultiplefiles/enabled/v1/enabled_empty.proto - -package buf.javamultiplefiles.enabled.v1; - -/** - * Protobuf type {@code buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCResponse} - */ -public final class EnabledEmptyRPCResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCResponse) - EnabledEmptyRPCResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use EnabledEmptyRPCResponse.newBuilder() to construct. - private EnabledEmptyRPCResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EnabledEmptyRPCResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EnabledEmptyRPCResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EnabledEmptyRPCResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return buf.javamultiplefiles.enabled.v1.EnabledEmptyOuterClass.internal_static_buf_javamultiplefiles_enabled_v1_EnabledEmptyRPCResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return buf.javamultiplefiles.enabled.v1.EnabledEmptyOuterClass.internal_static_buf_javamultiplefiles_enabled_v1_EnabledEmptyRPCResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCResponse.class, buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCResponse.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCResponse)) { - return super.equals(obj); - } - buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCResponse other = (buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCResponse) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCResponse) - buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return buf.javamultiplefiles.enabled.v1.EnabledEmptyOuterClass.internal_static_buf_javamultiplefiles_enabled_v1_EnabledEmptyRPCResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return buf.javamultiplefiles.enabled.v1.EnabledEmptyOuterClass.internal_static_buf_javamultiplefiles_enabled_v1_EnabledEmptyRPCResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCResponse.class, buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCResponse.Builder.class); - } - - // Construct using buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return buf.javamultiplefiles.enabled.v1.EnabledEmptyOuterClass.internal_static_buf_javamultiplefiles_enabled_v1_EnabledEmptyRPCResponse_descriptor; - } - - @java.lang.Override - public buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCResponse getDefaultInstanceForType() { - return buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCResponse.getDefaultInstance(); - } - - @java.lang.Override - public buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCResponse build() { - buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCResponse buildPartial() { - buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCResponse result = new buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCResponse) { - return mergeFrom((buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCResponse other) { - if (other == buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCResponse.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCResponse) - } - - // @@protoc_insertion_point(class_scope:buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCResponse) - private static final buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCResponse(); - } - - public static buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnabledEmptyRPCResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EnabledEmptyRPCResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledEmptyRPCResponseOrBuilder.java b/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledEmptyRPCResponseOrBuilder.java deleted file mode 100644 index 4ce32dd7..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledEmptyRPCResponseOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: buf/javamultiplefiles/enabled/v1/enabled_empty.proto - -package buf.javamultiplefiles.enabled.v1; - -public interface EnabledEmptyRPCResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledEmptyServiceClient.kt b/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledEmptyServiceClient.kt deleted file mode 100644 index 5ad81e35..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledEmptyServiceClient.kt +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated by connect-kotlin. DO NOT EDIT. -// -// Source: buf/javamultiplefiles/enabled/v1/enabled_empty.proto -// -package buf.javamultiplefiles.enabled.v1 - -import build.buf.connect.Headers -import build.buf.connect.MethodSpec -import build.buf.connect.ProtocolClientInterface -import build.buf.connect.ResponseMessage -import build.buf.connect.http.Cancelable -import kotlin.Unit - -public class EnabledEmptyServiceClient( - private val client: ProtocolClientInterface, -) : EnabledEmptyServiceClientInterface { - public override suspend fun enabledEmptyRPC(request: EnabledEmptyRPCRequest, headers: Headers): - ResponseMessage = client.unary( - request, - headers, - MethodSpec( - "buf.javamultiplefiles.enabled.v1.EnabledEmptyService/EnabledEmptyRPC", - buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCRequest::class, - buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCResponse::class, - ), - ) - - - public override fun enabledEmptyRPC( - request: EnabledEmptyRPCRequest, - headers: Headers, - onResult: (ResponseMessage) -> Unit, - ): Cancelable = client.unary( - request, - headers, - MethodSpec( - "buf.javamultiplefiles.enabled.v1.EnabledEmptyService/EnabledEmptyRPC", - buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCRequest::class, - buf.javamultiplefiles.enabled.v1.EnabledEmptyRPCResponse::class, - ), - onResult - ) - -} diff --git a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledEmptyServiceClientInterface.kt b/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledEmptyServiceClientInterface.kt deleted file mode 100644 index 99e8fbfc..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledEmptyServiceClientInterface.kt +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated by connect-kotlin. DO NOT EDIT. -// -// Source: buf/javamultiplefiles/enabled/v1/enabled_empty.proto -// -package buf.javamultiplefiles.enabled.v1 - -import build.buf.connect.Headers -import build.buf.connect.ResponseMessage -import build.buf.connect.http.Cancelable -import kotlin.Unit - -public interface EnabledEmptyServiceClientInterface { - public suspend fun enabledEmptyRPC(request: EnabledEmptyRPCRequest, headers: Headers = - emptyMap()): ResponseMessage - - public fun enabledEmptyRPC( - request: EnabledEmptyRPCRequest, - headers: Headers = emptyMap(), - onResult: (ResponseMessage) -> Unit, - ): Cancelable -} diff --git a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledInnerMessageServiceClient.kt b/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledInnerMessageServiceClient.kt deleted file mode 100644 index 67cb3afa..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledInnerMessageServiceClient.kt +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated by connect-kotlin. DO NOT EDIT. -// -// Source: buf/javamultiplefiles/enabled/v1/enabled_nested.proto -// -package buf.javamultiplefiles.enabled.v1 - -import build.buf.connect.Headers -import build.buf.connect.MethodSpec -import build.buf.connect.ProtocolClientInterface -import build.buf.connect.ResponseMessage -import build.buf.connect.http.Cancelable -import kotlin.Unit - -public class EnabledInnerMessageServiceClient( - private val client: ProtocolClientInterface, -) : EnabledInnerMessageServiceClientInterface { - /** - * buf:lint:ignore RPC_REQUEST_STANDARD_NAME - * buf:lint:ignore RPC_RESPONSE_STANDARD_NAME - */ - public override suspend - fun enabledInnerMessageRPC(request: EnabledOuterMessageNested.InnerMessage, headers: Headers): - ResponseMessage = client.unary( - request, - headers, - MethodSpec( - "buf.javamultiplefiles.enabled.v1.EnabledInnerMessageService/EnabledInnerMessageRPC", - buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.InnerMessage::class, - buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.InnerMessage::class, - ), - ) - - - /** - * buf:lint:ignore RPC_REQUEST_STANDARD_NAME - * buf:lint:ignore RPC_RESPONSE_STANDARD_NAME - */ - public override fun enabledInnerMessageRPC( - request: EnabledOuterMessageNested.InnerMessage, - headers: Headers, - onResult: (ResponseMessage) -> Unit, - ): Cancelable = client.unary( - request, - headers, - MethodSpec( - "buf.javamultiplefiles.enabled.v1.EnabledInnerMessageService/EnabledInnerMessageRPC", - buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.InnerMessage::class, - buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.InnerMessage::class, - ), - onResult - ) - -} diff --git a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledInnerMessageServiceClientInterface.kt b/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledInnerMessageServiceClientInterface.kt deleted file mode 100644 index 29bd72cd..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledInnerMessageServiceClientInterface.kt +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated by connect-kotlin. DO NOT EDIT. -// -// Source: buf/javamultiplefiles/enabled/v1/enabled_nested.proto -// -package buf.javamultiplefiles.enabled.v1 - -import build.buf.connect.Headers -import build.buf.connect.ResponseMessage -import build.buf.connect.http.Cancelable -import kotlin.Unit - -public interface EnabledInnerMessageServiceClientInterface { - /** - * buf:lint:ignore RPC_REQUEST_STANDARD_NAME - * buf:lint:ignore RPC_RESPONSE_STANDARD_NAME - */ - public suspend fun enabledInnerMessageRPC(request: EnabledOuterMessageNested.InnerMessage, - headers: Headers = emptyMap()): ResponseMessage - - /** - * buf:lint:ignore RPC_REQUEST_STANDARD_NAME - * buf:lint:ignore RPC_RESPONSE_STANDARD_NAME - */ - public fun enabledInnerMessageRPC( - request: EnabledOuterMessageNested.InnerMessage, - headers: Headers = emptyMap(), - onResult: (ResponseMessage) -> Unit, - ): Cancelable -} diff --git a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledNested.java b/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledNested.java deleted file mode 100644 index f9caa7c4..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledNested.java +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: buf/javamultiplefiles/enabled/v1/enabled_nested.proto - -package buf.javamultiplefiles.enabled.v1; - -public final class EnabledNested { - private EnabledNested() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_javamultiplefiles_enabled_v1_EnabledOuterMessageNested_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_buf_javamultiplefiles_enabled_v1_EnabledOuterMessageNested_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_javamultiplefiles_enabled_v1_EnabledOuterMessageNested_InnerMessage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_buf_javamultiplefiles_enabled_v1_EnabledOuterMessageNested_InnerMessage_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n5buf/javamultiplefiles/enabled/v1/enabl" + - "ed_nested.proto\022 buf.javamultiplefiles.e" + - "nabled.v1\"+\n\031EnabledOuterMessageNested\032\016" + - "\n\014InnerMessage2\313\001\n\032EnabledInnerMessageSe" + - "rvice\022\254\001\n\026EnabledInnerMessageRPC\022H.buf.j" + - "avamultiplefiles.enabled.v1.EnabledOuter" + - "MessageNested.InnerMessage\032H.buf.javamul" + - "tiplefiles.enabled.v1.EnabledOuterMessag" + - "eNested.InnerMessageB\002P\001b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_buf_javamultiplefiles_enabled_v1_EnabledOuterMessageNested_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_buf_javamultiplefiles_enabled_v1_EnabledOuterMessageNested_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_buf_javamultiplefiles_enabled_v1_EnabledOuterMessageNested_descriptor, - new java.lang.String[] { }); - internal_static_buf_javamultiplefiles_enabled_v1_EnabledOuterMessageNested_InnerMessage_descriptor = - internal_static_buf_javamultiplefiles_enabled_v1_EnabledOuterMessageNested_descriptor.getNestedTypes().get(0); - internal_static_buf_javamultiplefiles_enabled_v1_EnabledOuterMessageNested_InnerMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_buf_javamultiplefiles_enabled_v1_EnabledOuterMessageNested_InnerMessage_descriptor, - new java.lang.String[] { }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledOuterMessageNested.java b/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledOuterMessageNested.java deleted file mode 100644 index c9b59ecf..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledOuterMessageNested.java +++ /dev/null @@ -1,855 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: buf/javamultiplefiles/enabled/v1/enabled_nested.proto - -package buf.javamultiplefiles.enabled.v1; - -/** - * Protobuf type {@code buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested} - */ -public final class EnabledOuterMessageNested extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested) - EnabledOuterMessageNestedOrBuilder { -private static final long serialVersionUID = 0L; - // Use EnabledOuterMessageNested.newBuilder() to construct. - private EnabledOuterMessageNested(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EnabledOuterMessageNested() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EnabledOuterMessageNested(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EnabledOuterMessageNested( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return buf.javamultiplefiles.enabled.v1.EnabledNested.internal_static_buf_javamultiplefiles_enabled_v1_EnabledOuterMessageNested_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return buf.javamultiplefiles.enabled.v1.EnabledNested.internal_static_buf_javamultiplefiles_enabled_v1_EnabledOuterMessageNested_fieldAccessorTable - .ensureFieldAccessorsInitialized( - buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.class, buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.Builder.class); - } - - public interface InnerMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.InnerMessage) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.InnerMessage} - */ - public static final class InnerMessage extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.InnerMessage) - InnerMessageOrBuilder { - private static final long serialVersionUID = 0L; - // Use InnerMessage.newBuilder() to construct. - private InnerMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private InnerMessage() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new InnerMessage(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private InnerMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return buf.javamultiplefiles.enabled.v1.EnabledNested.internal_static_buf_javamultiplefiles_enabled_v1_EnabledOuterMessageNested_InnerMessage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return buf.javamultiplefiles.enabled.v1.EnabledNested.internal_static_buf_javamultiplefiles_enabled_v1_EnabledOuterMessageNested_InnerMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.InnerMessage.class, buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.InnerMessage.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.InnerMessage)) { - return super.equals(obj); - } - buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.InnerMessage other = (buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.InnerMessage) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.InnerMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.InnerMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.InnerMessage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.InnerMessage parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.InnerMessage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.InnerMessage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.InnerMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.InnerMessage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.InnerMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.InnerMessage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.InnerMessage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.InnerMessage parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.InnerMessage prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.InnerMessage} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.InnerMessage) - buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.InnerMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return buf.javamultiplefiles.enabled.v1.EnabledNested.internal_static_buf_javamultiplefiles_enabled_v1_EnabledOuterMessageNested_InnerMessage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return buf.javamultiplefiles.enabled.v1.EnabledNested.internal_static_buf_javamultiplefiles_enabled_v1_EnabledOuterMessageNested_InnerMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.InnerMessage.class, buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.InnerMessage.Builder.class); - } - - // Construct using buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.InnerMessage.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return buf.javamultiplefiles.enabled.v1.EnabledNested.internal_static_buf_javamultiplefiles_enabled_v1_EnabledOuterMessageNested_InnerMessage_descriptor; - } - - @java.lang.Override - public buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.InnerMessage getDefaultInstanceForType() { - return buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.InnerMessage.getDefaultInstance(); - } - - @java.lang.Override - public buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.InnerMessage build() { - buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.InnerMessage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.InnerMessage buildPartial() { - buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.InnerMessage result = new buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.InnerMessage(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.InnerMessage) { - return mergeFrom((buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.InnerMessage)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.InnerMessage other) { - if (other == buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.InnerMessage.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.InnerMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.InnerMessage) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.InnerMessage) - } - - // @@protoc_insertion_point(class_scope:buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.InnerMessage) - private static final buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.InnerMessage DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.InnerMessage(); - } - - public static buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.InnerMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InnerMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InnerMessage(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.InnerMessage getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested)) { - return super.equals(obj); - } - buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested other = (buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested) - buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNestedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return buf.javamultiplefiles.enabled.v1.EnabledNested.internal_static_buf_javamultiplefiles_enabled_v1_EnabledOuterMessageNested_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return buf.javamultiplefiles.enabled.v1.EnabledNested.internal_static_buf_javamultiplefiles_enabled_v1_EnabledOuterMessageNested_fieldAccessorTable - .ensureFieldAccessorsInitialized( - buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.class, buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.Builder.class); - } - - // Construct using buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return buf.javamultiplefiles.enabled.v1.EnabledNested.internal_static_buf_javamultiplefiles_enabled_v1_EnabledOuterMessageNested_descriptor; - } - - @java.lang.Override - public buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested getDefaultInstanceForType() { - return buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.getDefaultInstance(); - } - - @java.lang.Override - public buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested build() { - buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested buildPartial() { - buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested result = new buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested) { - return mergeFrom((buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested other) { - if (other == buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested) - } - - // @@protoc_insertion_point(class_scope:buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested) - private static final buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested(); - } - - public static buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnabledOuterMessageNested parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EnabledOuterMessageNested(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledOuterMessageNestedOrBuilder.java b/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledOuterMessageNestedOrBuilder.java deleted file mode 100644 index 513399bb..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledOuterMessageNestedOrBuilder.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: buf/javamultiplefiles/enabled/v1/enabled_nested.proto - -package buf.javamultiplefiles.enabled.v1; - -public interface EnabledOuterMessageNestedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.javamultiplefiles.enabled.v1.EnabledOuterMessageNested) - com.google.protobuf.MessageOrBuilder { -} diff --git a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledRequest.java b/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledRequest.java deleted file mode 100644 index 56ce5c45..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledRequest.java +++ /dev/null @@ -1,573 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: buf/javamultiplefiles/enabled/v1/enabled.proto - -package buf.javamultiplefiles.enabled.v1; - -/** - * Protobuf type {@code buf.javamultiplefiles.enabled.v1.EnabledRequest} - */ -public final class EnabledRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:buf.javamultiplefiles.enabled.v1.EnabledRequest) - EnabledRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use EnabledRequest.newBuilder() to construct. - private EnabledRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EnabledRequest() { - sentence_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EnabledRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EnabledRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - sentence_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return buf.javamultiplefiles.enabled.v1.Enabled.internal_static_buf_javamultiplefiles_enabled_v1_EnabledRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return buf.javamultiplefiles.enabled.v1.Enabled.internal_static_buf_javamultiplefiles_enabled_v1_EnabledRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - buf.javamultiplefiles.enabled.v1.EnabledRequest.class, buf.javamultiplefiles.enabled.v1.EnabledRequest.Builder.class); - } - - public static final int SENTENCE_FIELD_NUMBER = 1; - private volatile java.lang.Object sentence_; - /** - * string sentence = 1 [json_name = "sentence"]; - * @return The sentence. - */ - @java.lang.Override - public java.lang.String getSentence() { - java.lang.Object ref = sentence_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sentence_ = s; - return s; - } - } - /** - * string sentence = 1 [json_name = "sentence"]; - * @return The bytes for sentence. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSentenceBytes() { - java.lang.Object ref = sentence_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sentence_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sentence_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sentence_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sentence_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sentence_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof buf.javamultiplefiles.enabled.v1.EnabledRequest)) { - return super.equals(obj); - } - buf.javamultiplefiles.enabled.v1.EnabledRequest other = (buf.javamultiplefiles.enabled.v1.EnabledRequest) obj; - - if (!getSentence() - .equals(other.getSentence())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SENTENCE_FIELD_NUMBER; - hash = (53 * hash) + getSentence().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static buf.javamultiplefiles.enabled.v1.EnabledRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.enabled.v1.EnabledRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.enabled.v1.EnabledRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.enabled.v1.EnabledRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.enabled.v1.EnabledRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.enabled.v1.EnabledRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.enabled.v1.EnabledRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.enabled.v1.EnabledRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static buf.javamultiplefiles.enabled.v1.EnabledRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.enabled.v1.EnabledRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static buf.javamultiplefiles.enabled.v1.EnabledRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.enabled.v1.EnabledRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(buf.javamultiplefiles.enabled.v1.EnabledRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code buf.javamultiplefiles.enabled.v1.EnabledRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:buf.javamultiplefiles.enabled.v1.EnabledRequest) - buf.javamultiplefiles.enabled.v1.EnabledRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return buf.javamultiplefiles.enabled.v1.Enabled.internal_static_buf_javamultiplefiles_enabled_v1_EnabledRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return buf.javamultiplefiles.enabled.v1.Enabled.internal_static_buf_javamultiplefiles_enabled_v1_EnabledRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - buf.javamultiplefiles.enabled.v1.EnabledRequest.class, buf.javamultiplefiles.enabled.v1.EnabledRequest.Builder.class); - } - - // Construct using buf.javamultiplefiles.enabled.v1.EnabledRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - sentence_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return buf.javamultiplefiles.enabled.v1.Enabled.internal_static_buf_javamultiplefiles_enabled_v1_EnabledRequest_descriptor; - } - - @java.lang.Override - public buf.javamultiplefiles.enabled.v1.EnabledRequest getDefaultInstanceForType() { - return buf.javamultiplefiles.enabled.v1.EnabledRequest.getDefaultInstance(); - } - - @java.lang.Override - public buf.javamultiplefiles.enabled.v1.EnabledRequest build() { - buf.javamultiplefiles.enabled.v1.EnabledRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public buf.javamultiplefiles.enabled.v1.EnabledRequest buildPartial() { - buf.javamultiplefiles.enabled.v1.EnabledRequest result = new buf.javamultiplefiles.enabled.v1.EnabledRequest(this); - result.sentence_ = sentence_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof buf.javamultiplefiles.enabled.v1.EnabledRequest) { - return mergeFrom((buf.javamultiplefiles.enabled.v1.EnabledRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(buf.javamultiplefiles.enabled.v1.EnabledRequest other) { - if (other == buf.javamultiplefiles.enabled.v1.EnabledRequest.getDefaultInstance()) return this; - if (!other.getSentence().isEmpty()) { - sentence_ = other.sentence_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - buf.javamultiplefiles.enabled.v1.EnabledRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (buf.javamultiplefiles.enabled.v1.EnabledRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object sentence_ = ""; - /** - * string sentence = 1 [json_name = "sentence"]; - * @return The sentence. - */ - public java.lang.String getSentence() { - java.lang.Object ref = sentence_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sentence_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string sentence = 1 [json_name = "sentence"]; - * @return The bytes for sentence. - */ - public com.google.protobuf.ByteString - getSentenceBytes() { - java.lang.Object ref = sentence_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sentence_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string sentence = 1 [json_name = "sentence"]; - * @param value The sentence to set. - * @return This builder for chaining. - */ - public Builder setSentence( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - sentence_ = value; - onChanged(); - return this; - } - /** - * string sentence = 1 [json_name = "sentence"]; - * @return This builder for chaining. - */ - public Builder clearSentence() { - - sentence_ = getDefaultInstance().getSentence(); - onChanged(); - return this; - } - /** - * string sentence = 1 [json_name = "sentence"]; - * @param value The bytes for sentence to set. - * @return This builder for chaining. - */ - public Builder setSentenceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - sentence_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:buf.javamultiplefiles.enabled.v1.EnabledRequest) - } - - // @@protoc_insertion_point(class_scope:buf.javamultiplefiles.enabled.v1.EnabledRequest) - private static final buf.javamultiplefiles.enabled.v1.EnabledRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new buf.javamultiplefiles.enabled.v1.EnabledRequest(); - } - - public static buf.javamultiplefiles.enabled.v1.EnabledRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnabledRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EnabledRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public buf.javamultiplefiles.enabled.v1.EnabledRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledRequestOrBuilder.java b/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledRequestOrBuilder.java deleted file mode 100644 index 32e7d30e..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledRequestOrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: buf/javamultiplefiles/enabled/v1/enabled.proto - -package buf.javamultiplefiles.enabled.v1; - -public interface EnabledRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.javamultiplefiles.enabled.v1.EnabledRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * string sentence = 1 [json_name = "sentence"]; - * @return The sentence. - */ - java.lang.String getSentence(); - /** - * string sentence = 1 [json_name = "sentence"]; - * @return The bytes for sentence. - */ - com.google.protobuf.ByteString - getSentenceBytes(); -} diff --git a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledResponse.java b/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledResponse.java deleted file mode 100644 index ff9366c1..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledResponse.java +++ /dev/null @@ -1,573 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: buf/javamultiplefiles/enabled/v1/enabled.proto - -package buf.javamultiplefiles.enabled.v1; - -/** - * Protobuf type {@code buf.javamultiplefiles.enabled.v1.EnabledResponse} - */ -public final class EnabledResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:buf.javamultiplefiles.enabled.v1.EnabledResponse) - EnabledResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use EnabledResponse.newBuilder() to construct. - private EnabledResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EnabledResponse() { - sentence_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EnabledResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EnabledResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - sentence_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return buf.javamultiplefiles.enabled.v1.Enabled.internal_static_buf_javamultiplefiles_enabled_v1_EnabledResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return buf.javamultiplefiles.enabled.v1.Enabled.internal_static_buf_javamultiplefiles_enabled_v1_EnabledResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - buf.javamultiplefiles.enabled.v1.EnabledResponse.class, buf.javamultiplefiles.enabled.v1.EnabledResponse.Builder.class); - } - - public static final int SENTENCE_FIELD_NUMBER = 1; - private volatile java.lang.Object sentence_; - /** - * string sentence = 1 [json_name = "sentence"]; - * @return The sentence. - */ - @java.lang.Override - public java.lang.String getSentence() { - java.lang.Object ref = sentence_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sentence_ = s; - return s; - } - } - /** - * string sentence = 1 [json_name = "sentence"]; - * @return The bytes for sentence. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSentenceBytes() { - java.lang.Object ref = sentence_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sentence_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sentence_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sentence_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sentence_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sentence_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof buf.javamultiplefiles.enabled.v1.EnabledResponse)) { - return super.equals(obj); - } - buf.javamultiplefiles.enabled.v1.EnabledResponse other = (buf.javamultiplefiles.enabled.v1.EnabledResponse) obj; - - if (!getSentence() - .equals(other.getSentence())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SENTENCE_FIELD_NUMBER; - hash = (53 * hash) + getSentence().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static buf.javamultiplefiles.enabled.v1.EnabledResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.enabled.v1.EnabledResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.enabled.v1.EnabledResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.enabled.v1.EnabledResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.enabled.v1.EnabledResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.enabled.v1.EnabledResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.enabled.v1.EnabledResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.enabled.v1.EnabledResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static buf.javamultiplefiles.enabled.v1.EnabledResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.enabled.v1.EnabledResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static buf.javamultiplefiles.enabled.v1.EnabledResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.enabled.v1.EnabledResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(buf.javamultiplefiles.enabled.v1.EnabledResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code buf.javamultiplefiles.enabled.v1.EnabledResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:buf.javamultiplefiles.enabled.v1.EnabledResponse) - buf.javamultiplefiles.enabled.v1.EnabledResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return buf.javamultiplefiles.enabled.v1.Enabled.internal_static_buf_javamultiplefiles_enabled_v1_EnabledResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return buf.javamultiplefiles.enabled.v1.Enabled.internal_static_buf_javamultiplefiles_enabled_v1_EnabledResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - buf.javamultiplefiles.enabled.v1.EnabledResponse.class, buf.javamultiplefiles.enabled.v1.EnabledResponse.Builder.class); - } - - // Construct using buf.javamultiplefiles.enabled.v1.EnabledResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - sentence_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return buf.javamultiplefiles.enabled.v1.Enabled.internal_static_buf_javamultiplefiles_enabled_v1_EnabledResponse_descriptor; - } - - @java.lang.Override - public buf.javamultiplefiles.enabled.v1.EnabledResponse getDefaultInstanceForType() { - return buf.javamultiplefiles.enabled.v1.EnabledResponse.getDefaultInstance(); - } - - @java.lang.Override - public buf.javamultiplefiles.enabled.v1.EnabledResponse build() { - buf.javamultiplefiles.enabled.v1.EnabledResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public buf.javamultiplefiles.enabled.v1.EnabledResponse buildPartial() { - buf.javamultiplefiles.enabled.v1.EnabledResponse result = new buf.javamultiplefiles.enabled.v1.EnabledResponse(this); - result.sentence_ = sentence_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof buf.javamultiplefiles.enabled.v1.EnabledResponse) { - return mergeFrom((buf.javamultiplefiles.enabled.v1.EnabledResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(buf.javamultiplefiles.enabled.v1.EnabledResponse other) { - if (other == buf.javamultiplefiles.enabled.v1.EnabledResponse.getDefaultInstance()) return this; - if (!other.getSentence().isEmpty()) { - sentence_ = other.sentence_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - buf.javamultiplefiles.enabled.v1.EnabledResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (buf.javamultiplefiles.enabled.v1.EnabledResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object sentence_ = ""; - /** - * string sentence = 1 [json_name = "sentence"]; - * @return The sentence. - */ - public java.lang.String getSentence() { - java.lang.Object ref = sentence_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sentence_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string sentence = 1 [json_name = "sentence"]; - * @return The bytes for sentence. - */ - public com.google.protobuf.ByteString - getSentenceBytes() { - java.lang.Object ref = sentence_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sentence_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string sentence = 1 [json_name = "sentence"]; - * @param value The sentence to set. - * @return This builder for chaining. - */ - public Builder setSentence( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - sentence_ = value; - onChanged(); - return this; - } - /** - * string sentence = 1 [json_name = "sentence"]; - * @return This builder for chaining. - */ - public Builder clearSentence() { - - sentence_ = getDefaultInstance().getSentence(); - onChanged(); - return this; - } - /** - * string sentence = 1 [json_name = "sentence"]; - * @param value The bytes for sentence to set. - * @return This builder for chaining. - */ - public Builder setSentenceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - sentence_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:buf.javamultiplefiles.enabled.v1.EnabledResponse) - } - - // @@protoc_insertion_point(class_scope:buf.javamultiplefiles.enabled.v1.EnabledResponse) - private static final buf.javamultiplefiles.enabled.v1.EnabledResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new buf.javamultiplefiles.enabled.v1.EnabledResponse(); - } - - public static buf.javamultiplefiles.enabled.v1.EnabledResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnabledResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EnabledResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public buf.javamultiplefiles.enabled.v1.EnabledResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledResponseOrBuilder.java b/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledResponseOrBuilder.java deleted file mode 100644 index 09e39747..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledResponseOrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: buf/javamultiplefiles/enabled/v1/enabled.proto - -package buf.javamultiplefiles.enabled.v1; - -public interface EnabledResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.javamultiplefiles.enabled.v1.EnabledResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * string sentence = 1 [json_name = "sentence"]; - * @return The sentence. - */ - java.lang.String getSentence(); - /** - * string sentence = 1 [json_name = "sentence"]; - * @return The bytes for sentence. - */ - com.google.protobuf.ByteString - getSentenceBytes(); -} diff --git a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledServiceClient.kt b/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledServiceClient.kt deleted file mode 100644 index 4a79fca3..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledServiceClient.kt +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated by connect-kotlin. DO NOT EDIT. -// -// Source: buf/javamultiplefiles/enabled/v1/enabled.proto -// -package buf.javamultiplefiles.enabled.v1 - -import build.buf.connect.Headers -import build.buf.connect.MethodSpec -import build.buf.connect.ProtocolClientInterface -import build.buf.connect.ResponseMessage -import build.buf.connect.http.Cancelable -import kotlin.Unit - -public class EnabledServiceClient( - private val client: ProtocolClientInterface, -) : EnabledServiceClientInterface { - public override suspend fun enabled(request: EnabledRequest, headers: Headers): - ResponseMessage = client.unary( - request, - headers, - MethodSpec( - "buf.javamultiplefiles.enabled.v1.EnabledService/Enabled", - buf.javamultiplefiles.enabled.v1.EnabledRequest::class, - buf.javamultiplefiles.enabled.v1.EnabledResponse::class, - ), - ) - - - public override fun enabled( - request: EnabledRequest, - headers: Headers, - onResult: (ResponseMessage) -> Unit, - ): Cancelable = client.unary( - request, - headers, - MethodSpec( - "buf.javamultiplefiles.enabled.v1.EnabledService/Enabled", - buf.javamultiplefiles.enabled.v1.EnabledRequest::class, - buf.javamultiplefiles.enabled.v1.EnabledResponse::class, - ), - onResult - ) - -} diff --git a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledServiceClientInterface.kt b/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledServiceClientInterface.kt deleted file mode 100644 index 3c68bf60..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/enabled/v1/EnabledServiceClientInterface.kt +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated by connect-kotlin. DO NOT EDIT. -// -// Source: buf/javamultiplefiles/enabled/v1/enabled.proto -// -package buf.javamultiplefiles.enabled.v1 - -import build.buf.connect.Headers -import build.buf.connect.ResponseMessage -import build.buf.connect.http.Cancelable -import kotlin.Unit - -public interface EnabledServiceClientInterface { - public suspend fun enabled(request: EnabledRequest, headers: Headers = emptyMap()): - ResponseMessage - - public fun enabled( - request: EnabledRequest, - headers: Headers = emptyMap(), - onResult: (ResponseMessage) -> Unit, - ): Cancelable -} diff --git a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/unspecified/v1/EnabledNested.java b/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/unspecified/v1/EnabledNested.java deleted file mode 100644 index 616e543f..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/unspecified/v1/EnabledNested.java +++ /dev/null @@ -1,920 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: buf/javamultiplefiles/unspecified/v1/enabled_nested.proto - -package buf.javamultiplefiles.unspecified.v1; - -public final class EnabledNested { - private EnabledNested() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface UnspecifiedOuterMessageNestedOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.javamultiplefiles.unspecified.v1.UnspecifiedOuterMessageNested) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code buf.javamultiplefiles.unspecified.v1.UnspecifiedOuterMessageNested} - */ - public static final class UnspecifiedOuterMessageNested extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:buf.javamultiplefiles.unspecified.v1.UnspecifiedOuterMessageNested) - UnspecifiedOuterMessageNestedOrBuilder { - private static final long serialVersionUID = 0L; - // Use UnspecifiedOuterMessageNested.newBuilder() to construct. - private UnspecifiedOuterMessageNested(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UnspecifiedOuterMessageNested() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UnspecifiedOuterMessageNested(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private UnspecifiedOuterMessageNested( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return buf.javamultiplefiles.unspecified.v1.EnabledNested.internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedOuterMessageNested_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return buf.javamultiplefiles.unspecified.v1.EnabledNested.internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedOuterMessageNested_fieldAccessorTable - .ensureFieldAccessorsInitialized( - buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested.class, buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested.Builder.class); - } - - public interface InnerMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.javamultiplefiles.unspecified.v1.UnspecifiedOuterMessageNested.InnerMessage) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code buf.javamultiplefiles.unspecified.v1.UnspecifiedOuterMessageNested.InnerMessage} - */ - public static final class InnerMessage extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:buf.javamultiplefiles.unspecified.v1.UnspecifiedOuterMessageNested.InnerMessage) - InnerMessageOrBuilder { - private static final long serialVersionUID = 0L; - // Use InnerMessage.newBuilder() to construct. - private InnerMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private InnerMessage() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new InnerMessage(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private InnerMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return buf.javamultiplefiles.unspecified.v1.EnabledNested.internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedOuterMessageNested_InnerMessage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return buf.javamultiplefiles.unspecified.v1.EnabledNested.internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedOuterMessageNested_InnerMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested.InnerMessage.class, buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested.InnerMessage.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested.InnerMessage)) { - return super.equals(obj); - } - buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested.InnerMessage other = (buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested.InnerMessage) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested.InnerMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested.InnerMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested.InnerMessage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested.InnerMessage parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested.InnerMessage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested.InnerMessage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested.InnerMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested.InnerMessage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested.InnerMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested.InnerMessage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested.InnerMessage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested.InnerMessage parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested.InnerMessage prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code buf.javamultiplefiles.unspecified.v1.UnspecifiedOuterMessageNested.InnerMessage} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:buf.javamultiplefiles.unspecified.v1.UnspecifiedOuterMessageNested.InnerMessage) - buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested.InnerMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return buf.javamultiplefiles.unspecified.v1.EnabledNested.internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedOuterMessageNested_InnerMessage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return buf.javamultiplefiles.unspecified.v1.EnabledNested.internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedOuterMessageNested_InnerMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested.InnerMessage.class, buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested.InnerMessage.Builder.class); - } - - // Construct using buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested.InnerMessage.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return buf.javamultiplefiles.unspecified.v1.EnabledNested.internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedOuterMessageNested_InnerMessage_descriptor; - } - - @java.lang.Override - public buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested.InnerMessage getDefaultInstanceForType() { - return buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested.InnerMessage.getDefaultInstance(); - } - - @java.lang.Override - public buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested.InnerMessage build() { - buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested.InnerMessage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested.InnerMessage buildPartial() { - buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested.InnerMessage result = new buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested.InnerMessage(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested.InnerMessage) { - return mergeFrom((buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested.InnerMessage)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested.InnerMessage other) { - if (other == buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested.InnerMessage.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested.InnerMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested.InnerMessage) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:buf.javamultiplefiles.unspecified.v1.UnspecifiedOuterMessageNested.InnerMessage) - } - - // @@protoc_insertion_point(class_scope:buf.javamultiplefiles.unspecified.v1.UnspecifiedOuterMessageNested.InnerMessage) - private static final buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested.InnerMessage DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested.InnerMessage(); - } - - public static buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested.InnerMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InnerMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InnerMessage(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested.InnerMessage getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested)) { - return super.equals(obj); - } - buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested other = (buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code buf.javamultiplefiles.unspecified.v1.UnspecifiedOuterMessageNested} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:buf.javamultiplefiles.unspecified.v1.UnspecifiedOuterMessageNested) - buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNestedOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return buf.javamultiplefiles.unspecified.v1.EnabledNested.internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedOuterMessageNested_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return buf.javamultiplefiles.unspecified.v1.EnabledNested.internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedOuterMessageNested_fieldAccessorTable - .ensureFieldAccessorsInitialized( - buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested.class, buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested.Builder.class); - } - - // Construct using buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return buf.javamultiplefiles.unspecified.v1.EnabledNested.internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedOuterMessageNested_descriptor; - } - - @java.lang.Override - public buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested getDefaultInstanceForType() { - return buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested.getDefaultInstance(); - } - - @java.lang.Override - public buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested build() { - buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested buildPartial() { - buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested result = new buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested) { - return mergeFrom((buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested other) { - if (other == buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:buf.javamultiplefiles.unspecified.v1.UnspecifiedOuterMessageNested) - } - - // @@protoc_insertion_point(class_scope:buf.javamultiplefiles.unspecified.v1.UnspecifiedOuterMessageNested) - private static final buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested(); - } - - public static buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UnspecifiedOuterMessageNested parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UnspecifiedOuterMessageNested(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedOuterMessageNested_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedOuterMessageNested_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedOuterMessageNested_InnerMessage_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedOuterMessageNested_InnerMessage_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n9buf/javamultiplefiles/unspecified/v1/e" + - "nabled_nested.proto\022$buf.javamultiplefil" + - "es.unspecified.v1\"/\n\035UnspecifiedOuterMes" + - "sageNested\032\016\n\014InnerMessage2\343\001\n\036Unspecifi" + - "edInnerMessageService\022\300\001\n\032UnspecifiedInn" + - "erMessageRPC\022P.buf.javamultiplefiles.uns" + - "pecified.v1.UnspecifiedOuterMessageNeste" + - "d.InnerMessage\032P.buf.javamultiplefiles.u" + - "nspecified.v1.UnspecifiedOuterMessageNes" + - "ted.InnerMessageb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedOuterMessageNested_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedOuterMessageNested_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedOuterMessageNested_descriptor, - new java.lang.String[] { }); - internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedOuterMessageNested_InnerMessage_descriptor = - internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedOuterMessageNested_descriptor.getNestedTypes().get(0); - internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedOuterMessageNested_InnerMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedOuterMessageNested_InnerMessage_descriptor, - new java.lang.String[] { }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/unspecified/v1/Unspecified.java b/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/unspecified/v1/Unspecified.java deleted file mode 100644 index e6264110..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/unspecified/v1/Unspecified.java +++ /dev/null @@ -1,1220 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: buf/javamultiplefiles/unspecified/v1/unspecified.proto - -package buf.javamultiplefiles.unspecified.v1; - -public final class Unspecified { - private Unspecified() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface UnspecifiedRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.javamultiplefiles.unspecified.v1.UnspecifiedRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * string sentence = 1 [json_name = "sentence"]; - * @return The sentence. - */ - java.lang.String getSentence(); - /** - * string sentence = 1 [json_name = "sentence"]; - * @return The bytes for sentence. - */ - com.google.protobuf.ByteString - getSentenceBytes(); - } - /** - * Protobuf type {@code buf.javamultiplefiles.unspecified.v1.UnspecifiedRequest} - */ - public static final class UnspecifiedRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:buf.javamultiplefiles.unspecified.v1.UnspecifiedRequest) - UnspecifiedRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use UnspecifiedRequest.newBuilder() to construct. - private UnspecifiedRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UnspecifiedRequest() { - sentence_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UnspecifiedRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private UnspecifiedRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - sentence_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return buf.javamultiplefiles.unspecified.v1.Unspecified.internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return buf.javamultiplefiles.unspecified.v1.Unspecified.internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedRequest.class, buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedRequest.Builder.class); - } - - public static final int SENTENCE_FIELD_NUMBER = 1; - private volatile java.lang.Object sentence_; - /** - * string sentence = 1 [json_name = "sentence"]; - * @return The sentence. - */ - @java.lang.Override - public java.lang.String getSentence() { - java.lang.Object ref = sentence_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sentence_ = s; - return s; - } - } - /** - * string sentence = 1 [json_name = "sentence"]; - * @return The bytes for sentence. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSentenceBytes() { - java.lang.Object ref = sentence_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sentence_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sentence_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sentence_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sentence_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sentence_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedRequest)) { - return super.equals(obj); - } - buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedRequest other = (buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedRequest) obj; - - if (!getSentence() - .equals(other.getSentence())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SENTENCE_FIELD_NUMBER; - hash = (53 * hash) + getSentence().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code buf.javamultiplefiles.unspecified.v1.UnspecifiedRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:buf.javamultiplefiles.unspecified.v1.UnspecifiedRequest) - buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return buf.javamultiplefiles.unspecified.v1.Unspecified.internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return buf.javamultiplefiles.unspecified.v1.Unspecified.internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedRequest.class, buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedRequest.Builder.class); - } - - // Construct using buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - sentence_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return buf.javamultiplefiles.unspecified.v1.Unspecified.internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedRequest_descriptor; - } - - @java.lang.Override - public buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedRequest getDefaultInstanceForType() { - return buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedRequest.getDefaultInstance(); - } - - @java.lang.Override - public buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedRequest build() { - buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedRequest buildPartial() { - buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedRequest result = new buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedRequest(this); - result.sentence_ = sentence_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedRequest) { - return mergeFrom((buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedRequest other) { - if (other == buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedRequest.getDefaultInstance()) return this; - if (!other.getSentence().isEmpty()) { - sentence_ = other.sentence_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object sentence_ = ""; - /** - * string sentence = 1 [json_name = "sentence"]; - * @return The sentence. - */ - public java.lang.String getSentence() { - java.lang.Object ref = sentence_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sentence_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string sentence = 1 [json_name = "sentence"]; - * @return The bytes for sentence. - */ - public com.google.protobuf.ByteString - getSentenceBytes() { - java.lang.Object ref = sentence_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sentence_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string sentence = 1 [json_name = "sentence"]; - * @param value The sentence to set. - * @return This builder for chaining. - */ - public Builder setSentence( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - sentence_ = value; - onChanged(); - return this; - } - /** - * string sentence = 1 [json_name = "sentence"]; - * @return This builder for chaining. - */ - public Builder clearSentence() { - - sentence_ = getDefaultInstance().getSentence(); - onChanged(); - return this; - } - /** - * string sentence = 1 [json_name = "sentence"]; - * @param value The bytes for sentence to set. - * @return This builder for chaining. - */ - public Builder setSentenceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - sentence_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:buf.javamultiplefiles.unspecified.v1.UnspecifiedRequest) - } - - // @@protoc_insertion_point(class_scope:buf.javamultiplefiles.unspecified.v1.UnspecifiedRequest) - private static final buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedRequest(); - } - - public static buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UnspecifiedRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UnspecifiedRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface UnspecifiedResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.javamultiplefiles.unspecified.v1.UnspecifiedResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * string sentence = 1 [json_name = "sentence"]; - * @return The sentence. - */ - java.lang.String getSentence(); - /** - * string sentence = 1 [json_name = "sentence"]; - * @return The bytes for sentence. - */ - com.google.protobuf.ByteString - getSentenceBytes(); - } - /** - * Protobuf type {@code buf.javamultiplefiles.unspecified.v1.UnspecifiedResponse} - */ - public static final class UnspecifiedResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:buf.javamultiplefiles.unspecified.v1.UnspecifiedResponse) - UnspecifiedResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use UnspecifiedResponse.newBuilder() to construct. - private UnspecifiedResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UnspecifiedResponse() { - sentence_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UnspecifiedResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private UnspecifiedResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - sentence_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return buf.javamultiplefiles.unspecified.v1.Unspecified.internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return buf.javamultiplefiles.unspecified.v1.Unspecified.internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedResponse.class, buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedResponse.Builder.class); - } - - public static final int SENTENCE_FIELD_NUMBER = 1; - private volatile java.lang.Object sentence_; - /** - * string sentence = 1 [json_name = "sentence"]; - * @return The sentence. - */ - @java.lang.Override - public java.lang.String getSentence() { - java.lang.Object ref = sentence_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sentence_ = s; - return s; - } - } - /** - * string sentence = 1 [json_name = "sentence"]; - * @return The bytes for sentence. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSentenceBytes() { - java.lang.Object ref = sentence_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sentence_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sentence_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sentence_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sentence_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sentence_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedResponse)) { - return super.equals(obj); - } - buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedResponse other = (buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedResponse) obj; - - if (!getSentence() - .equals(other.getSentence())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SENTENCE_FIELD_NUMBER; - hash = (53 * hash) + getSentence().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code buf.javamultiplefiles.unspecified.v1.UnspecifiedResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:buf.javamultiplefiles.unspecified.v1.UnspecifiedResponse) - buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return buf.javamultiplefiles.unspecified.v1.Unspecified.internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return buf.javamultiplefiles.unspecified.v1.Unspecified.internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedResponse.class, buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedResponse.Builder.class); - } - - // Construct using buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - sentence_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return buf.javamultiplefiles.unspecified.v1.Unspecified.internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedResponse_descriptor; - } - - @java.lang.Override - public buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedResponse getDefaultInstanceForType() { - return buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedResponse.getDefaultInstance(); - } - - @java.lang.Override - public buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedResponse build() { - buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedResponse buildPartial() { - buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedResponse result = new buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedResponse(this); - result.sentence_ = sentence_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedResponse) { - return mergeFrom((buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedResponse other) { - if (other == buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedResponse.getDefaultInstance()) return this; - if (!other.getSentence().isEmpty()) { - sentence_ = other.sentence_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object sentence_ = ""; - /** - * string sentence = 1 [json_name = "sentence"]; - * @return The sentence. - */ - public java.lang.String getSentence() { - java.lang.Object ref = sentence_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sentence_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string sentence = 1 [json_name = "sentence"]; - * @return The bytes for sentence. - */ - public com.google.protobuf.ByteString - getSentenceBytes() { - java.lang.Object ref = sentence_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sentence_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string sentence = 1 [json_name = "sentence"]; - * @param value The sentence to set. - * @return This builder for chaining. - */ - public Builder setSentence( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - sentence_ = value; - onChanged(); - return this; - } - /** - * string sentence = 1 [json_name = "sentence"]; - * @return This builder for chaining. - */ - public Builder clearSentence() { - - sentence_ = getDefaultInstance().getSentence(); - onChanged(); - return this; - } - /** - * string sentence = 1 [json_name = "sentence"]; - * @param value The bytes for sentence to set. - * @return This builder for chaining. - */ - public Builder setSentenceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - sentence_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:buf.javamultiplefiles.unspecified.v1.UnspecifiedResponse) - } - - // @@protoc_insertion_point(class_scope:buf.javamultiplefiles.unspecified.v1.UnspecifiedResponse) - private static final buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedResponse(); - } - - public static buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UnspecifiedResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UnspecifiedResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n6buf/javamultiplefiles/unspecified/v1/u" + - "nspecified.proto\022$buf.javamultiplefiles." + - "unspecified.v1\"0\n\022UnspecifiedRequest\022\032\n\010" + - "sentence\030\001 \001(\tR\010sentence\"1\n\023UnspecifiedR" + - "esponse\022\032\n\010sentence\030\001 \001(\tR\010sentence2\233\001\n\022" + - "UnspecifiedService\022\204\001\n\013Unspecified\0228.buf" + - ".javamultiplefiles.unspecified.v1.Unspec" + - "ifiedRequest\0329.buf.javamultiplefiles.uns" + - "pecified.v1.UnspecifiedResponse\"\000b\006proto" + - "3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedRequest_descriptor, - new java.lang.String[] { "Sentence", }); - internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedResponse_descriptor, - new java.lang.String[] { "Sentence", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/unspecified/v1/UnspecifiedEmptyOuterClass.java b/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/unspecified/v1/UnspecifiedEmptyOuterClass.java deleted file mode 100644 index cdcc8f49..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/unspecified/v1/UnspecifiedEmptyOuterClass.java +++ /dev/null @@ -1,1351 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: buf/javamultiplefiles/unspecified/v1/unspecified_empty.proto - -package buf.javamultiplefiles.unspecified.v1; - -public final class UnspecifiedEmptyOuterClass { - private UnspecifiedEmptyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface UnspecifiedEmptyOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.javamultiplefiles.unspecified.v1.UnspecifiedEmpty) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code buf.javamultiplefiles.unspecified.v1.UnspecifiedEmpty} - */ - public static final class UnspecifiedEmpty extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:buf.javamultiplefiles.unspecified.v1.UnspecifiedEmpty) - UnspecifiedEmptyOrBuilder { - private static final long serialVersionUID = 0L; - // Use UnspecifiedEmpty.newBuilder() to construct. - private UnspecifiedEmpty(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UnspecifiedEmpty() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UnspecifiedEmpty(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private UnspecifiedEmpty( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmpty.class, buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmpty.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmpty)) { - return super.equals(obj); - } - buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmpty other = (buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmpty) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmpty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmpty parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmpty parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmpty parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmpty parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmpty parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmpty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmpty parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmpty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmpty parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmpty parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmpty parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmpty prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code buf.javamultiplefiles.unspecified.v1.UnspecifiedEmpty} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:buf.javamultiplefiles.unspecified.v1.UnspecifiedEmpty) - buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedEmpty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedEmpty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmpty.class, buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmpty.Builder.class); - } - - // Construct using buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmpty.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedEmpty_descriptor; - } - - @java.lang.Override - public buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmpty getDefaultInstanceForType() { - return buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmpty.getDefaultInstance(); - } - - @java.lang.Override - public buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmpty build() { - buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmpty result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmpty buildPartial() { - buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmpty result = new buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmpty(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmpty) { - return mergeFrom((buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmpty)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmpty other) { - if (other == buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmpty.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmpty parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmpty) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:buf.javamultiplefiles.unspecified.v1.UnspecifiedEmpty) - } - - // @@protoc_insertion_point(class_scope:buf.javamultiplefiles.unspecified.v1.UnspecifiedEmpty) - private static final buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmpty DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmpty(); - } - - public static buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmpty getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UnspecifiedEmpty parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UnspecifiedEmpty(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmpty getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface UnspecifiedEmptyRPCRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyRPCRequest) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyRPCRequest} - */ - public static final class UnspecifiedEmptyRPCRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyRPCRequest) - UnspecifiedEmptyRPCRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use UnspecifiedEmptyRPCRequest.newBuilder() to construct. - private UnspecifiedEmptyRPCRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UnspecifiedEmptyRPCRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UnspecifiedEmptyRPCRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private UnspecifiedEmptyRPCRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedEmptyRPCRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedEmptyRPCRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCRequest.class, buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCRequest.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCRequest)) { - return super.equals(obj); - } - buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCRequest other = (buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCRequest) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyRPCRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyRPCRequest) - buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedEmptyRPCRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedEmptyRPCRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCRequest.class, buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCRequest.Builder.class); - } - - // Construct using buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedEmptyRPCRequest_descriptor; - } - - @java.lang.Override - public buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCRequest getDefaultInstanceForType() { - return buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCRequest.getDefaultInstance(); - } - - @java.lang.Override - public buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCRequest build() { - buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCRequest buildPartial() { - buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCRequest result = new buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCRequest(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCRequest) { - return mergeFrom((buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCRequest other) { - if (other == buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCRequest.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyRPCRequest) - } - - // @@protoc_insertion_point(class_scope:buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyRPCRequest) - private static final buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCRequest(); - } - - public static buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UnspecifiedEmptyRPCRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UnspecifiedEmptyRPCRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface UnspecifiedEmptyRPCResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyRPCResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyRPCResponse} - */ - public static final class UnspecifiedEmptyRPCResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyRPCResponse) - UnspecifiedEmptyRPCResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use UnspecifiedEmptyRPCResponse.newBuilder() to construct. - private UnspecifiedEmptyRPCResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UnspecifiedEmptyRPCResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UnspecifiedEmptyRPCResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private UnspecifiedEmptyRPCResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedEmptyRPCResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedEmptyRPCResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCResponse.class, buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCResponse.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCResponse)) { - return super.equals(obj); - } - buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCResponse other = (buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCResponse) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyRPCResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyRPCResponse) - buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedEmptyRPCResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedEmptyRPCResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCResponse.class, buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCResponse.Builder.class); - } - - // Construct using buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedEmptyRPCResponse_descriptor; - } - - @java.lang.Override - public buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCResponse getDefaultInstanceForType() { - return buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCResponse.getDefaultInstance(); - } - - @java.lang.Override - public buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCResponse build() { - buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCResponse buildPartial() { - buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCResponse result = new buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCResponse) { - return mergeFrom((buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCResponse other) { - if (other == buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCResponse.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyRPCResponse) - } - - // @@protoc_insertion_point(class_scope:buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyRPCResponse) - private static final buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCResponse(); - } - - public static buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UnspecifiedEmptyRPCResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UnspecifiedEmptyRPCResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedEmpty_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedEmpty_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedEmptyRPCRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedEmptyRPCRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedEmptyRPCResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_buf_javamultiplefiles_unspecified_v1_UnspecifiedEmptyRPCResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n = - client.unary( - request, - headers, - MethodSpec( - "buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyService/UnspecifiedEmptyRPC", - buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCRequest::class, - buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCResponse::class, - ), - ) - - - public override fun unspecifiedEmptyRPC( - request: UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCRequest, - headers: Headers, - onResult: (ResponseMessage) -> Unit, - ): Cancelable = client.unary( - request, - headers, - MethodSpec( - "buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyService/UnspecifiedEmptyRPC", - buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCRequest::class, - buf.javamultiplefiles.unspecified.v1.UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCResponse::class, - ), - onResult - ) - -} diff --git a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/unspecified/v1/UnspecifiedEmptyServiceClientInterface.kt b/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/unspecified/v1/UnspecifiedEmptyServiceClientInterface.kt deleted file mode 100644 index 879bc618..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/unspecified/v1/UnspecifiedEmptyServiceClientInterface.kt +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated by connect-kotlin. DO NOT EDIT. -// -// Source: buf/javamultiplefiles/unspecified/v1/unspecified_empty.proto -// -package buf.javamultiplefiles.unspecified.v1 - -import build.buf.connect.Headers -import build.buf.connect.ResponseMessage -import build.buf.connect.http.Cancelable -import kotlin.Unit - -public interface UnspecifiedEmptyServiceClientInterface { - public suspend - fun unspecifiedEmptyRPC(request: UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCRequest, - headers: Headers = emptyMap()): - ResponseMessage - - public fun unspecifiedEmptyRPC( - request: UnspecifiedEmptyOuterClass.UnspecifiedEmptyRPCRequest, - headers: Headers = emptyMap(), - onResult: (ResponseMessage) -> Unit, - ): Cancelable -} diff --git a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/unspecified/v1/UnspecifiedInnerMessageServiceClient.kt b/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/unspecified/v1/UnspecifiedInnerMessageServiceClient.kt deleted file mode 100644 index 6325e3ec..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/unspecified/v1/UnspecifiedInnerMessageServiceClient.kt +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated by connect-kotlin. DO NOT EDIT. -// -// Source: buf/javamultiplefiles/unspecified/v1/enabled_nested.proto -// -package buf.javamultiplefiles.unspecified.v1 - -import build.buf.connect.Headers -import build.buf.connect.MethodSpec -import build.buf.connect.ProtocolClientInterface -import build.buf.connect.ResponseMessage -import build.buf.connect.http.Cancelable -import kotlin.Unit - -public class UnspecifiedInnerMessageServiceClient( - private val client: ProtocolClientInterface, -) : UnspecifiedInnerMessageServiceClientInterface { - /** - * buf:lint:ignore RPC_REQUEST_STANDARD_NAME - * buf:lint:ignore RPC_RESPONSE_STANDARD_NAME - */ - public override suspend - fun unspecifiedInnerMessageRPC(request: EnabledNested.UnspecifiedOuterMessageNested.InnerMessage, - headers: Headers): ResponseMessage = - client.unary( - request, - headers, - MethodSpec( - "buf.javamultiplefiles.unspecified.v1.UnspecifiedInnerMessageService/UnspecifiedInnerMessageRPC", - buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested.InnerMessage::class, - buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested.InnerMessage::class, - ), - ) - - - /** - * buf:lint:ignore RPC_REQUEST_STANDARD_NAME - * buf:lint:ignore RPC_RESPONSE_STANDARD_NAME - */ - public override fun unspecifiedInnerMessageRPC( - request: EnabledNested.UnspecifiedOuterMessageNested.InnerMessage, - headers: Headers, - onResult: (ResponseMessage) -> Unit, - ): Cancelable = client.unary( - request, - headers, - MethodSpec( - "buf.javamultiplefiles.unspecified.v1.UnspecifiedInnerMessageService/UnspecifiedInnerMessageRPC", - buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested.InnerMessage::class, - buf.javamultiplefiles.unspecified.v1.EnabledNested.UnspecifiedOuterMessageNested.InnerMessage::class, - ), - onResult - ) - -} diff --git a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/unspecified/v1/UnspecifiedInnerMessageServiceClientInterface.kt b/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/unspecified/v1/UnspecifiedInnerMessageServiceClientInterface.kt deleted file mode 100644 index 8f571793..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/unspecified/v1/UnspecifiedInnerMessageServiceClientInterface.kt +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated by connect-kotlin. DO NOT EDIT. -// -// Source: buf/javamultiplefiles/unspecified/v1/enabled_nested.proto -// -package buf.javamultiplefiles.unspecified.v1 - -import build.buf.connect.Headers -import build.buf.connect.ResponseMessage -import build.buf.connect.http.Cancelable -import kotlin.Unit - -public interface UnspecifiedInnerMessageServiceClientInterface { - /** - * buf:lint:ignore RPC_REQUEST_STANDARD_NAME - * buf:lint:ignore RPC_RESPONSE_STANDARD_NAME - */ - public suspend - fun unspecifiedInnerMessageRPC(request: EnabledNested.UnspecifiedOuterMessageNested.InnerMessage, - headers: Headers = emptyMap()): - ResponseMessage - - /** - * buf:lint:ignore RPC_REQUEST_STANDARD_NAME - * buf:lint:ignore RPC_RESPONSE_STANDARD_NAME - */ - public fun unspecifiedInnerMessageRPC( - request: EnabledNested.UnspecifiedOuterMessageNested.InnerMessage, - headers: Headers = emptyMap(), - onResult: (ResponseMessage) -> Unit, - ): Cancelable -} diff --git a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/unspecified/v1/UnspecifiedServiceClient.kt b/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/unspecified/v1/UnspecifiedServiceClient.kt deleted file mode 100644 index 32d6cc6f..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/unspecified/v1/UnspecifiedServiceClient.kt +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated by connect-kotlin. DO NOT EDIT. -// -// Source: buf/javamultiplefiles/unspecified/v1/unspecified.proto -// -package buf.javamultiplefiles.unspecified.v1 - -import build.buf.connect.Headers -import build.buf.connect.MethodSpec -import build.buf.connect.ProtocolClientInterface -import build.buf.connect.ResponseMessage -import build.buf.connect.http.Cancelable -import kotlin.Unit - -public class UnspecifiedServiceClient( - private val client: ProtocolClientInterface, -) : UnspecifiedServiceClientInterface { - public override suspend fun unspecified(request: Unspecified.UnspecifiedRequest, - headers: Headers): ResponseMessage = client.unary( - request, - headers, - MethodSpec( - "buf.javamultiplefiles.unspecified.v1.UnspecifiedService/Unspecified", - buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedRequest::class, - buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedResponse::class, - ), - ) - - - public override fun unspecified( - request: Unspecified.UnspecifiedRequest, - headers: Headers, - onResult: (ResponseMessage) -> Unit, - ): Cancelable = client.unary( - request, - headers, - MethodSpec( - "buf.javamultiplefiles.unspecified.v1.UnspecifiedService/Unspecified", - buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedRequest::class, - buf.javamultiplefiles.unspecified.v1.Unspecified.UnspecifiedResponse::class, - ), - onResult - ) - -} diff --git a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/unspecified/v1/UnspecifiedServiceClientInterface.kt b/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/unspecified/v1/UnspecifiedServiceClientInterface.kt deleted file mode 100644 index 21bc26ed..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/buf/javamultiplefiles/unspecified/v1/UnspecifiedServiceClientInterface.kt +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated by connect-kotlin. DO NOT EDIT. -// -// Source: buf/javamultiplefiles/unspecified/v1/unspecified.proto -// -package buf.javamultiplefiles.unspecified.v1 - -import build.buf.connect.Headers -import build.buf.connect.ResponseMessage -import build.buf.connect.http.Cancelable -import kotlin.Unit - -public interface UnspecifiedServiceClientInterface { - public suspend fun unspecified(request: Unspecified.UnspecifiedRequest, headers: Headers = - emptyMap()): ResponseMessage - - public fun unspecified( - request: Unspecified.UnspecifiedRequest, - headers: Headers = emptyMap(), - onResult: (ResponseMessage) -> Unit, - ): Cancelable -} diff --git a/protoc-gen-connect-kotlin/src/test/java/grpc/testing/EmptyOuterClass.java b/protoc-gen-connect-kotlin/src/test/java/grpc/testing/EmptyOuterClass.java deleted file mode 100644 index 1ca8c082..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/grpc/testing/EmptyOuterClass.java +++ /dev/null @@ -1,499 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: grpc/testing/empty.proto - -package grpc.testing; - -public final class EmptyOuterClass { - private EmptyOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface EmptyOrBuilder extends - // @@protoc_insertion_point(interface_extends:grpc.testing.Empty) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * An empty message that you can re-use to avoid defining duplicated empty
-   * messages in your project. A typical example is to use it as argument or the
-   * return value of a service API. For instance:
-   *   service Foo {
-   *     rpc Bar (grpc.testing.Empty) returns (grpc.testing.Empty) { };
-   *   };
-   * 
- * - * Protobuf type {@code grpc.testing.Empty} - */ - public static final class Empty extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:grpc.testing.Empty) - EmptyOrBuilder { - private static final long serialVersionUID = 0L; - // Use Empty.newBuilder() to construct. - private Empty(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Empty() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Empty(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Empty( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return grpc.testing.EmptyOuterClass.internal_static_grpc_testing_Empty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return grpc.testing.EmptyOuterClass.internal_static_grpc_testing_Empty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - grpc.testing.EmptyOuterClass.Empty.class, grpc.testing.EmptyOuterClass.Empty.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof grpc.testing.EmptyOuterClass.Empty)) { - return super.equals(obj); - } - grpc.testing.EmptyOuterClass.Empty other = (grpc.testing.EmptyOuterClass.Empty) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static grpc.testing.EmptyOuterClass.Empty parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.EmptyOuterClass.Empty parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.EmptyOuterClass.Empty parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.EmptyOuterClass.Empty parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.EmptyOuterClass.Empty parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.EmptyOuterClass.Empty parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.EmptyOuterClass.Empty parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static grpc.testing.EmptyOuterClass.Empty parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static grpc.testing.EmptyOuterClass.Empty parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static grpc.testing.EmptyOuterClass.Empty parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static grpc.testing.EmptyOuterClass.Empty parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static grpc.testing.EmptyOuterClass.Empty parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(grpc.testing.EmptyOuterClass.Empty prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * An empty message that you can re-use to avoid defining duplicated empty
-     * messages in your project. A typical example is to use it as argument or the
-     * return value of a service API. For instance:
-     *   service Foo {
-     *     rpc Bar (grpc.testing.Empty) returns (grpc.testing.Empty) { };
-     *   };
-     * 
- * - * Protobuf type {@code grpc.testing.Empty} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:grpc.testing.Empty) - grpc.testing.EmptyOuterClass.EmptyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return grpc.testing.EmptyOuterClass.internal_static_grpc_testing_Empty_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return grpc.testing.EmptyOuterClass.internal_static_grpc_testing_Empty_fieldAccessorTable - .ensureFieldAccessorsInitialized( - grpc.testing.EmptyOuterClass.Empty.class, grpc.testing.EmptyOuterClass.Empty.Builder.class); - } - - // Construct using grpc.testing.EmptyOuterClass.Empty.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return grpc.testing.EmptyOuterClass.internal_static_grpc_testing_Empty_descriptor; - } - - @java.lang.Override - public grpc.testing.EmptyOuterClass.Empty getDefaultInstanceForType() { - return grpc.testing.EmptyOuterClass.Empty.getDefaultInstance(); - } - - @java.lang.Override - public grpc.testing.EmptyOuterClass.Empty build() { - grpc.testing.EmptyOuterClass.Empty result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public grpc.testing.EmptyOuterClass.Empty buildPartial() { - grpc.testing.EmptyOuterClass.Empty result = new grpc.testing.EmptyOuterClass.Empty(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof grpc.testing.EmptyOuterClass.Empty) { - return mergeFrom((grpc.testing.EmptyOuterClass.Empty)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(grpc.testing.EmptyOuterClass.Empty other) { - if (other == grpc.testing.EmptyOuterClass.Empty.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - grpc.testing.EmptyOuterClass.Empty parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (grpc.testing.EmptyOuterClass.Empty) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:grpc.testing.Empty) - } - - // @@protoc_insertion_point(class_scope:grpc.testing.Empty) - private static final grpc.testing.EmptyOuterClass.Empty DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new grpc.testing.EmptyOuterClass.Empty(); - } - - public static grpc.testing.EmptyOuterClass.Empty getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Empty parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Empty(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public grpc.testing.EmptyOuterClass.Empty getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_grpc_testing_Empty_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_grpc_testing_Empty_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\030grpc/testing/empty.proto\022\014grpc.testing" + - "\"\007\n\005Emptyb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_grpc_testing_Empty_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_grpc_testing_Empty_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_grpc_testing_Empty_descriptor, - new java.lang.String[] { }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/protoc-gen-connect-kotlin/src/test/java/grpc/testing/LoadBalancerStatsServiceClient.kt b/protoc-gen-connect-kotlin/src/test/java/grpc/testing/LoadBalancerStatsServiceClient.kt deleted file mode 100644 index c79d1a58..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/grpc/testing/LoadBalancerStatsServiceClient.kt +++ /dev/null @@ -1,103 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated by connect-kotlin. DO NOT EDIT. -// -// Source: grpc/testing/test.proto -// -package grpc.testing - -import build.buf.connect.Headers -import build.buf.connect.MethodSpec -import build.buf.connect.ProtocolClientInterface -import build.buf.connect.ResponseMessage -import build.buf.connect.http.Cancelable -import kotlin.Unit - -/** - * A service used to obtain stats for verifying LB behavior. - */ -public class LoadBalancerStatsServiceClient( - private val client: ProtocolClientInterface, -) : LoadBalancerStatsServiceClientInterface { - /** - * Gets the backend distribution for RPCs sent by a test client. - */ - public override suspend fun getClientStats(request: Messages.LoadBalancerStatsRequest, - headers: Headers): ResponseMessage = client.unary( - request, - headers, - MethodSpec( - "grpc.testing.LoadBalancerStatsService/GetClientStats", - grpc.testing.Messages.LoadBalancerStatsRequest::class, - grpc.testing.Messages.LoadBalancerStatsResponse::class, - ), - ) - - - /** - * Gets the backend distribution for RPCs sent by a test client. - */ - public override fun getClientStats( - request: Messages.LoadBalancerStatsRequest, - headers: Headers, - onResult: (ResponseMessage) -> Unit, - ): Cancelable = client.unary( - request, - headers, - MethodSpec( - "grpc.testing.LoadBalancerStatsService/GetClientStats", - grpc.testing.Messages.LoadBalancerStatsRequest::class, - grpc.testing.Messages.LoadBalancerStatsResponse::class, - ), - onResult - ) - - - /** - * Gets the accumulated stats for RPCs sent by a test client. - */ - public override suspend - fun getClientAccumulatedStats(request: Messages.LoadBalancerAccumulatedStatsRequest, - headers: Headers): ResponseMessage = - client.unary( - request, - headers, - MethodSpec( - "grpc.testing.LoadBalancerStatsService/GetClientAccumulatedStats", - grpc.testing.Messages.LoadBalancerAccumulatedStatsRequest::class, - grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse::class, - ), - ) - - - /** - * Gets the accumulated stats for RPCs sent by a test client. - */ - public override fun getClientAccumulatedStats( - request: Messages.LoadBalancerAccumulatedStatsRequest, - headers: Headers, - onResult: (ResponseMessage) -> Unit, - ): Cancelable = client.unary( - request, - headers, - MethodSpec( - "grpc.testing.LoadBalancerStatsService/GetClientAccumulatedStats", - grpc.testing.Messages.LoadBalancerAccumulatedStatsRequest::class, - grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse::class, - ), - onResult - ) - -} diff --git a/protoc-gen-connect-kotlin/src/test/java/grpc/testing/LoadBalancerStatsServiceClientInterface.kt b/protoc-gen-connect-kotlin/src/test/java/grpc/testing/LoadBalancerStatsServiceClientInterface.kt deleted file mode 100644 index abf8ba9b..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/grpc/testing/LoadBalancerStatsServiceClientInterface.kt +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated by connect-kotlin. DO NOT EDIT. -// -// Source: grpc/testing/test.proto -// -package grpc.testing - -import build.buf.connect.Headers -import build.buf.connect.ResponseMessage -import build.buf.connect.http.Cancelable -import kotlin.Unit - -/** - * A service used to obtain stats for verifying LB behavior. - */ -public interface LoadBalancerStatsServiceClientInterface { - /** - * Gets the backend distribution for RPCs sent by a test client. - */ - public suspend fun getClientStats(request: Messages.LoadBalancerStatsRequest, headers: Headers = - emptyMap()): ResponseMessage - - /** - * Gets the backend distribution for RPCs sent by a test client. - */ - public fun getClientStats( - request: Messages.LoadBalancerStatsRequest, - headers: Headers = emptyMap(), - onResult: (ResponseMessage) -> Unit, - ): Cancelable - - /** - * Gets the accumulated stats for RPCs sent by a test client. - */ - public suspend - fun getClientAccumulatedStats(request: Messages.LoadBalancerAccumulatedStatsRequest, - headers: Headers = emptyMap()): ResponseMessage - - /** - * Gets the accumulated stats for RPCs sent by a test client. - */ - public fun getClientAccumulatedStats( - request: Messages.LoadBalancerAccumulatedStatsRequest, - headers: Headers = emptyMap(), - onResult: (ResponseMessage) -> Unit, - ): Cancelable -} diff --git a/protoc-gen-connect-kotlin/src/test/java/grpc/testing/Messages.java b/protoc-gen-connect-kotlin/src/test/java/grpc/testing/Messages.java deleted file mode 100644 index ed24e78e..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/grpc/testing/Messages.java +++ /dev/null @@ -1,22646 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: grpc/testing/messages.proto - -package grpc.testing; - -public final class Messages { - private Messages() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - *
-   * The type of payload that should be returned.
-   * 
- * - * Protobuf enum {@code grpc.testing.PayloadType} - */ - public enum PayloadType - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * Compressable text format.
-     * 
- * - * COMPRESSABLE = 0; - */ - COMPRESSABLE(0), - UNRECOGNIZED(-1), - ; - - /** - *
-     * Compressable text format.
-     * 
- * - * COMPRESSABLE = 0; - */ - public static final int COMPRESSABLE_VALUE = 0; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static PayloadType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static PayloadType forNumber(int value) { - switch (value) { - case 0: return COMPRESSABLE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - PayloadType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public PayloadType findValueByNumber(int number) { - return PayloadType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return grpc.testing.Messages.getDescriptor().getEnumTypes().get(0); - } - - private static final PayloadType[] VALUES = values(); - - public static PayloadType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private PayloadType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:grpc.testing.PayloadType) - } - - /** - *
-   * The type of route that a client took to reach a server w.r.t. gRPCLB.
-   * The server must fill in "fallback" if it detects that the RPC reached
-   * the server via the "gRPCLB fallback" path, and "backend" if it detects
-   * that the RPC reached the server via "gRPCLB backend" path (i.e. if it got
-   * the address of this server from the gRPCLB server BalanceLoad RPC). Exactly
-   * how this detection is done is context and server dependent.
-   * 
- * - * Protobuf enum {@code grpc.testing.GrpclbRouteType} - */ - public enum GrpclbRouteType - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * Server didn't detect the route that a client took to reach it.
-     * 
- * - * GRPCLB_ROUTE_TYPE_UNKNOWN = 0; - */ - GRPCLB_ROUTE_TYPE_UNKNOWN(0), - /** - *
-     * Indicates that a client reached a server via gRPCLB fallback.
-     * 
- * - * GRPCLB_ROUTE_TYPE_FALLBACK = 1; - */ - GRPCLB_ROUTE_TYPE_FALLBACK(1), - /** - *
-     * Indicates that a client reached a server as a gRPCLB-given backend.
-     * 
- * - * GRPCLB_ROUTE_TYPE_BACKEND = 2; - */ - GRPCLB_ROUTE_TYPE_BACKEND(2), - UNRECOGNIZED(-1), - ; - - /** - *
-     * Server didn't detect the route that a client took to reach it.
-     * 
- * - * GRPCLB_ROUTE_TYPE_UNKNOWN = 0; - */ - public static final int GRPCLB_ROUTE_TYPE_UNKNOWN_VALUE = 0; - /** - *
-     * Indicates that a client reached a server via gRPCLB fallback.
-     * 
- * - * GRPCLB_ROUTE_TYPE_FALLBACK = 1; - */ - public static final int GRPCLB_ROUTE_TYPE_FALLBACK_VALUE = 1; - /** - *
-     * Indicates that a client reached a server as a gRPCLB-given backend.
-     * 
- * - * GRPCLB_ROUTE_TYPE_BACKEND = 2; - */ - public static final int GRPCLB_ROUTE_TYPE_BACKEND_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static GrpclbRouteType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static GrpclbRouteType forNumber(int value) { - switch (value) { - case 0: return GRPCLB_ROUTE_TYPE_UNKNOWN; - case 1: return GRPCLB_ROUTE_TYPE_FALLBACK; - case 2: return GRPCLB_ROUTE_TYPE_BACKEND; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - GrpclbRouteType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public GrpclbRouteType findValueByNumber(int number) { - return GrpclbRouteType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return grpc.testing.Messages.getDescriptor().getEnumTypes().get(1); - } - - private static final GrpclbRouteType[] VALUES = values(); - - public static GrpclbRouteType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private GrpclbRouteType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:grpc.testing.GrpclbRouteType) - } - - public interface BoolValueOrBuilder extends - // @@protoc_insertion_point(interface_extends:grpc.testing.BoolValue) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The bool value.
-     * 
- * - * bool value = 1 [json_name = "value"]; - * @return The value. - */ - boolean getValue(); - } - /** - *
-   * TODO(dgq): Go back to using well-known types once
-   * https://github.com/grpc/grpc/issues/6980 has been fixed.
-   * import "google/protobuf/wrappers.proto";
-   * 
- * - * Protobuf type {@code grpc.testing.BoolValue} - */ - public static final class BoolValue extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:grpc.testing.BoolValue) - BoolValueOrBuilder { - private static final long serialVersionUID = 0L; - // Use BoolValue.newBuilder() to construct. - private BoolValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BoolValue() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BoolValue(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BoolValue( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - value_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return grpc.testing.Messages.internal_static_grpc_testing_BoolValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return grpc.testing.Messages.internal_static_grpc_testing_BoolValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - grpc.testing.Messages.BoolValue.class, grpc.testing.Messages.BoolValue.Builder.class); - } - - public static final int VALUE_FIELD_NUMBER = 1; - private boolean value_; - /** - *
-     * The bool value.
-     * 
- * - * bool value = 1 [json_name = "value"]; - * @return The value. - */ - @java.lang.Override - public boolean getValue() { - return value_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (value_ != false) { - output.writeBool(1, value_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (value_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, value_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof grpc.testing.Messages.BoolValue)) { - return super.equals(obj); - } - grpc.testing.Messages.BoolValue other = (grpc.testing.Messages.BoolValue) obj; - - if (getValue() - != other.getValue()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValue()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static grpc.testing.Messages.BoolValue parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.BoolValue parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.BoolValue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.BoolValue parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.BoolValue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.BoolValue parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.BoolValue parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static grpc.testing.Messages.BoolValue parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static grpc.testing.Messages.BoolValue parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static grpc.testing.Messages.BoolValue parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static grpc.testing.Messages.BoolValue parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static grpc.testing.Messages.BoolValue parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(grpc.testing.Messages.BoolValue prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * TODO(dgq): Go back to using well-known types once
-     * https://github.com/grpc/grpc/issues/6980 has been fixed.
-     * import "google/protobuf/wrappers.proto";
-     * 
- * - * Protobuf type {@code grpc.testing.BoolValue} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:grpc.testing.BoolValue) - grpc.testing.Messages.BoolValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return grpc.testing.Messages.internal_static_grpc_testing_BoolValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return grpc.testing.Messages.internal_static_grpc_testing_BoolValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - grpc.testing.Messages.BoolValue.class, grpc.testing.Messages.BoolValue.Builder.class); - } - - // Construct using grpc.testing.Messages.BoolValue.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - value_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return grpc.testing.Messages.internal_static_grpc_testing_BoolValue_descriptor; - } - - @java.lang.Override - public grpc.testing.Messages.BoolValue getDefaultInstanceForType() { - return grpc.testing.Messages.BoolValue.getDefaultInstance(); - } - - @java.lang.Override - public grpc.testing.Messages.BoolValue build() { - grpc.testing.Messages.BoolValue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public grpc.testing.Messages.BoolValue buildPartial() { - grpc.testing.Messages.BoolValue result = new grpc.testing.Messages.BoolValue(this); - result.value_ = value_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof grpc.testing.Messages.BoolValue) { - return mergeFrom((grpc.testing.Messages.BoolValue)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(grpc.testing.Messages.BoolValue other) { - if (other == grpc.testing.Messages.BoolValue.getDefaultInstance()) return this; - if (other.getValue() != false) { - setValue(other.getValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - grpc.testing.Messages.BoolValue parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (grpc.testing.Messages.BoolValue) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean value_ ; - /** - *
-       * The bool value.
-       * 
- * - * bool value = 1 [json_name = "value"]; - * @return The value. - */ - @java.lang.Override - public boolean getValue() { - return value_; - } - /** - *
-       * The bool value.
-       * 
- * - * bool value = 1 [json_name = "value"]; - * @param value The value to set. - * @return This builder for chaining. - */ - public Builder setValue(boolean value) { - - value_ = value; - onChanged(); - return this; - } - /** - *
-       * The bool value.
-       * 
- * - * bool value = 1 [json_name = "value"]; - * @return This builder for chaining. - */ - public Builder clearValue() { - - value_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:grpc.testing.BoolValue) - } - - // @@protoc_insertion_point(class_scope:grpc.testing.BoolValue) - private static final grpc.testing.Messages.BoolValue DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new grpc.testing.Messages.BoolValue(); - } - - public static grpc.testing.Messages.BoolValue getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BoolValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BoolValue(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public grpc.testing.Messages.BoolValue getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PayloadOrBuilder extends - // @@protoc_insertion_point(interface_extends:grpc.testing.Payload) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The type of data in body.
-     * 
- * - * .grpc.testing.PayloadType type = 1 [json_name = "type"]; - * @return The enum numeric value on the wire for type. - */ - int getTypeValue(); - /** - *
-     * The type of data in body.
-     * 
- * - * .grpc.testing.PayloadType type = 1 [json_name = "type"]; - * @return The type. - */ - grpc.testing.Messages.PayloadType getType(); - - /** - *
-     * Primary contents of payload.
-     * 
- * - * bytes body = 2 [json_name = "body"]; - * @return The body. - */ - com.google.protobuf.ByteString getBody(); - } - /** - *
-   * A block of data, to simply increase gRPC message size.
-   * 
- * - * Protobuf type {@code grpc.testing.Payload} - */ - public static final class Payload extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:grpc.testing.Payload) - PayloadOrBuilder { - private static final long serialVersionUID = 0L; - // Use Payload.newBuilder() to construct. - private Payload(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Payload() { - type_ = 0; - body_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Payload(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Payload( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 18: { - - body_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return grpc.testing.Messages.internal_static_grpc_testing_Payload_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return grpc.testing.Messages.internal_static_grpc_testing_Payload_fieldAccessorTable - .ensureFieldAccessorsInitialized( - grpc.testing.Messages.Payload.class, grpc.testing.Messages.Payload.Builder.class); - } - - public static final int TYPE_FIELD_NUMBER = 1; - private int type_; - /** - *
-     * The type of data in body.
-     * 
- * - * .grpc.testing.PayloadType type = 1 [json_name = "type"]; - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override public int getTypeValue() { - return type_; - } - /** - *
-     * The type of data in body.
-     * 
- * - * .grpc.testing.PayloadType type = 1 [json_name = "type"]; - * @return The type. - */ - @java.lang.Override public grpc.testing.Messages.PayloadType getType() { - @SuppressWarnings("deprecation") - grpc.testing.Messages.PayloadType result = grpc.testing.Messages.PayloadType.valueOf(type_); - return result == null ? grpc.testing.Messages.PayloadType.UNRECOGNIZED : result; - } - - public static final int BODY_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString body_; - /** - *
-     * Primary contents of payload.
-     * 
- * - * bytes body = 2 [json_name = "body"]; - * @return The body. - */ - @java.lang.Override - public com.google.protobuf.ByteString getBody() { - return body_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (type_ != grpc.testing.Messages.PayloadType.COMPRESSABLE.getNumber()) { - output.writeEnum(1, type_); - } - if (!body_.isEmpty()) { - output.writeBytes(2, body_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (type_ != grpc.testing.Messages.PayloadType.COMPRESSABLE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, type_); - } - if (!body_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, body_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof grpc.testing.Messages.Payload)) { - return super.equals(obj); - } - grpc.testing.Messages.Payload other = (grpc.testing.Messages.Payload) obj; - - if (type_ != other.type_) return false; - if (!getBody() - .equals(other.getBody())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - hash = (37 * hash) + BODY_FIELD_NUMBER; - hash = (53 * hash) + getBody().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static grpc.testing.Messages.Payload parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.Payload parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.Payload parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.Payload parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.Payload parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.Payload parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.Payload parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static grpc.testing.Messages.Payload parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static grpc.testing.Messages.Payload parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static grpc.testing.Messages.Payload parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static grpc.testing.Messages.Payload parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static grpc.testing.Messages.Payload parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(grpc.testing.Messages.Payload prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * A block of data, to simply increase gRPC message size.
-     * 
- * - * Protobuf type {@code grpc.testing.Payload} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:grpc.testing.Payload) - grpc.testing.Messages.PayloadOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return grpc.testing.Messages.internal_static_grpc_testing_Payload_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return grpc.testing.Messages.internal_static_grpc_testing_Payload_fieldAccessorTable - .ensureFieldAccessorsInitialized( - grpc.testing.Messages.Payload.class, grpc.testing.Messages.Payload.Builder.class); - } - - // Construct using grpc.testing.Messages.Payload.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - type_ = 0; - - body_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return grpc.testing.Messages.internal_static_grpc_testing_Payload_descriptor; - } - - @java.lang.Override - public grpc.testing.Messages.Payload getDefaultInstanceForType() { - return grpc.testing.Messages.Payload.getDefaultInstance(); - } - - @java.lang.Override - public grpc.testing.Messages.Payload build() { - grpc.testing.Messages.Payload result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public grpc.testing.Messages.Payload buildPartial() { - grpc.testing.Messages.Payload result = new grpc.testing.Messages.Payload(this); - result.type_ = type_; - result.body_ = body_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof grpc.testing.Messages.Payload) { - return mergeFrom((grpc.testing.Messages.Payload)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(grpc.testing.Messages.Payload other) { - if (other == grpc.testing.Messages.Payload.getDefaultInstance()) return this; - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - if (other.getBody() != com.google.protobuf.ByteString.EMPTY) { - setBody(other.getBody()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - grpc.testing.Messages.Payload parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (grpc.testing.Messages.Payload) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int type_ = 0; - /** - *
-       * The type of data in body.
-       * 
- * - * .grpc.testing.PayloadType type = 1 [json_name = "type"]; - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override public int getTypeValue() { - return type_; - } - /** - *
-       * The type of data in body.
-       * 
- * - * .grpc.testing.PayloadType type = 1 [json_name = "type"]; - * @param value The enum numeric value on the wire for type to set. - * @return This builder for chaining. - */ - public Builder setTypeValue(int value) { - - type_ = value; - onChanged(); - return this; - } - /** - *
-       * The type of data in body.
-       * 
- * - * .grpc.testing.PayloadType type = 1 [json_name = "type"]; - * @return The type. - */ - @java.lang.Override - public grpc.testing.Messages.PayloadType getType() { - @SuppressWarnings("deprecation") - grpc.testing.Messages.PayloadType result = grpc.testing.Messages.PayloadType.valueOf(type_); - return result == null ? grpc.testing.Messages.PayloadType.UNRECOGNIZED : result; - } - /** - *
-       * The type of data in body.
-       * 
- * - * .grpc.testing.PayloadType type = 1 [json_name = "type"]; - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType(grpc.testing.Messages.PayloadType value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * The type of data in body.
-       * 
- * - * .grpc.testing.PayloadType type = 1 [json_name = "type"]; - * @return This builder for chaining. - */ - public Builder clearType() { - - type_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString body_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-       * Primary contents of payload.
-       * 
- * - * bytes body = 2 [json_name = "body"]; - * @return The body. - */ - @java.lang.Override - public com.google.protobuf.ByteString getBody() { - return body_; - } - /** - *
-       * Primary contents of payload.
-       * 
- * - * bytes body = 2 [json_name = "body"]; - * @param value The body to set. - * @return This builder for chaining. - */ - public Builder setBody(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - body_ = value; - onChanged(); - return this; - } - /** - *
-       * Primary contents of payload.
-       * 
- * - * bytes body = 2 [json_name = "body"]; - * @return This builder for chaining. - */ - public Builder clearBody() { - - body_ = getDefaultInstance().getBody(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:grpc.testing.Payload) - } - - // @@protoc_insertion_point(class_scope:grpc.testing.Payload) - private static final grpc.testing.Messages.Payload DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new grpc.testing.Messages.Payload(); - } - - public static grpc.testing.Messages.Payload getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Payload parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Payload(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public grpc.testing.Messages.Payload getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface EchoStatusOrBuilder extends - // @@protoc_insertion_point(interface_extends:grpc.testing.EchoStatus) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 code = 1 [json_name = "code"]; - * @return The code. - */ - int getCode(); - - /** - * string message = 2 [json_name = "message"]; - * @return The message. - */ - java.lang.String getMessage(); - /** - * string message = 2 [json_name = "message"]; - * @return The bytes for message. - */ - com.google.protobuf.ByteString - getMessageBytes(); - } - /** - *
-   * A protobuf representation for grpc status. This is used by test
-   * clients to specify a status that the server should attempt to return.
-   * 
- * - * Protobuf type {@code grpc.testing.EchoStatus} - */ - public static final class EchoStatus extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:grpc.testing.EchoStatus) - EchoStatusOrBuilder { - private static final long serialVersionUID = 0L; - // Use EchoStatus.newBuilder() to construct. - private EchoStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EchoStatus() { - message_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EchoStatus(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EchoStatus( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - code_ = input.readInt32(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - message_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return grpc.testing.Messages.internal_static_grpc_testing_EchoStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return grpc.testing.Messages.internal_static_grpc_testing_EchoStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - grpc.testing.Messages.EchoStatus.class, grpc.testing.Messages.EchoStatus.Builder.class); - } - - public static final int CODE_FIELD_NUMBER = 1; - private int code_; - /** - * int32 code = 1 [json_name = "code"]; - * @return The code. - */ - @java.lang.Override - public int getCode() { - return code_; - } - - public static final int MESSAGE_FIELD_NUMBER = 2; - private volatile java.lang.Object message_; - /** - * string message = 2 [json_name = "message"]; - * @return The message. - */ - @java.lang.Override - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - message_ = s; - return s; - } - } - /** - * string message = 2 [json_name = "message"]; - * @return The bytes for message. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (code_ != 0) { - output.writeInt32(1, code_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (code_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, code_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof grpc.testing.Messages.EchoStatus)) { - return super.equals(obj); - } - grpc.testing.Messages.EchoStatus other = (grpc.testing.Messages.EchoStatus) obj; - - if (getCode() - != other.getCode()) return false; - if (!getMessage() - .equals(other.getMessage())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CODE_FIELD_NUMBER; - hash = (53 * hash) + getCode(); - hash = (37 * hash) + MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getMessage().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static grpc.testing.Messages.EchoStatus parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.EchoStatus parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.EchoStatus parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.EchoStatus parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.EchoStatus parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.EchoStatus parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.EchoStatus parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static grpc.testing.Messages.EchoStatus parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static grpc.testing.Messages.EchoStatus parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static grpc.testing.Messages.EchoStatus parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static grpc.testing.Messages.EchoStatus parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static grpc.testing.Messages.EchoStatus parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(grpc.testing.Messages.EchoStatus prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * A protobuf representation for grpc status. This is used by test
-     * clients to specify a status that the server should attempt to return.
-     * 
- * - * Protobuf type {@code grpc.testing.EchoStatus} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:grpc.testing.EchoStatus) - grpc.testing.Messages.EchoStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return grpc.testing.Messages.internal_static_grpc_testing_EchoStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return grpc.testing.Messages.internal_static_grpc_testing_EchoStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - grpc.testing.Messages.EchoStatus.class, grpc.testing.Messages.EchoStatus.Builder.class); - } - - // Construct using grpc.testing.Messages.EchoStatus.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - code_ = 0; - - message_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return grpc.testing.Messages.internal_static_grpc_testing_EchoStatus_descriptor; - } - - @java.lang.Override - public grpc.testing.Messages.EchoStatus getDefaultInstanceForType() { - return grpc.testing.Messages.EchoStatus.getDefaultInstance(); - } - - @java.lang.Override - public grpc.testing.Messages.EchoStatus build() { - grpc.testing.Messages.EchoStatus result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public grpc.testing.Messages.EchoStatus buildPartial() { - grpc.testing.Messages.EchoStatus result = new grpc.testing.Messages.EchoStatus(this); - result.code_ = code_; - result.message_ = message_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof grpc.testing.Messages.EchoStatus) { - return mergeFrom((grpc.testing.Messages.EchoStatus)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(grpc.testing.Messages.EchoStatus other) { - if (other == grpc.testing.Messages.EchoStatus.getDefaultInstance()) return this; - if (other.getCode() != 0) { - setCode(other.getCode()); - } - if (!other.getMessage().isEmpty()) { - message_ = other.message_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - grpc.testing.Messages.EchoStatus parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (grpc.testing.Messages.EchoStatus) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int code_ ; - /** - * int32 code = 1 [json_name = "code"]; - * @return The code. - */ - @java.lang.Override - public int getCode() { - return code_; - } - /** - * int32 code = 1 [json_name = "code"]; - * @param value The code to set. - * @return This builder for chaining. - */ - public Builder setCode(int value) { - - code_ = value; - onChanged(); - return this; - } - /** - * int32 code = 1 [json_name = "code"]; - * @return This builder for chaining. - */ - public Builder clearCode() { - - code_ = 0; - onChanged(); - return this; - } - - private java.lang.Object message_ = ""; - /** - * string message = 2 [json_name = "message"]; - * @return The message. - */ - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - message_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string message = 2 [json_name = "message"]; - * @return The bytes for message. - */ - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string message = 2 [json_name = "message"]; - * @param value The message to set. - * @return This builder for chaining. - */ - public Builder setMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - message_ = value; - onChanged(); - return this; - } - /** - * string message = 2 [json_name = "message"]; - * @return This builder for chaining. - */ - public Builder clearMessage() { - - message_ = getDefaultInstance().getMessage(); - onChanged(); - return this; - } - /** - * string message = 2 [json_name = "message"]; - * @param value The bytes for message to set. - * @return This builder for chaining. - */ - public Builder setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - message_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:grpc.testing.EchoStatus) - } - - // @@protoc_insertion_point(class_scope:grpc.testing.EchoStatus) - private static final grpc.testing.Messages.EchoStatus DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new grpc.testing.Messages.EchoStatus(); - } - - public static grpc.testing.Messages.EchoStatus getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EchoStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EchoStatus(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public grpc.testing.Messages.EchoStatus getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SimpleRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:grpc.testing.SimpleRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Desired payload type in the response from the server.
-     * If response_type is RANDOM, server randomly chooses one from other formats.
-     * 
- * - * .grpc.testing.PayloadType response_type = 1 [json_name = "responseType"]; - * @return The enum numeric value on the wire for responseType. - */ - int getResponseTypeValue(); - /** - *
-     * Desired payload type in the response from the server.
-     * If response_type is RANDOM, server randomly chooses one from other formats.
-     * 
- * - * .grpc.testing.PayloadType response_type = 1 [json_name = "responseType"]; - * @return The responseType. - */ - grpc.testing.Messages.PayloadType getResponseType(); - - /** - *
-     * Desired payload size in the response from the server.
-     * 
- * - * int32 response_size = 2 [json_name = "responseSize"]; - * @return The responseSize. - */ - int getResponseSize(); - - /** - *
-     * Optional input payload sent along with the request.
-     * 
- * - * .grpc.testing.Payload payload = 3 [json_name = "payload"]; - * @return Whether the payload field is set. - */ - boolean hasPayload(); - /** - *
-     * Optional input payload sent along with the request.
-     * 
- * - * .grpc.testing.Payload payload = 3 [json_name = "payload"]; - * @return The payload. - */ - grpc.testing.Messages.Payload getPayload(); - /** - *
-     * Optional input payload sent along with the request.
-     * 
- * - * .grpc.testing.Payload payload = 3 [json_name = "payload"]; - */ - grpc.testing.Messages.PayloadOrBuilder getPayloadOrBuilder(); - - /** - *
-     * Whether SimpleResponse should include username.
-     * 
- * - * bool fill_username = 4 [json_name = "fillUsername"]; - * @return The fillUsername. - */ - boolean getFillUsername(); - - /** - *
-     * Whether SimpleResponse should include OAuth scope.
-     * 
- * - * bool fill_oauth_scope = 5 [json_name = "fillOauthScope"]; - * @return The fillOauthScope. - */ - boolean getFillOauthScope(); - - /** - *
-     * Whether to request the server to compress the response. This field is
-     * "nullable" in order to interoperate seamlessly with clients not able to
-     * implement the full compression tests by introspecting the call to verify
-     * the response's compression status.
-     * 
- * - * .grpc.testing.BoolValue response_compressed = 6 [json_name = "responseCompressed"]; - * @return Whether the responseCompressed field is set. - */ - boolean hasResponseCompressed(); - /** - *
-     * Whether to request the server to compress the response. This field is
-     * "nullable" in order to interoperate seamlessly with clients not able to
-     * implement the full compression tests by introspecting the call to verify
-     * the response's compression status.
-     * 
- * - * .grpc.testing.BoolValue response_compressed = 6 [json_name = "responseCompressed"]; - * @return The responseCompressed. - */ - grpc.testing.Messages.BoolValue getResponseCompressed(); - /** - *
-     * Whether to request the server to compress the response. This field is
-     * "nullable" in order to interoperate seamlessly with clients not able to
-     * implement the full compression tests by introspecting the call to verify
-     * the response's compression status.
-     * 
- * - * .grpc.testing.BoolValue response_compressed = 6 [json_name = "responseCompressed"]; - */ - grpc.testing.Messages.BoolValueOrBuilder getResponseCompressedOrBuilder(); - - /** - *
-     * Whether server should return a given status
-     * 
- * - * .grpc.testing.EchoStatus response_status = 7 [json_name = "responseStatus"]; - * @return Whether the responseStatus field is set. - */ - boolean hasResponseStatus(); - /** - *
-     * Whether server should return a given status
-     * 
- * - * .grpc.testing.EchoStatus response_status = 7 [json_name = "responseStatus"]; - * @return The responseStatus. - */ - grpc.testing.Messages.EchoStatus getResponseStatus(); - /** - *
-     * Whether server should return a given status
-     * 
- * - * .grpc.testing.EchoStatus response_status = 7 [json_name = "responseStatus"]; - */ - grpc.testing.Messages.EchoStatusOrBuilder getResponseStatusOrBuilder(); - - /** - *
-     * Whether the server should expect this request to be compressed.
-     * 
- * - * .grpc.testing.BoolValue expect_compressed = 8 [json_name = "expectCompressed"]; - * @return Whether the expectCompressed field is set. - */ - boolean hasExpectCompressed(); - /** - *
-     * Whether the server should expect this request to be compressed.
-     * 
- * - * .grpc.testing.BoolValue expect_compressed = 8 [json_name = "expectCompressed"]; - * @return The expectCompressed. - */ - grpc.testing.Messages.BoolValue getExpectCompressed(); - /** - *
-     * Whether the server should expect this request to be compressed.
-     * 
- * - * .grpc.testing.BoolValue expect_compressed = 8 [json_name = "expectCompressed"]; - */ - grpc.testing.Messages.BoolValueOrBuilder getExpectCompressedOrBuilder(); - - /** - *
-     * Whether SimpleResponse should include server_id.
-     * 
- * - * bool fill_server_id = 9 [json_name = "fillServerId"]; - * @return The fillServerId. - */ - boolean getFillServerId(); - - /** - *
-     * Whether SimpleResponse should include grpclb_route_type.
-     * 
- * - * bool fill_grpclb_route_type = 10 [json_name = "fillGrpclbRouteType"]; - * @return The fillGrpclbRouteType. - */ - boolean getFillGrpclbRouteType(); - } - /** - *
-   * Unary request.
-   * 
- * - * Protobuf type {@code grpc.testing.SimpleRequest} - */ - public static final class SimpleRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:grpc.testing.SimpleRequest) - SimpleRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use SimpleRequest.newBuilder() to construct. - private SimpleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SimpleRequest() { - responseType_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SimpleRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SimpleRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - - responseType_ = rawValue; - break; - } - case 16: { - - responseSize_ = input.readInt32(); - break; - } - case 26: { - grpc.testing.Messages.Payload.Builder subBuilder = null; - if (payload_ != null) { - subBuilder = payload_.toBuilder(); - } - payload_ = input.readMessage(grpc.testing.Messages.Payload.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(payload_); - payload_ = subBuilder.buildPartial(); - } - - break; - } - case 32: { - - fillUsername_ = input.readBool(); - break; - } - case 40: { - - fillOauthScope_ = input.readBool(); - break; - } - case 50: { - grpc.testing.Messages.BoolValue.Builder subBuilder = null; - if (responseCompressed_ != null) { - subBuilder = responseCompressed_.toBuilder(); - } - responseCompressed_ = input.readMessage(grpc.testing.Messages.BoolValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(responseCompressed_); - responseCompressed_ = subBuilder.buildPartial(); - } - - break; - } - case 58: { - grpc.testing.Messages.EchoStatus.Builder subBuilder = null; - if (responseStatus_ != null) { - subBuilder = responseStatus_.toBuilder(); - } - responseStatus_ = input.readMessage(grpc.testing.Messages.EchoStatus.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(responseStatus_); - responseStatus_ = subBuilder.buildPartial(); - } - - break; - } - case 66: { - grpc.testing.Messages.BoolValue.Builder subBuilder = null; - if (expectCompressed_ != null) { - subBuilder = expectCompressed_.toBuilder(); - } - expectCompressed_ = input.readMessage(grpc.testing.Messages.BoolValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(expectCompressed_); - expectCompressed_ = subBuilder.buildPartial(); - } - - break; - } - case 72: { - - fillServerId_ = input.readBool(); - break; - } - case 80: { - - fillGrpclbRouteType_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return grpc.testing.Messages.internal_static_grpc_testing_SimpleRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return grpc.testing.Messages.internal_static_grpc_testing_SimpleRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - grpc.testing.Messages.SimpleRequest.class, grpc.testing.Messages.SimpleRequest.Builder.class); - } - - public static final int RESPONSE_TYPE_FIELD_NUMBER = 1; - private int responseType_; - /** - *
-     * Desired payload type in the response from the server.
-     * If response_type is RANDOM, server randomly chooses one from other formats.
-     * 
- * - * .grpc.testing.PayloadType response_type = 1 [json_name = "responseType"]; - * @return The enum numeric value on the wire for responseType. - */ - @java.lang.Override public int getResponseTypeValue() { - return responseType_; - } - /** - *
-     * Desired payload type in the response from the server.
-     * If response_type is RANDOM, server randomly chooses one from other formats.
-     * 
- * - * .grpc.testing.PayloadType response_type = 1 [json_name = "responseType"]; - * @return The responseType. - */ - @java.lang.Override public grpc.testing.Messages.PayloadType getResponseType() { - @SuppressWarnings("deprecation") - grpc.testing.Messages.PayloadType result = grpc.testing.Messages.PayloadType.valueOf(responseType_); - return result == null ? grpc.testing.Messages.PayloadType.UNRECOGNIZED : result; - } - - public static final int RESPONSE_SIZE_FIELD_NUMBER = 2; - private int responseSize_; - /** - *
-     * Desired payload size in the response from the server.
-     * 
- * - * int32 response_size = 2 [json_name = "responseSize"]; - * @return The responseSize. - */ - @java.lang.Override - public int getResponseSize() { - return responseSize_; - } - - public static final int PAYLOAD_FIELD_NUMBER = 3; - private grpc.testing.Messages.Payload payload_; - /** - *
-     * Optional input payload sent along with the request.
-     * 
- * - * .grpc.testing.Payload payload = 3 [json_name = "payload"]; - * @return Whether the payload field is set. - */ - @java.lang.Override - public boolean hasPayload() { - return payload_ != null; - } - /** - *
-     * Optional input payload sent along with the request.
-     * 
- * - * .grpc.testing.Payload payload = 3 [json_name = "payload"]; - * @return The payload. - */ - @java.lang.Override - public grpc.testing.Messages.Payload getPayload() { - return payload_ == null ? grpc.testing.Messages.Payload.getDefaultInstance() : payload_; - } - /** - *
-     * Optional input payload sent along with the request.
-     * 
- * - * .grpc.testing.Payload payload = 3 [json_name = "payload"]; - */ - @java.lang.Override - public grpc.testing.Messages.PayloadOrBuilder getPayloadOrBuilder() { - return getPayload(); - } - - public static final int FILL_USERNAME_FIELD_NUMBER = 4; - private boolean fillUsername_; - /** - *
-     * Whether SimpleResponse should include username.
-     * 
- * - * bool fill_username = 4 [json_name = "fillUsername"]; - * @return The fillUsername. - */ - @java.lang.Override - public boolean getFillUsername() { - return fillUsername_; - } - - public static final int FILL_OAUTH_SCOPE_FIELD_NUMBER = 5; - private boolean fillOauthScope_; - /** - *
-     * Whether SimpleResponse should include OAuth scope.
-     * 
- * - * bool fill_oauth_scope = 5 [json_name = "fillOauthScope"]; - * @return The fillOauthScope. - */ - @java.lang.Override - public boolean getFillOauthScope() { - return fillOauthScope_; - } - - public static final int RESPONSE_COMPRESSED_FIELD_NUMBER = 6; - private grpc.testing.Messages.BoolValue responseCompressed_; - /** - *
-     * Whether to request the server to compress the response. This field is
-     * "nullable" in order to interoperate seamlessly with clients not able to
-     * implement the full compression tests by introspecting the call to verify
-     * the response's compression status.
-     * 
- * - * .grpc.testing.BoolValue response_compressed = 6 [json_name = "responseCompressed"]; - * @return Whether the responseCompressed field is set. - */ - @java.lang.Override - public boolean hasResponseCompressed() { - return responseCompressed_ != null; - } - /** - *
-     * Whether to request the server to compress the response. This field is
-     * "nullable" in order to interoperate seamlessly with clients not able to
-     * implement the full compression tests by introspecting the call to verify
-     * the response's compression status.
-     * 
- * - * .grpc.testing.BoolValue response_compressed = 6 [json_name = "responseCompressed"]; - * @return The responseCompressed. - */ - @java.lang.Override - public grpc.testing.Messages.BoolValue getResponseCompressed() { - return responseCompressed_ == null ? grpc.testing.Messages.BoolValue.getDefaultInstance() : responseCompressed_; - } - /** - *
-     * Whether to request the server to compress the response. This field is
-     * "nullable" in order to interoperate seamlessly with clients not able to
-     * implement the full compression tests by introspecting the call to verify
-     * the response's compression status.
-     * 
- * - * .grpc.testing.BoolValue response_compressed = 6 [json_name = "responseCompressed"]; - */ - @java.lang.Override - public grpc.testing.Messages.BoolValueOrBuilder getResponseCompressedOrBuilder() { - return getResponseCompressed(); - } - - public static final int RESPONSE_STATUS_FIELD_NUMBER = 7; - private grpc.testing.Messages.EchoStatus responseStatus_; - /** - *
-     * Whether server should return a given status
-     * 
- * - * .grpc.testing.EchoStatus response_status = 7 [json_name = "responseStatus"]; - * @return Whether the responseStatus field is set. - */ - @java.lang.Override - public boolean hasResponseStatus() { - return responseStatus_ != null; - } - /** - *
-     * Whether server should return a given status
-     * 
- * - * .grpc.testing.EchoStatus response_status = 7 [json_name = "responseStatus"]; - * @return The responseStatus. - */ - @java.lang.Override - public grpc.testing.Messages.EchoStatus getResponseStatus() { - return responseStatus_ == null ? grpc.testing.Messages.EchoStatus.getDefaultInstance() : responseStatus_; - } - /** - *
-     * Whether server should return a given status
-     * 
- * - * .grpc.testing.EchoStatus response_status = 7 [json_name = "responseStatus"]; - */ - @java.lang.Override - public grpc.testing.Messages.EchoStatusOrBuilder getResponseStatusOrBuilder() { - return getResponseStatus(); - } - - public static final int EXPECT_COMPRESSED_FIELD_NUMBER = 8; - private grpc.testing.Messages.BoolValue expectCompressed_; - /** - *
-     * Whether the server should expect this request to be compressed.
-     * 
- * - * .grpc.testing.BoolValue expect_compressed = 8 [json_name = "expectCompressed"]; - * @return Whether the expectCompressed field is set. - */ - @java.lang.Override - public boolean hasExpectCompressed() { - return expectCompressed_ != null; - } - /** - *
-     * Whether the server should expect this request to be compressed.
-     * 
- * - * .grpc.testing.BoolValue expect_compressed = 8 [json_name = "expectCompressed"]; - * @return The expectCompressed. - */ - @java.lang.Override - public grpc.testing.Messages.BoolValue getExpectCompressed() { - return expectCompressed_ == null ? grpc.testing.Messages.BoolValue.getDefaultInstance() : expectCompressed_; - } - /** - *
-     * Whether the server should expect this request to be compressed.
-     * 
- * - * .grpc.testing.BoolValue expect_compressed = 8 [json_name = "expectCompressed"]; - */ - @java.lang.Override - public grpc.testing.Messages.BoolValueOrBuilder getExpectCompressedOrBuilder() { - return getExpectCompressed(); - } - - public static final int FILL_SERVER_ID_FIELD_NUMBER = 9; - private boolean fillServerId_; - /** - *
-     * Whether SimpleResponse should include server_id.
-     * 
- * - * bool fill_server_id = 9 [json_name = "fillServerId"]; - * @return The fillServerId. - */ - @java.lang.Override - public boolean getFillServerId() { - return fillServerId_; - } - - public static final int FILL_GRPCLB_ROUTE_TYPE_FIELD_NUMBER = 10; - private boolean fillGrpclbRouteType_; - /** - *
-     * Whether SimpleResponse should include grpclb_route_type.
-     * 
- * - * bool fill_grpclb_route_type = 10 [json_name = "fillGrpclbRouteType"]; - * @return The fillGrpclbRouteType. - */ - @java.lang.Override - public boolean getFillGrpclbRouteType() { - return fillGrpclbRouteType_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (responseType_ != grpc.testing.Messages.PayloadType.COMPRESSABLE.getNumber()) { - output.writeEnum(1, responseType_); - } - if (responseSize_ != 0) { - output.writeInt32(2, responseSize_); - } - if (payload_ != null) { - output.writeMessage(3, getPayload()); - } - if (fillUsername_ != false) { - output.writeBool(4, fillUsername_); - } - if (fillOauthScope_ != false) { - output.writeBool(5, fillOauthScope_); - } - if (responseCompressed_ != null) { - output.writeMessage(6, getResponseCompressed()); - } - if (responseStatus_ != null) { - output.writeMessage(7, getResponseStatus()); - } - if (expectCompressed_ != null) { - output.writeMessage(8, getExpectCompressed()); - } - if (fillServerId_ != false) { - output.writeBool(9, fillServerId_); - } - if (fillGrpclbRouteType_ != false) { - output.writeBool(10, fillGrpclbRouteType_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (responseType_ != grpc.testing.Messages.PayloadType.COMPRESSABLE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, responseType_); - } - if (responseSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, responseSize_); - } - if (payload_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getPayload()); - } - if (fillUsername_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, fillUsername_); - } - if (fillOauthScope_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, fillOauthScope_); - } - if (responseCompressed_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getResponseCompressed()); - } - if (responseStatus_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getResponseStatus()); - } - if (expectCompressed_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getExpectCompressed()); - } - if (fillServerId_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(9, fillServerId_); - } - if (fillGrpclbRouteType_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(10, fillGrpclbRouteType_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof grpc.testing.Messages.SimpleRequest)) { - return super.equals(obj); - } - grpc.testing.Messages.SimpleRequest other = (grpc.testing.Messages.SimpleRequest) obj; - - if (responseType_ != other.responseType_) return false; - if (getResponseSize() - != other.getResponseSize()) return false; - if (hasPayload() != other.hasPayload()) return false; - if (hasPayload()) { - if (!getPayload() - .equals(other.getPayload())) return false; - } - if (getFillUsername() - != other.getFillUsername()) return false; - if (getFillOauthScope() - != other.getFillOauthScope()) return false; - if (hasResponseCompressed() != other.hasResponseCompressed()) return false; - if (hasResponseCompressed()) { - if (!getResponseCompressed() - .equals(other.getResponseCompressed())) return false; - } - if (hasResponseStatus() != other.hasResponseStatus()) return false; - if (hasResponseStatus()) { - if (!getResponseStatus() - .equals(other.getResponseStatus())) return false; - } - if (hasExpectCompressed() != other.hasExpectCompressed()) return false; - if (hasExpectCompressed()) { - if (!getExpectCompressed() - .equals(other.getExpectCompressed())) return false; - } - if (getFillServerId() - != other.getFillServerId()) return false; - if (getFillGrpclbRouteType() - != other.getFillGrpclbRouteType()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RESPONSE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + responseType_; - hash = (37 * hash) + RESPONSE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getResponseSize(); - if (hasPayload()) { - hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; - hash = (53 * hash) + getPayload().hashCode(); - } - hash = (37 * hash) + FILL_USERNAME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getFillUsername()); - hash = (37 * hash) + FILL_OAUTH_SCOPE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getFillOauthScope()); - if (hasResponseCompressed()) { - hash = (37 * hash) + RESPONSE_COMPRESSED_FIELD_NUMBER; - hash = (53 * hash) + getResponseCompressed().hashCode(); - } - if (hasResponseStatus()) { - hash = (37 * hash) + RESPONSE_STATUS_FIELD_NUMBER; - hash = (53 * hash) + getResponseStatus().hashCode(); - } - if (hasExpectCompressed()) { - hash = (37 * hash) + EXPECT_COMPRESSED_FIELD_NUMBER; - hash = (53 * hash) + getExpectCompressed().hashCode(); - } - hash = (37 * hash) + FILL_SERVER_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getFillServerId()); - hash = (37 * hash) + FILL_GRPCLB_ROUTE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getFillGrpclbRouteType()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static grpc.testing.Messages.SimpleRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.SimpleRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.SimpleRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.SimpleRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.SimpleRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.SimpleRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.SimpleRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static grpc.testing.Messages.SimpleRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static grpc.testing.Messages.SimpleRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static grpc.testing.Messages.SimpleRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static grpc.testing.Messages.SimpleRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static grpc.testing.Messages.SimpleRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(grpc.testing.Messages.SimpleRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Unary request.
-     * 
- * - * Protobuf type {@code grpc.testing.SimpleRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:grpc.testing.SimpleRequest) - grpc.testing.Messages.SimpleRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return grpc.testing.Messages.internal_static_grpc_testing_SimpleRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return grpc.testing.Messages.internal_static_grpc_testing_SimpleRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - grpc.testing.Messages.SimpleRequest.class, grpc.testing.Messages.SimpleRequest.Builder.class); - } - - // Construct using grpc.testing.Messages.SimpleRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - responseType_ = 0; - - responseSize_ = 0; - - if (payloadBuilder_ == null) { - payload_ = null; - } else { - payload_ = null; - payloadBuilder_ = null; - } - fillUsername_ = false; - - fillOauthScope_ = false; - - if (responseCompressedBuilder_ == null) { - responseCompressed_ = null; - } else { - responseCompressed_ = null; - responseCompressedBuilder_ = null; - } - if (responseStatusBuilder_ == null) { - responseStatus_ = null; - } else { - responseStatus_ = null; - responseStatusBuilder_ = null; - } - if (expectCompressedBuilder_ == null) { - expectCompressed_ = null; - } else { - expectCompressed_ = null; - expectCompressedBuilder_ = null; - } - fillServerId_ = false; - - fillGrpclbRouteType_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return grpc.testing.Messages.internal_static_grpc_testing_SimpleRequest_descriptor; - } - - @java.lang.Override - public grpc.testing.Messages.SimpleRequest getDefaultInstanceForType() { - return grpc.testing.Messages.SimpleRequest.getDefaultInstance(); - } - - @java.lang.Override - public grpc.testing.Messages.SimpleRequest build() { - grpc.testing.Messages.SimpleRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public grpc.testing.Messages.SimpleRequest buildPartial() { - grpc.testing.Messages.SimpleRequest result = new grpc.testing.Messages.SimpleRequest(this); - result.responseType_ = responseType_; - result.responseSize_ = responseSize_; - if (payloadBuilder_ == null) { - result.payload_ = payload_; - } else { - result.payload_ = payloadBuilder_.build(); - } - result.fillUsername_ = fillUsername_; - result.fillOauthScope_ = fillOauthScope_; - if (responseCompressedBuilder_ == null) { - result.responseCompressed_ = responseCompressed_; - } else { - result.responseCompressed_ = responseCompressedBuilder_.build(); - } - if (responseStatusBuilder_ == null) { - result.responseStatus_ = responseStatus_; - } else { - result.responseStatus_ = responseStatusBuilder_.build(); - } - if (expectCompressedBuilder_ == null) { - result.expectCompressed_ = expectCompressed_; - } else { - result.expectCompressed_ = expectCompressedBuilder_.build(); - } - result.fillServerId_ = fillServerId_; - result.fillGrpclbRouteType_ = fillGrpclbRouteType_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof grpc.testing.Messages.SimpleRequest) { - return mergeFrom((grpc.testing.Messages.SimpleRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(grpc.testing.Messages.SimpleRequest other) { - if (other == grpc.testing.Messages.SimpleRequest.getDefaultInstance()) return this; - if (other.responseType_ != 0) { - setResponseTypeValue(other.getResponseTypeValue()); - } - if (other.getResponseSize() != 0) { - setResponseSize(other.getResponseSize()); - } - if (other.hasPayload()) { - mergePayload(other.getPayload()); - } - if (other.getFillUsername() != false) { - setFillUsername(other.getFillUsername()); - } - if (other.getFillOauthScope() != false) { - setFillOauthScope(other.getFillOauthScope()); - } - if (other.hasResponseCompressed()) { - mergeResponseCompressed(other.getResponseCompressed()); - } - if (other.hasResponseStatus()) { - mergeResponseStatus(other.getResponseStatus()); - } - if (other.hasExpectCompressed()) { - mergeExpectCompressed(other.getExpectCompressed()); - } - if (other.getFillServerId() != false) { - setFillServerId(other.getFillServerId()); - } - if (other.getFillGrpclbRouteType() != false) { - setFillGrpclbRouteType(other.getFillGrpclbRouteType()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - grpc.testing.Messages.SimpleRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (grpc.testing.Messages.SimpleRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int responseType_ = 0; - /** - *
-       * Desired payload type in the response from the server.
-       * If response_type is RANDOM, server randomly chooses one from other formats.
-       * 
- * - * .grpc.testing.PayloadType response_type = 1 [json_name = "responseType"]; - * @return The enum numeric value on the wire for responseType. - */ - @java.lang.Override public int getResponseTypeValue() { - return responseType_; - } - /** - *
-       * Desired payload type in the response from the server.
-       * If response_type is RANDOM, server randomly chooses one from other formats.
-       * 
- * - * .grpc.testing.PayloadType response_type = 1 [json_name = "responseType"]; - * @param value The enum numeric value on the wire for responseType to set. - * @return This builder for chaining. - */ - public Builder setResponseTypeValue(int value) { - - responseType_ = value; - onChanged(); - return this; - } - /** - *
-       * Desired payload type in the response from the server.
-       * If response_type is RANDOM, server randomly chooses one from other formats.
-       * 
- * - * .grpc.testing.PayloadType response_type = 1 [json_name = "responseType"]; - * @return The responseType. - */ - @java.lang.Override - public grpc.testing.Messages.PayloadType getResponseType() { - @SuppressWarnings("deprecation") - grpc.testing.Messages.PayloadType result = grpc.testing.Messages.PayloadType.valueOf(responseType_); - return result == null ? grpc.testing.Messages.PayloadType.UNRECOGNIZED : result; - } - /** - *
-       * Desired payload type in the response from the server.
-       * If response_type is RANDOM, server randomly chooses one from other formats.
-       * 
- * - * .grpc.testing.PayloadType response_type = 1 [json_name = "responseType"]; - * @param value The responseType to set. - * @return This builder for chaining. - */ - public Builder setResponseType(grpc.testing.Messages.PayloadType value) { - if (value == null) { - throw new NullPointerException(); - } - - responseType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Desired payload type in the response from the server.
-       * If response_type is RANDOM, server randomly chooses one from other formats.
-       * 
- * - * .grpc.testing.PayloadType response_type = 1 [json_name = "responseType"]; - * @return This builder for chaining. - */ - public Builder clearResponseType() { - - responseType_ = 0; - onChanged(); - return this; - } - - private int responseSize_ ; - /** - *
-       * Desired payload size in the response from the server.
-       * 
- * - * int32 response_size = 2 [json_name = "responseSize"]; - * @return The responseSize. - */ - @java.lang.Override - public int getResponseSize() { - return responseSize_; - } - /** - *
-       * Desired payload size in the response from the server.
-       * 
- * - * int32 response_size = 2 [json_name = "responseSize"]; - * @param value The responseSize to set. - * @return This builder for chaining. - */ - public Builder setResponseSize(int value) { - - responseSize_ = value; - onChanged(); - return this; - } - /** - *
-       * Desired payload size in the response from the server.
-       * 
- * - * int32 response_size = 2 [json_name = "responseSize"]; - * @return This builder for chaining. - */ - public Builder clearResponseSize() { - - responseSize_ = 0; - onChanged(); - return this; - } - - private grpc.testing.Messages.Payload payload_; - private com.google.protobuf.SingleFieldBuilderV3< - grpc.testing.Messages.Payload, grpc.testing.Messages.Payload.Builder, grpc.testing.Messages.PayloadOrBuilder> payloadBuilder_; - /** - *
-       * Optional input payload sent along with the request.
-       * 
- * - * .grpc.testing.Payload payload = 3 [json_name = "payload"]; - * @return Whether the payload field is set. - */ - public boolean hasPayload() { - return payloadBuilder_ != null || payload_ != null; - } - /** - *
-       * Optional input payload sent along with the request.
-       * 
- * - * .grpc.testing.Payload payload = 3 [json_name = "payload"]; - * @return The payload. - */ - public grpc.testing.Messages.Payload getPayload() { - if (payloadBuilder_ == null) { - return payload_ == null ? grpc.testing.Messages.Payload.getDefaultInstance() : payload_; - } else { - return payloadBuilder_.getMessage(); - } - } - /** - *
-       * Optional input payload sent along with the request.
-       * 
- * - * .grpc.testing.Payload payload = 3 [json_name = "payload"]; - */ - public Builder setPayload(grpc.testing.Messages.Payload value) { - if (payloadBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - payload_ = value; - onChanged(); - } else { - payloadBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Optional input payload sent along with the request.
-       * 
- * - * .grpc.testing.Payload payload = 3 [json_name = "payload"]; - */ - public Builder setPayload( - grpc.testing.Messages.Payload.Builder builderForValue) { - if (payloadBuilder_ == null) { - payload_ = builderForValue.build(); - onChanged(); - } else { - payloadBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Optional input payload sent along with the request.
-       * 
- * - * .grpc.testing.Payload payload = 3 [json_name = "payload"]; - */ - public Builder mergePayload(grpc.testing.Messages.Payload value) { - if (payloadBuilder_ == null) { - if (payload_ != null) { - payload_ = - grpc.testing.Messages.Payload.newBuilder(payload_).mergeFrom(value).buildPartial(); - } else { - payload_ = value; - } - onChanged(); - } else { - payloadBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Optional input payload sent along with the request.
-       * 
- * - * .grpc.testing.Payload payload = 3 [json_name = "payload"]; - */ - public Builder clearPayload() { - if (payloadBuilder_ == null) { - payload_ = null; - onChanged(); - } else { - payload_ = null; - payloadBuilder_ = null; - } - - return this; - } - /** - *
-       * Optional input payload sent along with the request.
-       * 
- * - * .grpc.testing.Payload payload = 3 [json_name = "payload"]; - */ - public grpc.testing.Messages.Payload.Builder getPayloadBuilder() { - - onChanged(); - return getPayloadFieldBuilder().getBuilder(); - } - /** - *
-       * Optional input payload sent along with the request.
-       * 
- * - * .grpc.testing.Payload payload = 3 [json_name = "payload"]; - */ - public grpc.testing.Messages.PayloadOrBuilder getPayloadOrBuilder() { - if (payloadBuilder_ != null) { - return payloadBuilder_.getMessageOrBuilder(); - } else { - return payload_ == null ? - grpc.testing.Messages.Payload.getDefaultInstance() : payload_; - } - } - /** - *
-       * Optional input payload sent along with the request.
-       * 
- * - * .grpc.testing.Payload payload = 3 [json_name = "payload"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - grpc.testing.Messages.Payload, grpc.testing.Messages.Payload.Builder, grpc.testing.Messages.PayloadOrBuilder> - getPayloadFieldBuilder() { - if (payloadBuilder_ == null) { - payloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - grpc.testing.Messages.Payload, grpc.testing.Messages.Payload.Builder, grpc.testing.Messages.PayloadOrBuilder>( - getPayload(), - getParentForChildren(), - isClean()); - payload_ = null; - } - return payloadBuilder_; - } - - private boolean fillUsername_ ; - /** - *
-       * Whether SimpleResponse should include username.
-       * 
- * - * bool fill_username = 4 [json_name = "fillUsername"]; - * @return The fillUsername. - */ - @java.lang.Override - public boolean getFillUsername() { - return fillUsername_; - } - /** - *
-       * Whether SimpleResponse should include username.
-       * 
- * - * bool fill_username = 4 [json_name = "fillUsername"]; - * @param value The fillUsername to set. - * @return This builder for chaining. - */ - public Builder setFillUsername(boolean value) { - - fillUsername_ = value; - onChanged(); - return this; - } - /** - *
-       * Whether SimpleResponse should include username.
-       * 
- * - * bool fill_username = 4 [json_name = "fillUsername"]; - * @return This builder for chaining. - */ - public Builder clearFillUsername() { - - fillUsername_ = false; - onChanged(); - return this; - } - - private boolean fillOauthScope_ ; - /** - *
-       * Whether SimpleResponse should include OAuth scope.
-       * 
- * - * bool fill_oauth_scope = 5 [json_name = "fillOauthScope"]; - * @return The fillOauthScope. - */ - @java.lang.Override - public boolean getFillOauthScope() { - return fillOauthScope_; - } - /** - *
-       * Whether SimpleResponse should include OAuth scope.
-       * 
- * - * bool fill_oauth_scope = 5 [json_name = "fillOauthScope"]; - * @param value The fillOauthScope to set. - * @return This builder for chaining. - */ - public Builder setFillOauthScope(boolean value) { - - fillOauthScope_ = value; - onChanged(); - return this; - } - /** - *
-       * Whether SimpleResponse should include OAuth scope.
-       * 
- * - * bool fill_oauth_scope = 5 [json_name = "fillOauthScope"]; - * @return This builder for chaining. - */ - public Builder clearFillOauthScope() { - - fillOauthScope_ = false; - onChanged(); - return this; - } - - private grpc.testing.Messages.BoolValue responseCompressed_; - private com.google.protobuf.SingleFieldBuilderV3< - grpc.testing.Messages.BoolValue, grpc.testing.Messages.BoolValue.Builder, grpc.testing.Messages.BoolValueOrBuilder> responseCompressedBuilder_; - /** - *
-       * Whether to request the server to compress the response. This field is
-       * "nullable" in order to interoperate seamlessly with clients not able to
-       * implement the full compression tests by introspecting the call to verify
-       * the response's compression status.
-       * 
- * - * .grpc.testing.BoolValue response_compressed = 6 [json_name = "responseCompressed"]; - * @return Whether the responseCompressed field is set. - */ - public boolean hasResponseCompressed() { - return responseCompressedBuilder_ != null || responseCompressed_ != null; - } - /** - *
-       * Whether to request the server to compress the response. This field is
-       * "nullable" in order to interoperate seamlessly with clients not able to
-       * implement the full compression tests by introspecting the call to verify
-       * the response's compression status.
-       * 
- * - * .grpc.testing.BoolValue response_compressed = 6 [json_name = "responseCompressed"]; - * @return The responseCompressed. - */ - public grpc.testing.Messages.BoolValue getResponseCompressed() { - if (responseCompressedBuilder_ == null) { - return responseCompressed_ == null ? grpc.testing.Messages.BoolValue.getDefaultInstance() : responseCompressed_; - } else { - return responseCompressedBuilder_.getMessage(); - } - } - /** - *
-       * Whether to request the server to compress the response. This field is
-       * "nullable" in order to interoperate seamlessly with clients not able to
-       * implement the full compression tests by introspecting the call to verify
-       * the response's compression status.
-       * 
- * - * .grpc.testing.BoolValue response_compressed = 6 [json_name = "responseCompressed"]; - */ - public Builder setResponseCompressed(grpc.testing.Messages.BoolValue value) { - if (responseCompressedBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - responseCompressed_ = value; - onChanged(); - } else { - responseCompressedBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Whether to request the server to compress the response. This field is
-       * "nullable" in order to interoperate seamlessly with clients not able to
-       * implement the full compression tests by introspecting the call to verify
-       * the response's compression status.
-       * 
- * - * .grpc.testing.BoolValue response_compressed = 6 [json_name = "responseCompressed"]; - */ - public Builder setResponseCompressed( - grpc.testing.Messages.BoolValue.Builder builderForValue) { - if (responseCompressedBuilder_ == null) { - responseCompressed_ = builderForValue.build(); - onChanged(); - } else { - responseCompressedBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Whether to request the server to compress the response. This field is
-       * "nullable" in order to interoperate seamlessly with clients not able to
-       * implement the full compression tests by introspecting the call to verify
-       * the response's compression status.
-       * 
- * - * .grpc.testing.BoolValue response_compressed = 6 [json_name = "responseCompressed"]; - */ - public Builder mergeResponseCompressed(grpc.testing.Messages.BoolValue value) { - if (responseCompressedBuilder_ == null) { - if (responseCompressed_ != null) { - responseCompressed_ = - grpc.testing.Messages.BoolValue.newBuilder(responseCompressed_).mergeFrom(value).buildPartial(); - } else { - responseCompressed_ = value; - } - onChanged(); - } else { - responseCompressedBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Whether to request the server to compress the response. This field is
-       * "nullable" in order to interoperate seamlessly with clients not able to
-       * implement the full compression tests by introspecting the call to verify
-       * the response's compression status.
-       * 
- * - * .grpc.testing.BoolValue response_compressed = 6 [json_name = "responseCompressed"]; - */ - public Builder clearResponseCompressed() { - if (responseCompressedBuilder_ == null) { - responseCompressed_ = null; - onChanged(); - } else { - responseCompressed_ = null; - responseCompressedBuilder_ = null; - } - - return this; - } - /** - *
-       * Whether to request the server to compress the response. This field is
-       * "nullable" in order to interoperate seamlessly with clients not able to
-       * implement the full compression tests by introspecting the call to verify
-       * the response's compression status.
-       * 
- * - * .grpc.testing.BoolValue response_compressed = 6 [json_name = "responseCompressed"]; - */ - public grpc.testing.Messages.BoolValue.Builder getResponseCompressedBuilder() { - - onChanged(); - return getResponseCompressedFieldBuilder().getBuilder(); - } - /** - *
-       * Whether to request the server to compress the response. This field is
-       * "nullable" in order to interoperate seamlessly with clients not able to
-       * implement the full compression tests by introspecting the call to verify
-       * the response's compression status.
-       * 
- * - * .grpc.testing.BoolValue response_compressed = 6 [json_name = "responseCompressed"]; - */ - public grpc.testing.Messages.BoolValueOrBuilder getResponseCompressedOrBuilder() { - if (responseCompressedBuilder_ != null) { - return responseCompressedBuilder_.getMessageOrBuilder(); - } else { - return responseCompressed_ == null ? - grpc.testing.Messages.BoolValue.getDefaultInstance() : responseCompressed_; - } - } - /** - *
-       * Whether to request the server to compress the response. This field is
-       * "nullable" in order to interoperate seamlessly with clients not able to
-       * implement the full compression tests by introspecting the call to verify
-       * the response's compression status.
-       * 
- * - * .grpc.testing.BoolValue response_compressed = 6 [json_name = "responseCompressed"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - grpc.testing.Messages.BoolValue, grpc.testing.Messages.BoolValue.Builder, grpc.testing.Messages.BoolValueOrBuilder> - getResponseCompressedFieldBuilder() { - if (responseCompressedBuilder_ == null) { - responseCompressedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - grpc.testing.Messages.BoolValue, grpc.testing.Messages.BoolValue.Builder, grpc.testing.Messages.BoolValueOrBuilder>( - getResponseCompressed(), - getParentForChildren(), - isClean()); - responseCompressed_ = null; - } - return responseCompressedBuilder_; - } - - private grpc.testing.Messages.EchoStatus responseStatus_; - private com.google.protobuf.SingleFieldBuilderV3< - grpc.testing.Messages.EchoStatus, grpc.testing.Messages.EchoStatus.Builder, grpc.testing.Messages.EchoStatusOrBuilder> responseStatusBuilder_; - /** - *
-       * Whether server should return a given status
-       * 
- * - * .grpc.testing.EchoStatus response_status = 7 [json_name = "responseStatus"]; - * @return Whether the responseStatus field is set. - */ - public boolean hasResponseStatus() { - return responseStatusBuilder_ != null || responseStatus_ != null; - } - /** - *
-       * Whether server should return a given status
-       * 
- * - * .grpc.testing.EchoStatus response_status = 7 [json_name = "responseStatus"]; - * @return The responseStatus. - */ - public grpc.testing.Messages.EchoStatus getResponseStatus() { - if (responseStatusBuilder_ == null) { - return responseStatus_ == null ? grpc.testing.Messages.EchoStatus.getDefaultInstance() : responseStatus_; - } else { - return responseStatusBuilder_.getMessage(); - } - } - /** - *
-       * Whether server should return a given status
-       * 
- * - * .grpc.testing.EchoStatus response_status = 7 [json_name = "responseStatus"]; - */ - public Builder setResponseStatus(grpc.testing.Messages.EchoStatus value) { - if (responseStatusBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - responseStatus_ = value; - onChanged(); - } else { - responseStatusBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Whether server should return a given status
-       * 
- * - * .grpc.testing.EchoStatus response_status = 7 [json_name = "responseStatus"]; - */ - public Builder setResponseStatus( - grpc.testing.Messages.EchoStatus.Builder builderForValue) { - if (responseStatusBuilder_ == null) { - responseStatus_ = builderForValue.build(); - onChanged(); - } else { - responseStatusBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Whether server should return a given status
-       * 
- * - * .grpc.testing.EchoStatus response_status = 7 [json_name = "responseStatus"]; - */ - public Builder mergeResponseStatus(grpc.testing.Messages.EchoStatus value) { - if (responseStatusBuilder_ == null) { - if (responseStatus_ != null) { - responseStatus_ = - grpc.testing.Messages.EchoStatus.newBuilder(responseStatus_).mergeFrom(value).buildPartial(); - } else { - responseStatus_ = value; - } - onChanged(); - } else { - responseStatusBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Whether server should return a given status
-       * 
- * - * .grpc.testing.EchoStatus response_status = 7 [json_name = "responseStatus"]; - */ - public Builder clearResponseStatus() { - if (responseStatusBuilder_ == null) { - responseStatus_ = null; - onChanged(); - } else { - responseStatus_ = null; - responseStatusBuilder_ = null; - } - - return this; - } - /** - *
-       * Whether server should return a given status
-       * 
- * - * .grpc.testing.EchoStatus response_status = 7 [json_name = "responseStatus"]; - */ - public grpc.testing.Messages.EchoStatus.Builder getResponseStatusBuilder() { - - onChanged(); - return getResponseStatusFieldBuilder().getBuilder(); - } - /** - *
-       * Whether server should return a given status
-       * 
- * - * .grpc.testing.EchoStatus response_status = 7 [json_name = "responseStatus"]; - */ - public grpc.testing.Messages.EchoStatusOrBuilder getResponseStatusOrBuilder() { - if (responseStatusBuilder_ != null) { - return responseStatusBuilder_.getMessageOrBuilder(); - } else { - return responseStatus_ == null ? - grpc.testing.Messages.EchoStatus.getDefaultInstance() : responseStatus_; - } - } - /** - *
-       * Whether server should return a given status
-       * 
- * - * .grpc.testing.EchoStatus response_status = 7 [json_name = "responseStatus"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - grpc.testing.Messages.EchoStatus, grpc.testing.Messages.EchoStatus.Builder, grpc.testing.Messages.EchoStatusOrBuilder> - getResponseStatusFieldBuilder() { - if (responseStatusBuilder_ == null) { - responseStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - grpc.testing.Messages.EchoStatus, grpc.testing.Messages.EchoStatus.Builder, grpc.testing.Messages.EchoStatusOrBuilder>( - getResponseStatus(), - getParentForChildren(), - isClean()); - responseStatus_ = null; - } - return responseStatusBuilder_; - } - - private grpc.testing.Messages.BoolValue expectCompressed_; - private com.google.protobuf.SingleFieldBuilderV3< - grpc.testing.Messages.BoolValue, grpc.testing.Messages.BoolValue.Builder, grpc.testing.Messages.BoolValueOrBuilder> expectCompressedBuilder_; - /** - *
-       * Whether the server should expect this request to be compressed.
-       * 
- * - * .grpc.testing.BoolValue expect_compressed = 8 [json_name = "expectCompressed"]; - * @return Whether the expectCompressed field is set. - */ - public boolean hasExpectCompressed() { - return expectCompressedBuilder_ != null || expectCompressed_ != null; - } - /** - *
-       * Whether the server should expect this request to be compressed.
-       * 
- * - * .grpc.testing.BoolValue expect_compressed = 8 [json_name = "expectCompressed"]; - * @return The expectCompressed. - */ - public grpc.testing.Messages.BoolValue getExpectCompressed() { - if (expectCompressedBuilder_ == null) { - return expectCompressed_ == null ? grpc.testing.Messages.BoolValue.getDefaultInstance() : expectCompressed_; - } else { - return expectCompressedBuilder_.getMessage(); - } - } - /** - *
-       * Whether the server should expect this request to be compressed.
-       * 
- * - * .grpc.testing.BoolValue expect_compressed = 8 [json_name = "expectCompressed"]; - */ - public Builder setExpectCompressed(grpc.testing.Messages.BoolValue value) { - if (expectCompressedBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expectCompressed_ = value; - onChanged(); - } else { - expectCompressedBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Whether the server should expect this request to be compressed.
-       * 
- * - * .grpc.testing.BoolValue expect_compressed = 8 [json_name = "expectCompressed"]; - */ - public Builder setExpectCompressed( - grpc.testing.Messages.BoolValue.Builder builderForValue) { - if (expectCompressedBuilder_ == null) { - expectCompressed_ = builderForValue.build(); - onChanged(); - } else { - expectCompressedBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Whether the server should expect this request to be compressed.
-       * 
- * - * .grpc.testing.BoolValue expect_compressed = 8 [json_name = "expectCompressed"]; - */ - public Builder mergeExpectCompressed(grpc.testing.Messages.BoolValue value) { - if (expectCompressedBuilder_ == null) { - if (expectCompressed_ != null) { - expectCompressed_ = - grpc.testing.Messages.BoolValue.newBuilder(expectCompressed_).mergeFrom(value).buildPartial(); - } else { - expectCompressed_ = value; - } - onChanged(); - } else { - expectCompressedBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Whether the server should expect this request to be compressed.
-       * 
- * - * .grpc.testing.BoolValue expect_compressed = 8 [json_name = "expectCompressed"]; - */ - public Builder clearExpectCompressed() { - if (expectCompressedBuilder_ == null) { - expectCompressed_ = null; - onChanged(); - } else { - expectCompressed_ = null; - expectCompressedBuilder_ = null; - } - - return this; - } - /** - *
-       * Whether the server should expect this request to be compressed.
-       * 
- * - * .grpc.testing.BoolValue expect_compressed = 8 [json_name = "expectCompressed"]; - */ - public grpc.testing.Messages.BoolValue.Builder getExpectCompressedBuilder() { - - onChanged(); - return getExpectCompressedFieldBuilder().getBuilder(); - } - /** - *
-       * Whether the server should expect this request to be compressed.
-       * 
- * - * .grpc.testing.BoolValue expect_compressed = 8 [json_name = "expectCompressed"]; - */ - public grpc.testing.Messages.BoolValueOrBuilder getExpectCompressedOrBuilder() { - if (expectCompressedBuilder_ != null) { - return expectCompressedBuilder_.getMessageOrBuilder(); - } else { - return expectCompressed_ == null ? - grpc.testing.Messages.BoolValue.getDefaultInstance() : expectCompressed_; - } - } - /** - *
-       * Whether the server should expect this request to be compressed.
-       * 
- * - * .grpc.testing.BoolValue expect_compressed = 8 [json_name = "expectCompressed"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - grpc.testing.Messages.BoolValue, grpc.testing.Messages.BoolValue.Builder, grpc.testing.Messages.BoolValueOrBuilder> - getExpectCompressedFieldBuilder() { - if (expectCompressedBuilder_ == null) { - expectCompressedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - grpc.testing.Messages.BoolValue, grpc.testing.Messages.BoolValue.Builder, grpc.testing.Messages.BoolValueOrBuilder>( - getExpectCompressed(), - getParentForChildren(), - isClean()); - expectCompressed_ = null; - } - return expectCompressedBuilder_; - } - - private boolean fillServerId_ ; - /** - *
-       * Whether SimpleResponse should include server_id.
-       * 
- * - * bool fill_server_id = 9 [json_name = "fillServerId"]; - * @return The fillServerId. - */ - @java.lang.Override - public boolean getFillServerId() { - return fillServerId_; - } - /** - *
-       * Whether SimpleResponse should include server_id.
-       * 
- * - * bool fill_server_id = 9 [json_name = "fillServerId"]; - * @param value The fillServerId to set. - * @return This builder for chaining. - */ - public Builder setFillServerId(boolean value) { - - fillServerId_ = value; - onChanged(); - return this; - } - /** - *
-       * Whether SimpleResponse should include server_id.
-       * 
- * - * bool fill_server_id = 9 [json_name = "fillServerId"]; - * @return This builder for chaining. - */ - public Builder clearFillServerId() { - - fillServerId_ = false; - onChanged(); - return this; - } - - private boolean fillGrpclbRouteType_ ; - /** - *
-       * Whether SimpleResponse should include grpclb_route_type.
-       * 
- * - * bool fill_grpclb_route_type = 10 [json_name = "fillGrpclbRouteType"]; - * @return The fillGrpclbRouteType. - */ - @java.lang.Override - public boolean getFillGrpclbRouteType() { - return fillGrpclbRouteType_; - } - /** - *
-       * Whether SimpleResponse should include grpclb_route_type.
-       * 
- * - * bool fill_grpclb_route_type = 10 [json_name = "fillGrpclbRouteType"]; - * @param value The fillGrpclbRouteType to set. - * @return This builder for chaining. - */ - public Builder setFillGrpclbRouteType(boolean value) { - - fillGrpclbRouteType_ = value; - onChanged(); - return this; - } - /** - *
-       * Whether SimpleResponse should include grpclb_route_type.
-       * 
- * - * bool fill_grpclb_route_type = 10 [json_name = "fillGrpclbRouteType"]; - * @return This builder for chaining. - */ - public Builder clearFillGrpclbRouteType() { - - fillGrpclbRouteType_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:grpc.testing.SimpleRequest) - } - - // @@protoc_insertion_point(class_scope:grpc.testing.SimpleRequest) - private static final grpc.testing.Messages.SimpleRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new grpc.testing.Messages.SimpleRequest(); - } - - public static grpc.testing.Messages.SimpleRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SimpleRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SimpleRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public grpc.testing.Messages.SimpleRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SimpleResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:grpc.testing.SimpleResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Payload to increase message size.
-     * 
- * - * .grpc.testing.Payload payload = 1 [json_name = "payload"]; - * @return Whether the payload field is set. - */ - boolean hasPayload(); - /** - *
-     * Payload to increase message size.
-     * 
- * - * .grpc.testing.Payload payload = 1 [json_name = "payload"]; - * @return The payload. - */ - grpc.testing.Messages.Payload getPayload(); - /** - *
-     * Payload to increase message size.
-     * 
- * - * .grpc.testing.Payload payload = 1 [json_name = "payload"]; - */ - grpc.testing.Messages.PayloadOrBuilder getPayloadOrBuilder(); - - /** - *
-     * The user the request came from, for verifying authentication was
-     * successful when the client expected it.
-     * 
- * - * string username = 2 [json_name = "username"]; - * @return The username. - */ - java.lang.String getUsername(); - /** - *
-     * The user the request came from, for verifying authentication was
-     * successful when the client expected it.
-     * 
- * - * string username = 2 [json_name = "username"]; - * @return The bytes for username. - */ - com.google.protobuf.ByteString - getUsernameBytes(); - - /** - *
-     * OAuth scope.
-     * 
- * - * string oauth_scope = 3 [json_name = "oauthScope"]; - * @return The oauthScope. - */ - java.lang.String getOauthScope(); - /** - *
-     * OAuth scope.
-     * 
- * - * string oauth_scope = 3 [json_name = "oauthScope"]; - * @return The bytes for oauthScope. - */ - com.google.protobuf.ByteString - getOauthScopeBytes(); - - /** - *
-     * Server ID. This must be unique among different server instances,
-     * but the same across all RPC's made to a particular server instance.
-     * 
- * - * string server_id = 4 [json_name = "serverId"]; - * @return The serverId. - */ - java.lang.String getServerId(); - /** - *
-     * Server ID. This must be unique among different server instances,
-     * but the same across all RPC's made to a particular server instance.
-     * 
- * - * string server_id = 4 [json_name = "serverId"]; - * @return The bytes for serverId. - */ - com.google.protobuf.ByteString - getServerIdBytes(); - - /** - *
-     * gRPCLB Path.
-     * 
- * - * .grpc.testing.GrpclbRouteType grpclb_route_type = 5 [json_name = "grpclbRouteType"]; - * @return The enum numeric value on the wire for grpclbRouteType. - */ - int getGrpclbRouteTypeValue(); - /** - *
-     * gRPCLB Path.
-     * 
- * - * .grpc.testing.GrpclbRouteType grpclb_route_type = 5 [json_name = "grpclbRouteType"]; - * @return The grpclbRouteType. - */ - grpc.testing.Messages.GrpclbRouteType getGrpclbRouteType(); - - /** - *
-     * Server hostname.
-     * 
- * - * string hostname = 6 [json_name = "hostname"]; - * @return The hostname. - */ - java.lang.String getHostname(); - /** - *
-     * Server hostname.
-     * 
- * - * string hostname = 6 [json_name = "hostname"]; - * @return The bytes for hostname. - */ - com.google.protobuf.ByteString - getHostnameBytes(); - } - /** - *
-   * Unary response, as configured by the request.
-   * 
- * - * Protobuf type {@code grpc.testing.SimpleResponse} - */ - public static final class SimpleResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:grpc.testing.SimpleResponse) - SimpleResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use SimpleResponse.newBuilder() to construct. - private SimpleResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SimpleResponse() { - username_ = ""; - oauthScope_ = ""; - serverId_ = ""; - grpclbRouteType_ = 0; - hostname_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SimpleResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SimpleResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - grpc.testing.Messages.Payload.Builder subBuilder = null; - if (payload_ != null) { - subBuilder = payload_.toBuilder(); - } - payload_ = input.readMessage(grpc.testing.Messages.Payload.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(payload_); - payload_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - username_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - oauthScope_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - serverId_ = s; - break; - } - case 40: { - int rawValue = input.readEnum(); - - grpclbRouteType_ = rawValue; - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - hostname_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return grpc.testing.Messages.internal_static_grpc_testing_SimpleResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return grpc.testing.Messages.internal_static_grpc_testing_SimpleResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - grpc.testing.Messages.SimpleResponse.class, grpc.testing.Messages.SimpleResponse.Builder.class); - } - - public static final int PAYLOAD_FIELD_NUMBER = 1; - private grpc.testing.Messages.Payload payload_; - /** - *
-     * Payload to increase message size.
-     * 
- * - * .grpc.testing.Payload payload = 1 [json_name = "payload"]; - * @return Whether the payload field is set. - */ - @java.lang.Override - public boolean hasPayload() { - return payload_ != null; - } - /** - *
-     * Payload to increase message size.
-     * 
- * - * .grpc.testing.Payload payload = 1 [json_name = "payload"]; - * @return The payload. - */ - @java.lang.Override - public grpc.testing.Messages.Payload getPayload() { - return payload_ == null ? grpc.testing.Messages.Payload.getDefaultInstance() : payload_; - } - /** - *
-     * Payload to increase message size.
-     * 
- * - * .grpc.testing.Payload payload = 1 [json_name = "payload"]; - */ - @java.lang.Override - public grpc.testing.Messages.PayloadOrBuilder getPayloadOrBuilder() { - return getPayload(); - } - - public static final int USERNAME_FIELD_NUMBER = 2; - private volatile java.lang.Object username_; - /** - *
-     * The user the request came from, for verifying authentication was
-     * successful when the client expected it.
-     * 
- * - * string username = 2 [json_name = "username"]; - * @return The username. - */ - @java.lang.Override - public java.lang.String getUsername() { - java.lang.Object ref = username_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - username_ = s; - return s; - } - } - /** - *
-     * The user the request came from, for verifying authentication was
-     * successful when the client expected it.
-     * 
- * - * string username = 2 [json_name = "username"]; - * @return The bytes for username. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getUsernameBytes() { - java.lang.Object ref = username_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - username_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OAUTH_SCOPE_FIELD_NUMBER = 3; - private volatile java.lang.Object oauthScope_; - /** - *
-     * OAuth scope.
-     * 
- * - * string oauth_scope = 3 [json_name = "oauthScope"]; - * @return The oauthScope. - */ - @java.lang.Override - public java.lang.String getOauthScope() { - java.lang.Object ref = oauthScope_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - oauthScope_ = s; - return s; - } - } - /** - *
-     * OAuth scope.
-     * 
- * - * string oauth_scope = 3 [json_name = "oauthScope"]; - * @return The bytes for oauthScope. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getOauthScopeBytes() { - java.lang.Object ref = oauthScope_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - oauthScope_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SERVER_ID_FIELD_NUMBER = 4; - private volatile java.lang.Object serverId_; - /** - *
-     * Server ID. This must be unique among different server instances,
-     * but the same across all RPC's made to a particular server instance.
-     * 
- * - * string server_id = 4 [json_name = "serverId"]; - * @return The serverId. - */ - @java.lang.Override - public java.lang.String getServerId() { - java.lang.Object ref = serverId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - serverId_ = s; - return s; - } - } - /** - *
-     * Server ID. This must be unique among different server instances,
-     * but the same across all RPC's made to a particular server instance.
-     * 
- * - * string server_id = 4 [json_name = "serverId"]; - * @return The bytes for serverId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getServerIdBytes() { - java.lang.Object ref = serverId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - serverId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GRPCLB_ROUTE_TYPE_FIELD_NUMBER = 5; - private int grpclbRouteType_; - /** - *
-     * gRPCLB Path.
-     * 
- * - * .grpc.testing.GrpclbRouteType grpclb_route_type = 5 [json_name = "grpclbRouteType"]; - * @return The enum numeric value on the wire for grpclbRouteType. - */ - @java.lang.Override public int getGrpclbRouteTypeValue() { - return grpclbRouteType_; - } - /** - *
-     * gRPCLB Path.
-     * 
- * - * .grpc.testing.GrpclbRouteType grpclb_route_type = 5 [json_name = "grpclbRouteType"]; - * @return The grpclbRouteType. - */ - @java.lang.Override public grpc.testing.Messages.GrpclbRouteType getGrpclbRouteType() { - @SuppressWarnings("deprecation") - grpc.testing.Messages.GrpclbRouteType result = grpc.testing.Messages.GrpclbRouteType.valueOf(grpclbRouteType_); - return result == null ? grpc.testing.Messages.GrpclbRouteType.UNRECOGNIZED : result; - } - - public static final int HOSTNAME_FIELD_NUMBER = 6; - private volatile java.lang.Object hostname_; - /** - *
-     * Server hostname.
-     * 
- * - * string hostname = 6 [json_name = "hostname"]; - * @return The hostname. - */ - @java.lang.Override - public java.lang.String getHostname() { - java.lang.Object ref = hostname_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - hostname_ = s; - return s; - } - } - /** - *
-     * Server hostname.
-     * 
- * - * string hostname = 6 [json_name = "hostname"]; - * @return The bytes for hostname. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getHostnameBytes() { - java.lang.Object ref = hostname_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - hostname_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (payload_ != null) { - output.writeMessage(1, getPayload()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, username_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(oauthScope_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, oauthScope_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serverId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, serverId_); - } - if (grpclbRouteType_ != grpc.testing.Messages.GrpclbRouteType.GRPCLB_ROUTE_TYPE_UNKNOWN.getNumber()) { - output.writeEnum(5, grpclbRouteType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, hostname_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (payload_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPayload()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, username_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(oauthScope_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, oauthScope_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serverId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, serverId_); - } - if (grpclbRouteType_ != grpc.testing.Messages.GrpclbRouteType.GRPCLB_ROUTE_TYPE_UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, grpclbRouteType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, hostname_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof grpc.testing.Messages.SimpleResponse)) { - return super.equals(obj); - } - grpc.testing.Messages.SimpleResponse other = (grpc.testing.Messages.SimpleResponse) obj; - - if (hasPayload() != other.hasPayload()) return false; - if (hasPayload()) { - if (!getPayload() - .equals(other.getPayload())) return false; - } - if (!getUsername() - .equals(other.getUsername())) return false; - if (!getOauthScope() - .equals(other.getOauthScope())) return false; - if (!getServerId() - .equals(other.getServerId())) return false; - if (grpclbRouteType_ != other.grpclbRouteType_) return false; - if (!getHostname() - .equals(other.getHostname())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasPayload()) { - hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; - hash = (53 * hash) + getPayload().hashCode(); - } - hash = (37 * hash) + USERNAME_FIELD_NUMBER; - hash = (53 * hash) + getUsername().hashCode(); - hash = (37 * hash) + OAUTH_SCOPE_FIELD_NUMBER; - hash = (53 * hash) + getOauthScope().hashCode(); - hash = (37 * hash) + SERVER_ID_FIELD_NUMBER; - hash = (53 * hash) + getServerId().hashCode(); - hash = (37 * hash) + GRPCLB_ROUTE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + grpclbRouteType_; - hash = (37 * hash) + HOSTNAME_FIELD_NUMBER; - hash = (53 * hash) + getHostname().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static grpc.testing.Messages.SimpleResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.SimpleResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.SimpleResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.SimpleResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.SimpleResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.SimpleResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.SimpleResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static grpc.testing.Messages.SimpleResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static grpc.testing.Messages.SimpleResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static grpc.testing.Messages.SimpleResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static grpc.testing.Messages.SimpleResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static grpc.testing.Messages.SimpleResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(grpc.testing.Messages.SimpleResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Unary response, as configured by the request.
-     * 
- * - * Protobuf type {@code grpc.testing.SimpleResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:grpc.testing.SimpleResponse) - grpc.testing.Messages.SimpleResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return grpc.testing.Messages.internal_static_grpc_testing_SimpleResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return grpc.testing.Messages.internal_static_grpc_testing_SimpleResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - grpc.testing.Messages.SimpleResponse.class, grpc.testing.Messages.SimpleResponse.Builder.class); - } - - // Construct using grpc.testing.Messages.SimpleResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (payloadBuilder_ == null) { - payload_ = null; - } else { - payload_ = null; - payloadBuilder_ = null; - } - username_ = ""; - - oauthScope_ = ""; - - serverId_ = ""; - - grpclbRouteType_ = 0; - - hostname_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return grpc.testing.Messages.internal_static_grpc_testing_SimpleResponse_descriptor; - } - - @java.lang.Override - public grpc.testing.Messages.SimpleResponse getDefaultInstanceForType() { - return grpc.testing.Messages.SimpleResponse.getDefaultInstance(); - } - - @java.lang.Override - public grpc.testing.Messages.SimpleResponse build() { - grpc.testing.Messages.SimpleResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public grpc.testing.Messages.SimpleResponse buildPartial() { - grpc.testing.Messages.SimpleResponse result = new grpc.testing.Messages.SimpleResponse(this); - if (payloadBuilder_ == null) { - result.payload_ = payload_; - } else { - result.payload_ = payloadBuilder_.build(); - } - result.username_ = username_; - result.oauthScope_ = oauthScope_; - result.serverId_ = serverId_; - result.grpclbRouteType_ = grpclbRouteType_; - result.hostname_ = hostname_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof grpc.testing.Messages.SimpleResponse) { - return mergeFrom((grpc.testing.Messages.SimpleResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(grpc.testing.Messages.SimpleResponse other) { - if (other == grpc.testing.Messages.SimpleResponse.getDefaultInstance()) return this; - if (other.hasPayload()) { - mergePayload(other.getPayload()); - } - if (!other.getUsername().isEmpty()) { - username_ = other.username_; - onChanged(); - } - if (!other.getOauthScope().isEmpty()) { - oauthScope_ = other.oauthScope_; - onChanged(); - } - if (!other.getServerId().isEmpty()) { - serverId_ = other.serverId_; - onChanged(); - } - if (other.grpclbRouteType_ != 0) { - setGrpclbRouteTypeValue(other.getGrpclbRouteTypeValue()); - } - if (!other.getHostname().isEmpty()) { - hostname_ = other.hostname_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - grpc.testing.Messages.SimpleResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (grpc.testing.Messages.SimpleResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private grpc.testing.Messages.Payload payload_; - private com.google.protobuf.SingleFieldBuilderV3< - grpc.testing.Messages.Payload, grpc.testing.Messages.Payload.Builder, grpc.testing.Messages.PayloadOrBuilder> payloadBuilder_; - /** - *
-       * Payload to increase message size.
-       * 
- * - * .grpc.testing.Payload payload = 1 [json_name = "payload"]; - * @return Whether the payload field is set. - */ - public boolean hasPayload() { - return payloadBuilder_ != null || payload_ != null; - } - /** - *
-       * Payload to increase message size.
-       * 
- * - * .grpc.testing.Payload payload = 1 [json_name = "payload"]; - * @return The payload. - */ - public grpc.testing.Messages.Payload getPayload() { - if (payloadBuilder_ == null) { - return payload_ == null ? grpc.testing.Messages.Payload.getDefaultInstance() : payload_; - } else { - return payloadBuilder_.getMessage(); - } - } - /** - *
-       * Payload to increase message size.
-       * 
- * - * .grpc.testing.Payload payload = 1 [json_name = "payload"]; - */ - public Builder setPayload(grpc.testing.Messages.Payload value) { - if (payloadBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - payload_ = value; - onChanged(); - } else { - payloadBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Payload to increase message size.
-       * 
- * - * .grpc.testing.Payload payload = 1 [json_name = "payload"]; - */ - public Builder setPayload( - grpc.testing.Messages.Payload.Builder builderForValue) { - if (payloadBuilder_ == null) { - payload_ = builderForValue.build(); - onChanged(); - } else { - payloadBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Payload to increase message size.
-       * 
- * - * .grpc.testing.Payload payload = 1 [json_name = "payload"]; - */ - public Builder mergePayload(grpc.testing.Messages.Payload value) { - if (payloadBuilder_ == null) { - if (payload_ != null) { - payload_ = - grpc.testing.Messages.Payload.newBuilder(payload_).mergeFrom(value).buildPartial(); - } else { - payload_ = value; - } - onChanged(); - } else { - payloadBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Payload to increase message size.
-       * 
- * - * .grpc.testing.Payload payload = 1 [json_name = "payload"]; - */ - public Builder clearPayload() { - if (payloadBuilder_ == null) { - payload_ = null; - onChanged(); - } else { - payload_ = null; - payloadBuilder_ = null; - } - - return this; - } - /** - *
-       * Payload to increase message size.
-       * 
- * - * .grpc.testing.Payload payload = 1 [json_name = "payload"]; - */ - public grpc.testing.Messages.Payload.Builder getPayloadBuilder() { - - onChanged(); - return getPayloadFieldBuilder().getBuilder(); - } - /** - *
-       * Payload to increase message size.
-       * 
- * - * .grpc.testing.Payload payload = 1 [json_name = "payload"]; - */ - public grpc.testing.Messages.PayloadOrBuilder getPayloadOrBuilder() { - if (payloadBuilder_ != null) { - return payloadBuilder_.getMessageOrBuilder(); - } else { - return payload_ == null ? - grpc.testing.Messages.Payload.getDefaultInstance() : payload_; - } - } - /** - *
-       * Payload to increase message size.
-       * 
- * - * .grpc.testing.Payload payload = 1 [json_name = "payload"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - grpc.testing.Messages.Payload, grpc.testing.Messages.Payload.Builder, grpc.testing.Messages.PayloadOrBuilder> - getPayloadFieldBuilder() { - if (payloadBuilder_ == null) { - payloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - grpc.testing.Messages.Payload, grpc.testing.Messages.Payload.Builder, grpc.testing.Messages.PayloadOrBuilder>( - getPayload(), - getParentForChildren(), - isClean()); - payload_ = null; - } - return payloadBuilder_; - } - - private java.lang.Object username_ = ""; - /** - *
-       * The user the request came from, for verifying authentication was
-       * successful when the client expected it.
-       * 
- * - * string username = 2 [json_name = "username"]; - * @return The username. - */ - public java.lang.String getUsername() { - java.lang.Object ref = username_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - username_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The user the request came from, for verifying authentication was
-       * successful when the client expected it.
-       * 
- * - * string username = 2 [json_name = "username"]; - * @return The bytes for username. - */ - public com.google.protobuf.ByteString - getUsernameBytes() { - java.lang.Object ref = username_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - username_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The user the request came from, for verifying authentication was
-       * successful when the client expected it.
-       * 
- * - * string username = 2 [json_name = "username"]; - * @param value The username to set. - * @return This builder for chaining. - */ - public Builder setUsername( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - username_ = value; - onChanged(); - return this; - } - /** - *
-       * The user the request came from, for verifying authentication was
-       * successful when the client expected it.
-       * 
- * - * string username = 2 [json_name = "username"]; - * @return This builder for chaining. - */ - public Builder clearUsername() { - - username_ = getDefaultInstance().getUsername(); - onChanged(); - return this; - } - /** - *
-       * The user the request came from, for verifying authentication was
-       * successful when the client expected it.
-       * 
- * - * string username = 2 [json_name = "username"]; - * @param value The bytes for username to set. - * @return This builder for chaining. - */ - public Builder setUsernameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - username_ = value; - onChanged(); - return this; - } - - private java.lang.Object oauthScope_ = ""; - /** - *
-       * OAuth scope.
-       * 
- * - * string oauth_scope = 3 [json_name = "oauthScope"]; - * @return The oauthScope. - */ - public java.lang.String getOauthScope() { - java.lang.Object ref = oauthScope_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - oauthScope_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * OAuth scope.
-       * 
- * - * string oauth_scope = 3 [json_name = "oauthScope"]; - * @return The bytes for oauthScope. - */ - public com.google.protobuf.ByteString - getOauthScopeBytes() { - java.lang.Object ref = oauthScope_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - oauthScope_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * OAuth scope.
-       * 
- * - * string oauth_scope = 3 [json_name = "oauthScope"]; - * @param value The oauthScope to set. - * @return This builder for chaining. - */ - public Builder setOauthScope( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - oauthScope_ = value; - onChanged(); - return this; - } - /** - *
-       * OAuth scope.
-       * 
- * - * string oauth_scope = 3 [json_name = "oauthScope"]; - * @return This builder for chaining. - */ - public Builder clearOauthScope() { - - oauthScope_ = getDefaultInstance().getOauthScope(); - onChanged(); - return this; - } - /** - *
-       * OAuth scope.
-       * 
- * - * string oauth_scope = 3 [json_name = "oauthScope"]; - * @param value The bytes for oauthScope to set. - * @return This builder for chaining. - */ - public Builder setOauthScopeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - oauthScope_ = value; - onChanged(); - return this; - } - - private java.lang.Object serverId_ = ""; - /** - *
-       * Server ID. This must be unique among different server instances,
-       * but the same across all RPC's made to a particular server instance.
-       * 
- * - * string server_id = 4 [json_name = "serverId"]; - * @return The serverId. - */ - public java.lang.String getServerId() { - java.lang.Object ref = serverId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - serverId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Server ID. This must be unique among different server instances,
-       * but the same across all RPC's made to a particular server instance.
-       * 
- * - * string server_id = 4 [json_name = "serverId"]; - * @return The bytes for serverId. - */ - public com.google.protobuf.ByteString - getServerIdBytes() { - java.lang.Object ref = serverId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - serverId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Server ID. This must be unique among different server instances,
-       * but the same across all RPC's made to a particular server instance.
-       * 
- * - * string server_id = 4 [json_name = "serverId"]; - * @param value The serverId to set. - * @return This builder for chaining. - */ - public Builder setServerId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - serverId_ = value; - onChanged(); - return this; - } - /** - *
-       * Server ID. This must be unique among different server instances,
-       * but the same across all RPC's made to a particular server instance.
-       * 
- * - * string server_id = 4 [json_name = "serverId"]; - * @return This builder for chaining. - */ - public Builder clearServerId() { - - serverId_ = getDefaultInstance().getServerId(); - onChanged(); - return this; - } - /** - *
-       * Server ID. This must be unique among different server instances,
-       * but the same across all RPC's made to a particular server instance.
-       * 
- * - * string server_id = 4 [json_name = "serverId"]; - * @param value The bytes for serverId to set. - * @return This builder for chaining. - */ - public Builder setServerIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - serverId_ = value; - onChanged(); - return this; - } - - private int grpclbRouteType_ = 0; - /** - *
-       * gRPCLB Path.
-       * 
- * - * .grpc.testing.GrpclbRouteType grpclb_route_type = 5 [json_name = "grpclbRouteType"]; - * @return The enum numeric value on the wire for grpclbRouteType. - */ - @java.lang.Override public int getGrpclbRouteTypeValue() { - return grpclbRouteType_; - } - /** - *
-       * gRPCLB Path.
-       * 
- * - * .grpc.testing.GrpclbRouteType grpclb_route_type = 5 [json_name = "grpclbRouteType"]; - * @param value The enum numeric value on the wire for grpclbRouteType to set. - * @return This builder for chaining. - */ - public Builder setGrpclbRouteTypeValue(int value) { - - grpclbRouteType_ = value; - onChanged(); - return this; - } - /** - *
-       * gRPCLB Path.
-       * 
- * - * .grpc.testing.GrpclbRouteType grpclb_route_type = 5 [json_name = "grpclbRouteType"]; - * @return The grpclbRouteType. - */ - @java.lang.Override - public grpc.testing.Messages.GrpclbRouteType getGrpclbRouteType() { - @SuppressWarnings("deprecation") - grpc.testing.Messages.GrpclbRouteType result = grpc.testing.Messages.GrpclbRouteType.valueOf(grpclbRouteType_); - return result == null ? grpc.testing.Messages.GrpclbRouteType.UNRECOGNIZED : result; - } - /** - *
-       * gRPCLB Path.
-       * 
- * - * .grpc.testing.GrpclbRouteType grpclb_route_type = 5 [json_name = "grpclbRouteType"]; - * @param value The grpclbRouteType to set. - * @return This builder for chaining. - */ - public Builder setGrpclbRouteType(grpc.testing.Messages.GrpclbRouteType value) { - if (value == null) { - throw new NullPointerException(); - } - - grpclbRouteType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * gRPCLB Path.
-       * 
- * - * .grpc.testing.GrpclbRouteType grpclb_route_type = 5 [json_name = "grpclbRouteType"]; - * @return This builder for chaining. - */ - public Builder clearGrpclbRouteType() { - - grpclbRouteType_ = 0; - onChanged(); - return this; - } - - private java.lang.Object hostname_ = ""; - /** - *
-       * Server hostname.
-       * 
- * - * string hostname = 6 [json_name = "hostname"]; - * @return The hostname. - */ - public java.lang.String getHostname() { - java.lang.Object ref = hostname_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - hostname_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Server hostname.
-       * 
- * - * string hostname = 6 [json_name = "hostname"]; - * @return The bytes for hostname. - */ - public com.google.protobuf.ByteString - getHostnameBytes() { - java.lang.Object ref = hostname_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - hostname_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Server hostname.
-       * 
- * - * string hostname = 6 [json_name = "hostname"]; - * @param value The hostname to set. - * @return This builder for chaining. - */ - public Builder setHostname( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - hostname_ = value; - onChanged(); - return this; - } - /** - *
-       * Server hostname.
-       * 
- * - * string hostname = 6 [json_name = "hostname"]; - * @return This builder for chaining. - */ - public Builder clearHostname() { - - hostname_ = getDefaultInstance().getHostname(); - onChanged(); - return this; - } - /** - *
-       * Server hostname.
-       * 
- * - * string hostname = 6 [json_name = "hostname"]; - * @param value The bytes for hostname to set. - * @return This builder for chaining. - */ - public Builder setHostnameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - hostname_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:grpc.testing.SimpleResponse) - } - - // @@protoc_insertion_point(class_scope:grpc.testing.SimpleResponse) - private static final grpc.testing.Messages.SimpleResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new grpc.testing.Messages.SimpleResponse(); - } - - public static grpc.testing.Messages.SimpleResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SimpleResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SimpleResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public grpc.testing.Messages.SimpleResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface StreamingInputCallRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:grpc.testing.StreamingInputCallRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Optional input payload sent along with the request.
-     * 
- * - * .grpc.testing.Payload payload = 1 [json_name = "payload"]; - * @return Whether the payload field is set. - */ - boolean hasPayload(); - /** - *
-     * Optional input payload sent along with the request.
-     * 
- * - * .grpc.testing.Payload payload = 1 [json_name = "payload"]; - * @return The payload. - */ - grpc.testing.Messages.Payload getPayload(); - /** - *
-     * Optional input payload sent along with the request.
-     * 
- * - * .grpc.testing.Payload payload = 1 [json_name = "payload"]; - */ - grpc.testing.Messages.PayloadOrBuilder getPayloadOrBuilder(); - - /** - *
-     * Whether the server should expect this request to be compressed. This field
-     * is "nullable" in order to interoperate seamlessly with servers not able to
-     * implement the full compression tests by introspecting the call to verify
-     * the request's compression status.
-     * 
- * - * .grpc.testing.BoolValue expect_compressed = 2 [json_name = "expectCompressed"]; - * @return Whether the expectCompressed field is set. - */ - boolean hasExpectCompressed(); - /** - *
-     * Whether the server should expect this request to be compressed. This field
-     * is "nullable" in order to interoperate seamlessly with servers not able to
-     * implement the full compression tests by introspecting the call to verify
-     * the request's compression status.
-     * 
- * - * .grpc.testing.BoolValue expect_compressed = 2 [json_name = "expectCompressed"]; - * @return The expectCompressed. - */ - grpc.testing.Messages.BoolValue getExpectCompressed(); - /** - *
-     * Whether the server should expect this request to be compressed. This field
-     * is "nullable" in order to interoperate seamlessly with servers not able to
-     * implement the full compression tests by introspecting the call to verify
-     * the request's compression status.
-     * 
- * - * .grpc.testing.BoolValue expect_compressed = 2 [json_name = "expectCompressed"]; - */ - grpc.testing.Messages.BoolValueOrBuilder getExpectCompressedOrBuilder(); - } - /** - *
-   * Client-streaming request.
-   * 
- * - * Protobuf type {@code grpc.testing.StreamingInputCallRequest} - */ - public static final class StreamingInputCallRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:grpc.testing.StreamingInputCallRequest) - StreamingInputCallRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use StreamingInputCallRequest.newBuilder() to construct. - private StreamingInputCallRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private StreamingInputCallRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StreamingInputCallRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private StreamingInputCallRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - grpc.testing.Messages.Payload.Builder subBuilder = null; - if (payload_ != null) { - subBuilder = payload_.toBuilder(); - } - payload_ = input.readMessage(grpc.testing.Messages.Payload.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(payload_); - payload_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - grpc.testing.Messages.BoolValue.Builder subBuilder = null; - if (expectCompressed_ != null) { - subBuilder = expectCompressed_.toBuilder(); - } - expectCompressed_ = input.readMessage(grpc.testing.Messages.BoolValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(expectCompressed_); - expectCompressed_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return grpc.testing.Messages.internal_static_grpc_testing_StreamingInputCallRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return grpc.testing.Messages.internal_static_grpc_testing_StreamingInputCallRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - grpc.testing.Messages.StreamingInputCallRequest.class, grpc.testing.Messages.StreamingInputCallRequest.Builder.class); - } - - public static final int PAYLOAD_FIELD_NUMBER = 1; - private grpc.testing.Messages.Payload payload_; - /** - *
-     * Optional input payload sent along with the request.
-     * 
- * - * .grpc.testing.Payload payload = 1 [json_name = "payload"]; - * @return Whether the payload field is set. - */ - @java.lang.Override - public boolean hasPayload() { - return payload_ != null; - } - /** - *
-     * Optional input payload sent along with the request.
-     * 
- * - * .grpc.testing.Payload payload = 1 [json_name = "payload"]; - * @return The payload. - */ - @java.lang.Override - public grpc.testing.Messages.Payload getPayload() { - return payload_ == null ? grpc.testing.Messages.Payload.getDefaultInstance() : payload_; - } - /** - *
-     * Optional input payload sent along with the request.
-     * 
- * - * .grpc.testing.Payload payload = 1 [json_name = "payload"]; - */ - @java.lang.Override - public grpc.testing.Messages.PayloadOrBuilder getPayloadOrBuilder() { - return getPayload(); - } - - public static final int EXPECT_COMPRESSED_FIELD_NUMBER = 2; - private grpc.testing.Messages.BoolValue expectCompressed_; - /** - *
-     * Whether the server should expect this request to be compressed. This field
-     * is "nullable" in order to interoperate seamlessly with servers not able to
-     * implement the full compression tests by introspecting the call to verify
-     * the request's compression status.
-     * 
- * - * .grpc.testing.BoolValue expect_compressed = 2 [json_name = "expectCompressed"]; - * @return Whether the expectCompressed field is set. - */ - @java.lang.Override - public boolean hasExpectCompressed() { - return expectCompressed_ != null; - } - /** - *
-     * Whether the server should expect this request to be compressed. This field
-     * is "nullable" in order to interoperate seamlessly with servers not able to
-     * implement the full compression tests by introspecting the call to verify
-     * the request's compression status.
-     * 
- * - * .grpc.testing.BoolValue expect_compressed = 2 [json_name = "expectCompressed"]; - * @return The expectCompressed. - */ - @java.lang.Override - public grpc.testing.Messages.BoolValue getExpectCompressed() { - return expectCompressed_ == null ? grpc.testing.Messages.BoolValue.getDefaultInstance() : expectCompressed_; - } - /** - *
-     * Whether the server should expect this request to be compressed. This field
-     * is "nullable" in order to interoperate seamlessly with servers not able to
-     * implement the full compression tests by introspecting the call to verify
-     * the request's compression status.
-     * 
- * - * .grpc.testing.BoolValue expect_compressed = 2 [json_name = "expectCompressed"]; - */ - @java.lang.Override - public grpc.testing.Messages.BoolValueOrBuilder getExpectCompressedOrBuilder() { - return getExpectCompressed(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (payload_ != null) { - output.writeMessage(1, getPayload()); - } - if (expectCompressed_ != null) { - output.writeMessage(2, getExpectCompressed()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (payload_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPayload()); - } - if (expectCompressed_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getExpectCompressed()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof grpc.testing.Messages.StreamingInputCallRequest)) { - return super.equals(obj); - } - grpc.testing.Messages.StreamingInputCallRequest other = (grpc.testing.Messages.StreamingInputCallRequest) obj; - - if (hasPayload() != other.hasPayload()) return false; - if (hasPayload()) { - if (!getPayload() - .equals(other.getPayload())) return false; - } - if (hasExpectCompressed() != other.hasExpectCompressed()) return false; - if (hasExpectCompressed()) { - if (!getExpectCompressed() - .equals(other.getExpectCompressed())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasPayload()) { - hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; - hash = (53 * hash) + getPayload().hashCode(); - } - if (hasExpectCompressed()) { - hash = (37 * hash) + EXPECT_COMPRESSED_FIELD_NUMBER; - hash = (53 * hash) + getExpectCompressed().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static grpc.testing.Messages.StreamingInputCallRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.StreamingInputCallRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.StreamingInputCallRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.StreamingInputCallRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.StreamingInputCallRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.StreamingInputCallRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.StreamingInputCallRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static grpc.testing.Messages.StreamingInputCallRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static grpc.testing.Messages.StreamingInputCallRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static grpc.testing.Messages.StreamingInputCallRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static grpc.testing.Messages.StreamingInputCallRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static grpc.testing.Messages.StreamingInputCallRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(grpc.testing.Messages.StreamingInputCallRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Client-streaming request.
-     * 
- * - * Protobuf type {@code grpc.testing.StreamingInputCallRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:grpc.testing.StreamingInputCallRequest) - grpc.testing.Messages.StreamingInputCallRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return grpc.testing.Messages.internal_static_grpc_testing_StreamingInputCallRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return grpc.testing.Messages.internal_static_grpc_testing_StreamingInputCallRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - grpc.testing.Messages.StreamingInputCallRequest.class, grpc.testing.Messages.StreamingInputCallRequest.Builder.class); - } - - // Construct using grpc.testing.Messages.StreamingInputCallRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (payloadBuilder_ == null) { - payload_ = null; - } else { - payload_ = null; - payloadBuilder_ = null; - } - if (expectCompressedBuilder_ == null) { - expectCompressed_ = null; - } else { - expectCompressed_ = null; - expectCompressedBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return grpc.testing.Messages.internal_static_grpc_testing_StreamingInputCallRequest_descriptor; - } - - @java.lang.Override - public grpc.testing.Messages.StreamingInputCallRequest getDefaultInstanceForType() { - return grpc.testing.Messages.StreamingInputCallRequest.getDefaultInstance(); - } - - @java.lang.Override - public grpc.testing.Messages.StreamingInputCallRequest build() { - grpc.testing.Messages.StreamingInputCallRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public grpc.testing.Messages.StreamingInputCallRequest buildPartial() { - grpc.testing.Messages.StreamingInputCallRequest result = new grpc.testing.Messages.StreamingInputCallRequest(this); - if (payloadBuilder_ == null) { - result.payload_ = payload_; - } else { - result.payload_ = payloadBuilder_.build(); - } - if (expectCompressedBuilder_ == null) { - result.expectCompressed_ = expectCompressed_; - } else { - result.expectCompressed_ = expectCompressedBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof grpc.testing.Messages.StreamingInputCallRequest) { - return mergeFrom((grpc.testing.Messages.StreamingInputCallRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(grpc.testing.Messages.StreamingInputCallRequest other) { - if (other == grpc.testing.Messages.StreamingInputCallRequest.getDefaultInstance()) return this; - if (other.hasPayload()) { - mergePayload(other.getPayload()); - } - if (other.hasExpectCompressed()) { - mergeExpectCompressed(other.getExpectCompressed()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - grpc.testing.Messages.StreamingInputCallRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (grpc.testing.Messages.StreamingInputCallRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private grpc.testing.Messages.Payload payload_; - private com.google.protobuf.SingleFieldBuilderV3< - grpc.testing.Messages.Payload, grpc.testing.Messages.Payload.Builder, grpc.testing.Messages.PayloadOrBuilder> payloadBuilder_; - /** - *
-       * Optional input payload sent along with the request.
-       * 
- * - * .grpc.testing.Payload payload = 1 [json_name = "payload"]; - * @return Whether the payload field is set. - */ - public boolean hasPayload() { - return payloadBuilder_ != null || payload_ != null; - } - /** - *
-       * Optional input payload sent along with the request.
-       * 
- * - * .grpc.testing.Payload payload = 1 [json_name = "payload"]; - * @return The payload. - */ - public grpc.testing.Messages.Payload getPayload() { - if (payloadBuilder_ == null) { - return payload_ == null ? grpc.testing.Messages.Payload.getDefaultInstance() : payload_; - } else { - return payloadBuilder_.getMessage(); - } - } - /** - *
-       * Optional input payload sent along with the request.
-       * 
- * - * .grpc.testing.Payload payload = 1 [json_name = "payload"]; - */ - public Builder setPayload(grpc.testing.Messages.Payload value) { - if (payloadBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - payload_ = value; - onChanged(); - } else { - payloadBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Optional input payload sent along with the request.
-       * 
- * - * .grpc.testing.Payload payload = 1 [json_name = "payload"]; - */ - public Builder setPayload( - grpc.testing.Messages.Payload.Builder builderForValue) { - if (payloadBuilder_ == null) { - payload_ = builderForValue.build(); - onChanged(); - } else { - payloadBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Optional input payload sent along with the request.
-       * 
- * - * .grpc.testing.Payload payload = 1 [json_name = "payload"]; - */ - public Builder mergePayload(grpc.testing.Messages.Payload value) { - if (payloadBuilder_ == null) { - if (payload_ != null) { - payload_ = - grpc.testing.Messages.Payload.newBuilder(payload_).mergeFrom(value).buildPartial(); - } else { - payload_ = value; - } - onChanged(); - } else { - payloadBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Optional input payload sent along with the request.
-       * 
- * - * .grpc.testing.Payload payload = 1 [json_name = "payload"]; - */ - public Builder clearPayload() { - if (payloadBuilder_ == null) { - payload_ = null; - onChanged(); - } else { - payload_ = null; - payloadBuilder_ = null; - } - - return this; - } - /** - *
-       * Optional input payload sent along with the request.
-       * 
- * - * .grpc.testing.Payload payload = 1 [json_name = "payload"]; - */ - public grpc.testing.Messages.Payload.Builder getPayloadBuilder() { - - onChanged(); - return getPayloadFieldBuilder().getBuilder(); - } - /** - *
-       * Optional input payload sent along with the request.
-       * 
- * - * .grpc.testing.Payload payload = 1 [json_name = "payload"]; - */ - public grpc.testing.Messages.PayloadOrBuilder getPayloadOrBuilder() { - if (payloadBuilder_ != null) { - return payloadBuilder_.getMessageOrBuilder(); - } else { - return payload_ == null ? - grpc.testing.Messages.Payload.getDefaultInstance() : payload_; - } - } - /** - *
-       * Optional input payload sent along with the request.
-       * 
- * - * .grpc.testing.Payload payload = 1 [json_name = "payload"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - grpc.testing.Messages.Payload, grpc.testing.Messages.Payload.Builder, grpc.testing.Messages.PayloadOrBuilder> - getPayloadFieldBuilder() { - if (payloadBuilder_ == null) { - payloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - grpc.testing.Messages.Payload, grpc.testing.Messages.Payload.Builder, grpc.testing.Messages.PayloadOrBuilder>( - getPayload(), - getParentForChildren(), - isClean()); - payload_ = null; - } - return payloadBuilder_; - } - - private grpc.testing.Messages.BoolValue expectCompressed_; - private com.google.protobuf.SingleFieldBuilderV3< - grpc.testing.Messages.BoolValue, grpc.testing.Messages.BoolValue.Builder, grpc.testing.Messages.BoolValueOrBuilder> expectCompressedBuilder_; - /** - *
-       * Whether the server should expect this request to be compressed. This field
-       * is "nullable" in order to interoperate seamlessly with servers not able to
-       * implement the full compression tests by introspecting the call to verify
-       * the request's compression status.
-       * 
- * - * .grpc.testing.BoolValue expect_compressed = 2 [json_name = "expectCompressed"]; - * @return Whether the expectCompressed field is set. - */ - public boolean hasExpectCompressed() { - return expectCompressedBuilder_ != null || expectCompressed_ != null; - } - /** - *
-       * Whether the server should expect this request to be compressed. This field
-       * is "nullable" in order to interoperate seamlessly with servers not able to
-       * implement the full compression tests by introspecting the call to verify
-       * the request's compression status.
-       * 
- * - * .grpc.testing.BoolValue expect_compressed = 2 [json_name = "expectCompressed"]; - * @return The expectCompressed. - */ - public grpc.testing.Messages.BoolValue getExpectCompressed() { - if (expectCompressedBuilder_ == null) { - return expectCompressed_ == null ? grpc.testing.Messages.BoolValue.getDefaultInstance() : expectCompressed_; - } else { - return expectCompressedBuilder_.getMessage(); - } - } - /** - *
-       * Whether the server should expect this request to be compressed. This field
-       * is "nullable" in order to interoperate seamlessly with servers not able to
-       * implement the full compression tests by introspecting the call to verify
-       * the request's compression status.
-       * 
- * - * .grpc.testing.BoolValue expect_compressed = 2 [json_name = "expectCompressed"]; - */ - public Builder setExpectCompressed(grpc.testing.Messages.BoolValue value) { - if (expectCompressedBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expectCompressed_ = value; - onChanged(); - } else { - expectCompressedBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Whether the server should expect this request to be compressed. This field
-       * is "nullable" in order to interoperate seamlessly with servers not able to
-       * implement the full compression tests by introspecting the call to verify
-       * the request's compression status.
-       * 
- * - * .grpc.testing.BoolValue expect_compressed = 2 [json_name = "expectCompressed"]; - */ - public Builder setExpectCompressed( - grpc.testing.Messages.BoolValue.Builder builderForValue) { - if (expectCompressedBuilder_ == null) { - expectCompressed_ = builderForValue.build(); - onChanged(); - } else { - expectCompressedBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Whether the server should expect this request to be compressed. This field
-       * is "nullable" in order to interoperate seamlessly with servers not able to
-       * implement the full compression tests by introspecting the call to verify
-       * the request's compression status.
-       * 
- * - * .grpc.testing.BoolValue expect_compressed = 2 [json_name = "expectCompressed"]; - */ - public Builder mergeExpectCompressed(grpc.testing.Messages.BoolValue value) { - if (expectCompressedBuilder_ == null) { - if (expectCompressed_ != null) { - expectCompressed_ = - grpc.testing.Messages.BoolValue.newBuilder(expectCompressed_).mergeFrom(value).buildPartial(); - } else { - expectCompressed_ = value; - } - onChanged(); - } else { - expectCompressedBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Whether the server should expect this request to be compressed. This field
-       * is "nullable" in order to interoperate seamlessly with servers not able to
-       * implement the full compression tests by introspecting the call to verify
-       * the request's compression status.
-       * 
- * - * .grpc.testing.BoolValue expect_compressed = 2 [json_name = "expectCompressed"]; - */ - public Builder clearExpectCompressed() { - if (expectCompressedBuilder_ == null) { - expectCompressed_ = null; - onChanged(); - } else { - expectCompressed_ = null; - expectCompressedBuilder_ = null; - } - - return this; - } - /** - *
-       * Whether the server should expect this request to be compressed. This field
-       * is "nullable" in order to interoperate seamlessly with servers not able to
-       * implement the full compression tests by introspecting the call to verify
-       * the request's compression status.
-       * 
- * - * .grpc.testing.BoolValue expect_compressed = 2 [json_name = "expectCompressed"]; - */ - public grpc.testing.Messages.BoolValue.Builder getExpectCompressedBuilder() { - - onChanged(); - return getExpectCompressedFieldBuilder().getBuilder(); - } - /** - *
-       * Whether the server should expect this request to be compressed. This field
-       * is "nullable" in order to interoperate seamlessly with servers not able to
-       * implement the full compression tests by introspecting the call to verify
-       * the request's compression status.
-       * 
- * - * .grpc.testing.BoolValue expect_compressed = 2 [json_name = "expectCompressed"]; - */ - public grpc.testing.Messages.BoolValueOrBuilder getExpectCompressedOrBuilder() { - if (expectCompressedBuilder_ != null) { - return expectCompressedBuilder_.getMessageOrBuilder(); - } else { - return expectCompressed_ == null ? - grpc.testing.Messages.BoolValue.getDefaultInstance() : expectCompressed_; - } - } - /** - *
-       * Whether the server should expect this request to be compressed. This field
-       * is "nullable" in order to interoperate seamlessly with servers not able to
-       * implement the full compression tests by introspecting the call to verify
-       * the request's compression status.
-       * 
- * - * .grpc.testing.BoolValue expect_compressed = 2 [json_name = "expectCompressed"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - grpc.testing.Messages.BoolValue, grpc.testing.Messages.BoolValue.Builder, grpc.testing.Messages.BoolValueOrBuilder> - getExpectCompressedFieldBuilder() { - if (expectCompressedBuilder_ == null) { - expectCompressedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - grpc.testing.Messages.BoolValue, grpc.testing.Messages.BoolValue.Builder, grpc.testing.Messages.BoolValueOrBuilder>( - getExpectCompressed(), - getParentForChildren(), - isClean()); - expectCompressed_ = null; - } - return expectCompressedBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:grpc.testing.StreamingInputCallRequest) - } - - // @@protoc_insertion_point(class_scope:grpc.testing.StreamingInputCallRequest) - private static final grpc.testing.Messages.StreamingInputCallRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new grpc.testing.Messages.StreamingInputCallRequest(); - } - - public static grpc.testing.Messages.StreamingInputCallRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingInputCallRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StreamingInputCallRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public grpc.testing.Messages.StreamingInputCallRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface StreamingInputCallResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:grpc.testing.StreamingInputCallResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Aggregated size of payloads received from the client.
-     * 
- * - * int32 aggregated_payload_size = 1 [json_name = "aggregatedPayloadSize"]; - * @return The aggregatedPayloadSize. - */ - int getAggregatedPayloadSize(); - } - /** - *
-   * Client-streaming response.
-   * 
- * - * Protobuf type {@code grpc.testing.StreamingInputCallResponse} - */ - public static final class StreamingInputCallResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:grpc.testing.StreamingInputCallResponse) - StreamingInputCallResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use StreamingInputCallResponse.newBuilder() to construct. - private StreamingInputCallResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private StreamingInputCallResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StreamingInputCallResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private StreamingInputCallResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - aggregatedPayloadSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return grpc.testing.Messages.internal_static_grpc_testing_StreamingInputCallResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return grpc.testing.Messages.internal_static_grpc_testing_StreamingInputCallResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - grpc.testing.Messages.StreamingInputCallResponse.class, grpc.testing.Messages.StreamingInputCallResponse.Builder.class); - } - - public static final int AGGREGATED_PAYLOAD_SIZE_FIELD_NUMBER = 1; - private int aggregatedPayloadSize_; - /** - *
-     * Aggregated size of payloads received from the client.
-     * 
- * - * int32 aggregated_payload_size = 1 [json_name = "aggregatedPayloadSize"]; - * @return The aggregatedPayloadSize. - */ - @java.lang.Override - public int getAggregatedPayloadSize() { - return aggregatedPayloadSize_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (aggregatedPayloadSize_ != 0) { - output.writeInt32(1, aggregatedPayloadSize_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (aggregatedPayloadSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, aggregatedPayloadSize_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof grpc.testing.Messages.StreamingInputCallResponse)) { - return super.equals(obj); - } - grpc.testing.Messages.StreamingInputCallResponse other = (grpc.testing.Messages.StreamingInputCallResponse) obj; - - if (getAggregatedPayloadSize() - != other.getAggregatedPayloadSize()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + AGGREGATED_PAYLOAD_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getAggregatedPayloadSize(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static grpc.testing.Messages.StreamingInputCallResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.StreamingInputCallResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.StreamingInputCallResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.StreamingInputCallResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.StreamingInputCallResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.StreamingInputCallResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.StreamingInputCallResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static grpc.testing.Messages.StreamingInputCallResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static grpc.testing.Messages.StreamingInputCallResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static grpc.testing.Messages.StreamingInputCallResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static grpc.testing.Messages.StreamingInputCallResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static grpc.testing.Messages.StreamingInputCallResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(grpc.testing.Messages.StreamingInputCallResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Client-streaming response.
-     * 
- * - * Protobuf type {@code grpc.testing.StreamingInputCallResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:grpc.testing.StreamingInputCallResponse) - grpc.testing.Messages.StreamingInputCallResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return grpc.testing.Messages.internal_static_grpc_testing_StreamingInputCallResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return grpc.testing.Messages.internal_static_grpc_testing_StreamingInputCallResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - grpc.testing.Messages.StreamingInputCallResponse.class, grpc.testing.Messages.StreamingInputCallResponse.Builder.class); - } - - // Construct using grpc.testing.Messages.StreamingInputCallResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - aggregatedPayloadSize_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return grpc.testing.Messages.internal_static_grpc_testing_StreamingInputCallResponse_descriptor; - } - - @java.lang.Override - public grpc.testing.Messages.StreamingInputCallResponse getDefaultInstanceForType() { - return grpc.testing.Messages.StreamingInputCallResponse.getDefaultInstance(); - } - - @java.lang.Override - public grpc.testing.Messages.StreamingInputCallResponse build() { - grpc.testing.Messages.StreamingInputCallResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public grpc.testing.Messages.StreamingInputCallResponse buildPartial() { - grpc.testing.Messages.StreamingInputCallResponse result = new grpc.testing.Messages.StreamingInputCallResponse(this); - result.aggregatedPayloadSize_ = aggregatedPayloadSize_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof grpc.testing.Messages.StreamingInputCallResponse) { - return mergeFrom((grpc.testing.Messages.StreamingInputCallResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(grpc.testing.Messages.StreamingInputCallResponse other) { - if (other == grpc.testing.Messages.StreamingInputCallResponse.getDefaultInstance()) return this; - if (other.getAggregatedPayloadSize() != 0) { - setAggregatedPayloadSize(other.getAggregatedPayloadSize()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - grpc.testing.Messages.StreamingInputCallResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (grpc.testing.Messages.StreamingInputCallResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int aggregatedPayloadSize_ ; - /** - *
-       * Aggregated size of payloads received from the client.
-       * 
- * - * int32 aggregated_payload_size = 1 [json_name = "aggregatedPayloadSize"]; - * @return The aggregatedPayloadSize. - */ - @java.lang.Override - public int getAggregatedPayloadSize() { - return aggregatedPayloadSize_; - } - /** - *
-       * Aggregated size of payloads received from the client.
-       * 
- * - * int32 aggregated_payload_size = 1 [json_name = "aggregatedPayloadSize"]; - * @param value The aggregatedPayloadSize to set. - * @return This builder for chaining. - */ - public Builder setAggregatedPayloadSize(int value) { - - aggregatedPayloadSize_ = value; - onChanged(); - return this; - } - /** - *
-       * Aggregated size of payloads received from the client.
-       * 
- * - * int32 aggregated_payload_size = 1 [json_name = "aggregatedPayloadSize"]; - * @return This builder for chaining. - */ - public Builder clearAggregatedPayloadSize() { - - aggregatedPayloadSize_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:grpc.testing.StreamingInputCallResponse) - } - - // @@protoc_insertion_point(class_scope:grpc.testing.StreamingInputCallResponse) - private static final grpc.testing.Messages.StreamingInputCallResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new grpc.testing.Messages.StreamingInputCallResponse(); - } - - public static grpc.testing.Messages.StreamingInputCallResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingInputCallResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StreamingInputCallResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public grpc.testing.Messages.StreamingInputCallResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ResponseParametersOrBuilder extends - // @@protoc_insertion_point(interface_extends:grpc.testing.ResponseParameters) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Desired payload sizes in responses from the server.
-     * 
- * - * int32 size = 1 [json_name = "size"]; - * @return The size. - */ - int getSize(); - - /** - *
-     * Desired interval between consecutive responses in the response stream in
-     * microseconds.
-     * 
- * - * int32 interval_us = 2 [json_name = "intervalUs"]; - * @return The intervalUs. - */ - int getIntervalUs(); - - /** - *
-     * Whether to request the server to compress the response. This field is
-     * "nullable" in order to interoperate seamlessly with clients not able to
-     * implement the full compression tests by introspecting the call to verify
-     * the response's compression status.
-     * 
- * - * .grpc.testing.BoolValue compressed = 3 [json_name = "compressed"]; - * @return Whether the compressed field is set. - */ - boolean hasCompressed(); - /** - *
-     * Whether to request the server to compress the response. This field is
-     * "nullable" in order to interoperate seamlessly with clients not able to
-     * implement the full compression tests by introspecting the call to verify
-     * the response's compression status.
-     * 
- * - * .grpc.testing.BoolValue compressed = 3 [json_name = "compressed"]; - * @return The compressed. - */ - grpc.testing.Messages.BoolValue getCompressed(); - /** - *
-     * Whether to request the server to compress the response. This field is
-     * "nullable" in order to interoperate seamlessly with clients not able to
-     * implement the full compression tests by introspecting the call to verify
-     * the response's compression status.
-     * 
- * - * .grpc.testing.BoolValue compressed = 3 [json_name = "compressed"]; - */ - grpc.testing.Messages.BoolValueOrBuilder getCompressedOrBuilder(); - } - /** - *
-   * Configuration for a particular response.
-   * 
- * - * Protobuf type {@code grpc.testing.ResponseParameters} - */ - public static final class ResponseParameters extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:grpc.testing.ResponseParameters) - ResponseParametersOrBuilder { - private static final long serialVersionUID = 0L; - // Use ResponseParameters.newBuilder() to construct. - private ResponseParameters(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ResponseParameters() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ResponseParameters(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ResponseParameters( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - size_ = input.readInt32(); - break; - } - case 16: { - - intervalUs_ = input.readInt32(); - break; - } - case 26: { - grpc.testing.Messages.BoolValue.Builder subBuilder = null; - if (compressed_ != null) { - subBuilder = compressed_.toBuilder(); - } - compressed_ = input.readMessage(grpc.testing.Messages.BoolValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(compressed_); - compressed_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return grpc.testing.Messages.internal_static_grpc_testing_ResponseParameters_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return grpc.testing.Messages.internal_static_grpc_testing_ResponseParameters_fieldAccessorTable - .ensureFieldAccessorsInitialized( - grpc.testing.Messages.ResponseParameters.class, grpc.testing.Messages.ResponseParameters.Builder.class); - } - - public static final int SIZE_FIELD_NUMBER = 1; - private int size_; - /** - *
-     * Desired payload sizes in responses from the server.
-     * 
- * - * int32 size = 1 [json_name = "size"]; - * @return The size. - */ - @java.lang.Override - public int getSize() { - return size_; - } - - public static final int INTERVAL_US_FIELD_NUMBER = 2; - private int intervalUs_; - /** - *
-     * Desired interval between consecutive responses in the response stream in
-     * microseconds.
-     * 
- * - * int32 interval_us = 2 [json_name = "intervalUs"]; - * @return The intervalUs. - */ - @java.lang.Override - public int getIntervalUs() { - return intervalUs_; - } - - public static final int COMPRESSED_FIELD_NUMBER = 3; - private grpc.testing.Messages.BoolValue compressed_; - /** - *
-     * Whether to request the server to compress the response. This field is
-     * "nullable" in order to interoperate seamlessly with clients not able to
-     * implement the full compression tests by introspecting the call to verify
-     * the response's compression status.
-     * 
- * - * .grpc.testing.BoolValue compressed = 3 [json_name = "compressed"]; - * @return Whether the compressed field is set. - */ - @java.lang.Override - public boolean hasCompressed() { - return compressed_ != null; - } - /** - *
-     * Whether to request the server to compress the response. This field is
-     * "nullable" in order to interoperate seamlessly with clients not able to
-     * implement the full compression tests by introspecting the call to verify
-     * the response's compression status.
-     * 
- * - * .grpc.testing.BoolValue compressed = 3 [json_name = "compressed"]; - * @return The compressed. - */ - @java.lang.Override - public grpc.testing.Messages.BoolValue getCompressed() { - return compressed_ == null ? grpc.testing.Messages.BoolValue.getDefaultInstance() : compressed_; - } - /** - *
-     * Whether to request the server to compress the response. This field is
-     * "nullable" in order to interoperate seamlessly with clients not able to
-     * implement the full compression tests by introspecting the call to verify
-     * the response's compression status.
-     * 
- * - * .grpc.testing.BoolValue compressed = 3 [json_name = "compressed"]; - */ - @java.lang.Override - public grpc.testing.Messages.BoolValueOrBuilder getCompressedOrBuilder() { - return getCompressed(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (size_ != 0) { - output.writeInt32(1, size_); - } - if (intervalUs_ != 0) { - output.writeInt32(2, intervalUs_); - } - if (compressed_ != null) { - output.writeMessage(3, getCompressed()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (size_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, size_); - } - if (intervalUs_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, intervalUs_); - } - if (compressed_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCompressed()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof grpc.testing.Messages.ResponseParameters)) { - return super.equals(obj); - } - grpc.testing.Messages.ResponseParameters other = (grpc.testing.Messages.ResponseParameters) obj; - - if (getSize() - != other.getSize()) return false; - if (getIntervalUs() - != other.getIntervalUs()) return false; - if (hasCompressed() != other.hasCompressed()) return false; - if (hasCompressed()) { - if (!getCompressed() - .equals(other.getCompressed())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SIZE_FIELD_NUMBER; - hash = (53 * hash) + getSize(); - hash = (37 * hash) + INTERVAL_US_FIELD_NUMBER; - hash = (53 * hash) + getIntervalUs(); - if (hasCompressed()) { - hash = (37 * hash) + COMPRESSED_FIELD_NUMBER; - hash = (53 * hash) + getCompressed().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static grpc.testing.Messages.ResponseParameters parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.ResponseParameters parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.ResponseParameters parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.ResponseParameters parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.ResponseParameters parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.ResponseParameters parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.ResponseParameters parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static grpc.testing.Messages.ResponseParameters parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static grpc.testing.Messages.ResponseParameters parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static grpc.testing.Messages.ResponseParameters parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static grpc.testing.Messages.ResponseParameters parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static grpc.testing.Messages.ResponseParameters parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(grpc.testing.Messages.ResponseParameters prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Configuration for a particular response.
-     * 
- * - * Protobuf type {@code grpc.testing.ResponseParameters} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:grpc.testing.ResponseParameters) - grpc.testing.Messages.ResponseParametersOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return grpc.testing.Messages.internal_static_grpc_testing_ResponseParameters_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return grpc.testing.Messages.internal_static_grpc_testing_ResponseParameters_fieldAccessorTable - .ensureFieldAccessorsInitialized( - grpc.testing.Messages.ResponseParameters.class, grpc.testing.Messages.ResponseParameters.Builder.class); - } - - // Construct using grpc.testing.Messages.ResponseParameters.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - size_ = 0; - - intervalUs_ = 0; - - if (compressedBuilder_ == null) { - compressed_ = null; - } else { - compressed_ = null; - compressedBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return grpc.testing.Messages.internal_static_grpc_testing_ResponseParameters_descriptor; - } - - @java.lang.Override - public grpc.testing.Messages.ResponseParameters getDefaultInstanceForType() { - return grpc.testing.Messages.ResponseParameters.getDefaultInstance(); - } - - @java.lang.Override - public grpc.testing.Messages.ResponseParameters build() { - grpc.testing.Messages.ResponseParameters result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public grpc.testing.Messages.ResponseParameters buildPartial() { - grpc.testing.Messages.ResponseParameters result = new grpc.testing.Messages.ResponseParameters(this); - result.size_ = size_; - result.intervalUs_ = intervalUs_; - if (compressedBuilder_ == null) { - result.compressed_ = compressed_; - } else { - result.compressed_ = compressedBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof grpc.testing.Messages.ResponseParameters) { - return mergeFrom((grpc.testing.Messages.ResponseParameters)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(grpc.testing.Messages.ResponseParameters other) { - if (other == grpc.testing.Messages.ResponseParameters.getDefaultInstance()) return this; - if (other.getSize() != 0) { - setSize(other.getSize()); - } - if (other.getIntervalUs() != 0) { - setIntervalUs(other.getIntervalUs()); - } - if (other.hasCompressed()) { - mergeCompressed(other.getCompressed()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - grpc.testing.Messages.ResponseParameters parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (grpc.testing.Messages.ResponseParameters) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int size_ ; - /** - *
-       * Desired payload sizes in responses from the server.
-       * 
- * - * int32 size = 1 [json_name = "size"]; - * @return The size. - */ - @java.lang.Override - public int getSize() { - return size_; - } - /** - *
-       * Desired payload sizes in responses from the server.
-       * 
- * - * int32 size = 1 [json_name = "size"]; - * @param value The size to set. - * @return This builder for chaining. - */ - public Builder setSize(int value) { - - size_ = value; - onChanged(); - return this; - } - /** - *
-       * Desired payload sizes in responses from the server.
-       * 
- * - * int32 size = 1 [json_name = "size"]; - * @return This builder for chaining. - */ - public Builder clearSize() { - - size_ = 0; - onChanged(); - return this; - } - - private int intervalUs_ ; - /** - *
-       * Desired interval between consecutive responses in the response stream in
-       * microseconds.
-       * 
- * - * int32 interval_us = 2 [json_name = "intervalUs"]; - * @return The intervalUs. - */ - @java.lang.Override - public int getIntervalUs() { - return intervalUs_; - } - /** - *
-       * Desired interval between consecutive responses in the response stream in
-       * microseconds.
-       * 
- * - * int32 interval_us = 2 [json_name = "intervalUs"]; - * @param value The intervalUs to set. - * @return This builder for chaining. - */ - public Builder setIntervalUs(int value) { - - intervalUs_ = value; - onChanged(); - return this; - } - /** - *
-       * Desired interval between consecutive responses in the response stream in
-       * microseconds.
-       * 
- * - * int32 interval_us = 2 [json_name = "intervalUs"]; - * @return This builder for chaining. - */ - public Builder clearIntervalUs() { - - intervalUs_ = 0; - onChanged(); - return this; - } - - private grpc.testing.Messages.BoolValue compressed_; - private com.google.protobuf.SingleFieldBuilderV3< - grpc.testing.Messages.BoolValue, grpc.testing.Messages.BoolValue.Builder, grpc.testing.Messages.BoolValueOrBuilder> compressedBuilder_; - /** - *
-       * Whether to request the server to compress the response. This field is
-       * "nullable" in order to interoperate seamlessly with clients not able to
-       * implement the full compression tests by introspecting the call to verify
-       * the response's compression status.
-       * 
- * - * .grpc.testing.BoolValue compressed = 3 [json_name = "compressed"]; - * @return Whether the compressed field is set. - */ - public boolean hasCompressed() { - return compressedBuilder_ != null || compressed_ != null; - } - /** - *
-       * Whether to request the server to compress the response. This field is
-       * "nullable" in order to interoperate seamlessly with clients not able to
-       * implement the full compression tests by introspecting the call to verify
-       * the response's compression status.
-       * 
- * - * .grpc.testing.BoolValue compressed = 3 [json_name = "compressed"]; - * @return The compressed. - */ - public grpc.testing.Messages.BoolValue getCompressed() { - if (compressedBuilder_ == null) { - return compressed_ == null ? grpc.testing.Messages.BoolValue.getDefaultInstance() : compressed_; - } else { - return compressedBuilder_.getMessage(); - } - } - /** - *
-       * Whether to request the server to compress the response. This field is
-       * "nullable" in order to interoperate seamlessly with clients not able to
-       * implement the full compression tests by introspecting the call to verify
-       * the response's compression status.
-       * 
- * - * .grpc.testing.BoolValue compressed = 3 [json_name = "compressed"]; - */ - public Builder setCompressed(grpc.testing.Messages.BoolValue value) { - if (compressedBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - compressed_ = value; - onChanged(); - } else { - compressedBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Whether to request the server to compress the response. This field is
-       * "nullable" in order to interoperate seamlessly with clients not able to
-       * implement the full compression tests by introspecting the call to verify
-       * the response's compression status.
-       * 
- * - * .grpc.testing.BoolValue compressed = 3 [json_name = "compressed"]; - */ - public Builder setCompressed( - grpc.testing.Messages.BoolValue.Builder builderForValue) { - if (compressedBuilder_ == null) { - compressed_ = builderForValue.build(); - onChanged(); - } else { - compressedBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Whether to request the server to compress the response. This field is
-       * "nullable" in order to interoperate seamlessly with clients not able to
-       * implement the full compression tests by introspecting the call to verify
-       * the response's compression status.
-       * 
- * - * .grpc.testing.BoolValue compressed = 3 [json_name = "compressed"]; - */ - public Builder mergeCompressed(grpc.testing.Messages.BoolValue value) { - if (compressedBuilder_ == null) { - if (compressed_ != null) { - compressed_ = - grpc.testing.Messages.BoolValue.newBuilder(compressed_).mergeFrom(value).buildPartial(); - } else { - compressed_ = value; - } - onChanged(); - } else { - compressedBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Whether to request the server to compress the response. This field is
-       * "nullable" in order to interoperate seamlessly with clients not able to
-       * implement the full compression tests by introspecting the call to verify
-       * the response's compression status.
-       * 
- * - * .grpc.testing.BoolValue compressed = 3 [json_name = "compressed"]; - */ - public Builder clearCompressed() { - if (compressedBuilder_ == null) { - compressed_ = null; - onChanged(); - } else { - compressed_ = null; - compressedBuilder_ = null; - } - - return this; - } - /** - *
-       * Whether to request the server to compress the response. This field is
-       * "nullable" in order to interoperate seamlessly with clients not able to
-       * implement the full compression tests by introspecting the call to verify
-       * the response's compression status.
-       * 
- * - * .grpc.testing.BoolValue compressed = 3 [json_name = "compressed"]; - */ - public grpc.testing.Messages.BoolValue.Builder getCompressedBuilder() { - - onChanged(); - return getCompressedFieldBuilder().getBuilder(); - } - /** - *
-       * Whether to request the server to compress the response. This field is
-       * "nullable" in order to interoperate seamlessly with clients not able to
-       * implement the full compression tests by introspecting the call to verify
-       * the response's compression status.
-       * 
- * - * .grpc.testing.BoolValue compressed = 3 [json_name = "compressed"]; - */ - public grpc.testing.Messages.BoolValueOrBuilder getCompressedOrBuilder() { - if (compressedBuilder_ != null) { - return compressedBuilder_.getMessageOrBuilder(); - } else { - return compressed_ == null ? - grpc.testing.Messages.BoolValue.getDefaultInstance() : compressed_; - } - } - /** - *
-       * Whether to request the server to compress the response. This field is
-       * "nullable" in order to interoperate seamlessly with clients not able to
-       * implement the full compression tests by introspecting the call to verify
-       * the response's compression status.
-       * 
- * - * .grpc.testing.BoolValue compressed = 3 [json_name = "compressed"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - grpc.testing.Messages.BoolValue, grpc.testing.Messages.BoolValue.Builder, grpc.testing.Messages.BoolValueOrBuilder> - getCompressedFieldBuilder() { - if (compressedBuilder_ == null) { - compressedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - grpc.testing.Messages.BoolValue, grpc.testing.Messages.BoolValue.Builder, grpc.testing.Messages.BoolValueOrBuilder>( - getCompressed(), - getParentForChildren(), - isClean()); - compressed_ = null; - } - return compressedBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:grpc.testing.ResponseParameters) - } - - // @@protoc_insertion_point(class_scope:grpc.testing.ResponseParameters) - private static final grpc.testing.Messages.ResponseParameters DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new grpc.testing.Messages.ResponseParameters(); - } - - public static grpc.testing.Messages.ResponseParameters getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResponseParameters parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResponseParameters(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public grpc.testing.Messages.ResponseParameters getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface StreamingOutputCallRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:grpc.testing.StreamingOutputCallRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Desired payload type in the response from the server.
-     * If response_type is RANDOM, the payload from each response in the stream
-     * might be of different types. This is to simulate a mixed type of payload
-     * stream.
-     * 
- * - * .grpc.testing.PayloadType response_type = 1 [json_name = "responseType"]; - * @return The enum numeric value on the wire for responseType. - */ - int getResponseTypeValue(); - /** - *
-     * Desired payload type in the response from the server.
-     * If response_type is RANDOM, the payload from each response in the stream
-     * might be of different types. This is to simulate a mixed type of payload
-     * stream.
-     * 
- * - * .grpc.testing.PayloadType response_type = 1 [json_name = "responseType"]; - * @return The responseType. - */ - grpc.testing.Messages.PayloadType getResponseType(); - - /** - *
-     * Configuration for each expected response message.
-     * 
- * - * repeated .grpc.testing.ResponseParameters response_parameters = 2 [json_name = "responseParameters"]; - */ - java.util.List - getResponseParametersList(); - /** - *
-     * Configuration for each expected response message.
-     * 
- * - * repeated .grpc.testing.ResponseParameters response_parameters = 2 [json_name = "responseParameters"]; - */ - grpc.testing.Messages.ResponseParameters getResponseParameters(int index); - /** - *
-     * Configuration for each expected response message.
-     * 
- * - * repeated .grpc.testing.ResponseParameters response_parameters = 2 [json_name = "responseParameters"]; - */ - int getResponseParametersCount(); - /** - *
-     * Configuration for each expected response message.
-     * 
- * - * repeated .grpc.testing.ResponseParameters response_parameters = 2 [json_name = "responseParameters"]; - */ - java.util.List - getResponseParametersOrBuilderList(); - /** - *
-     * Configuration for each expected response message.
-     * 
- * - * repeated .grpc.testing.ResponseParameters response_parameters = 2 [json_name = "responseParameters"]; - */ - grpc.testing.Messages.ResponseParametersOrBuilder getResponseParametersOrBuilder( - int index); - - /** - *
-     * Optional input payload sent along with the request.
-     * 
- * - * .grpc.testing.Payload payload = 3 [json_name = "payload"]; - * @return Whether the payload field is set. - */ - boolean hasPayload(); - /** - *
-     * Optional input payload sent along with the request.
-     * 
- * - * .grpc.testing.Payload payload = 3 [json_name = "payload"]; - * @return The payload. - */ - grpc.testing.Messages.Payload getPayload(); - /** - *
-     * Optional input payload sent along with the request.
-     * 
- * - * .grpc.testing.Payload payload = 3 [json_name = "payload"]; - */ - grpc.testing.Messages.PayloadOrBuilder getPayloadOrBuilder(); - - /** - *
-     * Whether server should return a given status
-     * 
- * - * .grpc.testing.EchoStatus response_status = 7 [json_name = "responseStatus"]; - * @return Whether the responseStatus field is set. - */ - boolean hasResponseStatus(); - /** - *
-     * Whether server should return a given status
-     * 
- * - * .grpc.testing.EchoStatus response_status = 7 [json_name = "responseStatus"]; - * @return The responseStatus. - */ - grpc.testing.Messages.EchoStatus getResponseStatus(); - /** - *
-     * Whether server should return a given status
-     * 
- * - * .grpc.testing.EchoStatus response_status = 7 [json_name = "responseStatus"]; - */ - grpc.testing.Messages.EchoStatusOrBuilder getResponseStatusOrBuilder(); - } - /** - *
-   * Server-streaming request.
-   * 
- * - * Protobuf type {@code grpc.testing.StreamingOutputCallRequest} - */ - public static final class StreamingOutputCallRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:grpc.testing.StreamingOutputCallRequest) - StreamingOutputCallRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use StreamingOutputCallRequest.newBuilder() to construct. - private StreamingOutputCallRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private StreamingOutputCallRequest() { - responseType_ = 0; - responseParameters_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StreamingOutputCallRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private StreamingOutputCallRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - - responseType_ = rawValue; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - responseParameters_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - responseParameters_.add( - input.readMessage(grpc.testing.Messages.ResponseParameters.parser(), extensionRegistry)); - break; - } - case 26: { - grpc.testing.Messages.Payload.Builder subBuilder = null; - if (payload_ != null) { - subBuilder = payload_.toBuilder(); - } - payload_ = input.readMessage(grpc.testing.Messages.Payload.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(payload_); - payload_ = subBuilder.buildPartial(); - } - - break; - } - case 58: { - grpc.testing.Messages.EchoStatus.Builder subBuilder = null; - if (responseStatus_ != null) { - subBuilder = responseStatus_.toBuilder(); - } - responseStatus_ = input.readMessage(grpc.testing.Messages.EchoStatus.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(responseStatus_); - responseStatus_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - responseParameters_ = java.util.Collections.unmodifiableList(responseParameters_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return grpc.testing.Messages.internal_static_grpc_testing_StreamingOutputCallRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return grpc.testing.Messages.internal_static_grpc_testing_StreamingOutputCallRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - grpc.testing.Messages.StreamingOutputCallRequest.class, grpc.testing.Messages.StreamingOutputCallRequest.Builder.class); - } - - public static final int RESPONSE_TYPE_FIELD_NUMBER = 1; - private int responseType_; - /** - *
-     * Desired payload type in the response from the server.
-     * If response_type is RANDOM, the payload from each response in the stream
-     * might be of different types. This is to simulate a mixed type of payload
-     * stream.
-     * 
- * - * .grpc.testing.PayloadType response_type = 1 [json_name = "responseType"]; - * @return The enum numeric value on the wire for responseType. - */ - @java.lang.Override public int getResponseTypeValue() { - return responseType_; - } - /** - *
-     * Desired payload type in the response from the server.
-     * If response_type is RANDOM, the payload from each response in the stream
-     * might be of different types. This is to simulate a mixed type of payload
-     * stream.
-     * 
- * - * .grpc.testing.PayloadType response_type = 1 [json_name = "responseType"]; - * @return The responseType. - */ - @java.lang.Override public grpc.testing.Messages.PayloadType getResponseType() { - @SuppressWarnings("deprecation") - grpc.testing.Messages.PayloadType result = grpc.testing.Messages.PayloadType.valueOf(responseType_); - return result == null ? grpc.testing.Messages.PayloadType.UNRECOGNIZED : result; - } - - public static final int RESPONSE_PARAMETERS_FIELD_NUMBER = 2; - private java.util.List responseParameters_; - /** - *
-     * Configuration for each expected response message.
-     * 
- * - * repeated .grpc.testing.ResponseParameters response_parameters = 2 [json_name = "responseParameters"]; - */ - @java.lang.Override - public java.util.List getResponseParametersList() { - return responseParameters_; - } - /** - *
-     * Configuration for each expected response message.
-     * 
- * - * repeated .grpc.testing.ResponseParameters response_parameters = 2 [json_name = "responseParameters"]; - */ - @java.lang.Override - public java.util.List - getResponseParametersOrBuilderList() { - return responseParameters_; - } - /** - *
-     * Configuration for each expected response message.
-     * 
- * - * repeated .grpc.testing.ResponseParameters response_parameters = 2 [json_name = "responseParameters"]; - */ - @java.lang.Override - public int getResponseParametersCount() { - return responseParameters_.size(); - } - /** - *
-     * Configuration for each expected response message.
-     * 
- * - * repeated .grpc.testing.ResponseParameters response_parameters = 2 [json_name = "responseParameters"]; - */ - @java.lang.Override - public grpc.testing.Messages.ResponseParameters getResponseParameters(int index) { - return responseParameters_.get(index); - } - /** - *
-     * Configuration for each expected response message.
-     * 
- * - * repeated .grpc.testing.ResponseParameters response_parameters = 2 [json_name = "responseParameters"]; - */ - @java.lang.Override - public grpc.testing.Messages.ResponseParametersOrBuilder getResponseParametersOrBuilder( - int index) { - return responseParameters_.get(index); - } - - public static final int PAYLOAD_FIELD_NUMBER = 3; - private grpc.testing.Messages.Payload payload_; - /** - *
-     * Optional input payload sent along with the request.
-     * 
- * - * .grpc.testing.Payload payload = 3 [json_name = "payload"]; - * @return Whether the payload field is set. - */ - @java.lang.Override - public boolean hasPayload() { - return payload_ != null; - } - /** - *
-     * Optional input payload sent along with the request.
-     * 
- * - * .grpc.testing.Payload payload = 3 [json_name = "payload"]; - * @return The payload. - */ - @java.lang.Override - public grpc.testing.Messages.Payload getPayload() { - return payload_ == null ? grpc.testing.Messages.Payload.getDefaultInstance() : payload_; - } - /** - *
-     * Optional input payload sent along with the request.
-     * 
- * - * .grpc.testing.Payload payload = 3 [json_name = "payload"]; - */ - @java.lang.Override - public grpc.testing.Messages.PayloadOrBuilder getPayloadOrBuilder() { - return getPayload(); - } - - public static final int RESPONSE_STATUS_FIELD_NUMBER = 7; - private grpc.testing.Messages.EchoStatus responseStatus_; - /** - *
-     * Whether server should return a given status
-     * 
- * - * .grpc.testing.EchoStatus response_status = 7 [json_name = "responseStatus"]; - * @return Whether the responseStatus field is set. - */ - @java.lang.Override - public boolean hasResponseStatus() { - return responseStatus_ != null; - } - /** - *
-     * Whether server should return a given status
-     * 
- * - * .grpc.testing.EchoStatus response_status = 7 [json_name = "responseStatus"]; - * @return The responseStatus. - */ - @java.lang.Override - public grpc.testing.Messages.EchoStatus getResponseStatus() { - return responseStatus_ == null ? grpc.testing.Messages.EchoStatus.getDefaultInstance() : responseStatus_; - } - /** - *
-     * Whether server should return a given status
-     * 
- * - * .grpc.testing.EchoStatus response_status = 7 [json_name = "responseStatus"]; - */ - @java.lang.Override - public grpc.testing.Messages.EchoStatusOrBuilder getResponseStatusOrBuilder() { - return getResponseStatus(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (responseType_ != grpc.testing.Messages.PayloadType.COMPRESSABLE.getNumber()) { - output.writeEnum(1, responseType_); - } - for (int i = 0; i < responseParameters_.size(); i++) { - output.writeMessage(2, responseParameters_.get(i)); - } - if (payload_ != null) { - output.writeMessage(3, getPayload()); - } - if (responseStatus_ != null) { - output.writeMessage(7, getResponseStatus()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (responseType_ != grpc.testing.Messages.PayloadType.COMPRESSABLE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, responseType_); - } - for (int i = 0; i < responseParameters_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, responseParameters_.get(i)); - } - if (payload_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getPayload()); - } - if (responseStatus_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getResponseStatus()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof grpc.testing.Messages.StreamingOutputCallRequest)) { - return super.equals(obj); - } - grpc.testing.Messages.StreamingOutputCallRequest other = (grpc.testing.Messages.StreamingOutputCallRequest) obj; - - if (responseType_ != other.responseType_) return false; - if (!getResponseParametersList() - .equals(other.getResponseParametersList())) return false; - if (hasPayload() != other.hasPayload()) return false; - if (hasPayload()) { - if (!getPayload() - .equals(other.getPayload())) return false; - } - if (hasResponseStatus() != other.hasResponseStatus()) return false; - if (hasResponseStatus()) { - if (!getResponseStatus() - .equals(other.getResponseStatus())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RESPONSE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + responseType_; - if (getResponseParametersCount() > 0) { - hash = (37 * hash) + RESPONSE_PARAMETERS_FIELD_NUMBER; - hash = (53 * hash) + getResponseParametersList().hashCode(); - } - if (hasPayload()) { - hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; - hash = (53 * hash) + getPayload().hashCode(); - } - if (hasResponseStatus()) { - hash = (37 * hash) + RESPONSE_STATUS_FIELD_NUMBER; - hash = (53 * hash) + getResponseStatus().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static grpc.testing.Messages.StreamingOutputCallRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.StreamingOutputCallRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.StreamingOutputCallRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.StreamingOutputCallRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.StreamingOutputCallRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.StreamingOutputCallRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.StreamingOutputCallRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static grpc.testing.Messages.StreamingOutputCallRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static grpc.testing.Messages.StreamingOutputCallRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static grpc.testing.Messages.StreamingOutputCallRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static grpc.testing.Messages.StreamingOutputCallRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static grpc.testing.Messages.StreamingOutputCallRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(grpc.testing.Messages.StreamingOutputCallRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Server-streaming request.
-     * 
- * - * Protobuf type {@code grpc.testing.StreamingOutputCallRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:grpc.testing.StreamingOutputCallRequest) - grpc.testing.Messages.StreamingOutputCallRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return grpc.testing.Messages.internal_static_grpc_testing_StreamingOutputCallRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return grpc.testing.Messages.internal_static_grpc_testing_StreamingOutputCallRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - grpc.testing.Messages.StreamingOutputCallRequest.class, grpc.testing.Messages.StreamingOutputCallRequest.Builder.class); - } - - // Construct using grpc.testing.Messages.StreamingOutputCallRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getResponseParametersFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - responseType_ = 0; - - if (responseParametersBuilder_ == null) { - responseParameters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - responseParametersBuilder_.clear(); - } - if (payloadBuilder_ == null) { - payload_ = null; - } else { - payload_ = null; - payloadBuilder_ = null; - } - if (responseStatusBuilder_ == null) { - responseStatus_ = null; - } else { - responseStatus_ = null; - responseStatusBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return grpc.testing.Messages.internal_static_grpc_testing_StreamingOutputCallRequest_descriptor; - } - - @java.lang.Override - public grpc.testing.Messages.StreamingOutputCallRequest getDefaultInstanceForType() { - return grpc.testing.Messages.StreamingOutputCallRequest.getDefaultInstance(); - } - - @java.lang.Override - public grpc.testing.Messages.StreamingOutputCallRequest build() { - grpc.testing.Messages.StreamingOutputCallRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public grpc.testing.Messages.StreamingOutputCallRequest buildPartial() { - grpc.testing.Messages.StreamingOutputCallRequest result = new grpc.testing.Messages.StreamingOutputCallRequest(this); - int from_bitField0_ = bitField0_; - result.responseType_ = responseType_; - if (responseParametersBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - responseParameters_ = java.util.Collections.unmodifiableList(responseParameters_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.responseParameters_ = responseParameters_; - } else { - result.responseParameters_ = responseParametersBuilder_.build(); - } - if (payloadBuilder_ == null) { - result.payload_ = payload_; - } else { - result.payload_ = payloadBuilder_.build(); - } - if (responseStatusBuilder_ == null) { - result.responseStatus_ = responseStatus_; - } else { - result.responseStatus_ = responseStatusBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof grpc.testing.Messages.StreamingOutputCallRequest) { - return mergeFrom((grpc.testing.Messages.StreamingOutputCallRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(grpc.testing.Messages.StreamingOutputCallRequest other) { - if (other == grpc.testing.Messages.StreamingOutputCallRequest.getDefaultInstance()) return this; - if (other.responseType_ != 0) { - setResponseTypeValue(other.getResponseTypeValue()); - } - if (responseParametersBuilder_ == null) { - if (!other.responseParameters_.isEmpty()) { - if (responseParameters_.isEmpty()) { - responseParameters_ = other.responseParameters_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureResponseParametersIsMutable(); - responseParameters_.addAll(other.responseParameters_); - } - onChanged(); - } - } else { - if (!other.responseParameters_.isEmpty()) { - if (responseParametersBuilder_.isEmpty()) { - responseParametersBuilder_.dispose(); - responseParametersBuilder_ = null; - responseParameters_ = other.responseParameters_; - bitField0_ = (bitField0_ & ~0x00000001); - responseParametersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getResponseParametersFieldBuilder() : null; - } else { - responseParametersBuilder_.addAllMessages(other.responseParameters_); - } - } - } - if (other.hasPayload()) { - mergePayload(other.getPayload()); - } - if (other.hasResponseStatus()) { - mergeResponseStatus(other.getResponseStatus()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - grpc.testing.Messages.StreamingOutputCallRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (grpc.testing.Messages.StreamingOutputCallRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int responseType_ = 0; - /** - *
-       * Desired payload type in the response from the server.
-       * If response_type is RANDOM, the payload from each response in the stream
-       * might be of different types. This is to simulate a mixed type of payload
-       * stream.
-       * 
- * - * .grpc.testing.PayloadType response_type = 1 [json_name = "responseType"]; - * @return The enum numeric value on the wire for responseType. - */ - @java.lang.Override public int getResponseTypeValue() { - return responseType_; - } - /** - *
-       * Desired payload type in the response from the server.
-       * If response_type is RANDOM, the payload from each response in the stream
-       * might be of different types. This is to simulate a mixed type of payload
-       * stream.
-       * 
- * - * .grpc.testing.PayloadType response_type = 1 [json_name = "responseType"]; - * @param value The enum numeric value on the wire for responseType to set. - * @return This builder for chaining. - */ - public Builder setResponseTypeValue(int value) { - - responseType_ = value; - onChanged(); - return this; - } - /** - *
-       * Desired payload type in the response from the server.
-       * If response_type is RANDOM, the payload from each response in the stream
-       * might be of different types. This is to simulate a mixed type of payload
-       * stream.
-       * 
- * - * .grpc.testing.PayloadType response_type = 1 [json_name = "responseType"]; - * @return The responseType. - */ - @java.lang.Override - public grpc.testing.Messages.PayloadType getResponseType() { - @SuppressWarnings("deprecation") - grpc.testing.Messages.PayloadType result = grpc.testing.Messages.PayloadType.valueOf(responseType_); - return result == null ? grpc.testing.Messages.PayloadType.UNRECOGNIZED : result; - } - /** - *
-       * Desired payload type in the response from the server.
-       * If response_type is RANDOM, the payload from each response in the stream
-       * might be of different types. This is to simulate a mixed type of payload
-       * stream.
-       * 
- * - * .grpc.testing.PayloadType response_type = 1 [json_name = "responseType"]; - * @param value The responseType to set. - * @return This builder for chaining. - */ - public Builder setResponseType(grpc.testing.Messages.PayloadType value) { - if (value == null) { - throw new NullPointerException(); - } - - responseType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Desired payload type in the response from the server.
-       * If response_type is RANDOM, the payload from each response in the stream
-       * might be of different types. This is to simulate a mixed type of payload
-       * stream.
-       * 
- * - * .grpc.testing.PayloadType response_type = 1 [json_name = "responseType"]; - * @return This builder for chaining. - */ - public Builder clearResponseType() { - - responseType_ = 0; - onChanged(); - return this; - } - - private java.util.List responseParameters_ = - java.util.Collections.emptyList(); - private void ensureResponseParametersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - responseParameters_ = new java.util.ArrayList(responseParameters_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - grpc.testing.Messages.ResponseParameters, grpc.testing.Messages.ResponseParameters.Builder, grpc.testing.Messages.ResponseParametersOrBuilder> responseParametersBuilder_; - - /** - *
-       * Configuration for each expected response message.
-       * 
- * - * repeated .grpc.testing.ResponseParameters response_parameters = 2 [json_name = "responseParameters"]; - */ - public java.util.List getResponseParametersList() { - if (responseParametersBuilder_ == null) { - return java.util.Collections.unmodifiableList(responseParameters_); - } else { - return responseParametersBuilder_.getMessageList(); - } - } - /** - *
-       * Configuration for each expected response message.
-       * 
- * - * repeated .grpc.testing.ResponseParameters response_parameters = 2 [json_name = "responseParameters"]; - */ - public int getResponseParametersCount() { - if (responseParametersBuilder_ == null) { - return responseParameters_.size(); - } else { - return responseParametersBuilder_.getCount(); - } - } - /** - *
-       * Configuration for each expected response message.
-       * 
- * - * repeated .grpc.testing.ResponseParameters response_parameters = 2 [json_name = "responseParameters"]; - */ - public grpc.testing.Messages.ResponseParameters getResponseParameters(int index) { - if (responseParametersBuilder_ == null) { - return responseParameters_.get(index); - } else { - return responseParametersBuilder_.getMessage(index); - } - } - /** - *
-       * Configuration for each expected response message.
-       * 
- * - * repeated .grpc.testing.ResponseParameters response_parameters = 2 [json_name = "responseParameters"]; - */ - public Builder setResponseParameters( - int index, grpc.testing.Messages.ResponseParameters value) { - if (responseParametersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureResponseParametersIsMutable(); - responseParameters_.set(index, value); - onChanged(); - } else { - responseParametersBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Configuration for each expected response message.
-       * 
- * - * repeated .grpc.testing.ResponseParameters response_parameters = 2 [json_name = "responseParameters"]; - */ - public Builder setResponseParameters( - int index, grpc.testing.Messages.ResponseParameters.Builder builderForValue) { - if (responseParametersBuilder_ == null) { - ensureResponseParametersIsMutable(); - responseParameters_.set(index, builderForValue.build()); - onChanged(); - } else { - responseParametersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Configuration for each expected response message.
-       * 
- * - * repeated .grpc.testing.ResponseParameters response_parameters = 2 [json_name = "responseParameters"]; - */ - public Builder addResponseParameters(grpc.testing.Messages.ResponseParameters value) { - if (responseParametersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureResponseParametersIsMutable(); - responseParameters_.add(value); - onChanged(); - } else { - responseParametersBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Configuration for each expected response message.
-       * 
- * - * repeated .grpc.testing.ResponseParameters response_parameters = 2 [json_name = "responseParameters"]; - */ - public Builder addResponseParameters( - int index, grpc.testing.Messages.ResponseParameters value) { - if (responseParametersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureResponseParametersIsMutable(); - responseParameters_.add(index, value); - onChanged(); - } else { - responseParametersBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Configuration for each expected response message.
-       * 
- * - * repeated .grpc.testing.ResponseParameters response_parameters = 2 [json_name = "responseParameters"]; - */ - public Builder addResponseParameters( - grpc.testing.Messages.ResponseParameters.Builder builderForValue) { - if (responseParametersBuilder_ == null) { - ensureResponseParametersIsMutable(); - responseParameters_.add(builderForValue.build()); - onChanged(); - } else { - responseParametersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Configuration for each expected response message.
-       * 
- * - * repeated .grpc.testing.ResponseParameters response_parameters = 2 [json_name = "responseParameters"]; - */ - public Builder addResponseParameters( - int index, grpc.testing.Messages.ResponseParameters.Builder builderForValue) { - if (responseParametersBuilder_ == null) { - ensureResponseParametersIsMutable(); - responseParameters_.add(index, builderForValue.build()); - onChanged(); - } else { - responseParametersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Configuration for each expected response message.
-       * 
- * - * repeated .grpc.testing.ResponseParameters response_parameters = 2 [json_name = "responseParameters"]; - */ - public Builder addAllResponseParameters( - java.lang.Iterable values) { - if (responseParametersBuilder_ == null) { - ensureResponseParametersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, responseParameters_); - onChanged(); - } else { - responseParametersBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Configuration for each expected response message.
-       * 
- * - * repeated .grpc.testing.ResponseParameters response_parameters = 2 [json_name = "responseParameters"]; - */ - public Builder clearResponseParameters() { - if (responseParametersBuilder_ == null) { - responseParameters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - responseParametersBuilder_.clear(); - } - return this; - } - /** - *
-       * Configuration for each expected response message.
-       * 
- * - * repeated .grpc.testing.ResponseParameters response_parameters = 2 [json_name = "responseParameters"]; - */ - public Builder removeResponseParameters(int index) { - if (responseParametersBuilder_ == null) { - ensureResponseParametersIsMutable(); - responseParameters_.remove(index); - onChanged(); - } else { - responseParametersBuilder_.remove(index); - } - return this; - } - /** - *
-       * Configuration for each expected response message.
-       * 
- * - * repeated .grpc.testing.ResponseParameters response_parameters = 2 [json_name = "responseParameters"]; - */ - public grpc.testing.Messages.ResponseParameters.Builder getResponseParametersBuilder( - int index) { - return getResponseParametersFieldBuilder().getBuilder(index); - } - /** - *
-       * Configuration for each expected response message.
-       * 
- * - * repeated .grpc.testing.ResponseParameters response_parameters = 2 [json_name = "responseParameters"]; - */ - public grpc.testing.Messages.ResponseParametersOrBuilder getResponseParametersOrBuilder( - int index) { - if (responseParametersBuilder_ == null) { - return responseParameters_.get(index); } else { - return responseParametersBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Configuration for each expected response message.
-       * 
- * - * repeated .grpc.testing.ResponseParameters response_parameters = 2 [json_name = "responseParameters"]; - */ - public java.util.List - getResponseParametersOrBuilderList() { - if (responseParametersBuilder_ != null) { - return responseParametersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(responseParameters_); - } - } - /** - *
-       * Configuration for each expected response message.
-       * 
- * - * repeated .grpc.testing.ResponseParameters response_parameters = 2 [json_name = "responseParameters"]; - */ - public grpc.testing.Messages.ResponseParameters.Builder addResponseParametersBuilder() { - return getResponseParametersFieldBuilder().addBuilder( - grpc.testing.Messages.ResponseParameters.getDefaultInstance()); - } - /** - *
-       * Configuration for each expected response message.
-       * 
- * - * repeated .grpc.testing.ResponseParameters response_parameters = 2 [json_name = "responseParameters"]; - */ - public grpc.testing.Messages.ResponseParameters.Builder addResponseParametersBuilder( - int index) { - return getResponseParametersFieldBuilder().addBuilder( - index, grpc.testing.Messages.ResponseParameters.getDefaultInstance()); - } - /** - *
-       * Configuration for each expected response message.
-       * 
- * - * repeated .grpc.testing.ResponseParameters response_parameters = 2 [json_name = "responseParameters"]; - */ - public java.util.List - getResponseParametersBuilderList() { - return getResponseParametersFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - grpc.testing.Messages.ResponseParameters, grpc.testing.Messages.ResponseParameters.Builder, grpc.testing.Messages.ResponseParametersOrBuilder> - getResponseParametersFieldBuilder() { - if (responseParametersBuilder_ == null) { - responseParametersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - grpc.testing.Messages.ResponseParameters, grpc.testing.Messages.ResponseParameters.Builder, grpc.testing.Messages.ResponseParametersOrBuilder>( - responseParameters_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - responseParameters_ = null; - } - return responseParametersBuilder_; - } - - private grpc.testing.Messages.Payload payload_; - private com.google.protobuf.SingleFieldBuilderV3< - grpc.testing.Messages.Payload, grpc.testing.Messages.Payload.Builder, grpc.testing.Messages.PayloadOrBuilder> payloadBuilder_; - /** - *
-       * Optional input payload sent along with the request.
-       * 
- * - * .grpc.testing.Payload payload = 3 [json_name = "payload"]; - * @return Whether the payload field is set. - */ - public boolean hasPayload() { - return payloadBuilder_ != null || payload_ != null; - } - /** - *
-       * Optional input payload sent along with the request.
-       * 
- * - * .grpc.testing.Payload payload = 3 [json_name = "payload"]; - * @return The payload. - */ - public grpc.testing.Messages.Payload getPayload() { - if (payloadBuilder_ == null) { - return payload_ == null ? grpc.testing.Messages.Payload.getDefaultInstance() : payload_; - } else { - return payloadBuilder_.getMessage(); - } - } - /** - *
-       * Optional input payload sent along with the request.
-       * 
- * - * .grpc.testing.Payload payload = 3 [json_name = "payload"]; - */ - public Builder setPayload(grpc.testing.Messages.Payload value) { - if (payloadBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - payload_ = value; - onChanged(); - } else { - payloadBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Optional input payload sent along with the request.
-       * 
- * - * .grpc.testing.Payload payload = 3 [json_name = "payload"]; - */ - public Builder setPayload( - grpc.testing.Messages.Payload.Builder builderForValue) { - if (payloadBuilder_ == null) { - payload_ = builderForValue.build(); - onChanged(); - } else { - payloadBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Optional input payload sent along with the request.
-       * 
- * - * .grpc.testing.Payload payload = 3 [json_name = "payload"]; - */ - public Builder mergePayload(grpc.testing.Messages.Payload value) { - if (payloadBuilder_ == null) { - if (payload_ != null) { - payload_ = - grpc.testing.Messages.Payload.newBuilder(payload_).mergeFrom(value).buildPartial(); - } else { - payload_ = value; - } - onChanged(); - } else { - payloadBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Optional input payload sent along with the request.
-       * 
- * - * .grpc.testing.Payload payload = 3 [json_name = "payload"]; - */ - public Builder clearPayload() { - if (payloadBuilder_ == null) { - payload_ = null; - onChanged(); - } else { - payload_ = null; - payloadBuilder_ = null; - } - - return this; - } - /** - *
-       * Optional input payload sent along with the request.
-       * 
- * - * .grpc.testing.Payload payload = 3 [json_name = "payload"]; - */ - public grpc.testing.Messages.Payload.Builder getPayloadBuilder() { - - onChanged(); - return getPayloadFieldBuilder().getBuilder(); - } - /** - *
-       * Optional input payload sent along with the request.
-       * 
- * - * .grpc.testing.Payload payload = 3 [json_name = "payload"]; - */ - public grpc.testing.Messages.PayloadOrBuilder getPayloadOrBuilder() { - if (payloadBuilder_ != null) { - return payloadBuilder_.getMessageOrBuilder(); - } else { - return payload_ == null ? - grpc.testing.Messages.Payload.getDefaultInstance() : payload_; - } - } - /** - *
-       * Optional input payload sent along with the request.
-       * 
- * - * .grpc.testing.Payload payload = 3 [json_name = "payload"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - grpc.testing.Messages.Payload, grpc.testing.Messages.Payload.Builder, grpc.testing.Messages.PayloadOrBuilder> - getPayloadFieldBuilder() { - if (payloadBuilder_ == null) { - payloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - grpc.testing.Messages.Payload, grpc.testing.Messages.Payload.Builder, grpc.testing.Messages.PayloadOrBuilder>( - getPayload(), - getParentForChildren(), - isClean()); - payload_ = null; - } - return payloadBuilder_; - } - - private grpc.testing.Messages.EchoStatus responseStatus_; - private com.google.protobuf.SingleFieldBuilderV3< - grpc.testing.Messages.EchoStatus, grpc.testing.Messages.EchoStatus.Builder, grpc.testing.Messages.EchoStatusOrBuilder> responseStatusBuilder_; - /** - *
-       * Whether server should return a given status
-       * 
- * - * .grpc.testing.EchoStatus response_status = 7 [json_name = "responseStatus"]; - * @return Whether the responseStatus field is set. - */ - public boolean hasResponseStatus() { - return responseStatusBuilder_ != null || responseStatus_ != null; - } - /** - *
-       * Whether server should return a given status
-       * 
- * - * .grpc.testing.EchoStatus response_status = 7 [json_name = "responseStatus"]; - * @return The responseStatus. - */ - public grpc.testing.Messages.EchoStatus getResponseStatus() { - if (responseStatusBuilder_ == null) { - return responseStatus_ == null ? grpc.testing.Messages.EchoStatus.getDefaultInstance() : responseStatus_; - } else { - return responseStatusBuilder_.getMessage(); - } - } - /** - *
-       * Whether server should return a given status
-       * 
- * - * .grpc.testing.EchoStatus response_status = 7 [json_name = "responseStatus"]; - */ - public Builder setResponseStatus(grpc.testing.Messages.EchoStatus value) { - if (responseStatusBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - responseStatus_ = value; - onChanged(); - } else { - responseStatusBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Whether server should return a given status
-       * 
- * - * .grpc.testing.EchoStatus response_status = 7 [json_name = "responseStatus"]; - */ - public Builder setResponseStatus( - grpc.testing.Messages.EchoStatus.Builder builderForValue) { - if (responseStatusBuilder_ == null) { - responseStatus_ = builderForValue.build(); - onChanged(); - } else { - responseStatusBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Whether server should return a given status
-       * 
- * - * .grpc.testing.EchoStatus response_status = 7 [json_name = "responseStatus"]; - */ - public Builder mergeResponseStatus(grpc.testing.Messages.EchoStatus value) { - if (responseStatusBuilder_ == null) { - if (responseStatus_ != null) { - responseStatus_ = - grpc.testing.Messages.EchoStatus.newBuilder(responseStatus_).mergeFrom(value).buildPartial(); - } else { - responseStatus_ = value; - } - onChanged(); - } else { - responseStatusBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Whether server should return a given status
-       * 
- * - * .grpc.testing.EchoStatus response_status = 7 [json_name = "responseStatus"]; - */ - public Builder clearResponseStatus() { - if (responseStatusBuilder_ == null) { - responseStatus_ = null; - onChanged(); - } else { - responseStatus_ = null; - responseStatusBuilder_ = null; - } - - return this; - } - /** - *
-       * Whether server should return a given status
-       * 
- * - * .grpc.testing.EchoStatus response_status = 7 [json_name = "responseStatus"]; - */ - public grpc.testing.Messages.EchoStatus.Builder getResponseStatusBuilder() { - - onChanged(); - return getResponseStatusFieldBuilder().getBuilder(); - } - /** - *
-       * Whether server should return a given status
-       * 
- * - * .grpc.testing.EchoStatus response_status = 7 [json_name = "responseStatus"]; - */ - public grpc.testing.Messages.EchoStatusOrBuilder getResponseStatusOrBuilder() { - if (responseStatusBuilder_ != null) { - return responseStatusBuilder_.getMessageOrBuilder(); - } else { - return responseStatus_ == null ? - grpc.testing.Messages.EchoStatus.getDefaultInstance() : responseStatus_; - } - } - /** - *
-       * Whether server should return a given status
-       * 
- * - * .grpc.testing.EchoStatus response_status = 7 [json_name = "responseStatus"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - grpc.testing.Messages.EchoStatus, grpc.testing.Messages.EchoStatus.Builder, grpc.testing.Messages.EchoStatusOrBuilder> - getResponseStatusFieldBuilder() { - if (responseStatusBuilder_ == null) { - responseStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - grpc.testing.Messages.EchoStatus, grpc.testing.Messages.EchoStatus.Builder, grpc.testing.Messages.EchoStatusOrBuilder>( - getResponseStatus(), - getParentForChildren(), - isClean()); - responseStatus_ = null; - } - return responseStatusBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:grpc.testing.StreamingOutputCallRequest) - } - - // @@protoc_insertion_point(class_scope:grpc.testing.StreamingOutputCallRequest) - private static final grpc.testing.Messages.StreamingOutputCallRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new grpc.testing.Messages.StreamingOutputCallRequest(); - } - - public static grpc.testing.Messages.StreamingOutputCallRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingOutputCallRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StreamingOutputCallRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public grpc.testing.Messages.StreamingOutputCallRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface StreamingOutputCallResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:grpc.testing.StreamingOutputCallResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Payload to increase response size.
-     * 
- * - * .grpc.testing.Payload payload = 1 [json_name = "payload"]; - * @return Whether the payload field is set. - */ - boolean hasPayload(); - /** - *
-     * Payload to increase response size.
-     * 
- * - * .grpc.testing.Payload payload = 1 [json_name = "payload"]; - * @return The payload. - */ - grpc.testing.Messages.Payload getPayload(); - /** - *
-     * Payload to increase response size.
-     * 
- * - * .grpc.testing.Payload payload = 1 [json_name = "payload"]; - */ - grpc.testing.Messages.PayloadOrBuilder getPayloadOrBuilder(); - } - /** - *
-   * Server-streaming response, as configured by the request and parameters.
-   * 
- * - * Protobuf type {@code grpc.testing.StreamingOutputCallResponse} - */ - public static final class StreamingOutputCallResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:grpc.testing.StreamingOutputCallResponse) - StreamingOutputCallResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use StreamingOutputCallResponse.newBuilder() to construct. - private StreamingOutputCallResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private StreamingOutputCallResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StreamingOutputCallResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private StreamingOutputCallResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - grpc.testing.Messages.Payload.Builder subBuilder = null; - if (payload_ != null) { - subBuilder = payload_.toBuilder(); - } - payload_ = input.readMessage(grpc.testing.Messages.Payload.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(payload_); - payload_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return grpc.testing.Messages.internal_static_grpc_testing_StreamingOutputCallResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return grpc.testing.Messages.internal_static_grpc_testing_StreamingOutputCallResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - grpc.testing.Messages.StreamingOutputCallResponse.class, grpc.testing.Messages.StreamingOutputCallResponse.Builder.class); - } - - public static final int PAYLOAD_FIELD_NUMBER = 1; - private grpc.testing.Messages.Payload payload_; - /** - *
-     * Payload to increase response size.
-     * 
- * - * .grpc.testing.Payload payload = 1 [json_name = "payload"]; - * @return Whether the payload field is set. - */ - @java.lang.Override - public boolean hasPayload() { - return payload_ != null; - } - /** - *
-     * Payload to increase response size.
-     * 
- * - * .grpc.testing.Payload payload = 1 [json_name = "payload"]; - * @return The payload. - */ - @java.lang.Override - public grpc.testing.Messages.Payload getPayload() { - return payload_ == null ? grpc.testing.Messages.Payload.getDefaultInstance() : payload_; - } - /** - *
-     * Payload to increase response size.
-     * 
- * - * .grpc.testing.Payload payload = 1 [json_name = "payload"]; - */ - @java.lang.Override - public grpc.testing.Messages.PayloadOrBuilder getPayloadOrBuilder() { - return getPayload(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (payload_ != null) { - output.writeMessage(1, getPayload()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (payload_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPayload()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof grpc.testing.Messages.StreamingOutputCallResponse)) { - return super.equals(obj); - } - grpc.testing.Messages.StreamingOutputCallResponse other = (grpc.testing.Messages.StreamingOutputCallResponse) obj; - - if (hasPayload() != other.hasPayload()) return false; - if (hasPayload()) { - if (!getPayload() - .equals(other.getPayload())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasPayload()) { - hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; - hash = (53 * hash) + getPayload().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static grpc.testing.Messages.StreamingOutputCallResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.StreamingOutputCallResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.StreamingOutputCallResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.StreamingOutputCallResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.StreamingOutputCallResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.StreamingOutputCallResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.StreamingOutputCallResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static grpc.testing.Messages.StreamingOutputCallResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static grpc.testing.Messages.StreamingOutputCallResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static grpc.testing.Messages.StreamingOutputCallResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static grpc.testing.Messages.StreamingOutputCallResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static grpc.testing.Messages.StreamingOutputCallResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(grpc.testing.Messages.StreamingOutputCallResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Server-streaming response, as configured by the request and parameters.
-     * 
- * - * Protobuf type {@code grpc.testing.StreamingOutputCallResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:grpc.testing.StreamingOutputCallResponse) - grpc.testing.Messages.StreamingOutputCallResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return grpc.testing.Messages.internal_static_grpc_testing_StreamingOutputCallResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return grpc.testing.Messages.internal_static_grpc_testing_StreamingOutputCallResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - grpc.testing.Messages.StreamingOutputCallResponse.class, grpc.testing.Messages.StreamingOutputCallResponse.Builder.class); - } - - // Construct using grpc.testing.Messages.StreamingOutputCallResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (payloadBuilder_ == null) { - payload_ = null; - } else { - payload_ = null; - payloadBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return grpc.testing.Messages.internal_static_grpc_testing_StreamingOutputCallResponse_descriptor; - } - - @java.lang.Override - public grpc.testing.Messages.StreamingOutputCallResponse getDefaultInstanceForType() { - return grpc.testing.Messages.StreamingOutputCallResponse.getDefaultInstance(); - } - - @java.lang.Override - public grpc.testing.Messages.StreamingOutputCallResponse build() { - grpc.testing.Messages.StreamingOutputCallResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public grpc.testing.Messages.StreamingOutputCallResponse buildPartial() { - grpc.testing.Messages.StreamingOutputCallResponse result = new grpc.testing.Messages.StreamingOutputCallResponse(this); - if (payloadBuilder_ == null) { - result.payload_ = payload_; - } else { - result.payload_ = payloadBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof grpc.testing.Messages.StreamingOutputCallResponse) { - return mergeFrom((grpc.testing.Messages.StreamingOutputCallResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(grpc.testing.Messages.StreamingOutputCallResponse other) { - if (other == grpc.testing.Messages.StreamingOutputCallResponse.getDefaultInstance()) return this; - if (other.hasPayload()) { - mergePayload(other.getPayload()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - grpc.testing.Messages.StreamingOutputCallResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (grpc.testing.Messages.StreamingOutputCallResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private grpc.testing.Messages.Payload payload_; - private com.google.protobuf.SingleFieldBuilderV3< - grpc.testing.Messages.Payload, grpc.testing.Messages.Payload.Builder, grpc.testing.Messages.PayloadOrBuilder> payloadBuilder_; - /** - *
-       * Payload to increase response size.
-       * 
- * - * .grpc.testing.Payload payload = 1 [json_name = "payload"]; - * @return Whether the payload field is set. - */ - public boolean hasPayload() { - return payloadBuilder_ != null || payload_ != null; - } - /** - *
-       * Payload to increase response size.
-       * 
- * - * .grpc.testing.Payload payload = 1 [json_name = "payload"]; - * @return The payload. - */ - public grpc.testing.Messages.Payload getPayload() { - if (payloadBuilder_ == null) { - return payload_ == null ? grpc.testing.Messages.Payload.getDefaultInstance() : payload_; - } else { - return payloadBuilder_.getMessage(); - } - } - /** - *
-       * Payload to increase response size.
-       * 
- * - * .grpc.testing.Payload payload = 1 [json_name = "payload"]; - */ - public Builder setPayload(grpc.testing.Messages.Payload value) { - if (payloadBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - payload_ = value; - onChanged(); - } else { - payloadBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Payload to increase response size.
-       * 
- * - * .grpc.testing.Payload payload = 1 [json_name = "payload"]; - */ - public Builder setPayload( - grpc.testing.Messages.Payload.Builder builderForValue) { - if (payloadBuilder_ == null) { - payload_ = builderForValue.build(); - onChanged(); - } else { - payloadBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Payload to increase response size.
-       * 
- * - * .grpc.testing.Payload payload = 1 [json_name = "payload"]; - */ - public Builder mergePayload(grpc.testing.Messages.Payload value) { - if (payloadBuilder_ == null) { - if (payload_ != null) { - payload_ = - grpc.testing.Messages.Payload.newBuilder(payload_).mergeFrom(value).buildPartial(); - } else { - payload_ = value; - } - onChanged(); - } else { - payloadBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Payload to increase response size.
-       * 
- * - * .grpc.testing.Payload payload = 1 [json_name = "payload"]; - */ - public Builder clearPayload() { - if (payloadBuilder_ == null) { - payload_ = null; - onChanged(); - } else { - payload_ = null; - payloadBuilder_ = null; - } - - return this; - } - /** - *
-       * Payload to increase response size.
-       * 
- * - * .grpc.testing.Payload payload = 1 [json_name = "payload"]; - */ - public grpc.testing.Messages.Payload.Builder getPayloadBuilder() { - - onChanged(); - return getPayloadFieldBuilder().getBuilder(); - } - /** - *
-       * Payload to increase response size.
-       * 
- * - * .grpc.testing.Payload payload = 1 [json_name = "payload"]; - */ - public grpc.testing.Messages.PayloadOrBuilder getPayloadOrBuilder() { - if (payloadBuilder_ != null) { - return payloadBuilder_.getMessageOrBuilder(); - } else { - return payload_ == null ? - grpc.testing.Messages.Payload.getDefaultInstance() : payload_; - } - } - /** - *
-       * Payload to increase response size.
-       * 
- * - * .grpc.testing.Payload payload = 1 [json_name = "payload"]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - grpc.testing.Messages.Payload, grpc.testing.Messages.Payload.Builder, grpc.testing.Messages.PayloadOrBuilder> - getPayloadFieldBuilder() { - if (payloadBuilder_ == null) { - payloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - grpc.testing.Messages.Payload, grpc.testing.Messages.Payload.Builder, grpc.testing.Messages.PayloadOrBuilder>( - getPayload(), - getParentForChildren(), - isClean()); - payload_ = null; - } - return payloadBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:grpc.testing.StreamingOutputCallResponse) - } - - // @@protoc_insertion_point(class_scope:grpc.testing.StreamingOutputCallResponse) - private static final grpc.testing.Messages.StreamingOutputCallResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new grpc.testing.Messages.StreamingOutputCallResponse(); - } - - public static grpc.testing.Messages.StreamingOutputCallResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingOutputCallResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StreamingOutputCallResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public grpc.testing.Messages.StreamingOutputCallResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ReconnectParamsOrBuilder extends - // @@protoc_insertion_point(interface_extends:grpc.testing.ReconnectParams) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 max_reconnect_backoff_ms = 1 [json_name = "maxReconnectBackoffMs"]; - * @return The maxReconnectBackoffMs. - */ - int getMaxReconnectBackoffMs(); - } - /** - *
-   * For reconnect interop test only.
-   * Client tells server what reconnection parameters it used.
-   * 
- * - * Protobuf type {@code grpc.testing.ReconnectParams} - */ - public static final class ReconnectParams extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:grpc.testing.ReconnectParams) - ReconnectParamsOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReconnectParams.newBuilder() to construct. - private ReconnectParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReconnectParams() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReconnectParams(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReconnectParams( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - maxReconnectBackoffMs_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return grpc.testing.Messages.internal_static_grpc_testing_ReconnectParams_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return grpc.testing.Messages.internal_static_grpc_testing_ReconnectParams_fieldAccessorTable - .ensureFieldAccessorsInitialized( - grpc.testing.Messages.ReconnectParams.class, grpc.testing.Messages.ReconnectParams.Builder.class); - } - - public static final int MAX_RECONNECT_BACKOFF_MS_FIELD_NUMBER = 1; - private int maxReconnectBackoffMs_; - /** - * int32 max_reconnect_backoff_ms = 1 [json_name = "maxReconnectBackoffMs"]; - * @return The maxReconnectBackoffMs. - */ - @java.lang.Override - public int getMaxReconnectBackoffMs() { - return maxReconnectBackoffMs_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (maxReconnectBackoffMs_ != 0) { - output.writeInt32(1, maxReconnectBackoffMs_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (maxReconnectBackoffMs_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, maxReconnectBackoffMs_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof grpc.testing.Messages.ReconnectParams)) { - return super.equals(obj); - } - grpc.testing.Messages.ReconnectParams other = (grpc.testing.Messages.ReconnectParams) obj; - - if (getMaxReconnectBackoffMs() - != other.getMaxReconnectBackoffMs()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MAX_RECONNECT_BACKOFF_MS_FIELD_NUMBER; - hash = (53 * hash) + getMaxReconnectBackoffMs(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static grpc.testing.Messages.ReconnectParams parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.ReconnectParams parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.ReconnectParams parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.ReconnectParams parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.ReconnectParams parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.ReconnectParams parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.ReconnectParams parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static grpc.testing.Messages.ReconnectParams parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static grpc.testing.Messages.ReconnectParams parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static grpc.testing.Messages.ReconnectParams parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static grpc.testing.Messages.ReconnectParams parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static grpc.testing.Messages.ReconnectParams parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(grpc.testing.Messages.ReconnectParams prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * For reconnect interop test only.
-     * Client tells server what reconnection parameters it used.
-     * 
- * - * Protobuf type {@code grpc.testing.ReconnectParams} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:grpc.testing.ReconnectParams) - grpc.testing.Messages.ReconnectParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return grpc.testing.Messages.internal_static_grpc_testing_ReconnectParams_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return grpc.testing.Messages.internal_static_grpc_testing_ReconnectParams_fieldAccessorTable - .ensureFieldAccessorsInitialized( - grpc.testing.Messages.ReconnectParams.class, grpc.testing.Messages.ReconnectParams.Builder.class); - } - - // Construct using grpc.testing.Messages.ReconnectParams.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - maxReconnectBackoffMs_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return grpc.testing.Messages.internal_static_grpc_testing_ReconnectParams_descriptor; - } - - @java.lang.Override - public grpc.testing.Messages.ReconnectParams getDefaultInstanceForType() { - return grpc.testing.Messages.ReconnectParams.getDefaultInstance(); - } - - @java.lang.Override - public grpc.testing.Messages.ReconnectParams build() { - grpc.testing.Messages.ReconnectParams result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public grpc.testing.Messages.ReconnectParams buildPartial() { - grpc.testing.Messages.ReconnectParams result = new grpc.testing.Messages.ReconnectParams(this); - result.maxReconnectBackoffMs_ = maxReconnectBackoffMs_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof grpc.testing.Messages.ReconnectParams) { - return mergeFrom((grpc.testing.Messages.ReconnectParams)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(grpc.testing.Messages.ReconnectParams other) { - if (other == grpc.testing.Messages.ReconnectParams.getDefaultInstance()) return this; - if (other.getMaxReconnectBackoffMs() != 0) { - setMaxReconnectBackoffMs(other.getMaxReconnectBackoffMs()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - grpc.testing.Messages.ReconnectParams parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (grpc.testing.Messages.ReconnectParams) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int maxReconnectBackoffMs_ ; - /** - * int32 max_reconnect_backoff_ms = 1 [json_name = "maxReconnectBackoffMs"]; - * @return The maxReconnectBackoffMs. - */ - @java.lang.Override - public int getMaxReconnectBackoffMs() { - return maxReconnectBackoffMs_; - } - /** - * int32 max_reconnect_backoff_ms = 1 [json_name = "maxReconnectBackoffMs"]; - * @param value The maxReconnectBackoffMs to set. - * @return This builder for chaining. - */ - public Builder setMaxReconnectBackoffMs(int value) { - - maxReconnectBackoffMs_ = value; - onChanged(); - return this; - } - /** - * int32 max_reconnect_backoff_ms = 1 [json_name = "maxReconnectBackoffMs"]; - * @return This builder for chaining. - */ - public Builder clearMaxReconnectBackoffMs() { - - maxReconnectBackoffMs_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:grpc.testing.ReconnectParams) - } - - // @@protoc_insertion_point(class_scope:grpc.testing.ReconnectParams) - private static final grpc.testing.Messages.ReconnectParams DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new grpc.testing.Messages.ReconnectParams(); - } - - public static grpc.testing.Messages.ReconnectParams getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReconnectParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReconnectParams(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public grpc.testing.Messages.ReconnectParams getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ReconnectInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:grpc.testing.ReconnectInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * bool passed = 1 [json_name = "passed"]; - * @return The passed. - */ - boolean getPassed(); - - /** - * repeated int32 backoff_ms = 2 [json_name = "backoffMs"]; - * @return A list containing the backoffMs. - */ - java.util.List getBackoffMsList(); - /** - * repeated int32 backoff_ms = 2 [json_name = "backoffMs"]; - * @return The count of backoffMs. - */ - int getBackoffMsCount(); - /** - * repeated int32 backoff_ms = 2 [json_name = "backoffMs"]; - * @param index The index of the element to return. - * @return The backoffMs at the given index. - */ - int getBackoffMs(int index); - } - /** - *
-   * For reconnect interop test only.
-   * Server tells client whether its reconnects are following the spec and the
-   * reconnect backoffs it saw.
-   * 
- * - * Protobuf type {@code grpc.testing.ReconnectInfo} - */ - public static final class ReconnectInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:grpc.testing.ReconnectInfo) - ReconnectInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReconnectInfo.newBuilder() to construct. - private ReconnectInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReconnectInfo() { - backoffMs_ = emptyIntList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReconnectInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReconnectInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - passed_ = input.readBool(); - break; - } - case 16: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - backoffMs_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - backoffMs_.addInt(input.readInt32()); - break; - } - case 18: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { - backoffMs_ = newIntList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - backoffMs_.addInt(input.readInt32()); - } - input.popLimit(limit); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - backoffMs_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return grpc.testing.Messages.internal_static_grpc_testing_ReconnectInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return grpc.testing.Messages.internal_static_grpc_testing_ReconnectInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - grpc.testing.Messages.ReconnectInfo.class, grpc.testing.Messages.ReconnectInfo.Builder.class); - } - - public static final int PASSED_FIELD_NUMBER = 1; - private boolean passed_; - /** - * bool passed = 1 [json_name = "passed"]; - * @return The passed. - */ - @java.lang.Override - public boolean getPassed() { - return passed_; - } - - public static final int BACKOFF_MS_FIELD_NUMBER = 2; - private com.google.protobuf.Internal.IntList backoffMs_; - /** - * repeated int32 backoff_ms = 2 [json_name = "backoffMs"]; - * @return A list containing the backoffMs. - */ - @java.lang.Override - public java.util.List - getBackoffMsList() { - return backoffMs_; - } - /** - * repeated int32 backoff_ms = 2 [json_name = "backoffMs"]; - * @return The count of backoffMs. - */ - public int getBackoffMsCount() { - return backoffMs_.size(); - } - /** - * repeated int32 backoff_ms = 2 [json_name = "backoffMs"]; - * @param index The index of the element to return. - * @return The backoffMs at the given index. - */ - public int getBackoffMs(int index) { - return backoffMs_.getInt(index); - } - private int backoffMsMemoizedSerializedSize = -1; - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (passed_ != false) { - output.writeBool(1, passed_); - } - if (getBackoffMsList().size() > 0) { - output.writeUInt32NoTag(18); - output.writeUInt32NoTag(backoffMsMemoizedSerializedSize); - } - for (int i = 0; i < backoffMs_.size(); i++) { - output.writeInt32NoTag(backoffMs_.getInt(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (passed_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, passed_); - } - { - int dataSize = 0; - for (int i = 0; i < backoffMs_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(backoffMs_.getInt(i)); - } - size += dataSize; - if (!getBackoffMsList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - backoffMsMemoizedSerializedSize = dataSize; - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof grpc.testing.Messages.ReconnectInfo)) { - return super.equals(obj); - } - grpc.testing.Messages.ReconnectInfo other = (grpc.testing.Messages.ReconnectInfo) obj; - - if (getPassed() - != other.getPassed()) return false; - if (!getBackoffMsList() - .equals(other.getBackoffMsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PASSED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getPassed()); - if (getBackoffMsCount() > 0) { - hash = (37 * hash) + BACKOFF_MS_FIELD_NUMBER; - hash = (53 * hash) + getBackoffMsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static grpc.testing.Messages.ReconnectInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.ReconnectInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.ReconnectInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.ReconnectInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.ReconnectInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.ReconnectInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.ReconnectInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static grpc.testing.Messages.ReconnectInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static grpc.testing.Messages.ReconnectInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static grpc.testing.Messages.ReconnectInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static grpc.testing.Messages.ReconnectInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static grpc.testing.Messages.ReconnectInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(grpc.testing.Messages.ReconnectInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * For reconnect interop test only.
-     * Server tells client whether its reconnects are following the spec and the
-     * reconnect backoffs it saw.
-     * 
- * - * Protobuf type {@code grpc.testing.ReconnectInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:grpc.testing.ReconnectInfo) - grpc.testing.Messages.ReconnectInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return grpc.testing.Messages.internal_static_grpc_testing_ReconnectInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return grpc.testing.Messages.internal_static_grpc_testing_ReconnectInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - grpc.testing.Messages.ReconnectInfo.class, grpc.testing.Messages.ReconnectInfo.Builder.class); - } - - // Construct using grpc.testing.Messages.ReconnectInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - passed_ = false; - - backoffMs_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return grpc.testing.Messages.internal_static_grpc_testing_ReconnectInfo_descriptor; - } - - @java.lang.Override - public grpc.testing.Messages.ReconnectInfo getDefaultInstanceForType() { - return grpc.testing.Messages.ReconnectInfo.getDefaultInstance(); - } - - @java.lang.Override - public grpc.testing.Messages.ReconnectInfo build() { - grpc.testing.Messages.ReconnectInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public grpc.testing.Messages.ReconnectInfo buildPartial() { - grpc.testing.Messages.ReconnectInfo result = new grpc.testing.Messages.ReconnectInfo(this); - int from_bitField0_ = bitField0_; - result.passed_ = passed_; - if (((bitField0_ & 0x00000001) != 0)) { - backoffMs_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.backoffMs_ = backoffMs_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof grpc.testing.Messages.ReconnectInfo) { - return mergeFrom((grpc.testing.Messages.ReconnectInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(grpc.testing.Messages.ReconnectInfo other) { - if (other == grpc.testing.Messages.ReconnectInfo.getDefaultInstance()) return this; - if (other.getPassed() != false) { - setPassed(other.getPassed()); - } - if (!other.backoffMs_.isEmpty()) { - if (backoffMs_.isEmpty()) { - backoffMs_ = other.backoffMs_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureBackoffMsIsMutable(); - backoffMs_.addAll(other.backoffMs_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - grpc.testing.Messages.ReconnectInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (grpc.testing.Messages.ReconnectInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private boolean passed_ ; - /** - * bool passed = 1 [json_name = "passed"]; - * @return The passed. - */ - @java.lang.Override - public boolean getPassed() { - return passed_; - } - /** - * bool passed = 1 [json_name = "passed"]; - * @param value The passed to set. - * @return This builder for chaining. - */ - public Builder setPassed(boolean value) { - - passed_ = value; - onChanged(); - return this; - } - /** - * bool passed = 1 [json_name = "passed"]; - * @return This builder for chaining. - */ - public Builder clearPassed() { - - passed_ = false; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList backoffMs_ = emptyIntList(); - private void ensureBackoffMsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - backoffMs_ = mutableCopy(backoffMs_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated int32 backoff_ms = 2 [json_name = "backoffMs"]; - * @return A list containing the backoffMs. - */ - public java.util.List - getBackoffMsList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(backoffMs_) : backoffMs_; - } - /** - * repeated int32 backoff_ms = 2 [json_name = "backoffMs"]; - * @return The count of backoffMs. - */ - public int getBackoffMsCount() { - return backoffMs_.size(); - } - /** - * repeated int32 backoff_ms = 2 [json_name = "backoffMs"]; - * @param index The index of the element to return. - * @return The backoffMs at the given index. - */ - public int getBackoffMs(int index) { - return backoffMs_.getInt(index); - } - /** - * repeated int32 backoff_ms = 2 [json_name = "backoffMs"]; - * @param index The index to set the value at. - * @param value The backoffMs to set. - * @return This builder for chaining. - */ - public Builder setBackoffMs( - int index, int value) { - ensureBackoffMsIsMutable(); - backoffMs_.setInt(index, value); - onChanged(); - return this; - } - /** - * repeated int32 backoff_ms = 2 [json_name = "backoffMs"]; - * @param value The backoffMs to add. - * @return This builder for chaining. - */ - public Builder addBackoffMs(int value) { - ensureBackoffMsIsMutable(); - backoffMs_.addInt(value); - onChanged(); - return this; - } - /** - * repeated int32 backoff_ms = 2 [json_name = "backoffMs"]; - * @param values The backoffMs to add. - * @return This builder for chaining. - */ - public Builder addAllBackoffMs( - java.lang.Iterable values) { - ensureBackoffMsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, backoffMs_); - onChanged(); - return this; - } - /** - * repeated int32 backoff_ms = 2 [json_name = "backoffMs"]; - * @return This builder for chaining. - */ - public Builder clearBackoffMs() { - backoffMs_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:grpc.testing.ReconnectInfo) - } - - // @@protoc_insertion_point(class_scope:grpc.testing.ReconnectInfo) - private static final grpc.testing.Messages.ReconnectInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new grpc.testing.Messages.ReconnectInfo(); - } - - public static grpc.testing.Messages.ReconnectInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReconnectInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReconnectInfo(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public grpc.testing.Messages.ReconnectInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LoadBalancerStatsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:grpc.testing.LoadBalancerStatsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Request stats for the next num_rpcs sent by client.
-     * 
- * - * int32 num_rpcs = 1 [json_name = "numRpcs"]; - * @return The numRpcs. - */ - int getNumRpcs(); - - /** - *
-     * If num_rpcs have not completed within timeout_sec, return partial results.
-     * 
- * - * int32 timeout_sec = 2 [json_name = "timeoutSec"]; - * @return The timeoutSec. - */ - int getTimeoutSec(); - } - /** - * Protobuf type {@code grpc.testing.LoadBalancerStatsRequest} - */ - public static final class LoadBalancerStatsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:grpc.testing.LoadBalancerStatsRequest) - LoadBalancerStatsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use LoadBalancerStatsRequest.newBuilder() to construct. - private LoadBalancerStatsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LoadBalancerStatsRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new LoadBalancerStatsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LoadBalancerStatsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - numRpcs_ = input.readInt32(); - break; - } - case 16: { - - timeoutSec_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return grpc.testing.Messages.internal_static_grpc_testing_LoadBalancerStatsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return grpc.testing.Messages.internal_static_grpc_testing_LoadBalancerStatsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - grpc.testing.Messages.LoadBalancerStatsRequest.class, grpc.testing.Messages.LoadBalancerStatsRequest.Builder.class); - } - - public static final int NUM_RPCS_FIELD_NUMBER = 1; - private int numRpcs_; - /** - *
-     * Request stats for the next num_rpcs sent by client.
-     * 
- * - * int32 num_rpcs = 1 [json_name = "numRpcs"]; - * @return The numRpcs. - */ - @java.lang.Override - public int getNumRpcs() { - return numRpcs_; - } - - public static final int TIMEOUT_SEC_FIELD_NUMBER = 2; - private int timeoutSec_; - /** - *
-     * If num_rpcs have not completed within timeout_sec, return partial results.
-     * 
- * - * int32 timeout_sec = 2 [json_name = "timeoutSec"]; - * @return The timeoutSec. - */ - @java.lang.Override - public int getTimeoutSec() { - return timeoutSec_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (numRpcs_ != 0) { - output.writeInt32(1, numRpcs_); - } - if (timeoutSec_ != 0) { - output.writeInt32(2, timeoutSec_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (numRpcs_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, numRpcs_); - } - if (timeoutSec_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, timeoutSec_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof grpc.testing.Messages.LoadBalancerStatsRequest)) { - return super.equals(obj); - } - grpc.testing.Messages.LoadBalancerStatsRequest other = (grpc.testing.Messages.LoadBalancerStatsRequest) obj; - - if (getNumRpcs() - != other.getNumRpcs()) return false; - if (getTimeoutSec() - != other.getTimeoutSec()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NUM_RPCS_FIELD_NUMBER; - hash = (53 * hash) + getNumRpcs(); - hash = (37 * hash) + TIMEOUT_SEC_FIELD_NUMBER; - hash = (53 * hash) + getTimeoutSec(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static grpc.testing.Messages.LoadBalancerStatsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.LoadBalancerStatsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.LoadBalancerStatsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.LoadBalancerStatsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.LoadBalancerStatsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.LoadBalancerStatsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.LoadBalancerStatsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static grpc.testing.Messages.LoadBalancerStatsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static grpc.testing.Messages.LoadBalancerStatsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static grpc.testing.Messages.LoadBalancerStatsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static grpc.testing.Messages.LoadBalancerStatsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static grpc.testing.Messages.LoadBalancerStatsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(grpc.testing.Messages.LoadBalancerStatsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code grpc.testing.LoadBalancerStatsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:grpc.testing.LoadBalancerStatsRequest) - grpc.testing.Messages.LoadBalancerStatsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return grpc.testing.Messages.internal_static_grpc_testing_LoadBalancerStatsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return grpc.testing.Messages.internal_static_grpc_testing_LoadBalancerStatsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - grpc.testing.Messages.LoadBalancerStatsRequest.class, grpc.testing.Messages.LoadBalancerStatsRequest.Builder.class); - } - - // Construct using grpc.testing.Messages.LoadBalancerStatsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - numRpcs_ = 0; - - timeoutSec_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return grpc.testing.Messages.internal_static_grpc_testing_LoadBalancerStatsRequest_descriptor; - } - - @java.lang.Override - public grpc.testing.Messages.LoadBalancerStatsRequest getDefaultInstanceForType() { - return grpc.testing.Messages.LoadBalancerStatsRequest.getDefaultInstance(); - } - - @java.lang.Override - public grpc.testing.Messages.LoadBalancerStatsRequest build() { - grpc.testing.Messages.LoadBalancerStatsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public grpc.testing.Messages.LoadBalancerStatsRequest buildPartial() { - grpc.testing.Messages.LoadBalancerStatsRequest result = new grpc.testing.Messages.LoadBalancerStatsRequest(this); - result.numRpcs_ = numRpcs_; - result.timeoutSec_ = timeoutSec_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof grpc.testing.Messages.LoadBalancerStatsRequest) { - return mergeFrom((grpc.testing.Messages.LoadBalancerStatsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(grpc.testing.Messages.LoadBalancerStatsRequest other) { - if (other == grpc.testing.Messages.LoadBalancerStatsRequest.getDefaultInstance()) return this; - if (other.getNumRpcs() != 0) { - setNumRpcs(other.getNumRpcs()); - } - if (other.getTimeoutSec() != 0) { - setTimeoutSec(other.getTimeoutSec()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - grpc.testing.Messages.LoadBalancerStatsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (grpc.testing.Messages.LoadBalancerStatsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int numRpcs_ ; - /** - *
-       * Request stats for the next num_rpcs sent by client.
-       * 
- * - * int32 num_rpcs = 1 [json_name = "numRpcs"]; - * @return The numRpcs. - */ - @java.lang.Override - public int getNumRpcs() { - return numRpcs_; - } - /** - *
-       * Request stats for the next num_rpcs sent by client.
-       * 
- * - * int32 num_rpcs = 1 [json_name = "numRpcs"]; - * @param value The numRpcs to set. - * @return This builder for chaining. - */ - public Builder setNumRpcs(int value) { - - numRpcs_ = value; - onChanged(); - return this; - } - /** - *
-       * Request stats for the next num_rpcs sent by client.
-       * 
- * - * int32 num_rpcs = 1 [json_name = "numRpcs"]; - * @return This builder for chaining. - */ - public Builder clearNumRpcs() { - - numRpcs_ = 0; - onChanged(); - return this; - } - - private int timeoutSec_ ; - /** - *
-       * If num_rpcs have not completed within timeout_sec, return partial results.
-       * 
- * - * int32 timeout_sec = 2 [json_name = "timeoutSec"]; - * @return The timeoutSec. - */ - @java.lang.Override - public int getTimeoutSec() { - return timeoutSec_; - } - /** - *
-       * If num_rpcs have not completed within timeout_sec, return partial results.
-       * 
- * - * int32 timeout_sec = 2 [json_name = "timeoutSec"]; - * @param value The timeoutSec to set. - * @return This builder for chaining. - */ - public Builder setTimeoutSec(int value) { - - timeoutSec_ = value; - onChanged(); - return this; - } - /** - *
-       * If num_rpcs have not completed within timeout_sec, return partial results.
-       * 
- * - * int32 timeout_sec = 2 [json_name = "timeoutSec"]; - * @return This builder for chaining. - */ - public Builder clearTimeoutSec() { - - timeoutSec_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:grpc.testing.LoadBalancerStatsRequest) - } - - // @@protoc_insertion_point(class_scope:grpc.testing.LoadBalancerStatsRequest) - private static final grpc.testing.Messages.LoadBalancerStatsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new grpc.testing.Messages.LoadBalancerStatsRequest(); - } - - public static grpc.testing.Messages.LoadBalancerStatsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LoadBalancerStatsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LoadBalancerStatsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public grpc.testing.Messages.LoadBalancerStatsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LoadBalancerStatsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:grpc.testing.LoadBalancerStatsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The number of completed RPCs for each peer.
-     * 
- * - * map<string, int32> rpcs_by_peer = 1 [json_name = "rpcsByPeer"]; - */ - int getRpcsByPeerCount(); - /** - *
-     * The number of completed RPCs for each peer.
-     * 
- * - * map<string, int32> rpcs_by_peer = 1 [json_name = "rpcsByPeer"]; - */ - boolean containsRpcsByPeer( - java.lang.String key); - /** - * Use {@link #getRpcsByPeerMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getRpcsByPeer(); - /** - *
-     * The number of completed RPCs for each peer.
-     * 
- * - * map<string, int32> rpcs_by_peer = 1 [json_name = "rpcsByPeer"]; - */ - java.util.Map - getRpcsByPeerMap(); - /** - *
-     * The number of completed RPCs for each peer.
-     * 
- * - * map<string, int32> rpcs_by_peer = 1 [json_name = "rpcsByPeer"]; - */ - - int getRpcsByPeerOrDefault( - java.lang.String key, - int defaultValue); - /** - *
-     * The number of completed RPCs for each peer.
-     * 
- * - * map<string, int32> rpcs_by_peer = 1 [json_name = "rpcsByPeer"]; - */ - - int getRpcsByPeerOrThrow( - java.lang.String key); - - /** - *
-     * The number of RPCs that failed to record a remote peer.
-     * 
- * - * int32 num_failures = 2 [json_name = "numFailures"]; - * @return The numFailures. - */ - int getNumFailures(); - - /** - * map<string, .grpc.testing.LoadBalancerStatsResponse.RpcsByPeer> rpcs_by_method = 3 [json_name = "rpcsByMethod"]; - */ - int getRpcsByMethodCount(); - /** - * map<string, .grpc.testing.LoadBalancerStatsResponse.RpcsByPeer> rpcs_by_method = 3 [json_name = "rpcsByMethod"]; - */ - boolean containsRpcsByMethod( - java.lang.String key); - /** - * Use {@link #getRpcsByMethodMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getRpcsByMethod(); - /** - * map<string, .grpc.testing.LoadBalancerStatsResponse.RpcsByPeer> rpcs_by_method = 3 [json_name = "rpcsByMethod"]; - */ - java.util.Map - getRpcsByMethodMap(); - /** - * map<string, .grpc.testing.LoadBalancerStatsResponse.RpcsByPeer> rpcs_by_method = 3 [json_name = "rpcsByMethod"]; - */ - - /* nullable */ -grpc.testing.Messages.LoadBalancerStatsResponse.RpcsByPeer getRpcsByMethodOrDefault( - java.lang.String key, - /* nullable */ -grpc.testing.Messages.LoadBalancerStatsResponse.RpcsByPeer defaultValue); - /** - * map<string, .grpc.testing.LoadBalancerStatsResponse.RpcsByPeer> rpcs_by_method = 3 [json_name = "rpcsByMethod"]; - */ - - grpc.testing.Messages.LoadBalancerStatsResponse.RpcsByPeer getRpcsByMethodOrThrow( - java.lang.String key); - } - /** - * Protobuf type {@code grpc.testing.LoadBalancerStatsResponse} - */ - public static final class LoadBalancerStatsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:grpc.testing.LoadBalancerStatsResponse) - LoadBalancerStatsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use LoadBalancerStatsResponse.newBuilder() to construct. - private LoadBalancerStatsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LoadBalancerStatsResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new LoadBalancerStatsResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LoadBalancerStatsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - rpcsByPeer_ = com.google.protobuf.MapField.newMapField( - RpcsByPeerDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - rpcsByPeer__ = input.readMessage( - RpcsByPeerDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - rpcsByPeer_.getMutableMap().put( - rpcsByPeer__.getKey(), rpcsByPeer__.getValue()); - break; - } - case 16: { - - numFailures_ = input.readInt32(); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - rpcsByMethod_ = com.google.protobuf.MapField.newMapField( - RpcsByMethodDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry - rpcsByMethod__ = input.readMessage( - RpcsByMethodDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - rpcsByMethod_.getMutableMap().put( - rpcsByMethod__.getKey(), rpcsByMethod__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return grpc.testing.Messages.internal_static_grpc_testing_LoadBalancerStatsResponse_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetRpcsByPeer(); - case 3: - return internalGetRpcsByMethod(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return grpc.testing.Messages.internal_static_grpc_testing_LoadBalancerStatsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - grpc.testing.Messages.LoadBalancerStatsResponse.class, grpc.testing.Messages.LoadBalancerStatsResponse.Builder.class); - } - - public interface RpcsByPeerOrBuilder extends - // @@protoc_insertion_point(interface_extends:grpc.testing.LoadBalancerStatsResponse.RpcsByPeer) - com.google.protobuf.MessageOrBuilder { - - /** - *
-       * The number of completed RPCs for each peer.
-       * 
- * - * map<string, int32> rpcs_by_peer = 1 [json_name = "rpcsByPeer"]; - */ - int getRpcsByPeerCount(); - /** - *
-       * The number of completed RPCs for each peer.
-       * 
- * - * map<string, int32> rpcs_by_peer = 1 [json_name = "rpcsByPeer"]; - */ - boolean containsRpcsByPeer( - java.lang.String key); - /** - * Use {@link #getRpcsByPeerMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getRpcsByPeer(); - /** - *
-       * The number of completed RPCs for each peer.
-       * 
- * - * map<string, int32> rpcs_by_peer = 1 [json_name = "rpcsByPeer"]; - */ - java.util.Map - getRpcsByPeerMap(); - /** - *
-       * The number of completed RPCs for each peer.
-       * 
- * - * map<string, int32> rpcs_by_peer = 1 [json_name = "rpcsByPeer"]; - */ - - int getRpcsByPeerOrDefault( - java.lang.String key, - int defaultValue); - /** - *
-       * The number of completed RPCs for each peer.
-       * 
- * - * map<string, int32> rpcs_by_peer = 1 [json_name = "rpcsByPeer"]; - */ - - int getRpcsByPeerOrThrow( - java.lang.String key); - } - /** - * Protobuf type {@code grpc.testing.LoadBalancerStatsResponse.RpcsByPeer} - */ - public static final class RpcsByPeer extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:grpc.testing.LoadBalancerStatsResponse.RpcsByPeer) - RpcsByPeerOrBuilder { - private static final long serialVersionUID = 0L; - // Use RpcsByPeer.newBuilder() to construct. - private RpcsByPeer(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RpcsByPeer() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RpcsByPeer(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RpcsByPeer( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - rpcsByPeer_ = com.google.protobuf.MapField.newMapField( - RpcsByPeerDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - rpcsByPeer__ = input.readMessage( - RpcsByPeerDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - rpcsByPeer_.getMutableMap().put( - rpcsByPeer__.getKey(), rpcsByPeer__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return grpc.testing.Messages.internal_static_grpc_testing_LoadBalancerStatsResponse_RpcsByPeer_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetRpcsByPeer(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return grpc.testing.Messages.internal_static_grpc_testing_LoadBalancerStatsResponse_RpcsByPeer_fieldAccessorTable - .ensureFieldAccessorsInitialized( - grpc.testing.Messages.LoadBalancerStatsResponse.RpcsByPeer.class, grpc.testing.Messages.LoadBalancerStatsResponse.RpcsByPeer.Builder.class); - } - - public static final int RPCS_BY_PEER_FIELD_NUMBER = 1; - private static final class RpcsByPeerDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - grpc.testing.Messages.internal_static_grpc_testing_LoadBalancerStatsResponse_RpcsByPeer_RpcsByPeerEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.INT32, - 0); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.Integer> rpcsByPeer_; - private com.google.protobuf.MapField - internalGetRpcsByPeer() { - if (rpcsByPeer_ == null) { - return com.google.protobuf.MapField.emptyMapField( - RpcsByPeerDefaultEntryHolder.defaultEntry); - } - return rpcsByPeer_; - } - - public int getRpcsByPeerCount() { - return internalGetRpcsByPeer().getMap().size(); - } - /** - *
-       * The number of completed RPCs for each peer.
-       * 
- * - * map<string, int32> rpcs_by_peer = 1 [json_name = "rpcsByPeer"]; - */ - - @java.lang.Override - public boolean containsRpcsByPeer( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetRpcsByPeer().getMap().containsKey(key); - } - /** - * Use {@link #getRpcsByPeerMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getRpcsByPeer() { - return getRpcsByPeerMap(); - } - /** - *
-       * The number of completed RPCs for each peer.
-       * 
- * - * map<string, int32> rpcs_by_peer = 1 [json_name = "rpcsByPeer"]; - */ - @java.lang.Override - - public java.util.Map getRpcsByPeerMap() { - return internalGetRpcsByPeer().getMap(); - } - /** - *
-       * The number of completed RPCs for each peer.
-       * 
- * - * map<string, int32> rpcs_by_peer = 1 [json_name = "rpcsByPeer"]; - */ - @java.lang.Override - - public int getRpcsByPeerOrDefault( - java.lang.String key, - int defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetRpcsByPeer().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * The number of completed RPCs for each peer.
-       * 
- * - * map<string, int32> rpcs_by_peer = 1 [json_name = "rpcsByPeer"]; - */ - @java.lang.Override - - public int getRpcsByPeerOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetRpcsByPeer().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetRpcsByPeer(), - RpcsByPeerDefaultEntryHolder.defaultEntry, - 1); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetRpcsByPeer().getMap().entrySet()) { - com.google.protobuf.MapEntry - rpcsByPeer__ = RpcsByPeerDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, rpcsByPeer__); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof grpc.testing.Messages.LoadBalancerStatsResponse.RpcsByPeer)) { - return super.equals(obj); - } - grpc.testing.Messages.LoadBalancerStatsResponse.RpcsByPeer other = (grpc.testing.Messages.LoadBalancerStatsResponse.RpcsByPeer) obj; - - if (!internalGetRpcsByPeer().equals( - other.internalGetRpcsByPeer())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (!internalGetRpcsByPeer().getMap().isEmpty()) { - hash = (37 * hash) + RPCS_BY_PEER_FIELD_NUMBER; - hash = (53 * hash) + internalGetRpcsByPeer().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static grpc.testing.Messages.LoadBalancerStatsResponse.RpcsByPeer parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.LoadBalancerStatsResponse.RpcsByPeer parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.LoadBalancerStatsResponse.RpcsByPeer parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.LoadBalancerStatsResponse.RpcsByPeer parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.LoadBalancerStatsResponse.RpcsByPeer parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.LoadBalancerStatsResponse.RpcsByPeer parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.LoadBalancerStatsResponse.RpcsByPeer parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static grpc.testing.Messages.LoadBalancerStatsResponse.RpcsByPeer parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static grpc.testing.Messages.LoadBalancerStatsResponse.RpcsByPeer parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static grpc.testing.Messages.LoadBalancerStatsResponse.RpcsByPeer parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static grpc.testing.Messages.LoadBalancerStatsResponse.RpcsByPeer parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static grpc.testing.Messages.LoadBalancerStatsResponse.RpcsByPeer parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(grpc.testing.Messages.LoadBalancerStatsResponse.RpcsByPeer prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code grpc.testing.LoadBalancerStatsResponse.RpcsByPeer} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:grpc.testing.LoadBalancerStatsResponse.RpcsByPeer) - grpc.testing.Messages.LoadBalancerStatsResponse.RpcsByPeerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return grpc.testing.Messages.internal_static_grpc_testing_LoadBalancerStatsResponse_RpcsByPeer_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetRpcsByPeer(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableRpcsByPeer(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return grpc.testing.Messages.internal_static_grpc_testing_LoadBalancerStatsResponse_RpcsByPeer_fieldAccessorTable - .ensureFieldAccessorsInitialized( - grpc.testing.Messages.LoadBalancerStatsResponse.RpcsByPeer.class, grpc.testing.Messages.LoadBalancerStatsResponse.RpcsByPeer.Builder.class); - } - - // Construct using grpc.testing.Messages.LoadBalancerStatsResponse.RpcsByPeer.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - internalGetMutableRpcsByPeer().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return grpc.testing.Messages.internal_static_grpc_testing_LoadBalancerStatsResponse_RpcsByPeer_descriptor; - } - - @java.lang.Override - public grpc.testing.Messages.LoadBalancerStatsResponse.RpcsByPeer getDefaultInstanceForType() { - return grpc.testing.Messages.LoadBalancerStatsResponse.RpcsByPeer.getDefaultInstance(); - } - - @java.lang.Override - public grpc.testing.Messages.LoadBalancerStatsResponse.RpcsByPeer build() { - grpc.testing.Messages.LoadBalancerStatsResponse.RpcsByPeer result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public grpc.testing.Messages.LoadBalancerStatsResponse.RpcsByPeer buildPartial() { - grpc.testing.Messages.LoadBalancerStatsResponse.RpcsByPeer result = new grpc.testing.Messages.LoadBalancerStatsResponse.RpcsByPeer(this); - int from_bitField0_ = bitField0_; - result.rpcsByPeer_ = internalGetRpcsByPeer(); - result.rpcsByPeer_.makeImmutable(); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof grpc.testing.Messages.LoadBalancerStatsResponse.RpcsByPeer) { - return mergeFrom((grpc.testing.Messages.LoadBalancerStatsResponse.RpcsByPeer)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(grpc.testing.Messages.LoadBalancerStatsResponse.RpcsByPeer other) { - if (other == grpc.testing.Messages.LoadBalancerStatsResponse.RpcsByPeer.getDefaultInstance()) return this; - internalGetMutableRpcsByPeer().mergeFrom( - other.internalGetRpcsByPeer()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - grpc.testing.Messages.LoadBalancerStatsResponse.RpcsByPeer parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (grpc.testing.Messages.LoadBalancerStatsResponse.RpcsByPeer) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, java.lang.Integer> rpcsByPeer_; - private com.google.protobuf.MapField - internalGetRpcsByPeer() { - if (rpcsByPeer_ == null) { - return com.google.protobuf.MapField.emptyMapField( - RpcsByPeerDefaultEntryHolder.defaultEntry); - } - return rpcsByPeer_; - } - private com.google.protobuf.MapField - internalGetMutableRpcsByPeer() { - onChanged();; - if (rpcsByPeer_ == null) { - rpcsByPeer_ = com.google.protobuf.MapField.newMapField( - RpcsByPeerDefaultEntryHolder.defaultEntry); - } - if (!rpcsByPeer_.isMutable()) { - rpcsByPeer_ = rpcsByPeer_.copy(); - } - return rpcsByPeer_; - } - - public int getRpcsByPeerCount() { - return internalGetRpcsByPeer().getMap().size(); - } - /** - *
-         * The number of completed RPCs for each peer.
-         * 
- * - * map<string, int32> rpcs_by_peer = 1 [json_name = "rpcsByPeer"]; - */ - - @java.lang.Override - public boolean containsRpcsByPeer( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetRpcsByPeer().getMap().containsKey(key); - } - /** - * Use {@link #getRpcsByPeerMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getRpcsByPeer() { - return getRpcsByPeerMap(); - } - /** - *
-         * The number of completed RPCs for each peer.
-         * 
- * - * map<string, int32> rpcs_by_peer = 1 [json_name = "rpcsByPeer"]; - */ - @java.lang.Override - - public java.util.Map getRpcsByPeerMap() { - return internalGetRpcsByPeer().getMap(); - } - /** - *
-         * The number of completed RPCs for each peer.
-         * 
- * - * map<string, int32> rpcs_by_peer = 1 [json_name = "rpcsByPeer"]; - */ - @java.lang.Override - - public int getRpcsByPeerOrDefault( - java.lang.String key, - int defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetRpcsByPeer().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-         * The number of completed RPCs for each peer.
-         * 
- * - * map<string, int32> rpcs_by_peer = 1 [json_name = "rpcsByPeer"]; - */ - @java.lang.Override - - public int getRpcsByPeerOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetRpcsByPeer().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearRpcsByPeer() { - internalGetMutableRpcsByPeer().getMutableMap() - .clear(); - return this; - } - /** - *
-         * The number of completed RPCs for each peer.
-         * 
- * - * map<string, int32> rpcs_by_peer = 1 [json_name = "rpcsByPeer"]; - */ - - public Builder removeRpcsByPeer( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableRpcsByPeer().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableRpcsByPeer() { - return internalGetMutableRpcsByPeer().getMutableMap(); - } - /** - *
-         * The number of completed RPCs for each peer.
-         * 
- * - * map<string, int32> rpcs_by_peer = 1 [json_name = "rpcsByPeer"]; - */ - public Builder putRpcsByPeer( - java.lang.String key, - int value) { - if (key == null) { throw new NullPointerException("map key"); } - - internalGetMutableRpcsByPeer().getMutableMap() - .put(key, value); - return this; - } - /** - *
-         * The number of completed RPCs for each peer.
-         * 
- * - * map<string, int32> rpcs_by_peer = 1 [json_name = "rpcsByPeer"]; - */ - - public Builder putAllRpcsByPeer( - java.util.Map values) { - internalGetMutableRpcsByPeer().getMutableMap() - .putAll(values); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:grpc.testing.LoadBalancerStatsResponse.RpcsByPeer) - } - - // @@protoc_insertion_point(class_scope:grpc.testing.LoadBalancerStatsResponse.RpcsByPeer) - private static final grpc.testing.Messages.LoadBalancerStatsResponse.RpcsByPeer DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new grpc.testing.Messages.LoadBalancerStatsResponse.RpcsByPeer(); - } - - public static grpc.testing.Messages.LoadBalancerStatsResponse.RpcsByPeer getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RpcsByPeer parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RpcsByPeer(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public grpc.testing.Messages.LoadBalancerStatsResponse.RpcsByPeer getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int RPCS_BY_PEER_FIELD_NUMBER = 1; - private static final class RpcsByPeerDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - grpc.testing.Messages.internal_static_grpc_testing_LoadBalancerStatsResponse_RpcsByPeerEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.INT32, - 0); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.Integer> rpcsByPeer_; - private com.google.protobuf.MapField - internalGetRpcsByPeer() { - if (rpcsByPeer_ == null) { - return com.google.protobuf.MapField.emptyMapField( - RpcsByPeerDefaultEntryHolder.defaultEntry); - } - return rpcsByPeer_; - } - - public int getRpcsByPeerCount() { - return internalGetRpcsByPeer().getMap().size(); - } - /** - *
-     * The number of completed RPCs for each peer.
-     * 
- * - * map<string, int32> rpcs_by_peer = 1 [json_name = "rpcsByPeer"]; - */ - - @java.lang.Override - public boolean containsRpcsByPeer( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetRpcsByPeer().getMap().containsKey(key); - } - /** - * Use {@link #getRpcsByPeerMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getRpcsByPeer() { - return getRpcsByPeerMap(); - } - /** - *
-     * The number of completed RPCs for each peer.
-     * 
- * - * map<string, int32> rpcs_by_peer = 1 [json_name = "rpcsByPeer"]; - */ - @java.lang.Override - - public java.util.Map getRpcsByPeerMap() { - return internalGetRpcsByPeer().getMap(); - } - /** - *
-     * The number of completed RPCs for each peer.
-     * 
- * - * map<string, int32> rpcs_by_peer = 1 [json_name = "rpcsByPeer"]; - */ - @java.lang.Override - - public int getRpcsByPeerOrDefault( - java.lang.String key, - int defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetRpcsByPeer().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * The number of completed RPCs for each peer.
-     * 
- * - * map<string, int32> rpcs_by_peer = 1 [json_name = "rpcsByPeer"]; - */ - @java.lang.Override - - public int getRpcsByPeerOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetRpcsByPeer().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int NUM_FAILURES_FIELD_NUMBER = 2; - private int numFailures_; - /** - *
-     * The number of RPCs that failed to record a remote peer.
-     * 
- * - * int32 num_failures = 2 [json_name = "numFailures"]; - * @return The numFailures. - */ - @java.lang.Override - public int getNumFailures() { - return numFailures_; - } - - public static final int RPCS_BY_METHOD_FIELD_NUMBER = 3; - private static final class RpcsByMethodDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, grpc.testing.Messages.LoadBalancerStatsResponse.RpcsByPeer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - grpc.testing.Messages.internal_static_grpc_testing_LoadBalancerStatsResponse_RpcsByMethodEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - grpc.testing.Messages.LoadBalancerStatsResponse.RpcsByPeer.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, grpc.testing.Messages.LoadBalancerStatsResponse.RpcsByPeer> rpcsByMethod_; - private com.google.protobuf.MapField - internalGetRpcsByMethod() { - if (rpcsByMethod_ == null) { - return com.google.protobuf.MapField.emptyMapField( - RpcsByMethodDefaultEntryHolder.defaultEntry); - } - return rpcsByMethod_; - } - - public int getRpcsByMethodCount() { - return internalGetRpcsByMethod().getMap().size(); - } - /** - * map<string, .grpc.testing.LoadBalancerStatsResponse.RpcsByPeer> rpcs_by_method = 3 [json_name = "rpcsByMethod"]; - */ - - @java.lang.Override - public boolean containsRpcsByMethod( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetRpcsByMethod().getMap().containsKey(key); - } - /** - * Use {@link #getRpcsByMethodMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getRpcsByMethod() { - return getRpcsByMethodMap(); - } - /** - * map<string, .grpc.testing.LoadBalancerStatsResponse.RpcsByPeer> rpcs_by_method = 3 [json_name = "rpcsByMethod"]; - */ - @java.lang.Override - - public java.util.Map getRpcsByMethodMap() { - return internalGetRpcsByMethod().getMap(); - } - /** - * map<string, .grpc.testing.LoadBalancerStatsResponse.RpcsByPeer> rpcs_by_method = 3 [json_name = "rpcsByMethod"]; - */ - @java.lang.Override - - public grpc.testing.Messages.LoadBalancerStatsResponse.RpcsByPeer getRpcsByMethodOrDefault( - java.lang.String key, - grpc.testing.Messages.LoadBalancerStatsResponse.RpcsByPeer defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetRpcsByMethod().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .grpc.testing.LoadBalancerStatsResponse.RpcsByPeer> rpcs_by_method = 3 [json_name = "rpcsByMethod"]; - */ - @java.lang.Override - - public grpc.testing.Messages.LoadBalancerStatsResponse.RpcsByPeer getRpcsByMethodOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetRpcsByMethod().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetRpcsByPeer(), - RpcsByPeerDefaultEntryHolder.defaultEntry, - 1); - if (numFailures_ != 0) { - output.writeInt32(2, numFailures_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetRpcsByMethod(), - RpcsByMethodDefaultEntryHolder.defaultEntry, - 3); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetRpcsByPeer().getMap().entrySet()) { - com.google.protobuf.MapEntry - rpcsByPeer__ = RpcsByPeerDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, rpcsByPeer__); - } - if (numFailures_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, numFailures_); - } - for (java.util.Map.Entry entry - : internalGetRpcsByMethod().getMap().entrySet()) { - com.google.protobuf.MapEntry - rpcsByMethod__ = RpcsByMethodDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, rpcsByMethod__); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof grpc.testing.Messages.LoadBalancerStatsResponse)) { - return super.equals(obj); - } - grpc.testing.Messages.LoadBalancerStatsResponse other = (grpc.testing.Messages.LoadBalancerStatsResponse) obj; - - if (!internalGetRpcsByPeer().equals( - other.internalGetRpcsByPeer())) return false; - if (getNumFailures() - != other.getNumFailures()) return false; - if (!internalGetRpcsByMethod().equals( - other.internalGetRpcsByMethod())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (!internalGetRpcsByPeer().getMap().isEmpty()) { - hash = (37 * hash) + RPCS_BY_PEER_FIELD_NUMBER; - hash = (53 * hash) + internalGetRpcsByPeer().hashCode(); - } - hash = (37 * hash) + NUM_FAILURES_FIELD_NUMBER; - hash = (53 * hash) + getNumFailures(); - if (!internalGetRpcsByMethod().getMap().isEmpty()) { - hash = (37 * hash) + RPCS_BY_METHOD_FIELD_NUMBER; - hash = (53 * hash) + internalGetRpcsByMethod().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static grpc.testing.Messages.LoadBalancerStatsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.LoadBalancerStatsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.LoadBalancerStatsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.LoadBalancerStatsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.LoadBalancerStatsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.LoadBalancerStatsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.LoadBalancerStatsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static grpc.testing.Messages.LoadBalancerStatsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static grpc.testing.Messages.LoadBalancerStatsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static grpc.testing.Messages.LoadBalancerStatsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static grpc.testing.Messages.LoadBalancerStatsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static grpc.testing.Messages.LoadBalancerStatsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(grpc.testing.Messages.LoadBalancerStatsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code grpc.testing.LoadBalancerStatsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:grpc.testing.LoadBalancerStatsResponse) - grpc.testing.Messages.LoadBalancerStatsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return grpc.testing.Messages.internal_static_grpc_testing_LoadBalancerStatsResponse_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetRpcsByPeer(); - case 3: - return internalGetRpcsByMethod(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableRpcsByPeer(); - case 3: - return internalGetMutableRpcsByMethod(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return grpc.testing.Messages.internal_static_grpc_testing_LoadBalancerStatsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - grpc.testing.Messages.LoadBalancerStatsResponse.class, grpc.testing.Messages.LoadBalancerStatsResponse.Builder.class); - } - - // Construct using grpc.testing.Messages.LoadBalancerStatsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - internalGetMutableRpcsByPeer().clear(); - numFailures_ = 0; - - internalGetMutableRpcsByMethod().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return grpc.testing.Messages.internal_static_grpc_testing_LoadBalancerStatsResponse_descriptor; - } - - @java.lang.Override - public grpc.testing.Messages.LoadBalancerStatsResponse getDefaultInstanceForType() { - return grpc.testing.Messages.LoadBalancerStatsResponse.getDefaultInstance(); - } - - @java.lang.Override - public grpc.testing.Messages.LoadBalancerStatsResponse build() { - grpc.testing.Messages.LoadBalancerStatsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public grpc.testing.Messages.LoadBalancerStatsResponse buildPartial() { - grpc.testing.Messages.LoadBalancerStatsResponse result = new grpc.testing.Messages.LoadBalancerStatsResponse(this); - int from_bitField0_ = bitField0_; - result.rpcsByPeer_ = internalGetRpcsByPeer(); - result.rpcsByPeer_.makeImmutable(); - result.numFailures_ = numFailures_; - result.rpcsByMethod_ = internalGetRpcsByMethod(); - result.rpcsByMethod_.makeImmutable(); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof grpc.testing.Messages.LoadBalancerStatsResponse) { - return mergeFrom((grpc.testing.Messages.LoadBalancerStatsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(grpc.testing.Messages.LoadBalancerStatsResponse other) { - if (other == grpc.testing.Messages.LoadBalancerStatsResponse.getDefaultInstance()) return this; - internalGetMutableRpcsByPeer().mergeFrom( - other.internalGetRpcsByPeer()); - if (other.getNumFailures() != 0) { - setNumFailures(other.getNumFailures()); - } - internalGetMutableRpcsByMethod().mergeFrom( - other.internalGetRpcsByMethod()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - grpc.testing.Messages.LoadBalancerStatsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (grpc.testing.Messages.LoadBalancerStatsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, java.lang.Integer> rpcsByPeer_; - private com.google.protobuf.MapField - internalGetRpcsByPeer() { - if (rpcsByPeer_ == null) { - return com.google.protobuf.MapField.emptyMapField( - RpcsByPeerDefaultEntryHolder.defaultEntry); - } - return rpcsByPeer_; - } - private com.google.protobuf.MapField - internalGetMutableRpcsByPeer() { - onChanged();; - if (rpcsByPeer_ == null) { - rpcsByPeer_ = com.google.protobuf.MapField.newMapField( - RpcsByPeerDefaultEntryHolder.defaultEntry); - } - if (!rpcsByPeer_.isMutable()) { - rpcsByPeer_ = rpcsByPeer_.copy(); - } - return rpcsByPeer_; - } - - public int getRpcsByPeerCount() { - return internalGetRpcsByPeer().getMap().size(); - } - /** - *
-       * The number of completed RPCs for each peer.
-       * 
- * - * map<string, int32> rpcs_by_peer = 1 [json_name = "rpcsByPeer"]; - */ - - @java.lang.Override - public boolean containsRpcsByPeer( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetRpcsByPeer().getMap().containsKey(key); - } - /** - * Use {@link #getRpcsByPeerMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getRpcsByPeer() { - return getRpcsByPeerMap(); - } - /** - *
-       * The number of completed RPCs for each peer.
-       * 
- * - * map<string, int32> rpcs_by_peer = 1 [json_name = "rpcsByPeer"]; - */ - @java.lang.Override - - public java.util.Map getRpcsByPeerMap() { - return internalGetRpcsByPeer().getMap(); - } - /** - *
-       * The number of completed RPCs for each peer.
-       * 
- * - * map<string, int32> rpcs_by_peer = 1 [json_name = "rpcsByPeer"]; - */ - @java.lang.Override - - public int getRpcsByPeerOrDefault( - java.lang.String key, - int defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetRpcsByPeer().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * The number of completed RPCs for each peer.
-       * 
- * - * map<string, int32> rpcs_by_peer = 1 [json_name = "rpcsByPeer"]; - */ - @java.lang.Override - - public int getRpcsByPeerOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetRpcsByPeer().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearRpcsByPeer() { - internalGetMutableRpcsByPeer().getMutableMap() - .clear(); - return this; - } - /** - *
-       * The number of completed RPCs for each peer.
-       * 
- * - * map<string, int32> rpcs_by_peer = 1 [json_name = "rpcsByPeer"]; - */ - - public Builder removeRpcsByPeer( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableRpcsByPeer().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableRpcsByPeer() { - return internalGetMutableRpcsByPeer().getMutableMap(); - } - /** - *
-       * The number of completed RPCs for each peer.
-       * 
- * - * map<string, int32> rpcs_by_peer = 1 [json_name = "rpcsByPeer"]; - */ - public Builder putRpcsByPeer( - java.lang.String key, - int value) { - if (key == null) { throw new NullPointerException("map key"); } - - internalGetMutableRpcsByPeer().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       * The number of completed RPCs for each peer.
-       * 
- * - * map<string, int32> rpcs_by_peer = 1 [json_name = "rpcsByPeer"]; - */ - - public Builder putAllRpcsByPeer( - java.util.Map values) { - internalGetMutableRpcsByPeer().getMutableMap() - .putAll(values); - return this; - } - - private int numFailures_ ; - /** - *
-       * The number of RPCs that failed to record a remote peer.
-       * 
- * - * int32 num_failures = 2 [json_name = "numFailures"]; - * @return The numFailures. - */ - @java.lang.Override - public int getNumFailures() { - return numFailures_; - } - /** - *
-       * The number of RPCs that failed to record a remote peer.
-       * 
- * - * int32 num_failures = 2 [json_name = "numFailures"]; - * @param value The numFailures to set. - * @return This builder for chaining. - */ - public Builder setNumFailures(int value) { - - numFailures_ = value; - onChanged(); - return this; - } - /** - *
-       * The number of RPCs that failed to record a remote peer.
-       * 
- * - * int32 num_failures = 2 [json_name = "numFailures"]; - * @return This builder for chaining. - */ - public Builder clearNumFailures() { - - numFailures_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, grpc.testing.Messages.LoadBalancerStatsResponse.RpcsByPeer> rpcsByMethod_; - private com.google.protobuf.MapField - internalGetRpcsByMethod() { - if (rpcsByMethod_ == null) { - return com.google.protobuf.MapField.emptyMapField( - RpcsByMethodDefaultEntryHolder.defaultEntry); - } - return rpcsByMethod_; - } - private com.google.protobuf.MapField - internalGetMutableRpcsByMethod() { - onChanged();; - if (rpcsByMethod_ == null) { - rpcsByMethod_ = com.google.protobuf.MapField.newMapField( - RpcsByMethodDefaultEntryHolder.defaultEntry); - } - if (!rpcsByMethod_.isMutable()) { - rpcsByMethod_ = rpcsByMethod_.copy(); - } - return rpcsByMethod_; - } - - public int getRpcsByMethodCount() { - return internalGetRpcsByMethod().getMap().size(); - } - /** - * map<string, .grpc.testing.LoadBalancerStatsResponse.RpcsByPeer> rpcs_by_method = 3 [json_name = "rpcsByMethod"]; - */ - - @java.lang.Override - public boolean containsRpcsByMethod( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetRpcsByMethod().getMap().containsKey(key); - } - /** - * Use {@link #getRpcsByMethodMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getRpcsByMethod() { - return getRpcsByMethodMap(); - } - /** - * map<string, .grpc.testing.LoadBalancerStatsResponse.RpcsByPeer> rpcs_by_method = 3 [json_name = "rpcsByMethod"]; - */ - @java.lang.Override - - public java.util.Map getRpcsByMethodMap() { - return internalGetRpcsByMethod().getMap(); - } - /** - * map<string, .grpc.testing.LoadBalancerStatsResponse.RpcsByPeer> rpcs_by_method = 3 [json_name = "rpcsByMethod"]; - */ - @java.lang.Override - - public grpc.testing.Messages.LoadBalancerStatsResponse.RpcsByPeer getRpcsByMethodOrDefault( - java.lang.String key, - grpc.testing.Messages.LoadBalancerStatsResponse.RpcsByPeer defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetRpcsByMethod().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .grpc.testing.LoadBalancerStatsResponse.RpcsByPeer> rpcs_by_method = 3 [json_name = "rpcsByMethod"]; - */ - @java.lang.Override - - public grpc.testing.Messages.LoadBalancerStatsResponse.RpcsByPeer getRpcsByMethodOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetRpcsByMethod().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearRpcsByMethod() { - internalGetMutableRpcsByMethod().getMutableMap() - .clear(); - return this; - } - /** - * map<string, .grpc.testing.LoadBalancerStatsResponse.RpcsByPeer> rpcs_by_method = 3 [json_name = "rpcsByMethod"]; - */ - - public Builder removeRpcsByMethod( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableRpcsByMethod().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableRpcsByMethod() { - return internalGetMutableRpcsByMethod().getMutableMap(); - } - /** - * map<string, .grpc.testing.LoadBalancerStatsResponse.RpcsByPeer> rpcs_by_method = 3 [json_name = "rpcsByMethod"]; - */ - public Builder putRpcsByMethod( - java.lang.String key, - grpc.testing.Messages.LoadBalancerStatsResponse.RpcsByPeer value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { - throw new NullPointerException("map value"); -} - - internalGetMutableRpcsByMethod().getMutableMap() - .put(key, value); - return this; - } - /** - * map<string, .grpc.testing.LoadBalancerStatsResponse.RpcsByPeer> rpcs_by_method = 3 [json_name = "rpcsByMethod"]; - */ - - public Builder putAllRpcsByMethod( - java.util.Map values) { - internalGetMutableRpcsByMethod().getMutableMap() - .putAll(values); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:grpc.testing.LoadBalancerStatsResponse) - } - - // @@protoc_insertion_point(class_scope:grpc.testing.LoadBalancerStatsResponse) - private static final grpc.testing.Messages.LoadBalancerStatsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new grpc.testing.Messages.LoadBalancerStatsResponse(); - } - - public static grpc.testing.Messages.LoadBalancerStatsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LoadBalancerStatsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LoadBalancerStatsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public grpc.testing.Messages.LoadBalancerStatsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LoadBalancerAccumulatedStatsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:grpc.testing.LoadBalancerAccumulatedStatsRequest) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Request for retrieving a test client's accumulated stats.
-   * 
- * - * Protobuf type {@code grpc.testing.LoadBalancerAccumulatedStatsRequest} - */ - public static final class LoadBalancerAccumulatedStatsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:grpc.testing.LoadBalancerAccumulatedStatsRequest) - LoadBalancerAccumulatedStatsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use LoadBalancerAccumulatedStatsRequest.newBuilder() to construct. - private LoadBalancerAccumulatedStatsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LoadBalancerAccumulatedStatsRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new LoadBalancerAccumulatedStatsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LoadBalancerAccumulatedStatsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return grpc.testing.Messages.internal_static_grpc_testing_LoadBalancerAccumulatedStatsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return grpc.testing.Messages.internal_static_grpc_testing_LoadBalancerAccumulatedStatsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - grpc.testing.Messages.LoadBalancerAccumulatedStatsRequest.class, grpc.testing.Messages.LoadBalancerAccumulatedStatsRequest.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof grpc.testing.Messages.LoadBalancerAccumulatedStatsRequest)) { - return super.equals(obj); - } - grpc.testing.Messages.LoadBalancerAccumulatedStatsRequest other = (grpc.testing.Messages.LoadBalancerAccumulatedStatsRequest) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static grpc.testing.Messages.LoadBalancerAccumulatedStatsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.LoadBalancerAccumulatedStatsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.LoadBalancerAccumulatedStatsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.LoadBalancerAccumulatedStatsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.LoadBalancerAccumulatedStatsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.LoadBalancerAccumulatedStatsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.LoadBalancerAccumulatedStatsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static grpc.testing.Messages.LoadBalancerAccumulatedStatsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static grpc.testing.Messages.LoadBalancerAccumulatedStatsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static grpc.testing.Messages.LoadBalancerAccumulatedStatsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static grpc.testing.Messages.LoadBalancerAccumulatedStatsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static grpc.testing.Messages.LoadBalancerAccumulatedStatsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(grpc.testing.Messages.LoadBalancerAccumulatedStatsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Request for retrieving a test client's accumulated stats.
-     * 
- * - * Protobuf type {@code grpc.testing.LoadBalancerAccumulatedStatsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:grpc.testing.LoadBalancerAccumulatedStatsRequest) - grpc.testing.Messages.LoadBalancerAccumulatedStatsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return grpc.testing.Messages.internal_static_grpc_testing_LoadBalancerAccumulatedStatsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return grpc.testing.Messages.internal_static_grpc_testing_LoadBalancerAccumulatedStatsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - grpc.testing.Messages.LoadBalancerAccumulatedStatsRequest.class, grpc.testing.Messages.LoadBalancerAccumulatedStatsRequest.Builder.class); - } - - // Construct using grpc.testing.Messages.LoadBalancerAccumulatedStatsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return grpc.testing.Messages.internal_static_grpc_testing_LoadBalancerAccumulatedStatsRequest_descriptor; - } - - @java.lang.Override - public grpc.testing.Messages.LoadBalancerAccumulatedStatsRequest getDefaultInstanceForType() { - return grpc.testing.Messages.LoadBalancerAccumulatedStatsRequest.getDefaultInstance(); - } - - @java.lang.Override - public grpc.testing.Messages.LoadBalancerAccumulatedStatsRequest build() { - grpc.testing.Messages.LoadBalancerAccumulatedStatsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public grpc.testing.Messages.LoadBalancerAccumulatedStatsRequest buildPartial() { - grpc.testing.Messages.LoadBalancerAccumulatedStatsRequest result = new grpc.testing.Messages.LoadBalancerAccumulatedStatsRequest(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof grpc.testing.Messages.LoadBalancerAccumulatedStatsRequest) { - return mergeFrom((grpc.testing.Messages.LoadBalancerAccumulatedStatsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(grpc.testing.Messages.LoadBalancerAccumulatedStatsRequest other) { - if (other == grpc.testing.Messages.LoadBalancerAccumulatedStatsRequest.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - grpc.testing.Messages.LoadBalancerAccumulatedStatsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (grpc.testing.Messages.LoadBalancerAccumulatedStatsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:grpc.testing.LoadBalancerAccumulatedStatsRequest) - } - - // @@protoc_insertion_point(class_scope:grpc.testing.LoadBalancerAccumulatedStatsRequest) - private static final grpc.testing.Messages.LoadBalancerAccumulatedStatsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new grpc.testing.Messages.LoadBalancerAccumulatedStatsRequest(); - } - - public static grpc.testing.Messages.LoadBalancerAccumulatedStatsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LoadBalancerAccumulatedStatsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LoadBalancerAccumulatedStatsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public grpc.testing.Messages.LoadBalancerAccumulatedStatsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LoadBalancerAccumulatedStatsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:grpc.testing.LoadBalancerAccumulatedStatsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The total number of RPCs have ever issued for each type.
-     * Deprecated: use stats_per_method.rpcs_started instead.
-     * 
- * - * map<string, int32> num_rpcs_started_by_method = 1 [json_name = "numRpcsStartedByMethod", deprecated = true]; - */ - @java.lang.Deprecated int getNumRpcsStartedByMethodCount(); - /** - *
-     * The total number of RPCs have ever issued for each type.
-     * Deprecated: use stats_per_method.rpcs_started instead.
-     * 
- * - * map<string, int32> num_rpcs_started_by_method = 1 [json_name = "numRpcsStartedByMethod", deprecated = true]; - */ - @java.lang.Deprecated boolean containsNumRpcsStartedByMethod( - java.lang.String key); - /** - * Use {@link #getNumRpcsStartedByMethodMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getNumRpcsStartedByMethod(); - /** - *
-     * The total number of RPCs have ever issued for each type.
-     * Deprecated: use stats_per_method.rpcs_started instead.
-     * 
- * - * map<string, int32> num_rpcs_started_by_method = 1 [json_name = "numRpcsStartedByMethod", deprecated = true]; - */ - @java.lang.Deprecated java.util.Map - getNumRpcsStartedByMethodMap(); - /** - *
-     * The total number of RPCs have ever issued for each type.
-     * Deprecated: use stats_per_method.rpcs_started instead.
-     * 
- * - * map<string, int32> num_rpcs_started_by_method = 1 [json_name = "numRpcsStartedByMethod", deprecated = true]; - */ - @java.lang.Deprecated - int getNumRpcsStartedByMethodOrDefault( - java.lang.String key, - int defaultValue); - /** - *
-     * The total number of RPCs have ever issued for each type.
-     * Deprecated: use stats_per_method.rpcs_started instead.
-     * 
- * - * map<string, int32> num_rpcs_started_by_method = 1 [json_name = "numRpcsStartedByMethod", deprecated = true]; - */ - @java.lang.Deprecated - int getNumRpcsStartedByMethodOrThrow( - java.lang.String key); - - /** - *
-     * The total number of RPCs have ever completed successfully for each type.
-     * Deprecated: use stats_per_method.result instead.
-     * 
- * - * map<string, int32> num_rpcs_succeeded_by_method = 2 [json_name = "numRpcsSucceededByMethod", deprecated = true]; - */ - @java.lang.Deprecated int getNumRpcsSucceededByMethodCount(); - /** - *
-     * The total number of RPCs have ever completed successfully for each type.
-     * Deprecated: use stats_per_method.result instead.
-     * 
- * - * map<string, int32> num_rpcs_succeeded_by_method = 2 [json_name = "numRpcsSucceededByMethod", deprecated = true]; - */ - @java.lang.Deprecated boolean containsNumRpcsSucceededByMethod( - java.lang.String key); - /** - * Use {@link #getNumRpcsSucceededByMethodMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getNumRpcsSucceededByMethod(); - /** - *
-     * The total number of RPCs have ever completed successfully for each type.
-     * Deprecated: use stats_per_method.result instead.
-     * 
- * - * map<string, int32> num_rpcs_succeeded_by_method = 2 [json_name = "numRpcsSucceededByMethod", deprecated = true]; - */ - @java.lang.Deprecated java.util.Map - getNumRpcsSucceededByMethodMap(); - /** - *
-     * The total number of RPCs have ever completed successfully for each type.
-     * Deprecated: use stats_per_method.result instead.
-     * 
- * - * map<string, int32> num_rpcs_succeeded_by_method = 2 [json_name = "numRpcsSucceededByMethod", deprecated = true]; - */ - @java.lang.Deprecated - int getNumRpcsSucceededByMethodOrDefault( - java.lang.String key, - int defaultValue); - /** - *
-     * The total number of RPCs have ever completed successfully for each type.
-     * Deprecated: use stats_per_method.result instead.
-     * 
- * - * map<string, int32> num_rpcs_succeeded_by_method = 2 [json_name = "numRpcsSucceededByMethod", deprecated = true]; - */ - @java.lang.Deprecated - int getNumRpcsSucceededByMethodOrThrow( - java.lang.String key); - - /** - *
-     * The total number of RPCs have ever failed for each type.
-     * Deprecated: use stats_per_method.result instead.
-     * 
- * - * map<string, int32> num_rpcs_failed_by_method = 3 [json_name = "numRpcsFailedByMethod", deprecated = true]; - */ - @java.lang.Deprecated int getNumRpcsFailedByMethodCount(); - /** - *
-     * The total number of RPCs have ever failed for each type.
-     * Deprecated: use stats_per_method.result instead.
-     * 
- * - * map<string, int32> num_rpcs_failed_by_method = 3 [json_name = "numRpcsFailedByMethod", deprecated = true]; - */ - @java.lang.Deprecated boolean containsNumRpcsFailedByMethod( - java.lang.String key); - /** - * Use {@link #getNumRpcsFailedByMethodMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getNumRpcsFailedByMethod(); - /** - *
-     * The total number of RPCs have ever failed for each type.
-     * Deprecated: use stats_per_method.result instead.
-     * 
- * - * map<string, int32> num_rpcs_failed_by_method = 3 [json_name = "numRpcsFailedByMethod", deprecated = true]; - */ - @java.lang.Deprecated java.util.Map - getNumRpcsFailedByMethodMap(); - /** - *
-     * The total number of RPCs have ever failed for each type.
-     * Deprecated: use stats_per_method.result instead.
-     * 
- * - * map<string, int32> num_rpcs_failed_by_method = 3 [json_name = "numRpcsFailedByMethod", deprecated = true]; - */ - @java.lang.Deprecated - int getNumRpcsFailedByMethodOrDefault( - java.lang.String key, - int defaultValue); - /** - *
-     * The total number of RPCs have ever failed for each type.
-     * Deprecated: use stats_per_method.result instead.
-     * 
- * - * map<string, int32> num_rpcs_failed_by_method = 3 [json_name = "numRpcsFailedByMethod", deprecated = true]; - */ - @java.lang.Deprecated - int getNumRpcsFailedByMethodOrThrow( - java.lang.String key); - - /** - *
-     * Per-method RPC statistics.  The key is the RpcType in string form; e.g.
-     * 'EMPTY_CALL' or 'UNARY_CALL'
-     * 
- * - * map<string, .grpc.testing.LoadBalancerAccumulatedStatsResponse.MethodStats> stats_per_method = 4 [json_name = "statsPerMethod"]; - */ - int getStatsPerMethodCount(); - /** - *
-     * Per-method RPC statistics.  The key is the RpcType in string form; e.g.
-     * 'EMPTY_CALL' or 'UNARY_CALL'
-     * 
- * - * map<string, .grpc.testing.LoadBalancerAccumulatedStatsResponse.MethodStats> stats_per_method = 4 [json_name = "statsPerMethod"]; - */ - boolean containsStatsPerMethod( - java.lang.String key); - /** - * Use {@link #getStatsPerMethodMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getStatsPerMethod(); - /** - *
-     * Per-method RPC statistics.  The key is the RpcType in string form; e.g.
-     * 'EMPTY_CALL' or 'UNARY_CALL'
-     * 
- * - * map<string, .grpc.testing.LoadBalancerAccumulatedStatsResponse.MethodStats> stats_per_method = 4 [json_name = "statsPerMethod"]; - */ - java.util.Map - getStatsPerMethodMap(); - /** - *
-     * Per-method RPC statistics.  The key is the RpcType in string form; e.g.
-     * 'EMPTY_CALL' or 'UNARY_CALL'
-     * 
- * - * map<string, .grpc.testing.LoadBalancerAccumulatedStatsResponse.MethodStats> stats_per_method = 4 [json_name = "statsPerMethod"]; - */ - - /* nullable */ -grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.MethodStats getStatsPerMethodOrDefault( - java.lang.String key, - /* nullable */ -grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.MethodStats defaultValue); - /** - *
-     * Per-method RPC statistics.  The key is the RpcType in string form; e.g.
-     * 'EMPTY_CALL' or 'UNARY_CALL'
-     * 
- * - * map<string, .grpc.testing.LoadBalancerAccumulatedStatsResponse.MethodStats> stats_per_method = 4 [json_name = "statsPerMethod"]; - */ - - grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.MethodStats getStatsPerMethodOrThrow( - java.lang.String key); - } - /** - *
-   * Accumulated stats for RPCs sent by a test client.
-   * 
- * - * Protobuf type {@code grpc.testing.LoadBalancerAccumulatedStatsResponse} - */ - public static final class LoadBalancerAccumulatedStatsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:grpc.testing.LoadBalancerAccumulatedStatsResponse) - LoadBalancerAccumulatedStatsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use LoadBalancerAccumulatedStatsResponse.newBuilder() to construct. - private LoadBalancerAccumulatedStatsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LoadBalancerAccumulatedStatsResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new LoadBalancerAccumulatedStatsResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LoadBalancerAccumulatedStatsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - numRpcsStartedByMethod_ = com.google.protobuf.MapField.newMapField( - NumRpcsStartedByMethodDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - numRpcsStartedByMethod__ = input.readMessage( - NumRpcsStartedByMethodDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - numRpcsStartedByMethod_.getMutableMap().put( - numRpcsStartedByMethod__.getKey(), numRpcsStartedByMethod__.getValue()); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - numRpcsSucceededByMethod_ = com.google.protobuf.MapField.newMapField( - NumRpcsSucceededByMethodDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry - numRpcsSucceededByMethod__ = input.readMessage( - NumRpcsSucceededByMethodDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - numRpcsSucceededByMethod_.getMutableMap().put( - numRpcsSucceededByMethod__.getKey(), numRpcsSucceededByMethod__.getValue()); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - numRpcsFailedByMethod_ = com.google.protobuf.MapField.newMapField( - NumRpcsFailedByMethodDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000004; - } - com.google.protobuf.MapEntry - numRpcsFailedByMethod__ = input.readMessage( - NumRpcsFailedByMethodDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - numRpcsFailedByMethod_.getMutableMap().put( - numRpcsFailedByMethod__.getKey(), numRpcsFailedByMethod__.getValue()); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - statsPerMethod_ = com.google.protobuf.MapField.newMapField( - StatsPerMethodDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000008; - } - com.google.protobuf.MapEntry - statsPerMethod__ = input.readMessage( - StatsPerMethodDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - statsPerMethod_.getMutableMap().put( - statsPerMethod__.getKey(), statsPerMethod__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return grpc.testing.Messages.internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetNumRpcsStartedByMethod(); - case 2: - return internalGetNumRpcsSucceededByMethod(); - case 3: - return internalGetNumRpcsFailedByMethod(); - case 4: - return internalGetStatsPerMethod(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return grpc.testing.Messages.internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.class, grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.Builder.class); - } - - public interface MethodStatsOrBuilder extends - // @@protoc_insertion_point(interface_extends:grpc.testing.LoadBalancerAccumulatedStatsResponse.MethodStats) - com.google.protobuf.MessageOrBuilder { - - /** - *
-       * The number of RPCs that were started for this method.
-       * 
- * - * int32 rpcs_started = 1 [json_name = "rpcsStarted"]; - * @return The rpcsStarted. - */ - int getRpcsStarted(); - - /** - *
-       * The number of RPCs that completed with each status for this method.  The
-       * key is the integral value of a google.rpc.Code; the value is the count.
-       * 
- * - * map<int32, int32> result = 2 [json_name = "result"]; - */ - int getResultCount(); - /** - *
-       * The number of RPCs that completed with each status for this method.  The
-       * key is the integral value of a google.rpc.Code; the value is the count.
-       * 
- * - * map<int32, int32> result = 2 [json_name = "result"]; - */ - boolean containsResult( - int key); - /** - * Use {@link #getResultMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getResult(); - /** - *
-       * The number of RPCs that completed with each status for this method.  The
-       * key is the integral value of a google.rpc.Code; the value is the count.
-       * 
- * - * map<int32, int32> result = 2 [json_name = "result"]; - */ - java.util.Map - getResultMap(); - /** - *
-       * The number of RPCs that completed with each status for this method.  The
-       * key is the integral value of a google.rpc.Code; the value is the count.
-       * 
- * - * map<int32, int32> result = 2 [json_name = "result"]; - */ - - int getResultOrDefault( - int key, - int defaultValue); - /** - *
-       * The number of RPCs that completed with each status for this method.  The
-       * key is the integral value of a google.rpc.Code; the value is the count.
-       * 
- * - * map<int32, int32> result = 2 [json_name = "result"]; - */ - - int getResultOrThrow( - int key); - } - /** - * Protobuf type {@code grpc.testing.LoadBalancerAccumulatedStatsResponse.MethodStats} - */ - public static final class MethodStats extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:grpc.testing.LoadBalancerAccumulatedStatsResponse.MethodStats) - MethodStatsOrBuilder { - private static final long serialVersionUID = 0L; - // Use MethodStats.newBuilder() to construct. - private MethodStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MethodStats() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MethodStats(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MethodStats( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - rpcsStarted_ = input.readInt32(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - result_ = com.google.protobuf.MapField.newMapField( - ResultDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - result__ = input.readMessage( - ResultDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - result_.getMutableMap().put( - result__.getKey(), result__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return grpc.testing.Messages.internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_MethodStats_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetResult(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return grpc.testing.Messages.internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_MethodStats_fieldAccessorTable - .ensureFieldAccessorsInitialized( - grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.MethodStats.class, grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.MethodStats.Builder.class); - } - - public static final int RPCS_STARTED_FIELD_NUMBER = 1; - private int rpcsStarted_; - /** - *
-       * The number of RPCs that were started for this method.
-       * 
- * - * int32 rpcs_started = 1 [json_name = "rpcsStarted"]; - * @return The rpcsStarted. - */ - @java.lang.Override - public int getRpcsStarted() { - return rpcsStarted_; - } - - public static final int RESULT_FIELD_NUMBER = 2; - private static final class ResultDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - grpc.testing.Messages.internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_MethodStats_ResultEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.INT32, - 0); - } - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> result_; - private com.google.protobuf.MapField - internalGetResult() { - if (result_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ResultDefaultEntryHolder.defaultEntry); - } - return result_; - } - - public int getResultCount() { - return internalGetResult().getMap().size(); - } - /** - *
-       * The number of RPCs that completed with each status for this method.  The
-       * key is the integral value of a google.rpc.Code; the value is the count.
-       * 
- * - * map<int32, int32> result = 2 [json_name = "result"]; - */ - - @java.lang.Override - public boolean containsResult( - int key) { - - return internalGetResult().getMap().containsKey(key); - } - /** - * Use {@link #getResultMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getResult() { - return getResultMap(); - } - /** - *
-       * The number of RPCs that completed with each status for this method.  The
-       * key is the integral value of a google.rpc.Code; the value is the count.
-       * 
- * - * map<int32, int32> result = 2 [json_name = "result"]; - */ - @java.lang.Override - - public java.util.Map getResultMap() { - return internalGetResult().getMap(); - } - /** - *
-       * The number of RPCs that completed with each status for this method.  The
-       * key is the integral value of a google.rpc.Code; the value is the count.
-       * 
- * - * map<int32, int32> result = 2 [json_name = "result"]; - */ - @java.lang.Override - - public int getResultOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetResult().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * The number of RPCs that completed with each status for this method.  The
-       * key is the integral value of a google.rpc.Code; the value is the count.
-       * 
- * - * map<int32, int32> result = 2 [json_name = "result"]; - */ - @java.lang.Override - - public int getResultOrThrow( - int key) { - - java.util.Map map = - internalGetResult().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (rpcsStarted_ != 0) { - output.writeInt32(1, rpcsStarted_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeIntegerMapTo( - output, - internalGetResult(), - ResultDefaultEntryHolder.defaultEntry, - 2); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (rpcsStarted_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, rpcsStarted_); - } - for (java.util.Map.Entry entry - : internalGetResult().getMap().entrySet()) { - com.google.protobuf.MapEntry - result__ = ResultDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, result__); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.MethodStats)) { - return super.equals(obj); - } - grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.MethodStats other = (grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.MethodStats) obj; - - if (getRpcsStarted() - != other.getRpcsStarted()) return false; - if (!internalGetResult().equals( - other.internalGetResult())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RPCS_STARTED_FIELD_NUMBER; - hash = (53 * hash) + getRpcsStarted(); - if (!internalGetResult().getMap().isEmpty()) { - hash = (37 * hash) + RESULT_FIELD_NUMBER; - hash = (53 * hash) + internalGetResult().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.MethodStats parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.MethodStats parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.MethodStats parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.MethodStats parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.MethodStats parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.MethodStats parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.MethodStats parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.MethodStats parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.MethodStats parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.MethodStats parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.MethodStats parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.MethodStats parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.MethodStats prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code grpc.testing.LoadBalancerAccumulatedStatsResponse.MethodStats} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:grpc.testing.LoadBalancerAccumulatedStatsResponse.MethodStats) - grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.MethodStatsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return grpc.testing.Messages.internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_MethodStats_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetResult(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 2: - return internalGetMutableResult(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return grpc.testing.Messages.internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_MethodStats_fieldAccessorTable - .ensureFieldAccessorsInitialized( - grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.MethodStats.class, grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.MethodStats.Builder.class); - } - - // Construct using grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.MethodStats.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - rpcsStarted_ = 0; - - internalGetMutableResult().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return grpc.testing.Messages.internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_MethodStats_descriptor; - } - - @java.lang.Override - public grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.MethodStats getDefaultInstanceForType() { - return grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.MethodStats.getDefaultInstance(); - } - - @java.lang.Override - public grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.MethodStats build() { - grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.MethodStats result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.MethodStats buildPartial() { - grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.MethodStats result = new grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.MethodStats(this); - int from_bitField0_ = bitField0_; - result.rpcsStarted_ = rpcsStarted_; - result.result_ = internalGetResult(); - result.result_.makeImmutable(); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.MethodStats) { - return mergeFrom((grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.MethodStats)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.MethodStats other) { - if (other == grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.MethodStats.getDefaultInstance()) return this; - if (other.getRpcsStarted() != 0) { - setRpcsStarted(other.getRpcsStarted()); - } - internalGetMutableResult().mergeFrom( - other.internalGetResult()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.MethodStats parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.MethodStats) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int rpcsStarted_ ; - /** - *
-         * The number of RPCs that were started for this method.
-         * 
- * - * int32 rpcs_started = 1 [json_name = "rpcsStarted"]; - * @return The rpcsStarted. - */ - @java.lang.Override - public int getRpcsStarted() { - return rpcsStarted_; - } - /** - *
-         * The number of RPCs that were started for this method.
-         * 
- * - * int32 rpcs_started = 1 [json_name = "rpcsStarted"]; - * @param value The rpcsStarted to set. - * @return This builder for chaining. - */ - public Builder setRpcsStarted(int value) { - - rpcsStarted_ = value; - onChanged(); - return this; - } - /** - *
-         * The number of RPCs that were started for this method.
-         * 
- * - * int32 rpcs_started = 1 [json_name = "rpcsStarted"]; - * @return This builder for chaining. - */ - public Builder clearRpcsStarted() { - - rpcsStarted_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.Integer, java.lang.Integer> result_; - private com.google.protobuf.MapField - internalGetResult() { - if (result_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ResultDefaultEntryHolder.defaultEntry); - } - return result_; - } - private com.google.protobuf.MapField - internalGetMutableResult() { - onChanged();; - if (result_ == null) { - result_ = com.google.protobuf.MapField.newMapField( - ResultDefaultEntryHolder.defaultEntry); - } - if (!result_.isMutable()) { - result_ = result_.copy(); - } - return result_; - } - - public int getResultCount() { - return internalGetResult().getMap().size(); - } - /** - *
-         * The number of RPCs that completed with each status for this method.  The
-         * key is the integral value of a google.rpc.Code; the value is the count.
-         * 
- * - * map<int32, int32> result = 2 [json_name = "result"]; - */ - - @java.lang.Override - public boolean containsResult( - int key) { - - return internalGetResult().getMap().containsKey(key); - } - /** - * Use {@link #getResultMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getResult() { - return getResultMap(); - } - /** - *
-         * The number of RPCs that completed with each status for this method.  The
-         * key is the integral value of a google.rpc.Code; the value is the count.
-         * 
- * - * map<int32, int32> result = 2 [json_name = "result"]; - */ - @java.lang.Override - - public java.util.Map getResultMap() { - return internalGetResult().getMap(); - } - /** - *
-         * The number of RPCs that completed with each status for this method.  The
-         * key is the integral value of a google.rpc.Code; the value is the count.
-         * 
- * - * map<int32, int32> result = 2 [json_name = "result"]; - */ - @java.lang.Override - - public int getResultOrDefault( - int key, - int defaultValue) { - - java.util.Map map = - internalGetResult().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-         * The number of RPCs that completed with each status for this method.  The
-         * key is the integral value of a google.rpc.Code; the value is the count.
-         * 
- * - * map<int32, int32> result = 2 [json_name = "result"]; - */ - @java.lang.Override - - public int getResultOrThrow( - int key) { - - java.util.Map map = - internalGetResult().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearResult() { - internalGetMutableResult().getMutableMap() - .clear(); - return this; - } - /** - *
-         * The number of RPCs that completed with each status for this method.  The
-         * key is the integral value of a google.rpc.Code; the value is the count.
-         * 
- * - * map<int32, int32> result = 2 [json_name = "result"]; - */ - - public Builder removeResult( - int key) { - - internalGetMutableResult().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableResult() { - return internalGetMutableResult().getMutableMap(); - } - /** - *
-         * The number of RPCs that completed with each status for this method.  The
-         * key is the integral value of a google.rpc.Code; the value is the count.
-         * 
- * - * map<int32, int32> result = 2 [json_name = "result"]; - */ - public Builder putResult( - int key, - int value) { - - - internalGetMutableResult().getMutableMap() - .put(key, value); - return this; - } - /** - *
-         * The number of RPCs that completed with each status for this method.  The
-         * key is the integral value of a google.rpc.Code; the value is the count.
-         * 
- * - * map<int32, int32> result = 2 [json_name = "result"]; - */ - - public Builder putAllResult( - java.util.Map values) { - internalGetMutableResult().getMutableMap() - .putAll(values); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:grpc.testing.LoadBalancerAccumulatedStatsResponse.MethodStats) - } - - // @@protoc_insertion_point(class_scope:grpc.testing.LoadBalancerAccumulatedStatsResponse.MethodStats) - private static final grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.MethodStats DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.MethodStats(); - } - - public static grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.MethodStats getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MethodStats parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MethodStats(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.MethodStats getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int NUM_RPCS_STARTED_BY_METHOD_FIELD_NUMBER = 1; - private static final class NumRpcsStartedByMethodDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - grpc.testing.Messages.internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_NumRpcsStartedByMethodEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.INT32, - 0); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.Integer> numRpcsStartedByMethod_; - private com.google.protobuf.MapField - internalGetNumRpcsStartedByMethod() { - if (numRpcsStartedByMethod_ == null) { - return com.google.protobuf.MapField.emptyMapField( - NumRpcsStartedByMethodDefaultEntryHolder.defaultEntry); - } - return numRpcsStartedByMethod_; - } - @java.lang.Deprecated - public int getNumRpcsStartedByMethodCount() { - return internalGetNumRpcsStartedByMethod().getMap().size(); - } - /** - *
-     * The total number of RPCs have ever issued for each type.
-     * Deprecated: use stats_per_method.rpcs_started instead.
-     * 
- * - * map<string, int32> num_rpcs_started_by_method = 1 [json_name = "numRpcsStartedByMethod", deprecated = true]; - */ - @java.lang.Deprecated - @java.lang.Override - public boolean containsNumRpcsStartedByMethod( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetNumRpcsStartedByMethod().getMap().containsKey(key); - } - /** - * Use {@link #getNumRpcsStartedByMethodMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getNumRpcsStartedByMethod() { - return getNumRpcsStartedByMethodMap(); - } - /** - *
-     * The total number of RPCs have ever issued for each type.
-     * Deprecated: use stats_per_method.rpcs_started instead.
-     * 
- * - * map<string, int32> num_rpcs_started_by_method = 1 [json_name = "numRpcsStartedByMethod", deprecated = true]; - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getNumRpcsStartedByMethodMap() { - return internalGetNumRpcsStartedByMethod().getMap(); - } - /** - *
-     * The total number of RPCs have ever issued for each type.
-     * Deprecated: use stats_per_method.rpcs_started instead.
-     * 
- * - * map<string, int32> num_rpcs_started_by_method = 1 [json_name = "numRpcsStartedByMethod", deprecated = true]; - */ - @java.lang.Override - @java.lang.Deprecated - public int getNumRpcsStartedByMethodOrDefault( - java.lang.String key, - int defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetNumRpcsStartedByMethod().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * The total number of RPCs have ever issued for each type.
-     * Deprecated: use stats_per_method.rpcs_started instead.
-     * 
- * - * map<string, int32> num_rpcs_started_by_method = 1 [json_name = "numRpcsStartedByMethod", deprecated = true]; - */ - @java.lang.Override - @java.lang.Deprecated - public int getNumRpcsStartedByMethodOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetNumRpcsStartedByMethod().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int NUM_RPCS_SUCCEEDED_BY_METHOD_FIELD_NUMBER = 2; - private static final class NumRpcsSucceededByMethodDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - grpc.testing.Messages.internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_NumRpcsSucceededByMethodEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.INT32, - 0); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.Integer> numRpcsSucceededByMethod_; - private com.google.protobuf.MapField - internalGetNumRpcsSucceededByMethod() { - if (numRpcsSucceededByMethod_ == null) { - return com.google.protobuf.MapField.emptyMapField( - NumRpcsSucceededByMethodDefaultEntryHolder.defaultEntry); - } - return numRpcsSucceededByMethod_; - } - @java.lang.Deprecated - public int getNumRpcsSucceededByMethodCount() { - return internalGetNumRpcsSucceededByMethod().getMap().size(); - } - /** - *
-     * The total number of RPCs have ever completed successfully for each type.
-     * Deprecated: use stats_per_method.result instead.
-     * 
- * - * map<string, int32> num_rpcs_succeeded_by_method = 2 [json_name = "numRpcsSucceededByMethod", deprecated = true]; - */ - @java.lang.Deprecated - @java.lang.Override - public boolean containsNumRpcsSucceededByMethod( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetNumRpcsSucceededByMethod().getMap().containsKey(key); - } - /** - * Use {@link #getNumRpcsSucceededByMethodMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getNumRpcsSucceededByMethod() { - return getNumRpcsSucceededByMethodMap(); - } - /** - *
-     * The total number of RPCs have ever completed successfully for each type.
-     * Deprecated: use stats_per_method.result instead.
-     * 
- * - * map<string, int32> num_rpcs_succeeded_by_method = 2 [json_name = "numRpcsSucceededByMethod", deprecated = true]; - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getNumRpcsSucceededByMethodMap() { - return internalGetNumRpcsSucceededByMethod().getMap(); - } - /** - *
-     * The total number of RPCs have ever completed successfully for each type.
-     * Deprecated: use stats_per_method.result instead.
-     * 
- * - * map<string, int32> num_rpcs_succeeded_by_method = 2 [json_name = "numRpcsSucceededByMethod", deprecated = true]; - */ - @java.lang.Override - @java.lang.Deprecated - public int getNumRpcsSucceededByMethodOrDefault( - java.lang.String key, - int defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetNumRpcsSucceededByMethod().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * The total number of RPCs have ever completed successfully for each type.
-     * Deprecated: use stats_per_method.result instead.
-     * 
- * - * map<string, int32> num_rpcs_succeeded_by_method = 2 [json_name = "numRpcsSucceededByMethod", deprecated = true]; - */ - @java.lang.Override - @java.lang.Deprecated - public int getNumRpcsSucceededByMethodOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetNumRpcsSucceededByMethod().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int NUM_RPCS_FAILED_BY_METHOD_FIELD_NUMBER = 3; - private static final class NumRpcsFailedByMethodDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - grpc.testing.Messages.internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_NumRpcsFailedByMethodEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.INT32, - 0); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.Integer> numRpcsFailedByMethod_; - private com.google.protobuf.MapField - internalGetNumRpcsFailedByMethod() { - if (numRpcsFailedByMethod_ == null) { - return com.google.protobuf.MapField.emptyMapField( - NumRpcsFailedByMethodDefaultEntryHolder.defaultEntry); - } - return numRpcsFailedByMethod_; - } - @java.lang.Deprecated - public int getNumRpcsFailedByMethodCount() { - return internalGetNumRpcsFailedByMethod().getMap().size(); - } - /** - *
-     * The total number of RPCs have ever failed for each type.
-     * Deprecated: use stats_per_method.result instead.
-     * 
- * - * map<string, int32> num_rpcs_failed_by_method = 3 [json_name = "numRpcsFailedByMethod", deprecated = true]; - */ - @java.lang.Deprecated - @java.lang.Override - public boolean containsNumRpcsFailedByMethod( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetNumRpcsFailedByMethod().getMap().containsKey(key); - } - /** - * Use {@link #getNumRpcsFailedByMethodMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getNumRpcsFailedByMethod() { - return getNumRpcsFailedByMethodMap(); - } - /** - *
-     * The total number of RPCs have ever failed for each type.
-     * Deprecated: use stats_per_method.result instead.
-     * 
- * - * map<string, int32> num_rpcs_failed_by_method = 3 [json_name = "numRpcsFailedByMethod", deprecated = true]; - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getNumRpcsFailedByMethodMap() { - return internalGetNumRpcsFailedByMethod().getMap(); - } - /** - *
-     * The total number of RPCs have ever failed for each type.
-     * Deprecated: use stats_per_method.result instead.
-     * 
- * - * map<string, int32> num_rpcs_failed_by_method = 3 [json_name = "numRpcsFailedByMethod", deprecated = true]; - */ - @java.lang.Override - @java.lang.Deprecated - public int getNumRpcsFailedByMethodOrDefault( - java.lang.String key, - int defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetNumRpcsFailedByMethod().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * The total number of RPCs have ever failed for each type.
-     * Deprecated: use stats_per_method.result instead.
-     * 
- * - * map<string, int32> num_rpcs_failed_by_method = 3 [json_name = "numRpcsFailedByMethod", deprecated = true]; - */ - @java.lang.Override - @java.lang.Deprecated - public int getNumRpcsFailedByMethodOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetNumRpcsFailedByMethod().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int STATS_PER_METHOD_FIELD_NUMBER = 4; - private static final class StatsPerMethodDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.MethodStats> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - grpc.testing.Messages.internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_StatsPerMethodEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.MethodStats.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.MethodStats> statsPerMethod_; - private com.google.protobuf.MapField - internalGetStatsPerMethod() { - if (statsPerMethod_ == null) { - return com.google.protobuf.MapField.emptyMapField( - StatsPerMethodDefaultEntryHolder.defaultEntry); - } - return statsPerMethod_; - } - - public int getStatsPerMethodCount() { - return internalGetStatsPerMethod().getMap().size(); - } - /** - *
-     * Per-method RPC statistics.  The key is the RpcType in string form; e.g.
-     * 'EMPTY_CALL' or 'UNARY_CALL'
-     * 
- * - * map<string, .grpc.testing.LoadBalancerAccumulatedStatsResponse.MethodStats> stats_per_method = 4 [json_name = "statsPerMethod"]; - */ - - @java.lang.Override - public boolean containsStatsPerMethod( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetStatsPerMethod().getMap().containsKey(key); - } - /** - * Use {@link #getStatsPerMethodMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getStatsPerMethod() { - return getStatsPerMethodMap(); - } - /** - *
-     * Per-method RPC statistics.  The key is the RpcType in string form; e.g.
-     * 'EMPTY_CALL' or 'UNARY_CALL'
-     * 
- * - * map<string, .grpc.testing.LoadBalancerAccumulatedStatsResponse.MethodStats> stats_per_method = 4 [json_name = "statsPerMethod"]; - */ - @java.lang.Override - - public java.util.Map getStatsPerMethodMap() { - return internalGetStatsPerMethod().getMap(); - } - /** - *
-     * Per-method RPC statistics.  The key is the RpcType in string form; e.g.
-     * 'EMPTY_CALL' or 'UNARY_CALL'
-     * 
- * - * map<string, .grpc.testing.LoadBalancerAccumulatedStatsResponse.MethodStats> stats_per_method = 4 [json_name = "statsPerMethod"]; - */ - @java.lang.Override - - public grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.MethodStats getStatsPerMethodOrDefault( - java.lang.String key, - grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.MethodStats defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetStatsPerMethod().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * Per-method RPC statistics.  The key is the RpcType in string form; e.g.
-     * 'EMPTY_CALL' or 'UNARY_CALL'
-     * 
- * - * map<string, .grpc.testing.LoadBalancerAccumulatedStatsResponse.MethodStats> stats_per_method = 4 [json_name = "statsPerMethod"]; - */ - @java.lang.Override - - public grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.MethodStats getStatsPerMethodOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetStatsPerMethod().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetNumRpcsStartedByMethod(), - NumRpcsStartedByMethodDefaultEntryHolder.defaultEntry, - 1); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetNumRpcsSucceededByMethod(), - NumRpcsSucceededByMethodDefaultEntryHolder.defaultEntry, - 2); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetNumRpcsFailedByMethod(), - NumRpcsFailedByMethodDefaultEntryHolder.defaultEntry, - 3); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetStatsPerMethod(), - StatsPerMethodDefaultEntryHolder.defaultEntry, - 4); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetNumRpcsStartedByMethod().getMap().entrySet()) { - com.google.protobuf.MapEntry - numRpcsStartedByMethod__ = NumRpcsStartedByMethodDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, numRpcsStartedByMethod__); - } - for (java.util.Map.Entry entry - : internalGetNumRpcsSucceededByMethod().getMap().entrySet()) { - com.google.protobuf.MapEntry - numRpcsSucceededByMethod__ = NumRpcsSucceededByMethodDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, numRpcsSucceededByMethod__); - } - for (java.util.Map.Entry entry - : internalGetNumRpcsFailedByMethod().getMap().entrySet()) { - com.google.protobuf.MapEntry - numRpcsFailedByMethod__ = NumRpcsFailedByMethodDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, numRpcsFailedByMethod__); - } - for (java.util.Map.Entry entry - : internalGetStatsPerMethod().getMap().entrySet()) { - com.google.protobuf.MapEntry - statsPerMethod__ = StatsPerMethodDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, statsPerMethod__); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse)) { - return super.equals(obj); - } - grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse other = (grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse) obj; - - if (!internalGetNumRpcsStartedByMethod().equals( - other.internalGetNumRpcsStartedByMethod())) return false; - if (!internalGetNumRpcsSucceededByMethod().equals( - other.internalGetNumRpcsSucceededByMethod())) return false; - if (!internalGetNumRpcsFailedByMethod().equals( - other.internalGetNumRpcsFailedByMethod())) return false; - if (!internalGetStatsPerMethod().equals( - other.internalGetStatsPerMethod())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (!internalGetNumRpcsStartedByMethod().getMap().isEmpty()) { - hash = (37 * hash) + NUM_RPCS_STARTED_BY_METHOD_FIELD_NUMBER; - hash = (53 * hash) + internalGetNumRpcsStartedByMethod().hashCode(); - } - if (!internalGetNumRpcsSucceededByMethod().getMap().isEmpty()) { - hash = (37 * hash) + NUM_RPCS_SUCCEEDED_BY_METHOD_FIELD_NUMBER; - hash = (53 * hash) + internalGetNumRpcsSucceededByMethod().hashCode(); - } - if (!internalGetNumRpcsFailedByMethod().getMap().isEmpty()) { - hash = (37 * hash) + NUM_RPCS_FAILED_BY_METHOD_FIELD_NUMBER; - hash = (53 * hash) + internalGetNumRpcsFailedByMethod().hashCode(); - } - if (!internalGetStatsPerMethod().getMap().isEmpty()) { - hash = (37 * hash) + STATS_PER_METHOD_FIELD_NUMBER; - hash = (53 * hash) + internalGetStatsPerMethod().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Accumulated stats for RPCs sent by a test client.
-     * 
- * - * Protobuf type {@code grpc.testing.LoadBalancerAccumulatedStatsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:grpc.testing.LoadBalancerAccumulatedStatsResponse) - grpc.testing.Messages.LoadBalancerAccumulatedStatsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return grpc.testing.Messages.internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetNumRpcsStartedByMethod(); - case 2: - return internalGetNumRpcsSucceededByMethod(); - case 3: - return internalGetNumRpcsFailedByMethod(); - case 4: - return internalGetStatsPerMethod(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableNumRpcsStartedByMethod(); - case 2: - return internalGetMutableNumRpcsSucceededByMethod(); - case 3: - return internalGetMutableNumRpcsFailedByMethod(); - case 4: - return internalGetMutableStatsPerMethod(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return grpc.testing.Messages.internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.class, grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.Builder.class); - } - - // Construct using grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - internalGetMutableNumRpcsStartedByMethod().clear(); - internalGetMutableNumRpcsSucceededByMethod().clear(); - internalGetMutableNumRpcsFailedByMethod().clear(); - internalGetMutableStatsPerMethod().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return grpc.testing.Messages.internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_descriptor; - } - - @java.lang.Override - public grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse getDefaultInstanceForType() { - return grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.getDefaultInstance(); - } - - @java.lang.Override - public grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse build() { - grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse buildPartial() { - grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse result = new grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse(this); - int from_bitField0_ = bitField0_; - result.numRpcsStartedByMethod_ = internalGetNumRpcsStartedByMethod(); - result.numRpcsStartedByMethod_.makeImmutable(); - result.numRpcsSucceededByMethod_ = internalGetNumRpcsSucceededByMethod(); - result.numRpcsSucceededByMethod_.makeImmutable(); - result.numRpcsFailedByMethod_ = internalGetNumRpcsFailedByMethod(); - result.numRpcsFailedByMethod_.makeImmutable(); - result.statsPerMethod_ = internalGetStatsPerMethod(); - result.statsPerMethod_.makeImmutable(); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse) { - return mergeFrom((grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse other) { - if (other == grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.getDefaultInstance()) return this; - internalGetMutableNumRpcsStartedByMethod().mergeFrom( - other.internalGetNumRpcsStartedByMethod()); - internalGetMutableNumRpcsSucceededByMethod().mergeFrom( - other.internalGetNumRpcsSucceededByMethod()); - internalGetMutableNumRpcsFailedByMethod().mergeFrom( - other.internalGetNumRpcsFailedByMethod()); - internalGetMutableStatsPerMethod().mergeFrom( - other.internalGetStatsPerMethod()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, java.lang.Integer> numRpcsStartedByMethod_; - private com.google.protobuf.MapField - internalGetNumRpcsStartedByMethod() { - if (numRpcsStartedByMethod_ == null) { - return com.google.protobuf.MapField.emptyMapField( - NumRpcsStartedByMethodDefaultEntryHolder.defaultEntry); - } - return numRpcsStartedByMethod_; - } - private com.google.protobuf.MapField - internalGetMutableNumRpcsStartedByMethod() { - onChanged();; - if (numRpcsStartedByMethod_ == null) { - numRpcsStartedByMethod_ = com.google.protobuf.MapField.newMapField( - NumRpcsStartedByMethodDefaultEntryHolder.defaultEntry); - } - if (!numRpcsStartedByMethod_.isMutable()) { - numRpcsStartedByMethod_ = numRpcsStartedByMethod_.copy(); - } - return numRpcsStartedByMethod_; - } - @java.lang.Deprecated - public int getNumRpcsStartedByMethodCount() { - return internalGetNumRpcsStartedByMethod().getMap().size(); - } - /** - *
-       * The total number of RPCs have ever issued for each type.
-       * Deprecated: use stats_per_method.rpcs_started instead.
-       * 
- * - * map<string, int32> num_rpcs_started_by_method = 1 [json_name = "numRpcsStartedByMethod", deprecated = true]; - */ - @java.lang.Deprecated - @java.lang.Override - public boolean containsNumRpcsStartedByMethod( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetNumRpcsStartedByMethod().getMap().containsKey(key); - } - /** - * Use {@link #getNumRpcsStartedByMethodMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getNumRpcsStartedByMethod() { - return getNumRpcsStartedByMethodMap(); - } - /** - *
-       * The total number of RPCs have ever issued for each type.
-       * Deprecated: use stats_per_method.rpcs_started instead.
-       * 
- * - * map<string, int32> num_rpcs_started_by_method = 1 [json_name = "numRpcsStartedByMethod", deprecated = true]; - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getNumRpcsStartedByMethodMap() { - return internalGetNumRpcsStartedByMethod().getMap(); - } - /** - *
-       * The total number of RPCs have ever issued for each type.
-       * Deprecated: use stats_per_method.rpcs_started instead.
-       * 
- * - * map<string, int32> num_rpcs_started_by_method = 1 [json_name = "numRpcsStartedByMethod", deprecated = true]; - */ - @java.lang.Override - @java.lang.Deprecated - public int getNumRpcsStartedByMethodOrDefault( - java.lang.String key, - int defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetNumRpcsStartedByMethod().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * The total number of RPCs have ever issued for each type.
-       * Deprecated: use stats_per_method.rpcs_started instead.
-       * 
- * - * map<string, int32> num_rpcs_started_by_method = 1 [json_name = "numRpcsStartedByMethod", deprecated = true]; - */ - @java.lang.Override - @java.lang.Deprecated - public int getNumRpcsStartedByMethodOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetNumRpcsStartedByMethod().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - @java.lang.Deprecated - public Builder clearNumRpcsStartedByMethod() { - internalGetMutableNumRpcsStartedByMethod().getMutableMap() - .clear(); - return this; - } - /** - *
-       * The total number of RPCs have ever issued for each type.
-       * Deprecated: use stats_per_method.rpcs_started instead.
-       * 
- * - * map<string, int32> num_rpcs_started_by_method = 1 [json_name = "numRpcsStartedByMethod", deprecated = true]; - */ - @java.lang.Deprecated - public Builder removeNumRpcsStartedByMethod( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableNumRpcsStartedByMethod().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableNumRpcsStartedByMethod() { - return internalGetMutableNumRpcsStartedByMethod().getMutableMap(); - } - /** - *
-       * The total number of RPCs have ever issued for each type.
-       * Deprecated: use stats_per_method.rpcs_started instead.
-       * 
- * - * map<string, int32> num_rpcs_started_by_method = 1 [json_name = "numRpcsStartedByMethod", deprecated = true]; - */ - @java.lang.Deprecated public Builder putNumRpcsStartedByMethod( - java.lang.String key, - int value) { - if (key == null) { throw new NullPointerException("map key"); } - - internalGetMutableNumRpcsStartedByMethod().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       * The total number of RPCs have ever issued for each type.
-       * Deprecated: use stats_per_method.rpcs_started instead.
-       * 
- * - * map<string, int32> num_rpcs_started_by_method = 1 [json_name = "numRpcsStartedByMethod", deprecated = true]; - */ - @java.lang.Deprecated - public Builder putAllNumRpcsStartedByMethod( - java.util.Map values) { - internalGetMutableNumRpcsStartedByMethod().getMutableMap() - .putAll(values); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.Integer> numRpcsSucceededByMethod_; - private com.google.protobuf.MapField - internalGetNumRpcsSucceededByMethod() { - if (numRpcsSucceededByMethod_ == null) { - return com.google.protobuf.MapField.emptyMapField( - NumRpcsSucceededByMethodDefaultEntryHolder.defaultEntry); - } - return numRpcsSucceededByMethod_; - } - private com.google.protobuf.MapField - internalGetMutableNumRpcsSucceededByMethod() { - onChanged();; - if (numRpcsSucceededByMethod_ == null) { - numRpcsSucceededByMethod_ = com.google.protobuf.MapField.newMapField( - NumRpcsSucceededByMethodDefaultEntryHolder.defaultEntry); - } - if (!numRpcsSucceededByMethod_.isMutable()) { - numRpcsSucceededByMethod_ = numRpcsSucceededByMethod_.copy(); - } - return numRpcsSucceededByMethod_; - } - @java.lang.Deprecated - public int getNumRpcsSucceededByMethodCount() { - return internalGetNumRpcsSucceededByMethod().getMap().size(); - } - /** - *
-       * The total number of RPCs have ever completed successfully for each type.
-       * Deprecated: use stats_per_method.result instead.
-       * 
- * - * map<string, int32> num_rpcs_succeeded_by_method = 2 [json_name = "numRpcsSucceededByMethod", deprecated = true]; - */ - @java.lang.Deprecated - @java.lang.Override - public boolean containsNumRpcsSucceededByMethod( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetNumRpcsSucceededByMethod().getMap().containsKey(key); - } - /** - * Use {@link #getNumRpcsSucceededByMethodMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getNumRpcsSucceededByMethod() { - return getNumRpcsSucceededByMethodMap(); - } - /** - *
-       * The total number of RPCs have ever completed successfully for each type.
-       * Deprecated: use stats_per_method.result instead.
-       * 
- * - * map<string, int32> num_rpcs_succeeded_by_method = 2 [json_name = "numRpcsSucceededByMethod", deprecated = true]; - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getNumRpcsSucceededByMethodMap() { - return internalGetNumRpcsSucceededByMethod().getMap(); - } - /** - *
-       * The total number of RPCs have ever completed successfully for each type.
-       * Deprecated: use stats_per_method.result instead.
-       * 
- * - * map<string, int32> num_rpcs_succeeded_by_method = 2 [json_name = "numRpcsSucceededByMethod", deprecated = true]; - */ - @java.lang.Override - @java.lang.Deprecated - public int getNumRpcsSucceededByMethodOrDefault( - java.lang.String key, - int defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetNumRpcsSucceededByMethod().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * The total number of RPCs have ever completed successfully for each type.
-       * Deprecated: use stats_per_method.result instead.
-       * 
- * - * map<string, int32> num_rpcs_succeeded_by_method = 2 [json_name = "numRpcsSucceededByMethod", deprecated = true]; - */ - @java.lang.Override - @java.lang.Deprecated - public int getNumRpcsSucceededByMethodOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetNumRpcsSucceededByMethod().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - @java.lang.Deprecated - public Builder clearNumRpcsSucceededByMethod() { - internalGetMutableNumRpcsSucceededByMethod().getMutableMap() - .clear(); - return this; - } - /** - *
-       * The total number of RPCs have ever completed successfully for each type.
-       * Deprecated: use stats_per_method.result instead.
-       * 
- * - * map<string, int32> num_rpcs_succeeded_by_method = 2 [json_name = "numRpcsSucceededByMethod", deprecated = true]; - */ - @java.lang.Deprecated - public Builder removeNumRpcsSucceededByMethod( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableNumRpcsSucceededByMethod().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableNumRpcsSucceededByMethod() { - return internalGetMutableNumRpcsSucceededByMethod().getMutableMap(); - } - /** - *
-       * The total number of RPCs have ever completed successfully for each type.
-       * Deprecated: use stats_per_method.result instead.
-       * 
- * - * map<string, int32> num_rpcs_succeeded_by_method = 2 [json_name = "numRpcsSucceededByMethod", deprecated = true]; - */ - @java.lang.Deprecated public Builder putNumRpcsSucceededByMethod( - java.lang.String key, - int value) { - if (key == null) { throw new NullPointerException("map key"); } - - internalGetMutableNumRpcsSucceededByMethod().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       * The total number of RPCs have ever completed successfully for each type.
-       * Deprecated: use stats_per_method.result instead.
-       * 
- * - * map<string, int32> num_rpcs_succeeded_by_method = 2 [json_name = "numRpcsSucceededByMethod", deprecated = true]; - */ - @java.lang.Deprecated - public Builder putAllNumRpcsSucceededByMethod( - java.util.Map values) { - internalGetMutableNumRpcsSucceededByMethod().getMutableMap() - .putAll(values); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.Integer> numRpcsFailedByMethod_; - private com.google.protobuf.MapField - internalGetNumRpcsFailedByMethod() { - if (numRpcsFailedByMethod_ == null) { - return com.google.protobuf.MapField.emptyMapField( - NumRpcsFailedByMethodDefaultEntryHolder.defaultEntry); - } - return numRpcsFailedByMethod_; - } - private com.google.protobuf.MapField - internalGetMutableNumRpcsFailedByMethod() { - onChanged();; - if (numRpcsFailedByMethod_ == null) { - numRpcsFailedByMethod_ = com.google.protobuf.MapField.newMapField( - NumRpcsFailedByMethodDefaultEntryHolder.defaultEntry); - } - if (!numRpcsFailedByMethod_.isMutable()) { - numRpcsFailedByMethod_ = numRpcsFailedByMethod_.copy(); - } - return numRpcsFailedByMethod_; - } - @java.lang.Deprecated - public int getNumRpcsFailedByMethodCount() { - return internalGetNumRpcsFailedByMethod().getMap().size(); - } - /** - *
-       * The total number of RPCs have ever failed for each type.
-       * Deprecated: use stats_per_method.result instead.
-       * 
- * - * map<string, int32> num_rpcs_failed_by_method = 3 [json_name = "numRpcsFailedByMethod", deprecated = true]; - */ - @java.lang.Deprecated - @java.lang.Override - public boolean containsNumRpcsFailedByMethod( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetNumRpcsFailedByMethod().getMap().containsKey(key); - } - /** - * Use {@link #getNumRpcsFailedByMethodMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getNumRpcsFailedByMethod() { - return getNumRpcsFailedByMethodMap(); - } - /** - *
-       * The total number of RPCs have ever failed for each type.
-       * Deprecated: use stats_per_method.result instead.
-       * 
- * - * map<string, int32> num_rpcs_failed_by_method = 3 [json_name = "numRpcsFailedByMethod", deprecated = true]; - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getNumRpcsFailedByMethodMap() { - return internalGetNumRpcsFailedByMethod().getMap(); - } - /** - *
-       * The total number of RPCs have ever failed for each type.
-       * Deprecated: use stats_per_method.result instead.
-       * 
- * - * map<string, int32> num_rpcs_failed_by_method = 3 [json_name = "numRpcsFailedByMethod", deprecated = true]; - */ - @java.lang.Override - @java.lang.Deprecated - public int getNumRpcsFailedByMethodOrDefault( - java.lang.String key, - int defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetNumRpcsFailedByMethod().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * The total number of RPCs have ever failed for each type.
-       * Deprecated: use stats_per_method.result instead.
-       * 
- * - * map<string, int32> num_rpcs_failed_by_method = 3 [json_name = "numRpcsFailedByMethod", deprecated = true]; - */ - @java.lang.Override - @java.lang.Deprecated - public int getNumRpcsFailedByMethodOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetNumRpcsFailedByMethod().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - @java.lang.Deprecated - public Builder clearNumRpcsFailedByMethod() { - internalGetMutableNumRpcsFailedByMethod().getMutableMap() - .clear(); - return this; - } - /** - *
-       * The total number of RPCs have ever failed for each type.
-       * Deprecated: use stats_per_method.result instead.
-       * 
- * - * map<string, int32> num_rpcs_failed_by_method = 3 [json_name = "numRpcsFailedByMethod", deprecated = true]; - */ - @java.lang.Deprecated - public Builder removeNumRpcsFailedByMethod( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableNumRpcsFailedByMethod().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableNumRpcsFailedByMethod() { - return internalGetMutableNumRpcsFailedByMethod().getMutableMap(); - } - /** - *
-       * The total number of RPCs have ever failed for each type.
-       * Deprecated: use stats_per_method.result instead.
-       * 
- * - * map<string, int32> num_rpcs_failed_by_method = 3 [json_name = "numRpcsFailedByMethod", deprecated = true]; - */ - @java.lang.Deprecated public Builder putNumRpcsFailedByMethod( - java.lang.String key, - int value) { - if (key == null) { throw new NullPointerException("map key"); } - - internalGetMutableNumRpcsFailedByMethod().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       * The total number of RPCs have ever failed for each type.
-       * Deprecated: use stats_per_method.result instead.
-       * 
- * - * map<string, int32> num_rpcs_failed_by_method = 3 [json_name = "numRpcsFailedByMethod", deprecated = true]; - */ - @java.lang.Deprecated - public Builder putAllNumRpcsFailedByMethod( - java.util.Map values) { - internalGetMutableNumRpcsFailedByMethod().getMutableMap() - .putAll(values); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.MethodStats> statsPerMethod_; - private com.google.protobuf.MapField - internalGetStatsPerMethod() { - if (statsPerMethod_ == null) { - return com.google.protobuf.MapField.emptyMapField( - StatsPerMethodDefaultEntryHolder.defaultEntry); - } - return statsPerMethod_; - } - private com.google.protobuf.MapField - internalGetMutableStatsPerMethod() { - onChanged();; - if (statsPerMethod_ == null) { - statsPerMethod_ = com.google.protobuf.MapField.newMapField( - StatsPerMethodDefaultEntryHolder.defaultEntry); - } - if (!statsPerMethod_.isMutable()) { - statsPerMethod_ = statsPerMethod_.copy(); - } - return statsPerMethod_; - } - - public int getStatsPerMethodCount() { - return internalGetStatsPerMethod().getMap().size(); - } - /** - *
-       * Per-method RPC statistics.  The key is the RpcType in string form; e.g.
-       * 'EMPTY_CALL' or 'UNARY_CALL'
-       * 
- * - * map<string, .grpc.testing.LoadBalancerAccumulatedStatsResponse.MethodStats> stats_per_method = 4 [json_name = "statsPerMethod"]; - */ - - @java.lang.Override - public boolean containsStatsPerMethod( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetStatsPerMethod().getMap().containsKey(key); - } - /** - * Use {@link #getStatsPerMethodMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getStatsPerMethod() { - return getStatsPerMethodMap(); - } - /** - *
-       * Per-method RPC statistics.  The key is the RpcType in string form; e.g.
-       * 'EMPTY_CALL' or 'UNARY_CALL'
-       * 
- * - * map<string, .grpc.testing.LoadBalancerAccumulatedStatsResponse.MethodStats> stats_per_method = 4 [json_name = "statsPerMethod"]; - */ - @java.lang.Override - - public java.util.Map getStatsPerMethodMap() { - return internalGetStatsPerMethod().getMap(); - } - /** - *
-       * Per-method RPC statistics.  The key is the RpcType in string form; e.g.
-       * 'EMPTY_CALL' or 'UNARY_CALL'
-       * 
- * - * map<string, .grpc.testing.LoadBalancerAccumulatedStatsResponse.MethodStats> stats_per_method = 4 [json_name = "statsPerMethod"]; - */ - @java.lang.Override - - public grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.MethodStats getStatsPerMethodOrDefault( - java.lang.String key, - grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.MethodStats defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetStatsPerMethod().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * Per-method RPC statistics.  The key is the RpcType in string form; e.g.
-       * 'EMPTY_CALL' or 'UNARY_CALL'
-       * 
- * - * map<string, .grpc.testing.LoadBalancerAccumulatedStatsResponse.MethodStats> stats_per_method = 4 [json_name = "statsPerMethod"]; - */ - @java.lang.Override - - public grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.MethodStats getStatsPerMethodOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetStatsPerMethod().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearStatsPerMethod() { - internalGetMutableStatsPerMethod().getMutableMap() - .clear(); - return this; - } - /** - *
-       * Per-method RPC statistics.  The key is the RpcType in string form; e.g.
-       * 'EMPTY_CALL' or 'UNARY_CALL'
-       * 
- * - * map<string, .grpc.testing.LoadBalancerAccumulatedStatsResponse.MethodStats> stats_per_method = 4 [json_name = "statsPerMethod"]; - */ - - public Builder removeStatsPerMethod( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableStatsPerMethod().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableStatsPerMethod() { - return internalGetMutableStatsPerMethod().getMutableMap(); - } - /** - *
-       * Per-method RPC statistics.  The key is the RpcType in string form; e.g.
-       * 'EMPTY_CALL' or 'UNARY_CALL'
-       * 
- * - * map<string, .grpc.testing.LoadBalancerAccumulatedStatsResponse.MethodStats> stats_per_method = 4 [json_name = "statsPerMethod"]; - */ - public Builder putStatsPerMethod( - java.lang.String key, - grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse.MethodStats value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { - throw new NullPointerException("map value"); -} - - internalGetMutableStatsPerMethod().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       * Per-method RPC statistics.  The key is the RpcType in string form; e.g.
-       * 'EMPTY_CALL' or 'UNARY_CALL'
-       * 
- * - * map<string, .grpc.testing.LoadBalancerAccumulatedStatsResponse.MethodStats> stats_per_method = 4 [json_name = "statsPerMethod"]; - */ - - public Builder putAllStatsPerMethod( - java.util.Map values) { - internalGetMutableStatsPerMethod().getMutableMap() - .putAll(values); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:grpc.testing.LoadBalancerAccumulatedStatsResponse) - } - - // @@protoc_insertion_point(class_scope:grpc.testing.LoadBalancerAccumulatedStatsResponse) - private static final grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse(); - } - - public static grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LoadBalancerAccumulatedStatsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LoadBalancerAccumulatedStatsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public grpc.testing.Messages.LoadBalancerAccumulatedStatsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ClientConfigureRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:grpc.testing.ClientConfigureRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The types of RPCs the client sends.
-     * 
- * - * repeated .grpc.testing.ClientConfigureRequest.RpcType types = 1 [json_name = "types"]; - * @return A list containing the types. - */ - java.util.List getTypesList(); - /** - *
-     * The types of RPCs the client sends.
-     * 
- * - * repeated .grpc.testing.ClientConfigureRequest.RpcType types = 1 [json_name = "types"]; - * @return The count of types. - */ - int getTypesCount(); - /** - *
-     * The types of RPCs the client sends.
-     * 
- * - * repeated .grpc.testing.ClientConfigureRequest.RpcType types = 1 [json_name = "types"]; - * @param index The index of the element to return. - * @return The types at the given index. - */ - grpc.testing.Messages.ClientConfigureRequest.RpcType getTypes(int index); - /** - *
-     * The types of RPCs the client sends.
-     * 
- * - * repeated .grpc.testing.ClientConfigureRequest.RpcType types = 1 [json_name = "types"]; - * @return A list containing the enum numeric values on the wire for types. - */ - java.util.List - getTypesValueList(); - /** - *
-     * The types of RPCs the client sends.
-     * 
- * - * repeated .grpc.testing.ClientConfigureRequest.RpcType types = 1 [json_name = "types"]; - * @param index The index of the value to return. - * @return The enum numeric value on the wire of types at the given index. - */ - int getTypesValue(int index); - - /** - *
-     * The collection of custom metadata to be attached to RPCs sent by the client.
-     * 
- * - * repeated .grpc.testing.ClientConfigureRequest.Metadata metadata = 2 [json_name = "metadata"]; - */ - java.util.List - getMetadataList(); - /** - *
-     * The collection of custom metadata to be attached to RPCs sent by the client.
-     * 
- * - * repeated .grpc.testing.ClientConfigureRequest.Metadata metadata = 2 [json_name = "metadata"]; - */ - grpc.testing.Messages.ClientConfigureRequest.Metadata getMetadata(int index); - /** - *
-     * The collection of custom metadata to be attached to RPCs sent by the client.
-     * 
- * - * repeated .grpc.testing.ClientConfigureRequest.Metadata metadata = 2 [json_name = "metadata"]; - */ - int getMetadataCount(); - /** - *
-     * The collection of custom metadata to be attached to RPCs sent by the client.
-     * 
- * - * repeated .grpc.testing.ClientConfigureRequest.Metadata metadata = 2 [json_name = "metadata"]; - */ - java.util.List - getMetadataOrBuilderList(); - /** - *
-     * The collection of custom metadata to be attached to RPCs sent by the client.
-     * 
- * - * repeated .grpc.testing.ClientConfigureRequest.Metadata metadata = 2 [json_name = "metadata"]; - */ - grpc.testing.Messages.ClientConfigureRequest.MetadataOrBuilder getMetadataOrBuilder( - int index); - - /** - *
-     * The deadline to use, in seconds, for all RPCs.  If unset or zero, the
-     * client will use the default from the command-line.
-     * 
- * - * int32 timeout_sec = 3 [json_name = "timeoutSec"]; - * @return The timeoutSec. - */ - int getTimeoutSec(); - } - /** - *
-   * Configurations for a test client.
-   * 
- * - * Protobuf type {@code grpc.testing.ClientConfigureRequest} - */ - public static final class ClientConfigureRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:grpc.testing.ClientConfigureRequest) - ClientConfigureRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ClientConfigureRequest.newBuilder() to construct. - private ClientConfigureRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ClientConfigureRequest() { - types_ = java.util.Collections.emptyList(); - metadata_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ClientConfigureRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ClientConfigureRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - types_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - types_.add(rawValue); - break; - } - case 10: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { - int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - types_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - types_.add(rawValue); - } - input.popLimit(oldLimit); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - metadata_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - metadata_.add( - input.readMessage(grpc.testing.Messages.ClientConfigureRequest.Metadata.parser(), extensionRegistry)); - break; - } - case 24: { - - timeoutSec_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - types_ = java.util.Collections.unmodifiableList(types_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - metadata_ = java.util.Collections.unmodifiableList(metadata_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return grpc.testing.Messages.internal_static_grpc_testing_ClientConfigureRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return grpc.testing.Messages.internal_static_grpc_testing_ClientConfigureRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - grpc.testing.Messages.ClientConfigureRequest.class, grpc.testing.Messages.ClientConfigureRequest.Builder.class); - } - - /** - *
-     * Type of RPCs to send.
-     * 
- * - * Protobuf enum {@code grpc.testing.ClientConfigureRequest.RpcType} - */ - public enum RpcType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * EMPTY_CALL = 0; - */ - EMPTY_CALL(0), - /** - * UNARY_CALL = 1; - */ - UNARY_CALL(1), - UNRECOGNIZED(-1), - ; - - /** - * EMPTY_CALL = 0; - */ - public static final int EMPTY_CALL_VALUE = 0; - /** - * UNARY_CALL = 1; - */ - public static final int UNARY_CALL_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static RpcType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static RpcType forNumber(int value) { - switch (value) { - case 0: return EMPTY_CALL; - case 1: return UNARY_CALL; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - RpcType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RpcType findValueByNumber(int number) { - return RpcType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return grpc.testing.Messages.ClientConfigureRequest.getDescriptor().getEnumTypes().get(0); - } - - private static final RpcType[] VALUES = values(); - - public static RpcType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private RpcType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:grpc.testing.ClientConfigureRequest.RpcType) - } - - public interface MetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:grpc.testing.ClientConfigureRequest.Metadata) - com.google.protobuf.MessageOrBuilder { - - /** - * .grpc.testing.ClientConfigureRequest.RpcType type = 1 [json_name = "type"]; - * @return The enum numeric value on the wire for type. - */ - int getTypeValue(); - /** - * .grpc.testing.ClientConfigureRequest.RpcType type = 1 [json_name = "type"]; - * @return The type. - */ - grpc.testing.Messages.ClientConfigureRequest.RpcType getType(); - - /** - * string key = 2 [json_name = "key"]; - * @return The key. - */ - java.lang.String getKey(); - /** - * string key = 2 [json_name = "key"]; - * @return The bytes for key. - */ - com.google.protobuf.ByteString - getKeyBytes(); - - /** - * string value = 3 [json_name = "value"]; - * @return The value. - */ - java.lang.String getValue(); - /** - * string value = 3 [json_name = "value"]; - * @return The bytes for value. - */ - com.google.protobuf.ByteString - getValueBytes(); - } - /** - *
-     * Metadata to be attached for the given type of RPCs.
-     * 
- * - * Protobuf type {@code grpc.testing.ClientConfigureRequest.Metadata} - */ - public static final class Metadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:grpc.testing.ClientConfigureRequest.Metadata) - MetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use Metadata.newBuilder() to construct. - private Metadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Metadata() { - type_ = 0; - key_ = ""; - value_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Metadata(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Metadata( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - key_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - value_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return grpc.testing.Messages.internal_static_grpc_testing_ClientConfigureRequest_Metadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return grpc.testing.Messages.internal_static_grpc_testing_ClientConfigureRequest_Metadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - grpc.testing.Messages.ClientConfigureRequest.Metadata.class, grpc.testing.Messages.ClientConfigureRequest.Metadata.Builder.class); - } - - public static final int TYPE_FIELD_NUMBER = 1; - private int type_; - /** - * .grpc.testing.ClientConfigureRequest.RpcType type = 1 [json_name = "type"]; - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override public int getTypeValue() { - return type_; - } - /** - * .grpc.testing.ClientConfigureRequest.RpcType type = 1 [json_name = "type"]; - * @return The type. - */ - @java.lang.Override public grpc.testing.Messages.ClientConfigureRequest.RpcType getType() { - @SuppressWarnings("deprecation") - grpc.testing.Messages.ClientConfigureRequest.RpcType result = grpc.testing.Messages.ClientConfigureRequest.RpcType.valueOf(type_); - return result == null ? grpc.testing.Messages.ClientConfigureRequest.RpcType.UNRECOGNIZED : result; - } - - public static final int KEY_FIELD_NUMBER = 2; - private volatile java.lang.Object key_; - /** - * string key = 2 [json_name = "key"]; - * @return The key. - */ - @java.lang.Override - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } - } - /** - * string key = 2 [json_name = "key"]; - * @return The bytes for key. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALUE_FIELD_NUMBER = 3; - private volatile java.lang.Object value_; - /** - * string value = 3 [json_name = "value"]; - * @return The value. - */ - @java.lang.Override - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } - } - /** - * string value = 3 [json_name = "value"]; - * @return The bytes for value. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (type_ != grpc.testing.Messages.ClientConfigureRequest.RpcType.EMPTY_CALL.getNumber()) { - output.writeEnum(1, type_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, key_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, value_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (type_ != grpc.testing.Messages.ClientConfigureRequest.RpcType.EMPTY_CALL.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, type_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, key_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, value_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof grpc.testing.Messages.ClientConfigureRequest.Metadata)) { - return super.equals(obj); - } - grpc.testing.Messages.ClientConfigureRequest.Metadata other = (grpc.testing.Messages.ClientConfigureRequest.Metadata) obj; - - if (type_ != other.type_) return false; - if (!getKey() - .equals(other.getKey())) return false; - if (!getValue() - .equals(other.getValue())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static grpc.testing.Messages.ClientConfigureRequest.Metadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.ClientConfigureRequest.Metadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.ClientConfigureRequest.Metadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.ClientConfigureRequest.Metadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.ClientConfigureRequest.Metadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.ClientConfigureRequest.Metadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.ClientConfigureRequest.Metadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static grpc.testing.Messages.ClientConfigureRequest.Metadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static grpc.testing.Messages.ClientConfigureRequest.Metadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static grpc.testing.Messages.ClientConfigureRequest.Metadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static grpc.testing.Messages.ClientConfigureRequest.Metadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static grpc.testing.Messages.ClientConfigureRequest.Metadata parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(grpc.testing.Messages.ClientConfigureRequest.Metadata prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-       * Metadata to be attached for the given type of RPCs.
-       * 
- * - * Protobuf type {@code grpc.testing.ClientConfigureRequest.Metadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:grpc.testing.ClientConfigureRequest.Metadata) - grpc.testing.Messages.ClientConfigureRequest.MetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return grpc.testing.Messages.internal_static_grpc_testing_ClientConfigureRequest_Metadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return grpc.testing.Messages.internal_static_grpc_testing_ClientConfigureRequest_Metadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - grpc.testing.Messages.ClientConfigureRequest.Metadata.class, grpc.testing.Messages.ClientConfigureRequest.Metadata.Builder.class); - } - - // Construct using grpc.testing.Messages.ClientConfigureRequest.Metadata.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - type_ = 0; - - key_ = ""; - - value_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return grpc.testing.Messages.internal_static_grpc_testing_ClientConfigureRequest_Metadata_descriptor; - } - - @java.lang.Override - public grpc.testing.Messages.ClientConfigureRequest.Metadata getDefaultInstanceForType() { - return grpc.testing.Messages.ClientConfigureRequest.Metadata.getDefaultInstance(); - } - - @java.lang.Override - public grpc.testing.Messages.ClientConfigureRequest.Metadata build() { - grpc.testing.Messages.ClientConfigureRequest.Metadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public grpc.testing.Messages.ClientConfigureRequest.Metadata buildPartial() { - grpc.testing.Messages.ClientConfigureRequest.Metadata result = new grpc.testing.Messages.ClientConfigureRequest.Metadata(this); - result.type_ = type_; - result.key_ = key_; - result.value_ = value_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof grpc.testing.Messages.ClientConfigureRequest.Metadata) { - return mergeFrom((grpc.testing.Messages.ClientConfigureRequest.Metadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(grpc.testing.Messages.ClientConfigureRequest.Metadata other) { - if (other == grpc.testing.Messages.ClientConfigureRequest.Metadata.getDefaultInstance()) return this; - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - if (!other.getKey().isEmpty()) { - key_ = other.key_; - onChanged(); - } - if (!other.getValue().isEmpty()) { - value_ = other.value_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - grpc.testing.Messages.ClientConfigureRequest.Metadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (grpc.testing.Messages.ClientConfigureRequest.Metadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int type_ = 0; - /** - * .grpc.testing.ClientConfigureRequest.RpcType type = 1 [json_name = "type"]; - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override public int getTypeValue() { - return type_; - } - /** - * .grpc.testing.ClientConfigureRequest.RpcType type = 1 [json_name = "type"]; - * @param value The enum numeric value on the wire for type to set. - * @return This builder for chaining. - */ - public Builder setTypeValue(int value) { - - type_ = value; - onChanged(); - return this; - } - /** - * .grpc.testing.ClientConfigureRequest.RpcType type = 1 [json_name = "type"]; - * @return The type. - */ - @java.lang.Override - public grpc.testing.Messages.ClientConfigureRequest.RpcType getType() { - @SuppressWarnings("deprecation") - grpc.testing.Messages.ClientConfigureRequest.RpcType result = grpc.testing.Messages.ClientConfigureRequest.RpcType.valueOf(type_); - return result == null ? grpc.testing.Messages.ClientConfigureRequest.RpcType.UNRECOGNIZED : result; - } - /** - * .grpc.testing.ClientConfigureRequest.RpcType type = 1 [json_name = "type"]; - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType(grpc.testing.Messages.ClientConfigureRequest.RpcType value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .grpc.testing.ClientConfigureRequest.RpcType type = 1 [json_name = "type"]; - * @return This builder for chaining. - */ - public Builder clearType() { - - type_ = 0; - onChanged(); - return this; - } - - private java.lang.Object key_ = ""; - /** - * string key = 2 [json_name = "key"]; - * @return The key. - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string key = 2 [json_name = "key"]; - * @return The bytes for key. - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string key = 2 [json_name = "key"]; - * @param value The key to set. - * @return This builder for chaining. - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - * string key = 2 [json_name = "key"]; - * @return This builder for chaining. - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - * string key = 2 [json_name = "key"]; - * @param value The bytes for key to set. - * @return This builder for chaining. - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - key_ = value; - onChanged(); - return this; - } - - private java.lang.Object value_ = ""; - /** - * string value = 3 [json_name = "value"]; - * @return The value. - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string value = 3 [json_name = "value"]; - * @return The bytes for value. - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string value = 3 [json_name = "value"]; - * @param value The value to set. - * @return This builder for chaining. - */ - public Builder setValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - * string value = 3 [json_name = "value"]; - * @return This builder for chaining. - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - /** - * string value = 3 [json_name = "value"]; - * @param value The bytes for value to set. - * @return This builder for chaining. - */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - value_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:grpc.testing.ClientConfigureRequest.Metadata) - } - - // @@protoc_insertion_point(class_scope:grpc.testing.ClientConfigureRequest.Metadata) - private static final grpc.testing.Messages.ClientConfigureRequest.Metadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new grpc.testing.Messages.ClientConfigureRequest.Metadata(); - } - - public static grpc.testing.Messages.ClientConfigureRequest.Metadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Metadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Metadata(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public grpc.testing.Messages.ClientConfigureRequest.Metadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int TYPES_FIELD_NUMBER = 1; - private java.util.List types_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, grpc.testing.Messages.ClientConfigureRequest.RpcType> types_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, grpc.testing.Messages.ClientConfigureRequest.RpcType>() { - public grpc.testing.Messages.ClientConfigureRequest.RpcType convert(java.lang.Integer from) { - @SuppressWarnings("deprecation") - grpc.testing.Messages.ClientConfigureRequest.RpcType result = grpc.testing.Messages.ClientConfigureRequest.RpcType.valueOf(from); - return result == null ? grpc.testing.Messages.ClientConfigureRequest.RpcType.UNRECOGNIZED : result; - } - }; - /** - *
-     * The types of RPCs the client sends.
-     * 
- * - * repeated .grpc.testing.ClientConfigureRequest.RpcType types = 1 [json_name = "types"]; - * @return A list containing the types. - */ - @java.lang.Override - public java.util.List getTypesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, grpc.testing.Messages.ClientConfigureRequest.RpcType>(types_, types_converter_); - } - /** - *
-     * The types of RPCs the client sends.
-     * 
- * - * repeated .grpc.testing.ClientConfigureRequest.RpcType types = 1 [json_name = "types"]; - * @return The count of types. - */ - @java.lang.Override - public int getTypesCount() { - return types_.size(); - } - /** - *
-     * The types of RPCs the client sends.
-     * 
- * - * repeated .grpc.testing.ClientConfigureRequest.RpcType types = 1 [json_name = "types"]; - * @param index The index of the element to return. - * @return The types at the given index. - */ - @java.lang.Override - public grpc.testing.Messages.ClientConfigureRequest.RpcType getTypes(int index) { - return types_converter_.convert(types_.get(index)); - } - /** - *
-     * The types of RPCs the client sends.
-     * 
- * - * repeated .grpc.testing.ClientConfigureRequest.RpcType types = 1 [json_name = "types"]; - * @return A list containing the enum numeric values on the wire for types. - */ - @java.lang.Override - public java.util.List - getTypesValueList() { - return types_; - } - /** - *
-     * The types of RPCs the client sends.
-     * 
- * - * repeated .grpc.testing.ClientConfigureRequest.RpcType types = 1 [json_name = "types"]; - * @param index The index of the value to return. - * @return The enum numeric value on the wire of types at the given index. - */ - @java.lang.Override - public int getTypesValue(int index) { - return types_.get(index); - } - private int typesMemoizedSerializedSize; - - public static final int METADATA_FIELD_NUMBER = 2; - private java.util.List metadata_; - /** - *
-     * The collection of custom metadata to be attached to RPCs sent by the client.
-     * 
- * - * repeated .grpc.testing.ClientConfigureRequest.Metadata metadata = 2 [json_name = "metadata"]; - */ - @java.lang.Override - public java.util.List getMetadataList() { - return metadata_; - } - /** - *
-     * The collection of custom metadata to be attached to RPCs sent by the client.
-     * 
- * - * repeated .grpc.testing.ClientConfigureRequest.Metadata metadata = 2 [json_name = "metadata"]; - */ - @java.lang.Override - public java.util.List - getMetadataOrBuilderList() { - return metadata_; - } - /** - *
-     * The collection of custom metadata to be attached to RPCs sent by the client.
-     * 
- * - * repeated .grpc.testing.ClientConfigureRequest.Metadata metadata = 2 [json_name = "metadata"]; - */ - @java.lang.Override - public int getMetadataCount() { - return metadata_.size(); - } - /** - *
-     * The collection of custom metadata to be attached to RPCs sent by the client.
-     * 
- * - * repeated .grpc.testing.ClientConfigureRequest.Metadata metadata = 2 [json_name = "metadata"]; - */ - @java.lang.Override - public grpc.testing.Messages.ClientConfigureRequest.Metadata getMetadata(int index) { - return metadata_.get(index); - } - /** - *
-     * The collection of custom metadata to be attached to RPCs sent by the client.
-     * 
- * - * repeated .grpc.testing.ClientConfigureRequest.Metadata metadata = 2 [json_name = "metadata"]; - */ - @java.lang.Override - public grpc.testing.Messages.ClientConfigureRequest.MetadataOrBuilder getMetadataOrBuilder( - int index) { - return metadata_.get(index); - } - - public static final int TIMEOUT_SEC_FIELD_NUMBER = 3; - private int timeoutSec_; - /** - *
-     * The deadline to use, in seconds, for all RPCs.  If unset or zero, the
-     * client will use the default from the command-line.
-     * 
- * - * int32 timeout_sec = 3 [json_name = "timeoutSec"]; - * @return The timeoutSec. - */ - @java.lang.Override - public int getTimeoutSec() { - return timeoutSec_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (getTypesList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(typesMemoizedSerializedSize); - } - for (int i = 0; i < types_.size(); i++) { - output.writeEnumNoTag(types_.get(i)); - } - for (int i = 0; i < metadata_.size(); i++) { - output.writeMessage(2, metadata_.get(i)); - } - if (timeoutSec_ != 0) { - output.writeInt32(3, timeoutSec_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < types_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(types_.get(i)); - } - size += dataSize; - if (!getTypesList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }typesMemoizedSerializedSize = dataSize; - } - for (int i = 0; i < metadata_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, metadata_.get(i)); - } - if (timeoutSec_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, timeoutSec_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof grpc.testing.Messages.ClientConfigureRequest)) { - return super.equals(obj); - } - grpc.testing.Messages.ClientConfigureRequest other = (grpc.testing.Messages.ClientConfigureRequest) obj; - - if (!types_.equals(other.types_)) return false; - if (!getMetadataList() - .equals(other.getMetadataList())) return false; - if (getTimeoutSec() - != other.getTimeoutSec()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getTypesCount() > 0) { - hash = (37 * hash) + TYPES_FIELD_NUMBER; - hash = (53 * hash) + types_.hashCode(); - } - if (getMetadataCount() > 0) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadataList().hashCode(); - } - hash = (37 * hash) + TIMEOUT_SEC_FIELD_NUMBER; - hash = (53 * hash) + getTimeoutSec(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static grpc.testing.Messages.ClientConfigureRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.ClientConfigureRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.ClientConfigureRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.ClientConfigureRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.ClientConfigureRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.ClientConfigureRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.ClientConfigureRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static grpc.testing.Messages.ClientConfigureRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static grpc.testing.Messages.ClientConfigureRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static grpc.testing.Messages.ClientConfigureRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static grpc.testing.Messages.ClientConfigureRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static grpc.testing.Messages.ClientConfigureRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(grpc.testing.Messages.ClientConfigureRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Configurations for a test client.
-     * 
- * - * Protobuf type {@code grpc.testing.ClientConfigureRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:grpc.testing.ClientConfigureRequest) - grpc.testing.Messages.ClientConfigureRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return grpc.testing.Messages.internal_static_grpc_testing_ClientConfigureRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return grpc.testing.Messages.internal_static_grpc_testing_ClientConfigureRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - grpc.testing.Messages.ClientConfigureRequest.class, grpc.testing.Messages.ClientConfigureRequest.Builder.class); - } - - // Construct using grpc.testing.Messages.ClientConfigureRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getMetadataFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - types_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - if (metadataBuilder_ == null) { - metadata_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - metadataBuilder_.clear(); - } - timeoutSec_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return grpc.testing.Messages.internal_static_grpc_testing_ClientConfigureRequest_descriptor; - } - - @java.lang.Override - public grpc.testing.Messages.ClientConfigureRequest getDefaultInstanceForType() { - return grpc.testing.Messages.ClientConfigureRequest.getDefaultInstance(); - } - - @java.lang.Override - public grpc.testing.Messages.ClientConfigureRequest build() { - grpc.testing.Messages.ClientConfigureRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public grpc.testing.Messages.ClientConfigureRequest buildPartial() { - grpc.testing.Messages.ClientConfigureRequest result = new grpc.testing.Messages.ClientConfigureRequest(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - types_ = java.util.Collections.unmodifiableList(types_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.types_ = types_; - if (metadataBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - metadata_ = java.util.Collections.unmodifiableList(metadata_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } - result.timeoutSec_ = timeoutSec_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof grpc.testing.Messages.ClientConfigureRequest) { - return mergeFrom((grpc.testing.Messages.ClientConfigureRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(grpc.testing.Messages.ClientConfigureRequest other) { - if (other == grpc.testing.Messages.ClientConfigureRequest.getDefaultInstance()) return this; - if (!other.types_.isEmpty()) { - if (types_.isEmpty()) { - types_ = other.types_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTypesIsMutable(); - types_.addAll(other.types_); - } - onChanged(); - } - if (metadataBuilder_ == null) { - if (!other.metadata_.isEmpty()) { - if (metadata_.isEmpty()) { - metadata_ = other.metadata_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureMetadataIsMutable(); - metadata_.addAll(other.metadata_); - } - onChanged(); - } - } else { - if (!other.metadata_.isEmpty()) { - if (metadataBuilder_.isEmpty()) { - metadataBuilder_.dispose(); - metadataBuilder_ = null; - metadata_ = other.metadata_; - bitField0_ = (bitField0_ & ~0x00000002); - metadataBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMetadataFieldBuilder() : null; - } else { - metadataBuilder_.addAllMessages(other.metadata_); - } - } - } - if (other.getTimeoutSec() != 0) { - setTimeoutSec(other.getTimeoutSec()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - grpc.testing.Messages.ClientConfigureRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (grpc.testing.Messages.ClientConfigureRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List types_ = - java.util.Collections.emptyList(); - private void ensureTypesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - types_ = new java.util.ArrayList(types_); - bitField0_ |= 0x00000001; - } - } - /** - *
-       * The types of RPCs the client sends.
-       * 
- * - * repeated .grpc.testing.ClientConfigureRequest.RpcType types = 1 [json_name = "types"]; - * @return A list containing the types. - */ - public java.util.List getTypesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, grpc.testing.Messages.ClientConfigureRequest.RpcType>(types_, types_converter_); - } - /** - *
-       * The types of RPCs the client sends.
-       * 
- * - * repeated .grpc.testing.ClientConfigureRequest.RpcType types = 1 [json_name = "types"]; - * @return The count of types. - */ - public int getTypesCount() { - return types_.size(); - } - /** - *
-       * The types of RPCs the client sends.
-       * 
- * - * repeated .grpc.testing.ClientConfigureRequest.RpcType types = 1 [json_name = "types"]; - * @param index The index of the element to return. - * @return The types at the given index. - */ - public grpc.testing.Messages.ClientConfigureRequest.RpcType getTypes(int index) { - return types_converter_.convert(types_.get(index)); - } - /** - *
-       * The types of RPCs the client sends.
-       * 
- * - * repeated .grpc.testing.ClientConfigureRequest.RpcType types = 1 [json_name = "types"]; - * @param index The index to set the value at. - * @param value The types to set. - * @return This builder for chaining. - */ - public Builder setTypes( - int index, grpc.testing.Messages.ClientConfigureRequest.RpcType value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTypesIsMutable(); - types_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - *
-       * The types of RPCs the client sends.
-       * 
- * - * repeated .grpc.testing.ClientConfigureRequest.RpcType types = 1 [json_name = "types"]; - * @param value The types to add. - * @return This builder for chaining. - */ - public Builder addTypes(grpc.testing.Messages.ClientConfigureRequest.RpcType value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTypesIsMutable(); - types_.add(value.getNumber()); - onChanged(); - return this; - } - /** - *
-       * The types of RPCs the client sends.
-       * 
- * - * repeated .grpc.testing.ClientConfigureRequest.RpcType types = 1 [json_name = "types"]; - * @param values The types to add. - * @return This builder for chaining. - */ - public Builder addAllTypes( - java.lang.Iterable values) { - ensureTypesIsMutable(); - for (grpc.testing.Messages.ClientConfigureRequest.RpcType value : values) { - types_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - *
-       * The types of RPCs the client sends.
-       * 
- * - * repeated .grpc.testing.ClientConfigureRequest.RpcType types = 1 [json_name = "types"]; - * @return This builder for chaining. - */ - public Builder clearTypes() { - types_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * The types of RPCs the client sends.
-       * 
- * - * repeated .grpc.testing.ClientConfigureRequest.RpcType types = 1 [json_name = "types"]; - * @return A list containing the enum numeric values on the wire for types. - */ - public java.util.List - getTypesValueList() { - return java.util.Collections.unmodifiableList(types_); - } - /** - *
-       * The types of RPCs the client sends.
-       * 
- * - * repeated .grpc.testing.ClientConfigureRequest.RpcType types = 1 [json_name = "types"]; - * @param index The index of the value to return. - * @return The enum numeric value on the wire of types at the given index. - */ - public int getTypesValue(int index) { - return types_.get(index); - } - /** - *
-       * The types of RPCs the client sends.
-       * 
- * - * repeated .grpc.testing.ClientConfigureRequest.RpcType types = 1 [json_name = "types"]; - * @param index The index of the value to return. - * @return The enum numeric value on the wire of types at the given index. - * @return This builder for chaining. - */ - public Builder setTypesValue( - int index, int value) { - ensureTypesIsMutable(); - types_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * The types of RPCs the client sends.
-       * 
- * - * repeated .grpc.testing.ClientConfigureRequest.RpcType types = 1 [json_name = "types"]; - * @param value The enum numeric value on the wire for types to add. - * @return This builder for chaining. - */ - public Builder addTypesValue(int value) { - ensureTypesIsMutable(); - types_.add(value); - onChanged(); - return this; - } - /** - *
-       * The types of RPCs the client sends.
-       * 
- * - * repeated .grpc.testing.ClientConfigureRequest.RpcType types = 1 [json_name = "types"]; - * @param values The enum numeric values on the wire for types to add. - * @return This builder for chaining. - */ - public Builder addAllTypesValue( - java.lang.Iterable values) { - ensureTypesIsMutable(); - for (int value : values) { - types_.add(value); - } - onChanged(); - return this; - } - - private java.util.List metadata_ = - java.util.Collections.emptyList(); - private void ensureMetadataIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - metadata_ = new java.util.ArrayList(metadata_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - grpc.testing.Messages.ClientConfigureRequest.Metadata, grpc.testing.Messages.ClientConfigureRequest.Metadata.Builder, grpc.testing.Messages.ClientConfigureRequest.MetadataOrBuilder> metadataBuilder_; - - /** - *
-       * The collection of custom metadata to be attached to RPCs sent by the client.
-       * 
- * - * repeated .grpc.testing.ClientConfigureRequest.Metadata metadata = 2 [json_name = "metadata"]; - */ - public java.util.List getMetadataList() { - if (metadataBuilder_ == null) { - return java.util.Collections.unmodifiableList(metadata_); - } else { - return metadataBuilder_.getMessageList(); - } - } - /** - *
-       * The collection of custom metadata to be attached to RPCs sent by the client.
-       * 
- * - * repeated .grpc.testing.ClientConfigureRequest.Metadata metadata = 2 [json_name = "metadata"]; - */ - public int getMetadataCount() { - if (metadataBuilder_ == null) { - return metadata_.size(); - } else { - return metadataBuilder_.getCount(); - } - } - /** - *
-       * The collection of custom metadata to be attached to RPCs sent by the client.
-       * 
- * - * repeated .grpc.testing.ClientConfigureRequest.Metadata metadata = 2 [json_name = "metadata"]; - */ - public grpc.testing.Messages.ClientConfigureRequest.Metadata getMetadata(int index) { - if (metadataBuilder_ == null) { - return metadata_.get(index); - } else { - return metadataBuilder_.getMessage(index); - } - } - /** - *
-       * The collection of custom metadata to be attached to RPCs sent by the client.
-       * 
- * - * repeated .grpc.testing.ClientConfigureRequest.Metadata metadata = 2 [json_name = "metadata"]; - */ - public Builder setMetadata( - int index, grpc.testing.Messages.ClientConfigureRequest.Metadata value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetadataIsMutable(); - metadata_.set(index, value); - onChanged(); - } else { - metadataBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * The collection of custom metadata to be attached to RPCs sent by the client.
-       * 
- * - * repeated .grpc.testing.ClientConfigureRequest.Metadata metadata = 2 [json_name = "metadata"]; - */ - public Builder setMetadata( - int index, grpc.testing.Messages.ClientConfigureRequest.Metadata.Builder builderForValue) { - if (metadataBuilder_ == null) { - ensureMetadataIsMutable(); - metadata_.set(index, builderForValue.build()); - onChanged(); - } else { - metadataBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * The collection of custom metadata to be attached to RPCs sent by the client.
-       * 
- * - * repeated .grpc.testing.ClientConfigureRequest.Metadata metadata = 2 [json_name = "metadata"]; - */ - public Builder addMetadata(grpc.testing.Messages.ClientConfigureRequest.Metadata value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetadataIsMutable(); - metadata_.add(value); - onChanged(); - } else { - metadataBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * The collection of custom metadata to be attached to RPCs sent by the client.
-       * 
- * - * repeated .grpc.testing.ClientConfigureRequest.Metadata metadata = 2 [json_name = "metadata"]; - */ - public Builder addMetadata( - int index, grpc.testing.Messages.ClientConfigureRequest.Metadata value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetadataIsMutable(); - metadata_.add(index, value); - onChanged(); - } else { - metadataBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * The collection of custom metadata to be attached to RPCs sent by the client.
-       * 
- * - * repeated .grpc.testing.ClientConfigureRequest.Metadata metadata = 2 [json_name = "metadata"]; - */ - public Builder addMetadata( - grpc.testing.Messages.ClientConfigureRequest.Metadata.Builder builderForValue) { - if (metadataBuilder_ == null) { - ensureMetadataIsMutable(); - metadata_.add(builderForValue.build()); - onChanged(); - } else { - metadataBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * The collection of custom metadata to be attached to RPCs sent by the client.
-       * 
- * - * repeated .grpc.testing.ClientConfigureRequest.Metadata metadata = 2 [json_name = "metadata"]; - */ - public Builder addMetadata( - int index, grpc.testing.Messages.ClientConfigureRequest.Metadata.Builder builderForValue) { - if (metadataBuilder_ == null) { - ensureMetadataIsMutable(); - metadata_.add(index, builderForValue.build()); - onChanged(); - } else { - metadataBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * The collection of custom metadata to be attached to RPCs sent by the client.
-       * 
- * - * repeated .grpc.testing.ClientConfigureRequest.Metadata metadata = 2 [json_name = "metadata"]; - */ - public Builder addAllMetadata( - java.lang.Iterable values) { - if (metadataBuilder_ == null) { - ensureMetadataIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, metadata_); - onChanged(); - } else { - metadataBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * The collection of custom metadata to be attached to RPCs sent by the client.
-       * 
- * - * repeated .grpc.testing.ClientConfigureRequest.Metadata metadata = 2 [json_name = "metadata"]; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - metadataBuilder_.clear(); - } - return this; - } - /** - *
-       * The collection of custom metadata to be attached to RPCs sent by the client.
-       * 
- * - * repeated .grpc.testing.ClientConfigureRequest.Metadata metadata = 2 [json_name = "metadata"]; - */ - public Builder removeMetadata(int index) { - if (metadataBuilder_ == null) { - ensureMetadataIsMutable(); - metadata_.remove(index); - onChanged(); - } else { - metadataBuilder_.remove(index); - } - return this; - } - /** - *
-       * The collection of custom metadata to be attached to RPCs sent by the client.
-       * 
- * - * repeated .grpc.testing.ClientConfigureRequest.Metadata metadata = 2 [json_name = "metadata"]; - */ - public grpc.testing.Messages.ClientConfigureRequest.Metadata.Builder getMetadataBuilder( - int index) { - return getMetadataFieldBuilder().getBuilder(index); - } - /** - *
-       * The collection of custom metadata to be attached to RPCs sent by the client.
-       * 
- * - * repeated .grpc.testing.ClientConfigureRequest.Metadata metadata = 2 [json_name = "metadata"]; - */ - public grpc.testing.Messages.ClientConfigureRequest.MetadataOrBuilder getMetadataOrBuilder( - int index) { - if (metadataBuilder_ == null) { - return metadata_.get(index); } else { - return metadataBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * The collection of custom metadata to be attached to RPCs sent by the client.
-       * 
- * - * repeated .grpc.testing.ClientConfigureRequest.Metadata metadata = 2 [json_name = "metadata"]; - */ - public java.util.List - getMetadataOrBuilderList() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(metadata_); - } - } - /** - *
-       * The collection of custom metadata to be attached to RPCs sent by the client.
-       * 
- * - * repeated .grpc.testing.ClientConfigureRequest.Metadata metadata = 2 [json_name = "metadata"]; - */ - public grpc.testing.Messages.ClientConfigureRequest.Metadata.Builder addMetadataBuilder() { - return getMetadataFieldBuilder().addBuilder( - grpc.testing.Messages.ClientConfigureRequest.Metadata.getDefaultInstance()); - } - /** - *
-       * The collection of custom metadata to be attached to RPCs sent by the client.
-       * 
- * - * repeated .grpc.testing.ClientConfigureRequest.Metadata metadata = 2 [json_name = "metadata"]; - */ - public grpc.testing.Messages.ClientConfigureRequest.Metadata.Builder addMetadataBuilder( - int index) { - return getMetadataFieldBuilder().addBuilder( - index, grpc.testing.Messages.ClientConfigureRequest.Metadata.getDefaultInstance()); - } - /** - *
-       * The collection of custom metadata to be attached to RPCs sent by the client.
-       * 
- * - * repeated .grpc.testing.ClientConfigureRequest.Metadata metadata = 2 [json_name = "metadata"]; - */ - public java.util.List - getMetadataBuilderList() { - return getMetadataFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - grpc.testing.Messages.ClientConfigureRequest.Metadata, grpc.testing.Messages.ClientConfigureRequest.Metadata.Builder, grpc.testing.Messages.ClientConfigureRequest.MetadataOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - grpc.testing.Messages.ClientConfigureRequest.Metadata, grpc.testing.Messages.ClientConfigureRequest.Metadata.Builder, grpc.testing.Messages.ClientConfigureRequest.MetadataOrBuilder>( - metadata_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - - private int timeoutSec_ ; - /** - *
-       * The deadline to use, in seconds, for all RPCs.  If unset or zero, the
-       * client will use the default from the command-line.
-       * 
- * - * int32 timeout_sec = 3 [json_name = "timeoutSec"]; - * @return The timeoutSec. - */ - @java.lang.Override - public int getTimeoutSec() { - return timeoutSec_; - } - /** - *
-       * The deadline to use, in seconds, for all RPCs.  If unset or zero, the
-       * client will use the default from the command-line.
-       * 
- * - * int32 timeout_sec = 3 [json_name = "timeoutSec"]; - * @param value The timeoutSec to set. - * @return This builder for chaining. - */ - public Builder setTimeoutSec(int value) { - - timeoutSec_ = value; - onChanged(); - return this; - } - /** - *
-       * The deadline to use, in seconds, for all RPCs.  If unset or zero, the
-       * client will use the default from the command-line.
-       * 
- * - * int32 timeout_sec = 3 [json_name = "timeoutSec"]; - * @return This builder for chaining. - */ - public Builder clearTimeoutSec() { - - timeoutSec_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:grpc.testing.ClientConfigureRequest) - } - - // @@protoc_insertion_point(class_scope:grpc.testing.ClientConfigureRequest) - private static final grpc.testing.Messages.ClientConfigureRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new grpc.testing.Messages.ClientConfigureRequest(); - } - - public static grpc.testing.Messages.ClientConfigureRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClientConfigureRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClientConfigureRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public grpc.testing.Messages.ClientConfigureRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ClientConfigureResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:grpc.testing.ClientConfigureResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Response for updating a test client's configuration.
-   * 
- * - * Protobuf type {@code grpc.testing.ClientConfigureResponse} - */ - public static final class ClientConfigureResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:grpc.testing.ClientConfigureResponse) - ClientConfigureResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ClientConfigureResponse.newBuilder() to construct. - private ClientConfigureResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ClientConfigureResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ClientConfigureResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ClientConfigureResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return grpc.testing.Messages.internal_static_grpc_testing_ClientConfigureResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return grpc.testing.Messages.internal_static_grpc_testing_ClientConfigureResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - grpc.testing.Messages.ClientConfigureResponse.class, grpc.testing.Messages.ClientConfigureResponse.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof grpc.testing.Messages.ClientConfigureResponse)) { - return super.equals(obj); - } - grpc.testing.Messages.ClientConfigureResponse other = (grpc.testing.Messages.ClientConfigureResponse) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static grpc.testing.Messages.ClientConfigureResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.ClientConfigureResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.ClientConfigureResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.ClientConfigureResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.ClientConfigureResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.ClientConfigureResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.ClientConfigureResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static grpc.testing.Messages.ClientConfigureResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static grpc.testing.Messages.ClientConfigureResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static grpc.testing.Messages.ClientConfigureResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static grpc.testing.Messages.ClientConfigureResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static grpc.testing.Messages.ClientConfigureResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(grpc.testing.Messages.ClientConfigureResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Response for updating a test client's configuration.
-     * 
- * - * Protobuf type {@code grpc.testing.ClientConfigureResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:grpc.testing.ClientConfigureResponse) - grpc.testing.Messages.ClientConfigureResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return grpc.testing.Messages.internal_static_grpc_testing_ClientConfigureResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return grpc.testing.Messages.internal_static_grpc_testing_ClientConfigureResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - grpc.testing.Messages.ClientConfigureResponse.class, grpc.testing.Messages.ClientConfigureResponse.Builder.class); - } - - // Construct using grpc.testing.Messages.ClientConfigureResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return grpc.testing.Messages.internal_static_grpc_testing_ClientConfigureResponse_descriptor; - } - - @java.lang.Override - public grpc.testing.Messages.ClientConfigureResponse getDefaultInstanceForType() { - return grpc.testing.Messages.ClientConfigureResponse.getDefaultInstance(); - } - - @java.lang.Override - public grpc.testing.Messages.ClientConfigureResponse build() { - grpc.testing.Messages.ClientConfigureResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public grpc.testing.Messages.ClientConfigureResponse buildPartial() { - grpc.testing.Messages.ClientConfigureResponse result = new grpc.testing.Messages.ClientConfigureResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof grpc.testing.Messages.ClientConfigureResponse) { - return mergeFrom((grpc.testing.Messages.ClientConfigureResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(grpc.testing.Messages.ClientConfigureResponse other) { - if (other == grpc.testing.Messages.ClientConfigureResponse.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - grpc.testing.Messages.ClientConfigureResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (grpc.testing.Messages.ClientConfigureResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:grpc.testing.ClientConfigureResponse) - } - - // @@protoc_insertion_point(class_scope:grpc.testing.ClientConfigureResponse) - private static final grpc.testing.Messages.ClientConfigureResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new grpc.testing.Messages.ClientConfigureResponse(); - } - - public static grpc.testing.Messages.ClientConfigureResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClientConfigureResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClientConfigureResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public grpc.testing.Messages.ClientConfigureResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ErrorDetailOrBuilder extends - // @@protoc_insertion_point(interface_extends:grpc.testing.ErrorDetail) - com.google.protobuf.MessageOrBuilder { - - /** - * string reason = 1 [json_name = "reason"]; - * @return The reason. - */ - java.lang.String getReason(); - /** - * string reason = 1 [json_name = "reason"]; - * @return The bytes for reason. - */ - com.google.protobuf.ByteString - getReasonBytes(); - - /** - * string domain = 2 [json_name = "domain"]; - * @return The domain. - */ - java.lang.String getDomain(); - /** - * string domain = 2 [json_name = "domain"]; - * @return The bytes for domain. - */ - com.google.protobuf.ByteString - getDomainBytes(); - } - /** - * Protobuf type {@code grpc.testing.ErrorDetail} - */ - public static final class ErrorDetail extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:grpc.testing.ErrorDetail) - ErrorDetailOrBuilder { - private static final long serialVersionUID = 0L; - // Use ErrorDetail.newBuilder() to construct. - private ErrorDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ErrorDetail() { - reason_ = ""; - domain_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ErrorDetail(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ErrorDetail( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - reason_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - domain_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return grpc.testing.Messages.internal_static_grpc_testing_ErrorDetail_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return grpc.testing.Messages.internal_static_grpc_testing_ErrorDetail_fieldAccessorTable - .ensureFieldAccessorsInitialized( - grpc.testing.Messages.ErrorDetail.class, grpc.testing.Messages.ErrorDetail.Builder.class); - } - - public static final int REASON_FIELD_NUMBER = 1; - private volatile java.lang.Object reason_; - /** - * string reason = 1 [json_name = "reason"]; - * @return The reason. - */ - @java.lang.Override - public java.lang.String getReason() { - java.lang.Object ref = reason_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - reason_ = s; - return s; - } - } - /** - * string reason = 1 [json_name = "reason"]; - * @return The bytes for reason. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getReasonBytes() { - java.lang.Object ref = reason_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - reason_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DOMAIN_FIELD_NUMBER = 2; - private volatile java.lang.Object domain_; - /** - * string domain = 2 [json_name = "domain"]; - * @return The domain. - */ - @java.lang.Override - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } - } - /** - * string domain = 2 [json_name = "domain"]; - * @return The bytes for domain. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reason_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, reason_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domain_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reason_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, reason_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(domain_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof grpc.testing.Messages.ErrorDetail)) { - return super.equals(obj); - } - grpc.testing.Messages.ErrorDetail other = (grpc.testing.Messages.ErrorDetail) obj; - - if (!getReason() - .equals(other.getReason())) return false; - if (!getDomain() - .equals(other.getDomain())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + REASON_FIELD_NUMBER; - hash = (53 * hash) + getReason().hashCode(); - hash = (37 * hash) + DOMAIN_FIELD_NUMBER; - hash = (53 * hash) + getDomain().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static grpc.testing.Messages.ErrorDetail parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.ErrorDetail parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.ErrorDetail parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.ErrorDetail parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.ErrorDetail parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.ErrorDetail parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.ErrorDetail parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static grpc.testing.Messages.ErrorDetail parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static grpc.testing.Messages.ErrorDetail parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static grpc.testing.Messages.ErrorDetail parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static grpc.testing.Messages.ErrorDetail parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static grpc.testing.Messages.ErrorDetail parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(grpc.testing.Messages.ErrorDetail prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code grpc.testing.ErrorDetail} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:grpc.testing.ErrorDetail) - grpc.testing.Messages.ErrorDetailOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return grpc.testing.Messages.internal_static_grpc_testing_ErrorDetail_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return grpc.testing.Messages.internal_static_grpc_testing_ErrorDetail_fieldAccessorTable - .ensureFieldAccessorsInitialized( - grpc.testing.Messages.ErrorDetail.class, grpc.testing.Messages.ErrorDetail.Builder.class); - } - - // Construct using grpc.testing.Messages.ErrorDetail.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - reason_ = ""; - - domain_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return grpc.testing.Messages.internal_static_grpc_testing_ErrorDetail_descriptor; - } - - @java.lang.Override - public grpc.testing.Messages.ErrorDetail getDefaultInstanceForType() { - return grpc.testing.Messages.ErrorDetail.getDefaultInstance(); - } - - @java.lang.Override - public grpc.testing.Messages.ErrorDetail build() { - grpc.testing.Messages.ErrorDetail result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public grpc.testing.Messages.ErrorDetail buildPartial() { - grpc.testing.Messages.ErrorDetail result = new grpc.testing.Messages.ErrorDetail(this); - result.reason_ = reason_; - result.domain_ = domain_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof grpc.testing.Messages.ErrorDetail) { - return mergeFrom((grpc.testing.Messages.ErrorDetail)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(grpc.testing.Messages.ErrorDetail other) { - if (other == grpc.testing.Messages.ErrorDetail.getDefaultInstance()) return this; - if (!other.getReason().isEmpty()) { - reason_ = other.reason_; - onChanged(); - } - if (!other.getDomain().isEmpty()) { - domain_ = other.domain_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - grpc.testing.Messages.ErrorDetail parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (grpc.testing.Messages.ErrorDetail) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object reason_ = ""; - /** - * string reason = 1 [json_name = "reason"]; - * @return The reason. - */ - public java.lang.String getReason() { - java.lang.Object ref = reason_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - reason_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string reason = 1 [json_name = "reason"]; - * @return The bytes for reason. - */ - public com.google.protobuf.ByteString - getReasonBytes() { - java.lang.Object ref = reason_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - reason_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string reason = 1 [json_name = "reason"]; - * @param value The reason to set. - * @return This builder for chaining. - */ - public Builder setReason( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - reason_ = value; - onChanged(); - return this; - } - /** - * string reason = 1 [json_name = "reason"]; - * @return This builder for chaining. - */ - public Builder clearReason() { - - reason_ = getDefaultInstance().getReason(); - onChanged(); - return this; - } - /** - * string reason = 1 [json_name = "reason"]; - * @param value The bytes for reason to set. - * @return This builder for chaining. - */ - public Builder setReasonBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - reason_ = value; - onChanged(); - return this; - } - - private java.lang.Object domain_ = ""; - /** - * string domain = 2 [json_name = "domain"]; - * @return The domain. - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string domain = 2 [json_name = "domain"]; - * @return The bytes for domain. - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string domain = 2 [json_name = "domain"]; - * @param value The domain to set. - * @return This builder for chaining. - */ - public Builder setDomain( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domain_ = value; - onChanged(); - return this; - } - /** - * string domain = 2 [json_name = "domain"]; - * @return This builder for chaining. - */ - public Builder clearDomain() { - - domain_ = getDefaultInstance().getDomain(); - onChanged(); - return this; - } - /** - * string domain = 2 [json_name = "domain"]; - * @param value The bytes for domain to set. - * @return This builder for chaining. - */ - public Builder setDomainBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domain_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:grpc.testing.ErrorDetail) - } - - // @@protoc_insertion_point(class_scope:grpc.testing.ErrorDetail) - private static final grpc.testing.Messages.ErrorDetail DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new grpc.testing.Messages.ErrorDetail(); - } - - public static grpc.testing.Messages.ErrorDetail getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ErrorDetail parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ErrorDetail(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public grpc.testing.Messages.ErrorDetail getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ErrorStatusOrBuilder extends - // @@protoc_insertion_point(interface_extends:grpc.testing.ErrorStatus) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 code = 1 [json_name = "code"]; - * @return The code. - */ - int getCode(); - - /** - * string message = 2 [json_name = "message"]; - * @return The message. - */ - java.lang.String getMessage(); - /** - * string message = 2 [json_name = "message"]; - * @return The bytes for message. - */ - com.google.protobuf.ByteString - getMessageBytes(); - - /** - * repeated .google.protobuf.Any details = 3 [json_name = "details"]; - */ - java.util.List - getDetailsList(); - /** - * repeated .google.protobuf.Any details = 3 [json_name = "details"]; - */ - com.google.protobuf.Any getDetails(int index); - /** - * repeated .google.protobuf.Any details = 3 [json_name = "details"]; - */ - int getDetailsCount(); - /** - * repeated .google.protobuf.Any details = 3 [json_name = "details"]; - */ - java.util.List - getDetailsOrBuilderList(); - /** - * repeated .google.protobuf.Any details = 3 [json_name = "details"]; - */ - com.google.protobuf.AnyOrBuilder getDetailsOrBuilder( - int index); - } - /** - * Protobuf type {@code grpc.testing.ErrorStatus} - */ - public static final class ErrorStatus extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:grpc.testing.ErrorStatus) - ErrorStatusOrBuilder { - private static final long serialVersionUID = 0L; - // Use ErrorStatus.newBuilder() to construct. - private ErrorStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ErrorStatus() { - message_ = ""; - details_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ErrorStatus(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ErrorStatus( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - code_ = input.readInt32(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - message_ = s; - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - details_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - details_.add( - input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - details_ = java.util.Collections.unmodifiableList(details_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return grpc.testing.Messages.internal_static_grpc_testing_ErrorStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return grpc.testing.Messages.internal_static_grpc_testing_ErrorStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - grpc.testing.Messages.ErrorStatus.class, grpc.testing.Messages.ErrorStatus.Builder.class); - } - - public static final int CODE_FIELD_NUMBER = 1; - private int code_; - /** - * int32 code = 1 [json_name = "code"]; - * @return The code. - */ - @java.lang.Override - public int getCode() { - return code_; - } - - public static final int MESSAGE_FIELD_NUMBER = 2; - private volatile java.lang.Object message_; - /** - * string message = 2 [json_name = "message"]; - * @return The message. - */ - @java.lang.Override - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - message_ = s; - return s; - } - } - /** - * string message = 2 [json_name = "message"]; - * @return The bytes for message. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DETAILS_FIELD_NUMBER = 3; - private java.util.List details_; - /** - * repeated .google.protobuf.Any details = 3 [json_name = "details"]; - */ - @java.lang.Override - public java.util.List getDetailsList() { - return details_; - } - /** - * repeated .google.protobuf.Any details = 3 [json_name = "details"]; - */ - @java.lang.Override - public java.util.List - getDetailsOrBuilderList() { - return details_; - } - /** - * repeated .google.protobuf.Any details = 3 [json_name = "details"]; - */ - @java.lang.Override - public int getDetailsCount() { - return details_.size(); - } - /** - * repeated .google.protobuf.Any details = 3 [json_name = "details"]; - */ - @java.lang.Override - public com.google.protobuf.Any getDetails(int index) { - return details_.get(index); - } - /** - * repeated .google.protobuf.Any details = 3 [json_name = "details"]; - */ - @java.lang.Override - public com.google.protobuf.AnyOrBuilder getDetailsOrBuilder( - int index) { - return details_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (code_ != 0) { - output.writeInt32(1, code_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); - } - for (int i = 0; i < details_.size(); i++) { - output.writeMessage(3, details_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (code_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, code_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); - } - for (int i = 0; i < details_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, details_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof grpc.testing.Messages.ErrorStatus)) { - return super.equals(obj); - } - grpc.testing.Messages.ErrorStatus other = (grpc.testing.Messages.ErrorStatus) obj; - - if (getCode() - != other.getCode()) return false; - if (!getMessage() - .equals(other.getMessage())) return false; - if (!getDetailsList() - .equals(other.getDetailsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CODE_FIELD_NUMBER; - hash = (53 * hash) + getCode(); - hash = (37 * hash) + MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getMessage().hashCode(); - if (getDetailsCount() > 0) { - hash = (37 * hash) + DETAILS_FIELD_NUMBER; - hash = (53 * hash) + getDetailsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static grpc.testing.Messages.ErrorStatus parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.ErrorStatus parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.ErrorStatus parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.ErrorStatus parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.ErrorStatus parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static grpc.testing.Messages.ErrorStatus parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static grpc.testing.Messages.ErrorStatus parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static grpc.testing.Messages.ErrorStatus parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static grpc.testing.Messages.ErrorStatus parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static grpc.testing.Messages.ErrorStatus parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static grpc.testing.Messages.ErrorStatus parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static grpc.testing.Messages.ErrorStatus parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(grpc.testing.Messages.ErrorStatus prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code grpc.testing.ErrorStatus} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:grpc.testing.ErrorStatus) - grpc.testing.Messages.ErrorStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return grpc.testing.Messages.internal_static_grpc_testing_ErrorStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return grpc.testing.Messages.internal_static_grpc_testing_ErrorStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - grpc.testing.Messages.ErrorStatus.class, grpc.testing.Messages.ErrorStatus.Builder.class); - } - - // Construct using grpc.testing.Messages.ErrorStatus.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getDetailsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - code_ = 0; - - message_ = ""; - - if (detailsBuilder_ == null) { - details_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - detailsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return grpc.testing.Messages.internal_static_grpc_testing_ErrorStatus_descriptor; - } - - @java.lang.Override - public grpc.testing.Messages.ErrorStatus getDefaultInstanceForType() { - return grpc.testing.Messages.ErrorStatus.getDefaultInstance(); - } - - @java.lang.Override - public grpc.testing.Messages.ErrorStatus build() { - grpc.testing.Messages.ErrorStatus result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public grpc.testing.Messages.ErrorStatus buildPartial() { - grpc.testing.Messages.ErrorStatus result = new grpc.testing.Messages.ErrorStatus(this); - int from_bitField0_ = bitField0_; - result.code_ = code_; - result.message_ = message_; - if (detailsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - details_ = java.util.Collections.unmodifiableList(details_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.details_ = details_; - } else { - result.details_ = detailsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof grpc.testing.Messages.ErrorStatus) { - return mergeFrom((grpc.testing.Messages.ErrorStatus)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(grpc.testing.Messages.ErrorStatus other) { - if (other == grpc.testing.Messages.ErrorStatus.getDefaultInstance()) return this; - if (other.getCode() != 0) { - setCode(other.getCode()); - } - if (!other.getMessage().isEmpty()) { - message_ = other.message_; - onChanged(); - } - if (detailsBuilder_ == null) { - if (!other.details_.isEmpty()) { - if (details_.isEmpty()) { - details_ = other.details_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDetailsIsMutable(); - details_.addAll(other.details_); - } - onChanged(); - } - } else { - if (!other.details_.isEmpty()) { - if (detailsBuilder_.isEmpty()) { - detailsBuilder_.dispose(); - detailsBuilder_ = null; - details_ = other.details_; - bitField0_ = (bitField0_ & ~0x00000001); - detailsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDetailsFieldBuilder() : null; - } else { - detailsBuilder_.addAllMessages(other.details_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - grpc.testing.Messages.ErrorStatus parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (grpc.testing.Messages.ErrorStatus) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int code_ ; - /** - * int32 code = 1 [json_name = "code"]; - * @return The code. - */ - @java.lang.Override - public int getCode() { - return code_; - } - /** - * int32 code = 1 [json_name = "code"]; - * @param value The code to set. - * @return This builder for chaining. - */ - public Builder setCode(int value) { - - code_ = value; - onChanged(); - return this; - } - /** - * int32 code = 1 [json_name = "code"]; - * @return This builder for chaining. - */ - public Builder clearCode() { - - code_ = 0; - onChanged(); - return this; - } - - private java.lang.Object message_ = ""; - /** - * string message = 2 [json_name = "message"]; - * @return The message. - */ - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - message_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string message = 2 [json_name = "message"]; - * @return The bytes for message. - */ - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string message = 2 [json_name = "message"]; - * @param value The message to set. - * @return This builder for chaining. - */ - public Builder setMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - message_ = value; - onChanged(); - return this; - } - /** - * string message = 2 [json_name = "message"]; - * @return This builder for chaining. - */ - public Builder clearMessage() { - - message_ = getDefaultInstance().getMessage(); - onChanged(); - return this; - } - /** - * string message = 2 [json_name = "message"]; - * @param value The bytes for message to set. - * @return This builder for chaining. - */ - public Builder setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - message_ = value; - onChanged(); - return this; - } - - private java.util.List details_ = - java.util.Collections.emptyList(); - private void ensureDetailsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - details_ = new java.util.ArrayList(details_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> detailsBuilder_; - - /** - * repeated .google.protobuf.Any details = 3 [json_name = "details"]; - */ - public java.util.List getDetailsList() { - if (detailsBuilder_ == null) { - return java.util.Collections.unmodifiableList(details_); - } else { - return detailsBuilder_.getMessageList(); - } - } - /** - * repeated .google.protobuf.Any details = 3 [json_name = "details"]; - */ - public int getDetailsCount() { - if (detailsBuilder_ == null) { - return details_.size(); - } else { - return detailsBuilder_.getCount(); - } - } - /** - * repeated .google.protobuf.Any details = 3 [json_name = "details"]; - */ - public com.google.protobuf.Any getDetails(int index) { - if (detailsBuilder_ == null) { - return details_.get(index); - } else { - return detailsBuilder_.getMessage(index); - } - } - /** - * repeated .google.protobuf.Any details = 3 [json_name = "details"]; - */ - public Builder setDetails( - int index, com.google.protobuf.Any value) { - if (detailsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDetailsIsMutable(); - details_.set(index, value); - onChanged(); - } else { - detailsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .google.protobuf.Any details = 3 [json_name = "details"]; - */ - public Builder setDetails( - int index, com.google.protobuf.Any.Builder builderForValue) { - if (detailsBuilder_ == null) { - ensureDetailsIsMutable(); - details_.set(index, builderForValue.build()); - onChanged(); - } else { - detailsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.Any details = 3 [json_name = "details"]; - */ - public Builder addDetails(com.google.protobuf.Any value) { - if (detailsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDetailsIsMutable(); - details_.add(value); - onChanged(); - } else { - detailsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .google.protobuf.Any details = 3 [json_name = "details"]; - */ - public Builder addDetails( - int index, com.google.protobuf.Any value) { - if (detailsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDetailsIsMutable(); - details_.add(index, value); - onChanged(); - } else { - detailsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .google.protobuf.Any details = 3 [json_name = "details"]; - */ - public Builder addDetails( - com.google.protobuf.Any.Builder builderForValue) { - if (detailsBuilder_ == null) { - ensureDetailsIsMutable(); - details_.add(builderForValue.build()); - onChanged(); - } else { - detailsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.Any details = 3 [json_name = "details"]; - */ - public Builder addDetails( - int index, com.google.protobuf.Any.Builder builderForValue) { - if (detailsBuilder_ == null) { - ensureDetailsIsMutable(); - details_.add(index, builderForValue.build()); - onChanged(); - } else { - detailsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.Any details = 3 [json_name = "details"]; - */ - public Builder addAllDetails( - java.lang.Iterable values) { - if (detailsBuilder_ == null) { - ensureDetailsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, details_); - onChanged(); - } else { - detailsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .google.protobuf.Any details = 3 [json_name = "details"]; - */ - public Builder clearDetails() { - if (detailsBuilder_ == null) { - details_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - detailsBuilder_.clear(); - } - return this; - } - /** - * repeated .google.protobuf.Any details = 3 [json_name = "details"]; - */ - public Builder removeDetails(int index) { - if (detailsBuilder_ == null) { - ensureDetailsIsMutable(); - details_.remove(index); - onChanged(); - } else { - detailsBuilder_.remove(index); - } - return this; - } - /** - * repeated .google.protobuf.Any details = 3 [json_name = "details"]; - */ - public com.google.protobuf.Any.Builder getDetailsBuilder( - int index) { - return getDetailsFieldBuilder().getBuilder(index); - } - /** - * repeated .google.protobuf.Any details = 3 [json_name = "details"]; - */ - public com.google.protobuf.AnyOrBuilder getDetailsOrBuilder( - int index) { - if (detailsBuilder_ == null) { - return details_.get(index); } else { - return detailsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .google.protobuf.Any details = 3 [json_name = "details"]; - */ - public java.util.List - getDetailsOrBuilderList() { - if (detailsBuilder_ != null) { - return detailsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(details_); - } - } - /** - * repeated .google.protobuf.Any details = 3 [json_name = "details"]; - */ - public com.google.protobuf.Any.Builder addDetailsBuilder() { - return getDetailsFieldBuilder().addBuilder( - com.google.protobuf.Any.getDefaultInstance()); - } - /** - * repeated .google.protobuf.Any details = 3 [json_name = "details"]; - */ - public com.google.protobuf.Any.Builder addDetailsBuilder( - int index) { - return getDetailsFieldBuilder().addBuilder( - index, com.google.protobuf.Any.getDefaultInstance()); - } - /** - * repeated .google.protobuf.Any details = 3 [json_name = "details"]; - */ - public java.util.List - getDetailsBuilderList() { - return getDetailsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - getDetailsFieldBuilder() { - if (detailsBuilder_ == null) { - detailsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - details_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - details_ = null; - } - return detailsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:grpc.testing.ErrorStatus) - } - - // @@protoc_insertion_point(class_scope:grpc.testing.ErrorStatus) - private static final grpc.testing.Messages.ErrorStatus DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new grpc.testing.Messages.ErrorStatus(); - } - - public static grpc.testing.Messages.ErrorStatus getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ErrorStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ErrorStatus(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public grpc.testing.Messages.ErrorStatus getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_grpc_testing_BoolValue_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_grpc_testing_BoolValue_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_grpc_testing_Payload_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_grpc_testing_Payload_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_grpc_testing_EchoStatus_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_grpc_testing_EchoStatus_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_grpc_testing_SimpleRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_grpc_testing_SimpleRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_grpc_testing_SimpleResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_grpc_testing_SimpleResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_grpc_testing_StreamingInputCallRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_grpc_testing_StreamingInputCallRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_grpc_testing_StreamingInputCallResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_grpc_testing_StreamingInputCallResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_grpc_testing_ResponseParameters_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_grpc_testing_ResponseParameters_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_grpc_testing_StreamingOutputCallRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_grpc_testing_StreamingOutputCallRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_grpc_testing_StreamingOutputCallResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_grpc_testing_StreamingOutputCallResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_grpc_testing_ReconnectParams_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_grpc_testing_ReconnectParams_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_grpc_testing_ReconnectInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_grpc_testing_ReconnectInfo_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_grpc_testing_LoadBalancerStatsRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_grpc_testing_LoadBalancerStatsRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_grpc_testing_LoadBalancerStatsResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_grpc_testing_LoadBalancerStatsResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_grpc_testing_LoadBalancerStatsResponse_RpcsByPeer_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_grpc_testing_LoadBalancerStatsResponse_RpcsByPeer_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_grpc_testing_LoadBalancerStatsResponse_RpcsByPeer_RpcsByPeerEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_grpc_testing_LoadBalancerStatsResponse_RpcsByPeer_RpcsByPeerEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_grpc_testing_LoadBalancerStatsResponse_RpcsByPeerEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_grpc_testing_LoadBalancerStatsResponse_RpcsByPeerEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_grpc_testing_LoadBalancerStatsResponse_RpcsByMethodEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_grpc_testing_LoadBalancerStatsResponse_RpcsByMethodEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_grpc_testing_LoadBalancerAccumulatedStatsRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_grpc_testing_LoadBalancerAccumulatedStatsRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_NumRpcsStartedByMethodEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_NumRpcsStartedByMethodEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_NumRpcsSucceededByMethodEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_NumRpcsSucceededByMethodEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_NumRpcsFailedByMethodEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_NumRpcsFailedByMethodEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_MethodStats_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_MethodStats_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_MethodStats_ResultEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_MethodStats_ResultEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_StatsPerMethodEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_StatsPerMethodEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_grpc_testing_ClientConfigureRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_grpc_testing_ClientConfigureRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_grpc_testing_ClientConfigureRequest_Metadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_grpc_testing_ClientConfigureRequest_Metadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_grpc_testing_ClientConfigureResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_grpc_testing_ClientConfigureResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_grpc_testing_ErrorDetail_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_grpc_testing_ErrorDetail_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_grpc_testing_ErrorStatus_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_grpc_testing_ErrorStatus_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\033grpc/testing/messages.proto\022\014grpc.test" + - "ing\032\031google/protobuf/any.proto\"!\n\tBoolVa" + - "lue\022\024\n\005value\030\001 \001(\010R\005value\"L\n\007Payload\022-\n\004" + - "type\030\001 \001(\0162\031.grpc.testing.PayloadTypeR\004t" + - "ype\022\022\n\004body\030\002 \001(\014R\004body\":\n\nEchoStatus\022\022\n" + - "\004code\030\001 \001(\005R\004code\022\030\n\007message\030\002 \001(\tR\007mess" + - "age\"\242\004\n\rSimpleRequest\022>\n\rresponse_type\030\001" + - " \001(\0162\031.grpc.testing.PayloadTypeR\014respons" + - "eType\022#\n\rresponse_size\030\002 \001(\005R\014responseSi" + - "ze\022/\n\007payload\030\003 \001(\0132\025.grpc.testing.Paylo" + - "adR\007payload\022#\n\rfill_username\030\004 \001(\010R\014fill" + - "Username\022(\n\020fill_oauth_scope\030\005 \001(\010R\016fill" + - "OauthScope\022H\n\023response_compressed\030\006 \001(\0132" + - "\027.grpc.testing.BoolValueR\022responseCompre" + - "ssed\022A\n\017response_status\030\007 \001(\0132\030.grpc.tes" + - "ting.EchoStatusR\016responseStatus\022D\n\021expec" + - "t_compressed\030\010 \001(\0132\027.grpc.testing.BoolVa" + - "lueR\020expectCompressed\022$\n\016fill_server_id\030" + - "\t \001(\010R\014fillServerId\0223\n\026fill_grpclb_route" + - "_type\030\n \001(\010R\023fillGrpclbRouteType\"\202\002\n\016Sim" + - "pleResponse\022/\n\007payload\030\001 \001(\0132\025.grpc.test" + - "ing.PayloadR\007payload\022\032\n\010username\030\002 \001(\tR\010" + - "username\022\037\n\013oauth_scope\030\003 \001(\tR\noauthScop" + - "e\022\033\n\tserver_id\030\004 \001(\tR\010serverId\022I\n\021grpclb" + - "_route_type\030\005 \001(\0162\035.grpc.testing.GrpclbR" + - "outeTypeR\017grpclbRouteType\022\032\n\010hostname\030\006 " + - "\001(\tR\010hostname\"\222\001\n\031StreamingInputCallRequ" + - "est\022/\n\007payload\030\001 \001(\0132\025.grpc.testing.Payl" + - "oadR\007payload\022D\n\021expect_compressed\030\002 \001(\0132" + - "\027.grpc.testing.BoolValueR\020expectCompress" + - "ed\"T\n\032StreamingInputCallResponse\0226\n\027aggr" + - "egated_payload_size\030\001 \001(\005R\025aggregatedPay" + - "loadSize\"\202\001\n\022ResponseParameters\022\022\n\004size\030" + - "\001 \001(\005R\004size\022\037\n\013interval_us\030\002 \001(\005R\ninterv" + - "alUs\0227\n\ncompressed\030\003 \001(\0132\027.grpc.testing." + - "BoolValueR\ncompressed\"\243\002\n\032StreamingOutpu" + - "tCallRequest\022>\n\rresponse_type\030\001 \001(\0162\031.gr" + - "pc.testing.PayloadTypeR\014responseType\022Q\n\023" + - "response_parameters\030\002 \003(\0132 .grpc.testing" + - ".ResponseParametersR\022responseParameters\022" + - "/\n\007payload\030\003 \001(\0132\025.grpc.testing.PayloadR" + - "\007payload\022A\n\017response_status\030\007 \001(\0132\030.grpc" + - ".testing.EchoStatusR\016responseStatus\"N\n\033S" + - "treamingOutputCallResponse\022/\n\007payload\030\001 " + - "\001(\0132\025.grpc.testing.PayloadR\007payload\"J\n\017R" + - "econnectParams\0227\n\030max_reconnect_backoff_" + - "ms\030\001 \001(\005R\025maxReconnectBackoffMs\"F\n\rRecon" + - "nectInfo\022\026\n\006passed\030\001 \001(\010R\006passed\022\035\n\nback" + - "off_ms\030\002 \003(\005R\tbackoffMs\"V\n\030LoadBalancerS" + - "tatsRequest\022\031\n\010num_rpcs\030\001 \001(\005R\007numRpcs\022\037" + - "\n\013timeout_sec\030\002 \001(\005R\ntimeoutSec\"\342\004\n\031Load" + - "BalancerStatsResponse\022Y\n\014rpcs_by_peer\030\001 " + - "\003(\01327.grpc.testing.LoadBalancerStatsResp" + - "onse.RpcsByPeerEntryR\nrpcsByPeer\022!\n\014num_" + - "failures\030\002 \001(\005R\013numFailures\022_\n\016rpcs_by_m" + - "ethod\030\003 \003(\01329.grpc.testing.LoadBalancerS" + - "tatsResponse.RpcsByMethodEntryR\014rpcsByMe" + - "thod\032\261\001\n\nRpcsByPeer\022d\n\014rpcs_by_peer\030\001 \003(" + - "\0132B.grpc.testing.LoadBalancerStatsRespon" + - "se.RpcsByPeer.RpcsByPeerEntryR\nrpcsByPee" + - "r\032=\n\017RpcsByPeerEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024" + - "\n\005value\030\002 \001(\005R\005value:\0028\001\032=\n\017RpcsByPeerEn" + - "try\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\005R\005va" + - "lue:\0028\001\032s\n\021RpcsByMethodEntry\022\020\n\003key\030\001 \001(" + - "\tR\003key\022H\n\005value\030\002 \001(\01322.grpc.testing.Loa" + - "dBalancerStatsResponse.RpcsByPeerR\005value" + - ":\0028\001\"%\n#LoadBalancerAccumulatedStatsRequ" + - "est\"\206\t\n$LoadBalancerAccumulatedStatsResp" + - "onse\022\216\001\n\032num_rpcs_started_by_method\030\001 \003(" + - "\0132N.grpc.testing.LoadBalancerAccumulated" + - "StatsResponse.NumRpcsStartedByMethodEntr" + - "yB\002\030\001R\026numRpcsStartedByMethod\022\224\001\n\034num_rp" + - "cs_succeeded_by_method\030\002 \003(\0132P.grpc.test" + - "ing.LoadBalancerAccumulatedStatsResponse" + - ".NumRpcsSucceededByMethodEntryB\002\030\001R\030numR" + - "pcsSucceededByMethod\022\213\001\n\031num_rpcs_failed" + - "_by_method\030\003 \003(\0132M.grpc.testing.LoadBala" + - "ncerAccumulatedStatsResponse.NumRpcsFail" + - "edByMethodEntryB\002\030\001R\025numRpcsFailedByMeth" + - "od\022p\n\020stats_per_method\030\004 \003(\0132F.grpc.test" + - "ing.LoadBalancerAccumulatedStatsResponse" + - ".StatsPerMethodEntryR\016statsPerMethod\032I\n\033" + - "NumRpcsStartedByMethodEntry\022\020\n\003key\030\001 \001(\t" + - "R\003key\022\024\n\005value\030\002 \001(\005R\005value:\0028\001\032K\n\035NumRp" + - "csSucceededByMethodEntry\022\020\n\003key\030\001 \001(\tR\003k" + - "ey\022\024\n\005value\030\002 \001(\005R\005value:\0028\001\032H\n\032NumRpcsF" + - "ailedByMethodEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005" + - "value\030\002 \001(\005R\005value:\0028\001\032\317\001\n\013MethodStats\022!" + - "\n\014rpcs_started\030\001 \001(\005R\013rpcsStarted\022b\n\006res" + - "ult\030\002 \003(\0132J.grpc.testing.LoadBalancerAcc" + - "umulatedStatsResponse.MethodStats.Result" + - "EntryR\006result\0329\n\013ResultEntry\022\020\n\003key\030\001 \001(" + - "\005R\003key\022\024\n\005value\030\002 \001(\005R\005value:\0028\001\032\201\001\n\023Sta" + - "tsPerMethodEntry\022\020\n\003key\030\001 \001(\tR\003key\022T\n\005va" + - "lue\030\002 \001(\0132>.grpc.testing.LoadBalancerAcc" + - "umulatedStatsResponse.MethodStatsR\005value" + - ":\0028\001\"\351\002\n\026ClientConfigureRequest\022B\n\005types" + - "\030\001 \003(\0162,.grpc.testing.ClientConfigureReq" + - "uest.RpcTypeR\005types\022I\n\010metadata\030\002 \003(\0132-." + - "grpc.testing.ClientConfigureRequest.Meta" + - "dataR\010metadata\022\037\n\013timeout_sec\030\003 \001(\005R\ntim" + - "eoutSec\032t\n\010Metadata\022@\n\004type\030\001 \001(\0162,.grpc" + - ".testing.ClientConfigureRequest.RpcTypeR" + - "\004type\022\020\n\003key\030\002 \001(\tR\003key\022\024\n\005value\030\003 \001(\tR\005" + - "value\")\n\007RpcType\022\016\n\nEMPTY_CALL\020\000\022\016\n\nUNAR" + - "Y_CALL\020\001\"\031\n\027ClientConfigureResponse\"=\n\013E" + - "rrorDetail\022\026\n\006reason\030\001 \001(\tR\006reason\022\026\n\006do" + - "main\030\002 \001(\tR\006domain\"k\n\013ErrorStatus\022\022\n\004cod" + - "e\030\001 \001(\005R\004code\022\030\n\007message\030\002 \001(\tR\007message\022" + - ".\n\007details\030\003 \003(\0132\024.google.protobuf.AnyR\007" + - "details*\037\n\013PayloadType\022\020\n\014COMPRESSABLE\020\000" + - "*o\n\017GrpclbRouteType\022\035\n\031GRPCLB_ROUTE_TYPE" + - "_UNKNOWN\020\000\022\036\n\032GRPCLB_ROUTE_TYPE_FALLBACK" + - "\020\001\022\035\n\031GRPCLB_ROUTE_TYPE_BACKEND\020\002b\006proto" + - "3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.AnyProto.getDescriptor(), - }); - internal_static_grpc_testing_BoolValue_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_grpc_testing_BoolValue_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_grpc_testing_BoolValue_descriptor, - new java.lang.String[] { "Value", }); - internal_static_grpc_testing_Payload_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_grpc_testing_Payload_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_grpc_testing_Payload_descriptor, - new java.lang.String[] { "Type", "Body", }); - internal_static_grpc_testing_EchoStatus_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_grpc_testing_EchoStatus_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_grpc_testing_EchoStatus_descriptor, - new java.lang.String[] { "Code", "Message", }); - internal_static_grpc_testing_SimpleRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_grpc_testing_SimpleRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_grpc_testing_SimpleRequest_descriptor, - new java.lang.String[] { "ResponseType", "ResponseSize", "Payload", "FillUsername", "FillOauthScope", "ResponseCompressed", "ResponseStatus", "ExpectCompressed", "FillServerId", "FillGrpclbRouteType", }); - internal_static_grpc_testing_SimpleResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_grpc_testing_SimpleResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_grpc_testing_SimpleResponse_descriptor, - new java.lang.String[] { "Payload", "Username", "OauthScope", "ServerId", "GrpclbRouteType", "Hostname", }); - internal_static_grpc_testing_StreamingInputCallRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_grpc_testing_StreamingInputCallRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_grpc_testing_StreamingInputCallRequest_descriptor, - new java.lang.String[] { "Payload", "ExpectCompressed", }); - internal_static_grpc_testing_StreamingInputCallResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_grpc_testing_StreamingInputCallResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_grpc_testing_StreamingInputCallResponse_descriptor, - new java.lang.String[] { "AggregatedPayloadSize", }); - internal_static_grpc_testing_ResponseParameters_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_grpc_testing_ResponseParameters_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_grpc_testing_ResponseParameters_descriptor, - new java.lang.String[] { "Size", "IntervalUs", "Compressed", }); - internal_static_grpc_testing_StreamingOutputCallRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_grpc_testing_StreamingOutputCallRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_grpc_testing_StreamingOutputCallRequest_descriptor, - new java.lang.String[] { "ResponseType", "ResponseParameters", "Payload", "ResponseStatus", }); - internal_static_grpc_testing_StreamingOutputCallResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_grpc_testing_StreamingOutputCallResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_grpc_testing_StreamingOutputCallResponse_descriptor, - new java.lang.String[] { "Payload", }); - internal_static_grpc_testing_ReconnectParams_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_grpc_testing_ReconnectParams_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_grpc_testing_ReconnectParams_descriptor, - new java.lang.String[] { "MaxReconnectBackoffMs", }); - internal_static_grpc_testing_ReconnectInfo_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_grpc_testing_ReconnectInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_grpc_testing_ReconnectInfo_descriptor, - new java.lang.String[] { "Passed", "BackoffMs", }); - internal_static_grpc_testing_LoadBalancerStatsRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_grpc_testing_LoadBalancerStatsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_grpc_testing_LoadBalancerStatsRequest_descriptor, - new java.lang.String[] { "NumRpcs", "TimeoutSec", }); - internal_static_grpc_testing_LoadBalancerStatsResponse_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_grpc_testing_LoadBalancerStatsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_grpc_testing_LoadBalancerStatsResponse_descriptor, - new java.lang.String[] { "RpcsByPeer", "NumFailures", "RpcsByMethod", }); - internal_static_grpc_testing_LoadBalancerStatsResponse_RpcsByPeer_descriptor = - internal_static_grpc_testing_LoadBalancerStatsResponse_descriptor.getNestedTypes().get(0); - internal_static_grpc_testing_LoadBalancerStatsResponse_RpcsByPeer_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_grpc_testing_LoadBalancerStatsResponse_RpcsByPeer_descriptor, - new java.lang.String[] { "RpcsByPeer", }); - internal_static_grpc_testing_LoadBalancerStatsResponse_RpcsByPeer_RpcsByPeerEntry_descriptor = - internal_static_grpc_testing_LoadBalancerStatsResponse_RpcsByPeer_descriptor.getNestedTypes().get(0); - internal_static_grpc_testing_LoadBalancerStatsResponse_RpcsByPeer_RpcsByPeerEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_grpc_testing_LoadBalancerStatsResponse_RpcsByPeer_RpcsByPeerEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_grpc_testing_LoadBalancerStatsResponse_RpcsByPeerEntry_descriptor = - internal_static_grpc_testing_LoadBalancerStatsResponse_descriptor.getNestedTypes().get(1); - internal_static_grpc_testing_LoadBalancerStatsResponse_RpcsByPeerEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_grpc_testing_LoadBalancerStatsResponse_RpcsByPeerEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_grpc_testing_LoadBalancerStatsResponse_RpcsByMethodEntry_descriptor = - internal_static_grpc_testing_LoadBalancerStatsResponse_descriptor.getNestedTypes().get(2); - internal_static_grpc_testing_LoadBalancerStatsResponse_RpcsByMethodEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_grpc_testing_LoadBalancerStatsResponse_RpcsByMethodEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_grpc_testing_LoadBalancerAccumulatedStatsRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_grpc_testing_LoadBalancerAccumulatedStatsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_grpc_testing_LoadBalancerAccumulatedStatsRequest_descriptor, - new java.lang.String[] { }); - internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_descriptor, - new java.lang.String[] { "NumRpcsStartedByMethod", "NumRpcsSucceededByMethod", "NumRpcsFailedByMethod", "StatsPerMethod", }); - internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_NumRpcsStartedByMethodEntry_descriptor = - internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_descriptor.getNestedTypes().get(0); - internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_NumRpcsStartedByMethodEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_NumRpcsStartedByMethodEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_NumRpcsSucceededByMethodEntry_descriptor = - internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_descriptor.getNestedTypes().get(1); - internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_NumRpcsSucceededByMethodEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_NumRpcsSucceededByMethodEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_NumRpcsFailedByMethodEntry_descriptor = - internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_descriptor.getNestedTypes().get(2); - internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_NumRpcsFailedByMethodEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_NumRpcsFailedByMethodEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_MethodStats_descriptor = - internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_descriptor.getNestedTypes().get(3); - internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_MethodStats_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_MethodStats_descriptor, - new java.lang.String[] { "RpcsStarted", "Result", }); - internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_MethodStats_ResultEntry_descriptor = - internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_MethodStats_descriptor.getNestedTypes().get(0); - internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_MethodStats_ResultEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_MethodStats_ResultEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_StatsPerMethodEntry_descriptor = - internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_descriptor.getNestedTypes().get(4); - internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_StatsPerMethodEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_grpc_testing_LoadBalancerAccumulatedStatsResponse_StatsPerMethodEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_grpc_testing_ClientConfigureRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_grpc_testing_ClientConfigureRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_grpc_testing_ClientConfigureRequest_descriptor, - new java.lang.String[] { "Types", "Metadata", "TimeoutSec", }); - internal_static_grpc_testing_ClientConfigureRequest_Metadata_descriptor = - internal_static_grpc_testing_ClientConfigureRequest_descriptor.getNestedTypes().get(0); - internal_static_grpc_testing_ClientConfigureRequest_Metadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_grpc_testing_ClientConfigureRequest_Metadata_descriptor, - new java.lang.String[] { "Type", "Key", "Value", }); - internal_static_grpc_testing_ClientConfigureResponse_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_grpc_testing_ClientConfigureResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_grpc_testing_ClientConfigureResponse_descriptor, - new java.lang.String[] { }); - internal_static_grpc_testing_ErrorDetail_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_grpc_testing_ErrorDetail_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_grpc_testing_ErrorDetail_descriptor, - new java.lang.String[] { "Reason", "Domain", }); - internal_static_grpc_testing_ErrorStatus_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_grpc_testing_ErrorStatus_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_grpc_testing_ErrorStatus_descriptor, - new java.lang.String[] { "Code", "Message", "Details", }); - com.google.protobuf.AnyProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/protoc-gen-connect-kotlin/src/test/java/grpc/testing/ReconnectServiceClient.kt b/protoc-gen-connect-kotlin/src/test/java/grpc/testing/ReconnectServiceClient.kt deleted file mode 100644 index 17f6e1c8..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/grpc/testing/ReconnectServiceClient.kt +++ /dev/null @@ -1,89 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated by connect-kotlin. DO NOT EDIT. -// -// Source: grpc/testing/test.proto -// -package grpc.testing - -import build.buf.connect.Headers -import build.buf.connect.MethodSpec -import build.buf.connect.ProtocolClientInterface -import build.buf.connect.ResponseMessage -import build.buf.connect.http.Cancelable -import kotlin.Unit - -/** - * A service used to control reconnect server. - */ -public class ReconnectServiceClient( - private val client: ProtocolClientInterface, -) : ReconnectServiceClientInterface { - public override suspend fun start(request: Messages.ReconnectParams, headers: Headers): - ResponseMessage = client.unary( - request, - headers, - MethodSpec( - "grpc.testing.ReconnectService/Start", - grpc.testing.Messages.ReconnectParams::class, - grpc.testing.EmptyOuterClass.Empty::class, - ), - ) - - - public override fun start( - request: Messages.ReconnectParams, - headers: Headers, - onResult: (ResponseMessage) -> Unit, - ): Cancelable = client.unary( - request, - headers, - MethodSpec( - "grpc.testing.ReconnectService/Start", - grpc.testing.Messages.ReconnectParams::class, - grpc.testing.EmptyOuterClass.Empty::class, - ), - onResult - ) - - - public override suspend fun stop(request: EmptyOuterClass.Empty, headers: Headers): - ResponseMessage = client.unary( - request, - headers, - MethodSpec( - "grpc.testing.ReconnectService/Stop", - grpc.testing.EmptyOuterClass.Empty::class, - grpc.testing.Messages.ReconnectInfo::class, - ), - ) - - - public override fun stop( - request: EmptyOuterClass.Empty, - headers: Headers, - onResult: (ResponseMessage) -> Unit, - ): Cancelable = client.unary( - request, - headers, - MethodSpec( - "grpc.testing.ReconnectService/Stop", - grpc.testing.EmptyOuterClass.Empty::class, - grpc.testing.Messages.ReconnectInfo::class, - ), - onResult - ) - -} diff --git a/protoc-gen-connect-kotlin/src/test/java/grpc/testing/ReconnectServiceClientInterface.kt b/protoc-gen-connect-kotlin/src/test/java/grpc/testing/ReconnectServiceClientInterface.kt deleted file mode 100644 index 564811b6..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/grpc/testing/ReconnectServiceClientInterface.kt +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated by connect-kotlin. DO NOT EDIT. -// -// Source: grpc/testing/test.proto -// -package grpc.testing - -import build.buf.connect.Headers -import build.buf.connect.ResponseMessage -import build.buf.connect.http.Cancelable -import kotlin.Unit - -/** - * A service used to control reconnect server. - */ -public interface ReconnectServiceClientInterface { - public suspend fun start(request: Messages.ReconnectParams, headers: Headers = emptyMap()): - ResponseMessage - - public fun start( - request: Messages.ReconnectParams, - headers: Headers = emptyMap(), - onResult: (ResponseMessage) -> Unit, - ): Cancelable - - public suspend fun stop(request: EmptyOuterClass.Empty, headers: Headers = emptyMap()): - ResponseMessage - - public fun stop( - request: EmptyOuterClass.Empty, - headers: Headers = emptyMap(), - onResult: (ResponseMessage) -> Unit, - ): Cancelable -} diff --git a/protoc-gen-connect-kotlin/src/test/java/grpc/testing/Test.java b/protoc-gen-connect-kotlin/src/test/java/grpc/testing/Test.java deleted file mode 100644 index 60c6bc95..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/grpc/testing/Test.java +++ /dev/null @@ -1,101 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: grpc/testing/test.proto - -package grpc.testing; - -public final class Test { - private Test() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\027grpc/testing/test.proto\022\014grpc.testing\032" + - "\030grpc/testing/empty.proto\032\033grpc/testing/" + - "messages.proto2\336\007\n\013TestService\0225\n\tEmptyC" + - "all\022\023.grpc.testing.Empty\032\023.grpc.testing." + - "Empty\022F\n\tUnaryCall\022\033.grpc.testing.Simple" + - "Request\032\034.grpc.testing.SimpleResponse\022J\n" + - "\rFailUnaryCall\022\033.grpc.testing.SimpleRequ" + - "est\032\034.grpc.testing.SimpleResponse\022T\n\022Cac" + - "heableUnaryCall\022\033.grpc.testing.SimpleReq" + - "uest\032\034.grpc.testing.SimpleResponse\"\003\220\002\001\022" + - "l\n\023StreamingOutputCall\022(.grpc.testing.St" + - "reamingOutputCallRequest\032).grpc.testing." + - "StreamingOutputCallResponse0\001\022p\n\027FailStr" + - "eamingOutputCall\022(.grpc.testing.Streamin" + - "gOutputCallRequest\032).grpc.testing.Stream" + - "ingOutputCallResponse0\001\022i\n\022StreamingInpu" + - "tCall\022\'.grpc.testing.StreamingInputCallR" + - "equest\032(.grpc.testing.StreamingInputCall" + - "Response(\001\022i\n\016FullDuplexCall\022(.grpc.test" + - "ing.StreamingOutputCallRequest\032).grpc.te" + - "sting.StreamingOutputCallResponse(\0010\001\022i\n" + - "\016HalfDuplexCall\022(.grpc.testing.Streaming" + - "OutputCallRequest\032).grpc.testing.Streami" + - "ngOutputCallResponse(\0010\001\022=\n\021Unimplemente" + - "dCall\022\023.grpc.testing.Empty\032\023.grpc.testin" + - "g.Empty\022N\n UnimplementedStreamingOutputC" + - "all\022\023.grpc.testing.Empty\032\023.grpc.testing." + - "Empty0\0012\245\001\n\024UnimplementedService\022=\n\021Unim" + - "plementedCall\022\023.grpc.testing.Empty\032\023.grp" + - "c.testing.Empty\022N\n UnimplementedStreamin" + - "gOutputCall\022\023.grpc.testing.Empty\032\023.grpc." + - "testing.Empty0\0012\211\001\n\020ReconnectService\022;\n\005" + - "Start\022\035.grpc.testing.ReconnectParams\032\023.g" + - "rpc.testing.Empty\0228\n\004Stop\022\023.grpc.testing" + - ".Empty\032\033.grpc.testing.ReconnectInfo2\206\002\n\030" + - "LoadBalancerStatsService\022c\n\016GetClientSta" + - "ts\022&.grpc.testing.LoadBalancerStatsReque" + - "st\032\'.grpc.testing.LoadBalancerStatsRespo" + - "nse\"\000\022\204\001\n\031GetClientAccumulatedStats\0221.gr" + - "pc.testing.LoadBalancerAccumulatedStatsR" + - "equest\0322.grpc.testing.LoadBalancerAccumu" + - "latedStatsResponse\"\0002\213\001\n\026XdsUpdateHealth" + - "Service\0226\n\nSetServing\022\023.grpc.testing.Emp" + - "ty\032\023.grpc.testing.Empty\0229\n\rSetNotServing" + - "\022\023.grpc.testing.Empty\032\023.grpc.testing.Emp" + - "ty2{\n\037XdsUpdateClientConfigureService\022X\n" + - "\tConfigure\022$.grpc.testing.ClientConfigur" + - "eRequest\032%.grpc.testing.ClientConfigureR" + - "esponseb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - grpc.testing.EmptyOuterClass.getDescriptor(), - grpc.testing.Messages.getDescriptor(), - }); - grpc.testing.EmptyOuterClass.getDescriptor(); - grpc.testing.Messages.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/protoc-gen-connect-kotlin/src/test/java/grpc/testing/TestServiceClient.kt b/protoc-gen-connect-kotlin/src/test/java/grpc/testing/TestServiceClient.kt deleted file mode 100644 index 57b0a879..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/grpc/testing/TestServiceClient.kt +++ /dev/null @@ -1,315 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated by connect-kotlin. DO NOT EDIT. -// -// Source: grpc/testing/test.proto -// -package grpc.testing - -import build.buf.connect.BidirectionalStreamInterface -import build.buf.connect.ClientOnlyStreamInterface -import build.buf.connect.Headers -import build.buf.connect.Idempotency.NO_SIDE_EFFECTS -import build.buf.connect.MethodSpec -import build.buf.connect.ProtocolClientInterface -import build.buf.connect.ResponseMessage -import build.buf.connect.ServerOnlyStreamInterface -import build.buf.connect.http.Cancelable -import kotlin.Unit - -/** - * A simple service to test the various types of RPCs and experiment with - * performance with various types of payload. - */ -public class TestServiceClient( - private val client: ProtocolClientInterface, -) : TestServiceClientInterface { - /** - * One empty request followed by one empty response. - */ - public override suspend fun emptyCall(request: EmptyOuterClass.Empty, headers: Headers): - ResponseMessage = client.unary( - request, - headers, - MethodSpec( - "grpc.testing.TestService/EmptyCall", - grpc.testing.EmptyOuterClass.Empty::class, - grpc.testing.EmptyOuterClass.Empty::class, - ), - ) - - - /** - * One empty request followed by one empty response. - */ - public override fun emptyCall( - request: EmptyOuterClass.Empty, - headers: Headers, - onResult: (ResponseMessage) -> Unit, - ): Cancelable = client.unary( - request, - headers, - MethodSpec( - "grpc.testing.TestService/EmptyCall", - grpc.testing.EmptyOuterClass.Empty::class, - grpc.testing.EmptyOuterClass.Empty::class, - ), - onResult - ) - - - /** - * One request followed by one response. - */ - public override suspend fun unaryCall(request: Messages.SimpleRequest, headers: Headers): - ResponseMessage = client.unary( - request, - headers, - MethodSpec( - "grpc.testing.TestService/UnaryCall", - grpc.testing.Messages.SimpleRequest::class, - grpc.testing.Messages.SimpleResponse::class, - ), - ) - - - /** - * One request followed by one response. - */ - public override fun unaryCall( - request: Messages.SimpleRequest, - headers: Headers, - onResult: (ResponseMessage) -> Unit, - ): Cancelable = client.unary( - request, - headers, - MethodSpec( - "grpc.testing.TestService/UnaryCall", - grpc.testing.Messages.SimpleRequest::class, - grpc.testing.Messages.SimpleResponse::class, - ), - onResult - ) - - - /** - * One request followed by one response. This RPC always fails. - */ - public override suspend fun failUnaryCall(request: Messages.SimpleRequest, headers: Headers): - ResponseMessage = client.unary( - request, - headers, - MethodSpec( - "grpc.testing.TestService/FailUnaryCall", - grpc.testing.Messages.SimpleRequest::class, - grpc.testing.Messages.SimpleResponse::class, - ), - ) - - - /** - * One request followed by one response. This RPC always fails. - */ - public override fun failUnaryCall( - request: Messages.SimpleRequest, - headers: Headers, - onResult: (ResponseMessage) -> Unit, - ): Cancelable = client.unary( - request, - headers, - MethodSpec( - "grpc.testing.TestService/FailUnaryCall", - grpc.testing.Messages.SimpleRequest::class, - grpc.testing.Messages.SimpleResponse::class, - ), - onResult - ) - - - /** - * One request followed by one response. Response has cache control - * headers set such that a caching HTTP proxy (such as GFE) can - * satisfy subsequent requests. - */ - public override suspend fun cacheableUnaryCall(request: Messages.SimpleRequest, headers: Headers): - ResponseMessage = client.unary( - request, - headers, - MethodSpec( - "grpc.testing.TestService/CacheableUnaryCall", - grpc.testing.Messages.SimpleRequest::class, - grpc.testing.Messages.SimpleResponse::class, - NO_SIDE_EFFECTS - ), - ) - - - /** - * One request followed by one response. Response has cache control - * headers set such that a caching HTTP proxy (such as GFE) can - * satisfy subsequent requests. - */ - public override fun cacheableUnaryCall( - request: Messages.SimpleRequest, - headers: Headers, - onResult: (ResponseMessage) -> Unit, - ): Cancelable = client.unary( - request, - headers, - MethodSpec( - "grpc.testing.TestService/CacheableUnaryCall", - grpc.testing.Messages.SimpleRequest::class, - grpc.testing.Messages.SimpleResponse::class, - NO_SIDE_EFFECTS - ), - onResult - ) - - - /** - * One request followed by a sequence of responses (streamed download). - * The server returns the payload with client desired type and sizes. - */ - public override suspend fun streamingOutputCall(headers: Headers): - ServerOnlyStreamInterface - = client.serverStream( - headers, - MethodSpec( - "grpc.testing.TestService/StreamingOutputCall", - grpc.testing.Messages.StreamingOutputCallRequest::class, - grpc.testing.Messages.StreamingOutputCallResponse::class, - ), - ) - - - /** - * One request followed by a sequence of responses (streamed download). - * The server returns the payload with client desired type and sizes. - * This RPC always responds with an error status. - */ - public override suspend fun failStreamingOutputCall(headers: Headers): - ServerOnlyStreamInterface - = client.serverStream( - headers, - MethodSpec( - "grpc.testing.TestService/FailStreamingOutputCall", - grpc.testing.Messages.StreamingOutputCallRequest::class, - grpc.testing.Messages.StreamingOutputCallResponse::class, - ), - ) - - - /** - * A sequence of requests followed by one response (streamed upload). - * The server returns the aggregated size of client payload as the result. - */ - public override suspend fun streamingInputCall(headers: Headers): - ClientOnlyStreamInterface - = client.clientStream( - headers, - MethodSpec( - "grpc.testing.TestService/StreamingInputCall", - grpc.testing.Messages.StreamingInputCallRequest::class, - grpc.testing.Messages.StreamingInputCallResponse::class, - ), - ) - - - /** - * A sequence of requests with each request served by the server immediately. - * As one request could lead to multiple responses, this interface - * demonstrates the idea of full duplexing. - */ - public override suspend fun fullDuplexCall(headers: Headers): - BidirectionalStreamInterface - = client.stream( - headers, - MethodSpec( - "grpc.testing.TestService/FullDuplexCall", - grpc.testing.Messages.StreamingOutputCallRequest::class, - grpc.testing.Messages.StreamingOutputCallResponse::class, - ), - ) - - - /** - * A sequence of requests followed by a sequence of responses. - * The server buffers all the client requests and then serves them in order. A - * stream of responses are returned to the client when the server starts with - * first request. - */ - public override suspend fun halfDuplexCall(headers: Headers): - BidirectionalStreamInterface - = client.stream( - headers, - MethodSpec( - "grpc.testing.TestService/HalfDuplexCall", - grpc.testing.Messages.StreamingOutputCallRequest::class, - grpc.testing.Messages.StreamingOutputCallResponse::class, - ), - ) - - - /** - * The test server will not implement this method. It will be used - * to test the behavior when clients call unimplemented methods. - */ - public override suspend fun unimplementedCall(request: EmptyOuterClass.Empty, headers: Headers): - ResponseMessage = client.unary( - request, - headers, - MethodSpec( - "grpc.testing.TestService/UnimplementedCall", - grpc.testing.EmptyOuterClass.Empty::class, - grpc.testing.EmptyOuterClass.Empty::class, - ), - ) - - - /** - * The test server will not implement this method. It will be used - * to test the behavior when clients call unimplemented methods. - */ - public override fun unimplementedCall( - request: EmptyOuterClass.Empty, - headers: Headers, - onResult: (ResponseMessage) -> Unit, - ): Cancelable = client.unary( - request, - headers, - MethodSpec( - "grpc.testing.TestService/UnimplementedCall", - grpc.testing.EmptyOuterClass.Empty::class, - grpc.testing.EmptyOuterClass.Empty::class, - ), - onResult - ) - - - /** - * The test server will not implement this method. It will be used - * to test the behavior when clients call unimplemented streaming output methods. - */ - public override suspend fun unimplementedStreamingOutputCall(headers: Headers): - ServerOnlyStreamInterface = client.serverStream( - headers, - MethodSpec( - "grpc.testing.TestService/UnimplementedStreamingOutputCall", - grpc.testing.EmptyOuterClass.Empty::class, - grpc.testing.EmptyOuterClass.Empty::class, - ), - ) - -} diff --git a/protoc-gen-connect-kotlin/src/test/java/grpc/testing/TestServiceClientInterface.kt b/protoc-gen-connect-kotlin/src/test/java/grpc/testing/TestServiceClientInterface.kt deleted file mode 100644 index 90da158f..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/grpc/testing/TestServiceClientInterface.kt +++ /dev/null @@ -1,160 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated by connect-kotlin. DO NOT EDIT. -// -// Source: grpc/testing/test.proto -// -package grpc.testing - -import build.buf.connect.BidirectionalStreamInterface -import build.buf.connect.ClientOnlyStreamInterface -import build.buf.connect.Headers -import build.buf.connect.ResponseMessage -import build.buf.connect.ServerOnlyStreamInterface -import build.buf.connect.http.Cancelable -import kotlin.Unit - -/** - * A simple service to test the various types of RPCs and experiment with - * performance with various types of payload. - */ -public interface TestServiceClientInterface { - /** - * One empty request followed by one empty response. - */ - public suspend fun emptyCall(request: EmptyOuterClass.Empty, headers: Headers = emptyMap()): - ResponseMessage - - /** - * One empty request followed by one empty response. - */ - public fun emptyCall( - request: EmptyOuterClass.Empty, - headers: Headers = emptyMap(), - onResult: (ResponseMessage) -> Unit, - ): Cancelable - - /** - * One request followed by one response. - */ - public suspend fun unaryCall(request: Messages.SimpleRequest, headers: Headers = emptyMap()): - ResponseMessage - - /** - * One request followed by one response. - */ - public fun unaryCall( - request: Messages.SimpleRequest, - headers: Headers = emptyMap(), - onResult: (ResponseMessage) -> Unit, - ): Cancelable - - /** - * One request followed by one response. This RPC always fails. - */ - public suspend fun failUnaryCall(request: Messages.SimpleRequest, headers: Headers = emptyMap()): - ResponseMessage - - /** - * One request followed by one response. This RPC always fails. - */ - public fun failUnaryCall( - request: Messages.SimpleRequest, - headers: Headers = emptyMap(), - onResult: (ResponseMessage) -> Unit, - ): Cancelable - - /** - * One request followed by one response. Response has cache control - * headers set such that a caching HTTP proxy (such as GFE) can - * satisfy subsequent requests. - */ - public suspend fun cacheableUnaryCall(request: Messages.SimpleRequest, headers: Headers = - emptyMap()): ResponseMessage - - /** - * One request followed by one response. Response has cache control - * headers set such that a caching HTTP proxy (such as GFE) can - * satisfy subsequent requests. - */ - public fun cacheableUnaryCall( - request: Messages.SimpleRequest, - headers: Headers = emptyMap(), - onResult: (ResponseMessage) -> Unit, - ): Cancelable - - /** - * One request followed by a sequence of responses (streamed download). - * The server returns the payload with client desired type and sizes. - */ - public suspend fun streamingOutputCall(headers: Headers = emptyMap()): - ServerOnlyStreamInterface - - /** - * One request followed by a sequence of responses (streamed download). - * The server returns the payload with client desired type and sizes. - * This RPC always responds with an error status. - */ - public suspend fun failStreamingOutputCall(headers: Headers = emptyMap()): - ServerOnlyStreamInterface - - /** - * A sequence of requests followed by one response (streamed upload). - * The server returns the aggregated size of client payload as the result. - */ - public suspend fun streamingInputCall(headers: Headers = emptyMap()): - ClientOnlyStreamInterface - - /** - * A sequence of requests with each request served by the server immediately. - * As one request could lead to multiple responses, this interface - * demonstrates the idea of full duplexing. - */ - public suspend fun fullDuplexCall(headers: Headers = emptyMap()): - BidirectionalStreamInterface - - /** - * A sequence of requests followed by a sequence of responses. - * The server buffers all the client requests and then serves them in order. A - * stream of responses are returned to the client when the server starts with - * first request. - */ - public suspend fun halfDuplexCall(headers: Headers = emptyMap()): - BidirectionalStreamInterface - - /** - * The test server will not implement this method. It will be used - * to test the behavior when clients call unimplemented methods. - */ - public suspend fun unimplementedCall(request: EmptyOuterClass.Empty, headers: Headers = - emptyMap()): ResponseMessage - - /** - * The test server will not implement this method. It will be used - * to test the behavior when clients call unimplemented methods. - */ - public fun unimplementedCall( - request: EmptyOuterClass.Empty, - headers: Headers = emptyMap(), - onResult: (ResponseMessage) -> Unit, - ): Cancelable - - /** - * The test server will not implement this method. It will be used - * to test the behavior when clients call unimplemented streaming output methods. - */ - public suspend fun unimplementedStreamingOutputCall(headers: Headers = emptyMap()): - ServerOnlyStreamInterface -} diff --git a/protoc-gen-connect-kotlin/src/test/java/grpc/testing/UnimplementedServiceClient.kt b/protoc-gen-connect-kotlin/src/test/java/grpc/testing/UnimplementedServiceClient.kt deleted file mode 100644 index a182a617..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/grpc/testing/UnimplementedServiceClient.kt +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated by connect-kotlin. DO NOT EDIT. -// -// Source: grpc/testing/test.proto -// -package grpc.testing - -import build.buf.connect.Headers -import build.buf.connect.MethodSpec -import build.buf.connect.ProtocolClientInterface -import build.buf.connect.ResponseMessage -import build.buf.connect.ServerOnlyStreamInterface -import build.buf.connect.http.Cancelable -import kotlin.Unit - -/** - * A simple service NOT implemented at servers so clients can test for - * that case. - */ -public class UnimplementedServiceClient( - private val client: ProtocolClientInterface, -) : UnimplementedServiceClientInterface { - /** - * A call that no server should implement - */ - public override suspend fun unimplementedCall(request: EmptyOuterClass.Empty, headers: Headers): - ResponseMessage = client.unary( - request, - headers, - MethodSpec( - "grpc.testing.UnimplementedService/UnimplementedCall", - grpc.testing.EmptyOuterClass.Empty::class, - grpc.testing.EmptyOuterClass.Empty::class, - ), - ) - - - /** - * A call that no server should implement - */ - public override fun unimplementedCall( - request: EmptyOuterClass.Empty, - headers: Headers, - onResult: (ResponseMessage) -> Unit, - ): Cancelable = client.unary( - request, - headers, - MethodSpec( - "grpc.testing.UnimplementedService/UnimplementedCall", - grpc.testing.EmptyOuterClass.Empty::class, - grpc.testing.EmptyOuterClass.Empty::class, - ), - onResult - ) - - - /** - * A call that no server should implement - */ - public override suspend fun unimplementedStreamingOutputCall(headers: Headers): - ServerOnlyStreamInterface = client.serverStream( - headers, - MethodSpec( - "grpc.testing.UnimplementedService/UnimplementedStreamingOutputCall", - grpc.testing.EmptyOuterClass.Empty::class, - grpc.testing.EmptyOuterClass.Empty::class, - ), - ) - -} diff --git a/protoc-gen-connect-kotlin/src/test/java/grpc/testing/UnimplementedServiceClientInterface.kt b/protoc-gen-connect-kotlin/src/test/java/grpc/testing/UnimplementedServiceClientInterface.kt deleted file mode 100644 index 1fe379c9..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/grpc/testing/UnimplementedServiceClientInterface.kt +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated by connect-kotlin. DO NOT EDIT. -// -// Source: grpc/testing/test.proto -// -package grpc.testing - -import build.buf.connect.Headers -import build.buf.connect.ResponseMessage -import build.buf.connect.ServerOnlyStreamInterface -import build.buf.connect.http.Cancelable -import kotlin.Unit - -/** - * A simple service NOT implemented at servers so clients can test for - * that case. - */ -public interface UnimplementedServiceClientInterface { - /** - * A call that no server should implement - */ - public suspend fun unimplementedCall(request: EmptyOuterClass.Empty, headers: Headers = - emptyMap()): ResponseMessage - - /** - * A call that no server should implement - */ - public fun unimplementedCall( - request: EmptyOuterClass.Empty, - headers: Headers = emptyMap(), - onResult: (ResponseMessage) -> Unit, - ): Cancelable - - /** - * A call that no server should implement - */ - public suspend fun unimplementedStreamingOutputCall(headers: Headers = emptyMap()): - ServerOnlyStreamInterface -} diff --git a/protoc-gen-connect-kotlin/src/test/java/grpc/testing/XdsUpdateClientConfigureServiceClient.kt b/protoc-gen-connect-kotlin/src/test/java/grpc/testing/XdsUpdateClientConfigureServiceClient.kt deleted file mode 100644 index 3b75df21..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/grpc/testing/XdsUpdateClientConfigureServiceClient.kt +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated by connect-kotlin. DO NOT EDIT. -// -// Source: grpc/testing/test.proto -// -package grpc.testing - -import build.buf.connect.Headers -import build.buf.connect.MethodSpec -import build.buf.connect.ProtocolClientInterface -import build.buf.connect.ResponseMessage -import build.buf.connect.http.Cancelable -import kotlin.Unit - -/** - * A service to dynamically update the configuration of an xDS test client. - */ -public class XdsUpdateClientConfigureServiceClient( - private val client: ProtocolClientInterface, -) : XdsUpdateClientConfigureServiceClientInterface { - /** - * Update the tes client's configuration. - */ - public override suspend fun configure(request: Messages.ClientConfigureRequest, headers: Headers): - ResponseMessage = client.unary( - request, - headers, - MethodSpec( - "grpc.testing.XdsUpdateClientConfigureService/Configure", - grpc.testing.Messages.ClientConfigureRequest::class, - grpc.testing.Messages.ClientConfigureResponse::class, - ), - ) - - - /** - * Update the tes client's configuration. - */ - public override fun configure( - request: Messages.ClientConfigureRequest, - headers: Headers, - onResult: (ResponseMessage) -> Unit, - ): Cancelable = client.unary( - request, - headers, - MethodSpec( - "grpc.testing.XdsUpdateClientConfigureService/Configure", - grpc.testing.Messages.ClientConfigureRequest::class, - grpc.testing.Messages.ClientConfigureResponse::class, - ), - onResult - ) - -} diff --git a/protoc-gen-connect-kotlin/src/test/java/grpc/testing/XdsUpdateClientConfigureServiceClientInterface.kt b/protoc-gen-connect-kotlin/src/test/java/grpc/testing/XdsUpdateClientConfigureServiceClientInterface.kt deleted file mode 100644 index a2a8ab8c..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/grpc/testing/XdsUpdateClientConfigureServiceClientInterface.kt +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated by connect-kotlin. DO NOT EDIT. -// -// Source: grpc/testing/test.proto -// -package grpc.testing - -import build.buf.connect.Headers -import build.buf.connect.ResponseMessage -import build.buf.connect.http.Cancelable -import kotlin.Unit - -/** - * A service to dynamically update the configuration of an xDS test client. - */ -public interface XdsUpdateClientConfigureServiceClientInterface { - /** - * Update the tes client's configuration. - */ - public suspend fun configure(request: Messages.ClientConfigureRequest, headers: Headers = - emptyMap()): ResponseMessage - - /** - * Update the tes client's configuration. - */ - public fun configure( - request: Messages.ClientConfigureRequest, - headers: Headers = emptyMap(), - onResult: (ResponseMessage) -> Unit, - ): Cancelable -} diff --git a/protoc-gen-connect-kotlin/src/test/java/grpc/testing/XdsUpdateHealthServiceClient.kt b/protoc-gen-connect-kotlin/src/test/java/grpc/testing/XdsUpdateHealthServiceClient.kt deleted file mode 100644 index fd532c80..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/grpc/testing/XdsUpdateHealthServiceClient.kt +++ /dev/null @@ -1,89 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated by connect-kotlin. DO NOT EDIT. -// -// Source: grpc/testing/test.proto -// -package grpc.testing - -import build.buf.connect.Headers -import build.buf.connect.MethodSpec -import build.buf.connect.ProtocolClientInterface -import build.buf.connect.ResponseMessage -import build.buf.connect.http.Cancelable -import kotlin.Unit - -/** - * A service to remotely control health status of an xDS test server. - */ -public class XdsUpdateHealthServiceClient( - private val client: ProtocolClientInterface, -) : XdsUpdateHealthServiceClientInterface { - public override suspend fun setServing(request: EmptyOuterClass.Empty, headers: Headers): - ResponseMessage = client.unary( - request, - headers, - MethodSpec( - "grpc.testing.XdsUpdateHealthService/SetServing", - grpc.testing.EmptyOuterClass.Empty::class, - grpc.testing.EmptyOuterClass.Empty::class, - ), - ) - - - public override fun setServing( - request: EmptyOuterClass.Empty, - headers: Headers, - onResult: (ResponseMessage) -> Unit, - ): Cancelable = client.unary( - request, - headers, - MethodSpec( - "grpc.testing.XdsUpdateHealthService/SetServing", - grpc.testing.EmptyOuterClass.Empty::class, - grpc.testing.EmptyOuterClass.Empty::class, - ), - onResult - ) - - - public override suspend fun setNotServing(request: EmptyOuterClass.Empty, headers: Headers): - ResponseMessage = client.unary( - request, - headers, - MethodSpec( - "grpc.testing.XdsUpdateHealthService/SetNotServing", - grpc.testing.EmptyOuterClass.Empty::class, - grpc.testing.EmptyOuterClass.Empty::class, - ), - ) - - - public override fun setNotServing( - request: EmptyOuterClass.Empty, - headers: Headers, - onResult: (ResponseMessage) -> Unit, - ): Cancelable = client.unary( - request, - headers, - MethodSpec( - "grpc.testing.XdsUpdateHealthService/SetNotServing", - grpc.testing.EmptyOuterClass.Empty::class, - grpc.testing.EmptyOuterClass.Empty::class, - ), - onResult - ) - -} diff --git a/protoc-gen-connect-kotlin/src/test/java/grpc/testing/XdsUpdateHealthServiceClientInterface.kt b/protoc-gen-connect-kotlin/src/test/java/grpc/testing/XdsUpdateHealthServiceClientInterface.kt deleted file mode 100644 index 49e74ec0..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/grpc/testing/XdsUpdateHealthServiceClientInterface.kt +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated by connect-kotlin. DO NOT EDIT. -// -// Source: grpc/testing/test.proto -// -package grpc.testing - -import build.buf.connect.Headers -import build.buf.connect.ResponseMessage -import build.buf.connect.http.Cancelable -import kotlin.Unit - -/** - * A service to remotely control health status of an xDS test server. - */ -public interface XdsUpdateHealthServiceClientInterface { - public suspend fun setServing(request: EmptyOuterClass.Empty, headers: Headers = emptyMap()): - ResponseMessage - - public fun setServing( - request: EmptyOuterClass.Empty, - headers: Headers = emptyMap(), - onResult: (ResponseMessage) -> Unit, - ): Cancelable - - public suspend fun setNotServing(request: EmptyOuterClass.Empty, headers: Headers = emptyMap()): - ResponseMessage - - public fun setNotServing( - request: EmptyOuterClass.Empty, - headers: Headers = emptyMap(), - onResult: (ResponseMessage) -> Unit, - ): Cancelable -} diff --git a/protoc-gen-connect-kotlin/src/test/java/server/v1/Server.java b/protoc-gen-connect-kotlin/src/test/java/server/v1/Server.java deleted file mode 100644 index d0379f56..00000000 --- a/protoc-gen-connect-kotlin/src/test/java/server/v1/Server.java +++ /dev/null @@ -1,2774 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: server/v1/server.proto - -package server.v1; - -public final class Server { - private Server() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * Protobuf enum {@code server.v1.Protocol} - */ - public enum Protocol - implements com.google.protobuf.ProtocolMessageEnum { - /** - * PROTOCOL_UNSPECIFIED = 0; - */ - PROTOCOL_UNSPECIFIED(0), - /** - * PROTOCOL_GRPC = 1; - */ - PROTOCOL_GRPC(1), - /** - * PROTOCOL_GRPC_WEB = 2; - */ - PROTOCOL_GRPC_WEB(2), - UNRECOGNIZED(-1), - ; - - /** - * PROTOCOL_UNSPECIFIED = 0; - */ - public static final int PROTOCOL_UNSPECIFIED_VALUE = 0; - /** - * PROTOCOL_GRPC = 1; - */ - public static final int PROTOCOL_GRPC_VALUE = 1; - /** - * PROTOCOL_GRPC_WEB = 2; - */ - public static final int PROTOCOL_GRPC_WEB_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Protocol valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Protocol forNumber(int value) { - switch (value) { - case 0: return PROTOCOL_UNSPECIFIED; - case 1: return PROTOCOL_GRPC; - case 2: return PROTOCOL_GRPC_WEB; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Protocol> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Protocol findValueByNumber(int number) { - return Protocol.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return server.v1.Server.getDescriptor().getEnumTypes().get(0); - } - - private static final Protocol[] VALUES = values(); - - public static Protocol valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Protocol(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:server.v1.Protocol) - } - - public interface ServerMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:server.v1.ServerMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - * string host = 1 [json_name = "host"]; - * @return The host. - */ - java.lang.String getHost(); - /** - * string host = 1 [json_name = "host"]; - * @return The bytes for host. - */ - com.google.protobuf.ByteString - getHostBytes(); - - /** - * repeated .server.v1.ProtocolSupport protocols = 2 [json_name = "protocols"]; - */ - java.util.List - getProtocolsList(); - /** - * repeated .server.v1.ProtocolSupport protocols = 2 [json_name = "protocols"]; - */ - server.v1.Server.ProtocolSupport getProtocols(int index); - /** - * repeated .server.v1.ProtocolSupport protocols = 2 [json_name = "protocols"]; - */ - int getProtocolsCount(); - /** - * repeated .server.v1.ProtocolSupport protocols = 2 [json_name = "protocols"]; - */ - java.util.List - getProtocolsOrBuilderList(); - /** - * repeated .server.v1.ProtocolSupport protocols = 2 [json_name = "protocols"]; - */ - server.v1.Server.ProtocolSupportOrBuilder getProtocolsOrBuilder( - int index); - } - /** - *
-   * ServerMetadata is the metadata returned from the server started by the server binary.
-   * 
- * - * Protobuf type {@code server.v1.ServerMetadata} - */ - public static final class ServerMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:server.v1.ServerMetadata) - ServerMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use ServerMetadata.newBuilder() to construct. - private ServerMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ServerMetadata() { - host_ = ""; - protocols_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ServerMetadata(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ServerMetadata( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - host_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - protocols_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - protocols_.add( - input.readMessage(server.v1.Server.ProtocolSupport.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - protocols_ = java.util.Collections.unmodifiableList(protocols_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return server.v1.Server.internal_static_server_v1_ServerMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return server.v1.Server.internal_static_server_v1_ServerMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - server.v1.Server.ServerMetadata.class, server.v1.Server.ServerMetadata.Builder.class); - } - - public static final int HOST_FIELD_NUMBER = 1; - private volatile java.lang.Object host_; - /** - * string host = 1 [json_name = "host"]; - * @return The host. - */ - @java.lang.Override - public java.lang.String getHost() { - java.lang.Object ref = host_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - host_ = s; - return s; - } - } - /** - * string host = 1 [json_name = "host"]; - * @return The bytes for host. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getHostBytes() { - java.lang.Object ref = host_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - host_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PROTOCOLS_FIELD_NUMBER = 2; - private java.util.List protocols_; - /** - * repeated .server.v1.ProtocolSupport protocols = 2 [json_name = "protocols"]; - */ - @java.lang.Override - public java.util.List getProtocolsList() { - return protocols_; - } - /** - * repeated .server.v1.ProtocolSupport protocols = 2 [json_name = "protocols"]; - */ - @java.lang.Override - public java.util.List - getProtocolsOrBuilderList() { - return protocols_; - } - /** - * repeated .server.v1.ProtocolSupport protocols = 2 [json_name = "protocols"]; - */ - @java.lang.Override - public int getProtocolsCount() { - return protocols_.size(); - } - /** - * repeated .server.v1.ProtocolSupport protocols = 2 [json_name = "protocols"]; - */ - @java.lang.Override - public server.v1.Server.ProtocolSupport getProtocols(int index) { - return protocols_.get(index); - } - /** - * repeated .server.v1.ProtocolSupport protocols = 2 [json_name = "protocols"]; - */ - @java.lang.Override - public server.v1.Server.ProtocolSupportOrBuilder getProtocolsOrBuilder( - int index) { - return protocols_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, host_); - } - for (int i = 0; i < protocols_.size(); i++) { - output.writeMessage(2, protocols_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, host_); - } - for (int i = 0; i < protocols_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, protocols_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof server.v1.Server.ServerMetadata)) { - return super.equals(obj); - } - server.v1.Server.ServerMetadata other = (server.v1.Server.ServerMetadata) obj; - - if (!getHost() - .equals(other.getHost())) return false; - if (!getProtocolsList() - .equals(other.getProtocolsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + HOST_FIELD_NUMBER; - hash = (53 * hash) + getHost().hashCode(); - if (getProtocolsCount() > 0) { - hash = (37 * hash) + PROTOCOLS_FIELD_NUMBER; - hash = (53 * hash) + getProtocolsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static server.v1.Server.ServerMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static server.v1.Server.ServerMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static server.v1.Server.ServerMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static server.v1.Server.ServerMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static server.v1.Server.ServerMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static server.v1.Server.ServerMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static server.v1.Server.ServerMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static server.v1.Server.ServerMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static server.v1.Server.ServerMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static server.v1.Server.ServerMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static server.v1.Server.ServerMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static server.v1.Server.ServerMetadata parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(server.v1.Server.ServerMetadata prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * ServerMetadata is the metadata returned from the server started by the server binary.
-     * 
- * - * Protobuf type {@code server.v1.ServerMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:server.v1.ServerMetadata) - server.v1.Server.ServerMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return server.v1.Server.internal_static_server_v1_ServerMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return server.v1.Server.internal_static_server_v1_ServerMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - server.v1.Server.ServerMetadata.class, server.v1.Server.ServerMetadata.Builder.class); - } - - // Construct using server.v1.Server.ServerMetadata.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getProtocolsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - host_ = ""; - - if (protocolsBuilder_ == null) { - protocols_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - protocolsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return server.v1.Server.internal_static_server_v1_ServerMetadata_descriptor; - } - - @java.lang.Override - public server.v1.Server.ServerMetadata getDefaultInstanceForType() { - return server.v1.Server.ServerMetadata.getDefaultInstance(); - } - - @java.lang.Override - public server.v1.Server.ServerMetadata build() { - server.v1.Server.ServerMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public server.v1.Server.ServerMetadata buildPartial() { - server.v1.Server.ServerMetadata result = new server.v1.Server.ServerMetadata(this); - int from_bitField0_ = bitField0_; - result.host_ = host_; - if (protocolsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - protocols_ = java.util.Collections.unmodifiableList(protocols_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.protocols_ = protocols_; - } else { - result.protocols_ = protocolsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof server.v1.Server.ServerMetadata) { - return mergeFrom((server.v1.Server.ServerMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(server.v1.Server.ServerMetadata other) { - if (other == server.v1.Server.ServerMetadata.getDefaultInstance()) return this; - if (!other.getHost().isEmpty()) { - host_ = other.host_; - onChanged(); - } - if (protocolsBuilder_ == null) { - if (!other.protocols_.isEmpty()) { - if (protocols_.isEmpty()) { - protocols_ = other.protocols_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureProtocolsIsMutable(); - protocols_.addAll(other.protocols_); - } - onChanged(); - } - } else { - if (!other.protocols_.isEmpty()) { - if (protocolsBuilder_.isEmpty()) { - protocolsBuilder_.dispose(); - protocolsBuilder_ = null; - protocols_ = other.protocols_; - bitField0_ = (bitField0_ & ~0x00000001); - protocolsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getProtocolsFieldBuilder() : null; - } else { - protocolsBuilder_.addAllMessages(other.protocols_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - server.v1.Server.ServerMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (server.v1.Server.ServerMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object host_ = ""; - /** - * string host = 1 [json_name = "host"]; - * @return The host. - */ - public java.lang.String getHost() { - java.lang.Object ref = host_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - host_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string host = 1 [json_name = "host"]; - * @return The bytes for host. - */ - public com.google.protobuf.ByteString - getHostBytes() { - java.lang.Object ref = host_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - host_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string host = 1 [json_name = "host"]; - * @param value The host to set. - * @return This builder for chaining. - */ - public Builder setHost( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - host_ = value; - onChanged(); - return this; - } - /** - * string host = 1 [json_name = "host"]; - * @return This builder for chaining. - */ - public Builder clearHost() { - - host_ = getDefaultInstance().getHost(); - onChanged(); - return this; - } - /** - * string host = 1 [json_name = "host"]; - * @param value The bytes for host to set. - * @return This builder for chaining. - */ - public Builder setHostBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - host_ = value; - onChanged(); - return this; - } - - private java.util.List protocols_ = - java.util.Collections.emptyList(); - private void ensureProtocolsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - protocols_ = new java.util.ArrayList(protocols_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - server.v1.Server.ProtocolSupport, server.v1.Server.ProtocolSupport.Builder, server.v1.Server.ProtocolSupportOrBuilder> protocolsBuilder_; - - /** - * repeated .server.v1.ProtocolSupport protocols = 2 [json_name = "protocols"]; - */ - public java.util.List getProtocolsList() { - if (protocolsBuilder_ == null) { - return java.util.Collections.unmodifiableList(protocols_); - } else { - return protocolsBuilder_.getMessageList(); - } - } - /** - * repeated .server.v1.ProtocolSupport protocols = 2 [json_name = "protocols"]; - */ - public int getProtocolsCount() { - if (protocolsBuilder_ == null) { - return protocols_.size(); - } else { - return protocolsBuilder_.getCount(); - } - } - /** - * repeated .server.v1.ProtocolSupport protocols = 2 [json_name = "protocols"]; - */ - public server.v1.Server.ProtocolSupport getProtocols(int index) { - if (protocolsBuilder_ == null) { - return protocols_.get(index); - } else { - return protocolsBuilder_.getMessage(index); - } - } - /** - * repeated .server.v1.ProtocolSupport protocols = 2 [json_name = "protocols"]; - */ - public Builder setProtocols( - int index, server.v1.Server.ProtocolSupport value) { - if (protocolsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureProtocolsIsMutable(); - protocols_.set(index, value); - onChanged(); - } else { - protocolsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .server.v1.ProtocolSupport protocols = 2 [json_name = "protocols"]; - */ - public Builder setProtocols( - int index, server.v1.Server.ProtocolSupport.Builder builderForValue) { - if (protocolsBuilder_ == null) { - ensureProtocolsIsMutable(); - protocols_.set(index, builderForValue.build()); - onChanged(); - } else { - protocolsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .server.v1.ProtocolSupport protocols = 2 [json_name = "protocols"]; - */ - public Builder addProtocols(server.v1.Server.ProtocolSupport value) { - if (protocolsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureProtocolsIsMutable(); - protocols_.add(value); - onChanged(); - } else { - protocolsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .server.v1.ProtocolSupport protocols = 2 [json_name = "protocols"]; - */ - public Builder addProtocols( - int index, server.v1.Server.ProtocolSupport value) { - if (protocolsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureProtocolsIsMutable(); - protocols_.add(index, value); - onChanged(); - } else { - protocolsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .server.v1.ProtocolSupport protocols = 2 [json_name = "protocols"]; - */ - public Builder addProtocols( - server.v1.Server.ProtocolSupport.Builder builderForValue) { - if (protocolsBuilder_ == null) { - ensureProtocolsIsMutable(); - protocols_.add(builderForValue.build()); - onChanged(); - } else { - protocolsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .server.v1.ProtocolSupport protocols = 2 [json_name = "protocols"]; - */ - public Builder addProtocols( - int index, server.v1.Server.ProtocolSupport.Builder builderForValue) { - if (protocolsBuilder_ == null) { - ensureProtocolsIsMutable(); - protocols_.add(index, builderForValue.build()); - onChanged(); - } else { - protocolsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .server.v1.ProtocolSupport protocols = 2 [json_name = "protocols"]; - */ - public Builder addAllProtocols( - java.lang.Iterable values) { - if (protocolsBuilder_ == null) { - ensureProtocolsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, protocols_); - onChanged(); - } else { - protocolsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .server.v1.ProtocolSupport protocols = 2 [json_name = "protocols"]; - */ - public Builder clearProtocols() { - if (protocolsBuilder_ == null) { - protocols_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - protocolsBuilder_.clear(); - } - return this; - } - /** - * repeated .server.v1.ProtocolSupport protocols = 2 [json_name = "protocols"]; - */ - public Builder removeProtocols(int index) { - if (protocolsBuilder_ == null) { - ensureProtocolsIsMutable(); - protocols_.remove(index); - onChanged(); - } else { - protocolsBuilder_.remove(index); - } - return this; - } - /** - * repeated .server.v1.ProtocolSupport protocols = 2 [json_name = "protocols"]; - */ - public server.v1.Server.ProtocolSupport.Builder getProtocolsBuilder( - int index) { - return getProtocolsFieldBuilder().getBuilder(index); - } - /** - * repeated .server.v1.ProtocolSupport protocols = 2 [json_name = "protocols"]; - */ - public server.v1.Server.ProtocolSupportOrBuilder getProtocolsOrBuilder( - int index) { - if (protocolsBuilder_ == null) { - return protocols_.get(index); } else { - return protocolsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .server.v1.ProtocolSupport protocols = 2 [json_name = "protocols"]; - */ - public java.util.List - getProtocolsOrBuilderList() { - if (protocolsBuilder_ != null) { - return protocolsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(protocols_); - } - } - /** - * repeated .server.v1.ProtocolSupport protocols = 2 [json_name = "protocols"]; - */ - public server.v1.Server.ProtocolSupport.Builder addProtocolsBuilder() { - return getProtocolsFieldBuilder().addBuilder( - server.v1.Server.ProtocolSupport.getDefaultInstance()); - } - /** - * repeated .server.v1.ProtocolSupport protocols = 2 [json_name = "protocols"]; - */ - public server.v1.Server.ProtocolSupport.Builder addProtocolsBuilder( - int index) { - return getProtocolsFieldBuilder().addBuilder( - index, server.v1.Server.ProtocolSupport.getDefaultInstance()); - } - /** - * repeated .server.v1.ProtocolSupport protocols = 2 [json_name = "protocols"]; - */ - public java.util.List - getProtocolsBuilderList() { - return getProtocolsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - server.v1.Server.ProtocolSupport, server.v1.Server.ProtocolSupport.Builder, server.v1.Server.ProtocolSupportOrBuilder> - getProtocolsFieldBuilder() { - if (protocolsBuilder_ == null) { - protocolsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - server.v1.Server.ProtocolSupport, server.v1.Server.ProtocolSupport.Builder, server.v1.Server.ProtocolSupportOrBuilder>( - protocols_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - protocols_ = null; - } - return protocolsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:server.v1.ServerMetadata) - } - - // @@protoc_insertion_point(class_scope:server.v1.ServerMetadata) - private static final server.v1.Server.ServerMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new server.v1.Server.ServerMetadata(); - } - - public static server.v1.Server.ServerMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ServerMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ServerMetadata(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public server.v1.Server.ServerMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ProtocolSupportOrBuilder extends - // @@protoc_insertion_point(interface_extends:server.v1.ProtocolSupport) - com.google.protobuf.MessageOrBuilder { - - /** - * .server.v1.Protocol protocol = 1 [json_name = "protocol"]; - * @return The enum numeric value on the wire for protocol. - */ - int getProtocolValue(); - /** - * .server.v1.Protocol protocol = 1 [json_name = "protocol"]; - * @return The protocol. - */ - server.v1.Server.Protocol getProtocol(); - - /** - * repeated .server.v1.HTTPVersion http_versions = 2 [json_name = "httpVersions"]; - */ - java.util.List - getHttpVersionsList(); - /** - * repeated .server.v1.HTTPVersion http_versions = 2 [json_name = "httpVersions"]; - */ - server.v1.Server.HTTPVersion getHttpVersions(int index); - /** - * repeated .server.v1.HTTPVersion http_versions = 2 [json_name = "httpVersions"]; - */ - int getHttpVersionsCount(); - /** - * repeated .server.v1.HTTPVersion http_versions = 2 [json_name = "httpVersions"]; - */ - java.util.List - getHttpVersionsOrBuilderList(); - /** - * repeated .server.v1.HTTPVersion http_versions = 2 [json_name = "httpVersions"]; - */ - server.v1.Server.HTTPVersionOrBuilder getHttpVersionsOrBuilder( - int index); - - /** - * string port = 3 [json_name = "port"]; - * @return The port. - */ - java.lang.String getPort(); - /** - * string port = 3 [json_name = "port"]; - * @return The bytes for port. - */ - com.google.protobuf.ByteString - getPortBytes(); - } - /** - * Protobuf type {@code server.v1.ProtocolSupport} - */ - public static final class ProtocolSupport extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:server.v1.ProtocolSupport) - ProtocolSupportOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProtocolSupport.newBuilder() to construct. - private ProtocolSupport(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProtocolSupport() { - protocol_ = 0; - httpVersions_ = java.util.Collections.emptyList(); - port_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ProtocolSupport(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProtocolSupport( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - - protocol_ = rawValue; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - httpVersions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - httpVersions_.add( - input.readMessage(server.v1.Server.HTTPVersion.parser(), extensionRegistry)); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - port_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - httpVersions_ = java.util.Collections.unmodifiableList(httpVersions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return server.v1.Server.internal_static_server_v1_ProtocolSupport_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return server.v1.Server.internal_static_server_v1_ProtocolSupport_fieldAccessorTable - .ensureFieldAccessorsInitialized( - server.v1.Server.ProtocolSupport.class, server.v1.Server.ProtocolSupport.Builder.class); - } - - public static final int PROTOCOL_FIELD_NUMBER = 1; - private int protocol_; - /** - * .server.v1.Protocol protocol = 1 [json_name = "protocol"]; - * @return The enum numeric value on the wire for protocol. - */ - @java.lang.Override public int getProtocolValue() { - return protocol_; - } - /** - * .server.v1.Protocol protocol = 1 [json_name = "protocol"]; - * @return The protocol. - */ - @java.lang.Override public server.v1.Server.Protocol getProtocol() { - @SuppressWarnings("deprecation") - server.v1.Server.Protocol result = server.v1.Server.Protocol.valueOf(protocol_); - return result == null ? server.v1.Server.Protocol.UNRECOGNIZED : result; - } - - public static final int HTTP_VERSIONS_FIELD_NUMBER = 2; - private java.util.List httpVersions_; - /** - * repeated .server.v1.HTTPVersion http_versions = 2 [json_name = "httpVersions"]; - */ - @java.lang.Override - public java.util.List getHttpVersionsList() { - return httpVersions_; - } - /** - * repeated .server.v1.HTTPVersion http_versions = 2 [json_name = "httpVersions"]; - */ - @java.lang.Override - public java.util.List - getHttpVersionsOrBuilderList() { - return httpVersions_; - } - /** - * repeated .server.v1.HTTPVersion http_versions = 2 [json_name = "httpVersions"]; - */ - @java.lang.Override - public int getHttpVersionsCount() { - return httpVersions_.size(); - } - /** - * repeated .server.v1.HTTPVersion http_versions = 2 [json_name = "httpVersions"]; - */ - @java.lang.Override - public server.v1.Server.HTTPVersion getHttpVersions(int index) { - return httpVersions_.get(index); - } - /** - * repeated .server.v1.HTTPVersion http_versions = 2 [json_name = "httpVersions"]; - */ - @java.lang.Override - public server.v1.Server.HTTPVersionOrBuilder getHttpVersionsOrBuilder( - int index) { - return httpVersions_.get(index); - } - - public static final int PORT_FIELD_NUMBER = 3; - private volatile java.lang.Object port_; - /** - * string port = 3 [json_name = "port"]; - * @return The port. - */ - @java.lang.Override - public java.lang.String getPort() { - java.lang.Object ref = port_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - port_ = s; - return s; - } - } - /** - * string port = 3 [json_name = "port"]; - * @return The bytes for port. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPortBytes() { - java.lang.Object ref = port_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - port_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (protocol_ != server.v1.Server.Protocol.PROTOCOL_UNSPECIFIED.getNumber()) { - output.writeEnum(1, protocol_); - } - for (int i = 0; i < httpVersions_.size(); i++) { - output.writeMessage(2, httpVersions_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(port_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, port_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (protocol_ != server.v1.Server.Protocol.PROTOCOL_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, protocol_); - } - for (int i = 0; i < httpVersions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, httpVersions_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(port_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, port_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof server.v1.Server.ProtocolSupport)) { - return super.equals(obj); - } - server.v1.Server.ProtocolSupport other = (server.v1.Server.ProtocolSupport) obj; - - if (protocol_ != other.protocol_) return false; - if (!getHttpVersionsList() - .equals(other.getHttpVersionsList())) return false; - if (!getPort() - .equals(other.getPort())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PROTOCOL_FIELD_NUMBER; - hash = (53 * hash) + protocol_; - if (getHttpVersionsCount() > 0) { - hash = (37 * hash) + HTTP_VERSIONS_FIELD_NUMBER; - hash = (53 * hash) + getHttpVersionsList().hashCode(); - } - hash = (37 * hash) + PORT_FIELD_NUMBER; - hash = (53 * hash) + getPort().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static server.v1.Server.ProtocolSupport parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static server.v1.Server.ProtocolSupport parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static server.v1.Server.ProtocolSupport parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static server.v1.Server.ProtocolSupport parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static server.v1.Server.ProtocolSupport parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static server.v1.Server.ProtocolSupport parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static server.v1.Server.ProtocolSupport parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static server.v1.Server.ProtocolSupport parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static server.v1.Server.ProtocolSupport parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static server.v1.Server.ProtocolSupport parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static server.v1.Server.ProtocolSupport parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static server.v1.Server.ProtocolSupport parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(server.v1.Server.ProtocolSupport prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code server.v1.ProtocolSupport} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:server.v1.ProtocolSupport) - server.v1.Server.ProtocolSupportOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return server.v1.Server.internal_static_server_v1_ProtocolSupport_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return server.v1.Server.internal_static_server_v1_ProtocolSupport_fieldAccessorTable - .ensureFieldAccessorsInitialized( - server.v1.Server.ProtocolSupport.class, server.v1.Server.ProtocolSupport.Builder.class); - } - - // Construct using server.v1.Server.ProtocolSupport.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getHttpVersionsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - protocol_ = 0; - - if (httpVersionsBuilder_ == null) { - httpVersions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - httpVersionsBuilder_.clear(); - } - port_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return server.v1.Server.internal_static_server_v1_ProtocolSupport_descriptor; - } - - @java.lang.Override - public server.v1.Server.ProtocolSupport getDefaultInstanceForType() { - return server.v1.Server.ProtocolSupport.getDefaultInstance(); - } - - @java.lang.Override - public server.v1.Server.ProtocolSupport build() { - server.v1.Server.ProtocolSupport result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public server.v1.Server.ProtocolSupport buildPartial() { - server.v1.Server.ProtocolSupport result = new server.v1.Server.ProtocolSupport(this); - int from_bitField0_ = bitField0_; - result.protocol_ = protocol_; - if (httpVersionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - httpVersions_ = java.util.Collections.unmodifiableList(httpVersions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.httpVersions_ = httpVersions_; - } else { - result.httpVersions_ = httpVersionsBuilder_.build(); - } - result.port_ = port_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof server.v1.Server.ProtocolSupport) { - return mergeFrom((server.v1.Server.ProtocolSupport)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(server.v1.Server.ProtocolSupport other) { - if (other == server.v1.Server.ProtocolSupport.getDefaultInstance()) return this; - if (other.protocol_ != 0) { - setProtocolValue(other.getProtocolValue()); - } - if (httpVersionsBuilder_ == null) { - if (!other.httpVersions_.isEmpty()) { - if (httpVersions_.isEmpty()) { - httpVersions_ = other.httpVersions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureHttpVersionsIsMutable(); - httpVersions_.addAll(other.httpVersions_); - } - onChanged(); - } - } else { - if (!other.httpVersions_.isEmpty()) { - if (httpVersionsBuilder_.isEmpty()) { - httpVersionsBuilder_.dispose(); - httpVersionsBuilder_ = null; - httpVersions_ = other.httpVersions_; - bitField0_ = (bitField0_ & ~0x00000001); - httpVersionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getHttpVersionsFieldBuilder() : null; - } else { - httpVersionsBuilder_.addAllMessages(other.httpVersions_); - } - } - } - if (!other.getPort().isEmpty()) { - port_ = other.port_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - server.v1.Server.ProtocolSupport parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (server.v1.Server.ProtocolSupport) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int protocol_ = 0; - /** - * .server.v1.Protocol protocol = 1 [json_name = "protocol"]; - * @return The enum numeric value on the wire for protocol. - */ - @java.lang.Override public int getProtocolValue() { - return protocol_; - } - /** - * .server.v1.Protocol protocol = 1 [json_name = "protocol"]; - * @param value The enum numeric value on the wire for protocol to set. - * @return This builder for chaining. - */ - public Builder setProtocolValue(int value) { - - protocol_ = value; - onChanged(); - return this; - } - /** - * .server.v1.Protocol protocol = 1 [json_name = "protocol"]; - * @return The protocol. - */ - @java.lang.Override - public server.v1.Server.Protocol getProtocol() { - @SuppressWarnings("deprecation") - server.v1.Server.Protocol result = server.v1.Server.Protocol.valueOf(protocol_); - return result == null ? server.v1.Server.Protocol.UNRECOGNIZED : result; - } - /** - * .server.v1.Protocol protocol = 1 [json_name = "protocol"]; - * @param value The protocol to set. - * @return This builder for chaining. - */ - public Builder setProtocol(server.v1.Server.Protocol value) { - if (value == null) { - throw new NullPointerException(); - } - - protocol_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .server.v1.Protocol protocol = 1 [json_name = "protocol"]; - * @return This builder for chaining. - */ - public Builder clearProtocol() { - - protocol_ = 0; - onChanged(); - return this; - } - - private java.util.List httpVersions_ = - java.util.Collections.emptyList(); - private void ensureHttpVersionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - httpVersions_ = new java.util.ArrayList(httpVersions_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - server.v1.Server.HTTPVersion, server.v1.Server.HTTPVersion.Builder, server.v1.Server.HTTPVersionOrBuilder> httpVersionsBuilder_; - - /** - * repeated .server.v1.HTTPVersion http_versions = 2 [json_name = "httpVersions"]; - */ - public java.util.List getHttpVersionsList() { - if (httpVersionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(httpVersions_); - } else { - return httpVersionsBuilder_.getMessageList(); - } - } - /** - * repeated .server.v1.HTTPVersion http_versions = 2 [json_name = "httpVersions"]; - */ - public int getHttpVersionsCount() { - if (httpVersionsBuilder_ == null) { - return httpVersions_.size(); - } else { - return httpVersionsBuilder_.getCount(); - } - } - /** - * repeated .server.v1.HTTPVersion http_versions = 2 [json_name = "httpVersions"]; - */ - public server.v1.Server.HTTPVersion getHttpVersions(int index) { - if (httpVersionsBuilder_ == null) { - return httpVersions_.get(index); - } else { - return httpVersionsBuilder_.getMessage(index); - } - } - /** - * repeated .server.v1.HTTPVersion http_versions = 2 [json_name = "httpVersions"]; - */ - public Builder setHttpVersions( - int index, server.v1.Server.HTTPVersion value) { - if (httpVersionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureHttpVersionsIsMutable(); - httpVersions_.set(index, value); - onChanged(); - } else { - httpVersionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .server.v1.HTTPVersion http_versions = 2 [json_name = "httpVersions"]; - */ - public Builder setHttpVersions( - int index, server.v1.Server.HTTPVersion.Builder builderForValue) { - if (httpVersionsBuilder_ == null) { - ensureHttpVersionsIsMutable(); - httpVersions_.set(index, builderForValue.build()); - onChanged(); - } else { - httpVersionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .server.v1.HTTPVersion http_versions = 2 [json_name = "httpVersions"]; - */ - public Builder addHttpVersions(server.v1.Server.HTTPVersion value) { - if (httpVersionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureHttpVersionsIsMutable(); - httpVersions_.add(value); - onChanged(); - } else { - httpVersionsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .server.v1.HTTPVersion http_versions = 2 [json_name = "httpVersions"]; - */ - public Builder addHttpVersions( - int index, server.v1.Server.HTTPVersion value) { - if (httpVersionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureHttpVersionsIsMutable(); - httpVersions_.add(index, value); - onChanged(); - } else { - httpVersionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .server.v1.HTTPVersion http_versions = 2 [json_name = "httpVersions"]; - */ - public Builder addHttpVersions( - server.v1.Server.HTTPVersion.Builder builderForValue) { - if (httpVersionsBuilder_ == null) { - ensureHttpVersionsIsMutable(); - httpVersions_.add(builderForValue.build()); - onChanged(); - } else { - httpVersionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .server.v1.HTTPVersion http_versions = 2 [json_name = "httpVersions"]; - */ - public Builder addHttpVersions( - int index, server.v1.Server.HTTPVersion.Builder builderForValue) { - if (httpVersionsBuilder_ == null) { - ensureHttpVersionsIsMutable(); - httpVersions_.add(index, builderForValue.build()); - onChanged(); - } else { - httpVersionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .server.v1.HTTPVersion http_versions = 2 [json_name = "httpVersions"]; - */ - public Builder addAllHttpVersions( - java.lang.Iterable values) { - if (httpVersionsBuilder_ == null) { - ensureHttpVersionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, httpVersions_); - onChanged(); - } else { - httpVersionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .server.v1.HTTPVersion http_versions = 2 [json_name = "httpVersions"]; - */ - public Builder clearHttpVersions() { - if (httpVersionsBuilder_ == null) { - httpVersions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - httpVersionsBuilder_.clear(); - } - return this; - } - /** - * repeated .server.v1.HTTPVersion http_versions = 2 [json_name = "httpVersions"]; - */ - public Builder removeHttpVersions(int index) { - if (httpVersionsBuilder_ == null) { - ensureHttpVersionsIsMutable(); - httpVersions_.remove(index); - onChanged(); - } else { - httpVersionsBuilder_.remove(index); - } - return this; - } - /** - * repeated .server.v1.HTTPVersion http_versions = 2 [json_name = "httpVersions"]; - */ - public server.v1.Server.HTTPVersion.Builder getHttpVersionsBuilder( - int index) { - return getHttpVersionsFieldBuilder().getBuilder(index); - } - /** - * repeated .server.v1.HTTPVersion http_versions = 2 [json_name = "httpVersions"]; - */ - public server.v1.Server.HTTPVersionOrBuilder getHttpVersionsOrBuilder( - int index) { - if (httpVersionsBuilder_ == null) { - return httpVersions_.get(index); } else { - return httpVersionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .server.v1.HTTPVersion http_versions = 2 [json_name = "httpVersions"]; - */ - public java.util.List - getHttpVersionsOrBuilderList() { - if (httpVersionsBuilder_ != null) { - return httpVersionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(httpVersions_); - } - } - /** - * repeated .server.v1.HTTPVersion http_versions = 2 [json_name = "httpVersions"]; - */ - public server.v1.Server.HTTPVersion.Builder addHttpVersionsBuilder() { - return getHttpVersionsFieldBuilder().addBuilder( - server.v1.Server.HTTPVersion.getDefaultInstance()); - } - /** - * repeated .server.v1.HTTPVersion http_versions = 2 [json_name = "httpVersions"]; - */ - public server.v1.Server.HTTPVersion.Builder addHttpVersionsBuilder( - int index) { - return getHttpVersionsFieldBuilder().addBuilder( - index, server.v1.Server.HTTPVersion.getDefaultInstance()); - } - /** - * repeated .server.v1.HTTPVersion http_versions = 2 [json_name = "httpVersions"]; - */ - public java.util.List - getHttpVersionsBuilderList() { - return getHttpVersionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - server.v1.Server.HTTPVersion, server.v1.Server.HTTPVersion.Builder, server.v1.Server.HTTPVersionOrBuilder> - getHttpVersionsFieldBuilder() { - if (httpVersionsBuilder_ == null) { - httpVersionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - server.v1.Server.HTTPVersion, server.v1.Server.HTTPVersion.Builder, server.v1.Server.HTTPVersionOrBuilder>( - httpVersions_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - httpVersions_ = null; - } - return httpVersionsBuilder_; - } - - private java.lang.Object port_ = ""; - /** - * string port = 3 [json_name = "port"]; - * @return The port. - */ - public java.lang.String getPort() { - java.lang.Object ref = port_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - port_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string port = 3 [json_name = "port"]; - * @return The bytes for port. - */ - public com.google.protobuf.ByteString - getPortBytes() { - java.lang.Object ref = port_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - port_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string port = 3 [json_name = "port"]; - * @param value The port to set. - * @return This builder for chaining. - */ - public Builder setPort( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - port_ = value; - onChanged(); - return this; - } - /** - * string port = 3 [json_name = "port"]; - * @return This builder for chaining. - */ - public Builder clearPort() { - - port_ = getDefaultInstance().getPort(); - onChanged(); - return this; - } - /** - * string port = 3 [json_name = "port"]; - * @param value The bytes for port to set. - * @return This builder for chaining. - */ - public Builder setPortBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - port_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:server.v1.ProtocolSupport) - } - - // @@protoc_insertion_point(class_scope:server.v1.ProtocolSupport) - private static final server.v1.Server.ProtocolSupport DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new server.v1.Server.ProtocolSupport(); - } - - public static server.v1.Server.ProtocolSupport getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProtocolSupport parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProtocolSupport(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public server.v1.Server.ProtocolSupport getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface HTTPVersionOrBuilder extends - // @@protoc_insertion_point(interface_extends:server.v1.HTTPVersion) - com.google.protobuf.MessageOrBuilder { - - /** - * int32 major = 1 [json_name = "major"]; - * @return The major. - */ - int getMajor(); - - /** - * int32 minor = 2 [json_name = "minor"]; - * @return The minor. - */ - int getMinor(); - } - /** - * Protobuf type {@code server.v1.HTTPVersion} - */ - public static final class HTTPVersion extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:server.v1.HTTPVersion) - HTTPVersionOrBuilder { - private static final long serialVersionUID = 0L; - // Use HTTPVersion.newBuilder() to construct. - private HTTPVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private HTTPVersion() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new HTTPVersion(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private HTTPVersion( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - major_ = input.readInt32(); - break; - } - case 16: { - - minor_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return server.v1.Server.internal_static_server_v1_HTTPVersion_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return server.v1.Server.internal_static_server_v1_HTTPVersion_fieldAccessorTable - .ensureFieldAccessorsInitialized( - server.v1.Server.HTTPVersion.class, server.v1.Server.HTTPVersion.Builder.class); - } - - public static final int MAJOR_FIELD_NUMBER = 1; - private int major_; - /** - * int32 major = 1 [json_name = "major"]; - * @return The major. - */ - @java.lang.Override - public int getMajor() { - return major_; - } - - public static final int MINOR_FIELD_NUMBER = 2; - private int minor_; - /** - * int32 minor = 2 [json_name = "minor"]; - * @return The minor. - */ - @java.lang.Override - public int getMinor() { - return minor_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (major_ != 0) { - output.writeInt32(1, major_); - } - if (minor_ != 0) { - output.writeInt32(2, minor_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (major_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, major_); - } - if (minor_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, minor_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof server.v1.Server.HTTPVersion)) { - return super.equals(obj); - } - server.v1.Server.HTTPVersion other = (server.v1.Server.HTTPVersion) obj; - - if (getMajor() - != other.getMajor()) return false; - if (getMinor() - != other.getMinor()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MAJOR_FIELD_NUMBER; - hash = (53 * hash) + getMajor(); - hash = (37 * hash) + MINOR_FIELD_NUMBER; - hash = (53 * hash) + getMinor(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static server.v1.Server.HTTPVersion parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static server.v1.Server.HTTPVersion parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static server.v1.Server.HTTPVersion parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static server.v1.Server.HTTPVersion parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static server.v1.Server.HTTPVersion parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static server.v1.Server.HTTPVersion parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static server.v1.Server.HTTPVersion parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static server.v1.Server.HTTPVersion parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static server.v1.Server.HTTPVersion parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static server.v1.Server.HTTPVersion parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static server.v1.Server.HTTPVersion parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static server.v1.Server.HTTPVersion parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(server.v1.Server.HTTPVersion prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code server.v1.HTTPVersion} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:server.v1.HTTPVersion) - server.v1.Server.HTTPVersionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return server.v1.Server.internal_static_server_v1_HTTPVersion_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return server.v1.Server.internal_static_server_v1_HTTPVersion_fieldAccessorTable - .ensureFieldAccessorsInitialized( - server.v1.Server.HTTPVersion.class, server.v1.Server.HTTPVersion.Builder.class); - } - - // Construct using server.v1.Server.HTTPVersion.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - major_ = 0; - - minor_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return server.v1.Server.internal_static_server_v1_HTTPVersion_descriptor; - } - - @java.lang.Override - public server.v1.Server.HTTPVersion getDefaultInstanceForType() { - return server.v1.Server.HTTPVersion.getDefaultInstance(); - } - - @java.lang.Override - public server.v1.Server.HTTPVersion build() { - server.v1.Server.HTTPVersion result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public server.v1.Server.HTTPVersion buildPartial() { - server.v1.Server.HTTPVersion result = new server.v1.Server.HTTPVersion(this); - result.major_ = major_; - result.minor_ = minor_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof server.v1.Server.HTTPVersion) { - return mergeFrom((server.v1.Server.HTTPVersion)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(server.v1.Server.HTTPVersion other) { - if (other == server.v1.Server.HTTPVersion.getDefaultInstance()) return this; - if (other.getMajor() != 0) { - setMajor(other.getMajor()); - } - if (other.getMinor() != 0) { - setMinor(other.getMinor()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - server.v1.Server.HTTPVersion parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (server.v1.Server.HTTPVersion) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int major_ ; - /** - * int32 major = 1 [json_name = "major"]; - * @return The major. - */ - @java.lang.Override - public int getMajor() { - return major_; - } - /** - * int32 major = 1 [json_name = "major"]; - * @param value The major to set. - * @return This builder for chaining. - */ - public Builder setMajor(int value) { - - major_ = value; - onChanged(); - return this; - } - /** - * int32 major = 1 [json_name = "major"]; - * @return This builder for chaining. - */ - public Builder clearMajor() { - - major_ = 0; - onChanged(); - return this; - } - - private int minor_ ; - /** - * int32 minor = 2 [json_name = "minor"]; - * @return The minor. - */ - @java.lang.Override - public int getMinor() { - return minor_; - } - /** - * int32 minor = 2 [json_name = "minor"]; - * @param value The minor to set. - * @return This builder for chaining. - */ - public Builder setMinor(int value) { - - minor_ = value; - onChanged(); - return this; - } - /** - * int32 minor = 2 [json_name = "minor"]; - * @return This builder for chaining. - */ - public Builder clearMinor() { - - minor_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:server.v1.HTTPVersion) - } - - // @@protoc_insertion_point(class_scope:server.v1.HTTPVersion) - private static final server.v1.Server.HTTPVersion DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new server.v1.Server.HTTPVersion(); - } - - public static server.v1.Server.HTTPVersion getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HTTPVersion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HTTPVersion(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public server.v1.Server.HTTPVersion getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_server_v1_ServerMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_server_v1_ServerMetadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_server_v1_ProtocolSupport_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_server_v1_ProtocolSupport_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_server_v1_HTTPVersion_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_server_v1_HTTPVersion_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\026server/v1/server.proto\022\tserver.v1\"^\n\016S" + - "erverMetadata\022\022\n\004host\030\001 \001(\tR\004host\0228\n\tpro" + - "tocols\030\002 \003(\0132\032.server.v1.ProtocolSupport" + - "R\tprotocols\"\223\001\n\017ProtocolSupport\022/\n\010proto" + - "col\030\001 \001(\0162\023.server.v1.ProtocolR\010protocol" + - "\022;\n\rhttp_versions\030\002 \003(\0132\026.server.v1.HTTP" + - "VersionR\014httpVersions\022\022\n\004port\030\003 \001(\tR\004por" + - "t\"9\n\013HTTPVersion\022\024\n\005major\030\001 \001(\005R\005major\022\024" + - "\n\005minor\030\002 \001(\005R\005minor*N\n\010Protocol\022\030\n\024PROT" + - "OCOL_UNSPECIFIED\020\000\022\021\n\rPROTOCOL_GRPC\020\001\022\025\n" + - "\021PROTOCOL_GRPC_WEB\020\002b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_server_v1_ServerMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_server_v1_ServerMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_server_v1_ServerMetadata_descriptor, - new java.lang.String[] { "Host", "Protocols", }); - internal_static_server_v1_ProtocolSupport_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_server_v1_ProtocolSupport_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_server_v1_ProtocolSupport_descriptor, - new java.lang.String[] { "Protocol", "HttpVersions", "Port", }); - internal_static_server_v1_HTTPVersion_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_server_v1_HTTPVersion_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_server_v1_HTTPVersion_descriptor, - new java.lang.String[] { "Major", "Minor", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} From 9f5c763831a65aa914efd28bcd51b90ecaac4a73 Mon Sep 17 00:00:00 2001 From: Steve Ayers Date: Fri, 1 Sep 2023 15:16:14 -0400 Subject: [PATCH 07/17] Merge --- examples/android/src/main/AndroidManifest.xml | 26 - .../examples/android/ElizaChatActivity.kt | 175 ------ .../connect/examples/android/MainActivity.kt | 61 -- .../connect/examples/android/RecyclerView.kt | 82 --- .../src/main/res/drawable-hdpi/buf_logo.png | Bin 2074 -> 0 bytes .../android/src/main/res/drawable/line.xml | 18 - .../main/res/layout/activity_eliza_chat.xml | 40 -- .../src/main/res/layout/activity_main.xml | 14 - examples/android/src/main/res/layout/item.xml | 24 - .../android/src/main/res/values/colors.xml | 4 - .../android/src/main/res/values/strings.xml | 7 - .../android/src/main/res/values/themes.xml | 9 - .../demo/eliza/v1/ConverseRequest.java | 581 ------------------ .../eliza/v1/ConverseRequestOrBuilder.java | 35 -- .../demo/eliza/v1/ConverseResponse.java | 581 ------------------ .../eliza/v1/ConverseResponseOrBuilder.java | 35 -- .../buf/connect/demo/eliza/v1/ElizaProto.java | 136 ---- .../demo/eliza/v1/IntroduceRequest.java | 581 ------------------ .../eliza/v1/IntroduceRequestOrBuilder.java | 35 -- .../demo/eliza/v1/IntroduceResponse.java | 581 ------------------ .../eliza/v1/IntroduceResponseOrBuilder.java | 35 -- .../buf/connect/demo/eliza/v1/SayRequest.java | 581 ------------------ .../demo/eliza/v1/SayRequestOrBuilder.java | 35 -- .../connect/demo/eliza/v1/SayResponse.java | 581 ------------------ .../demo/eliza/v1/SayResponseOrBuilder.java | 35 -- .../demo/eliza/v1/ElizaServiceClient.kt | 85 --- .../eliza/v1/ElizaServiceClientInterface.kt | 56 -- .../demo/eliza/v1/ConverseRequest.java | 303 --------- .../eliza/v1/ConverseRequestOrBuilder.java | 35 -- .../demo/eliza/v1/ConverseResponse.java | 303 --------- .../eliza/v1/ConverseResponseOrBuilder.java | 35 -- .../buf/connect/demo/eliza/v1/ElizaProto.java | 30 - .../demo/eliza/v1/IntroduceRequest.java | 303 --------- .../eliza/v1/IntroduceRequestOrBuilder.java | 35 -- .../demo/eliza/v1/IntroduceResponse.java | 303 --------- .../eliza/v1/IntroduceResponseOrBuilder.java | 35 -- .../buf/connect/demo/eliza/v1/SayRequest.java | 303 --------- .../demo/eliza/v1/SayRequestOrBuilder.java | 35 -- .../connect/demo/eliza/v1/SayResponse.java | 303 --------- .../demo/eliza/v1/SayResponseOrBuilder.java | 35 -- .../demo/eliza/v1/ElizaServiceClient.kt | 85 --- .../eliza/v1/ElizaServiceClientInterface.kt | 56 -- .../build/buf/connect/examples/kotlin/Main.kt | 72 --- .../build/buf/connect/examples/kotlin/Main.kt | 72 --- 44 files changed, 6776 deletions(-) delete mode 100644 examples/android/src/main/AndroidManifest.xml delete mode 100644 examples/android/src/main/kotlin/build/buf/connect/examples/android/ElizaChatActivity.kt delete mode 100644 examples/android/src/main/kotlin/build/buf/connect/examples/android/MainActivity.kt delete mode 100644 examples/android/src/main/kotlin/build/buf/connect/examples/android/RecyclerView.kt delete mode 100644 examples/android/src/main/res/drawable-hdpi/buf_logo.png delete mode 100644 examples/android/src/main/res/drawable/line.xml delete mode 100644 examples/android/src/main/res/layout/activity_eliza_chat.xml delete mode 100644 examples/android/src/main/res/layout/activity_main.xml delete mode 100644 examples/android/src/main/res/layout/item.xml delete mode 100644 examples/android/src/main/res/values/colors.xml delete mode 100644 examples/android/src/main/res/values/strings.xml delete mode 100644 examples/android/src/main/res/values/themes.xml delete mode 100644 examples/generated-google-java/src/main/java/build/buf/connect/demo/eliza/v1/ConverseRequest.java delete mode 100644 examples/generated-google-java/src/main/java/build/buf/connect/demo/eliza/v1/ConverseRequestOrBuilder.java delete mode 100644 examples/generated-google-java/src/main/java/build/buf/connect/demo/eliza/v1/ConverseResponse.java delete mode 100644 examples/generated-google-java/src/main/java/build/buf/connect/demo/eliza/v1/ConverseResponseOrBuilder.java delete mode 100644 examples/generated-google-java/src/main/java/build/buf/connect/demo/eliza/v1/ElizaProto.java delete mode 100644 examples/generated-google-java/src/main/java/build/buf/connect/demo/eliza/v1/IntroduceRequest.java delete mode 100644 examples/generated-google-java/src/main/java/build/buf/connect/demo/eliza/v1/IntroduceRequestOrBuilder.java delete mode 100644 examples/generated-google-java/src/main/java/build/buf/connect/demo/eliza/v1/IntroduceResponse.java delete mode 100644 examples/generated-google-java/src/main/java/build/buf/connect/demo/eliza/v1/IntroduceResponseOrBuilder.java delete mode 100644 examples/generated-google-java/src/main/java/build/buf/connect/demo/eliza/v1/SayRequest.java delete mode 100644 examples/generated-google-java/src/main/java/build/buf/connect/demo/eliza/v1/SayRequestOrBuilder.java delete mode 100644 examples/generated-google-java/src/main/java/build/buf/connect/demo/eliza/v1/SayResponse.java delete mode 100644 examples/generated-google-java/src/main/java/build/buf/connect/demo/eliza/v1/SayResponseOrBuilder.java delete mode 100644 examples/generated-google-java/src/main/kotlin/build/buf/connect/demo/eliza/v1/ElizaServiceClient.kt delete mode 100644 examples/generated-google-java/src/main/kotlin/build/buf/connect/demo/eliza/v1/ElizaServiceClientInterface.kt delete mode 100644 examples/generated-google-javalite/src/main/java/build/buf/connect/demo/eliza/v1/ConverseRequest.java delete mode 100644 examples/generated-google-javalite/src/main/java/build/buf/connect/demo/eliza/v1/ConverseRequestOrBuilder.java delete mode 100644 examples/generated-google-javalite/src/main/java/build/buf/connect/demo/eliza/v1/ConverseResponse.java delete mode 100644 examples/generated-google-javalite/src/main/java/build/buf/connect/demo/eliza/v1/ConverseResponseOrBuilder.java delete mode 100644 examples/generated-google-javalite/src/main/java/build/buf/connect/demo/eliza/v1/ElizaProto.java delete mode 100644 examples/generated-google-javalite/src/main/java/build/buf/connect/demo/eliza/v1/IntroduceRequest.java delete mode 100644 examples/generated-google-javalite/src/main/java/build/buf/connect/demo/eliza/v1/IntroduceRequestOrBuilder.java delete mode 100644 examples/generated-google-javalite/src/main/java/build/buf/connect/demo/eliza/v1/IntroduceResponse.java delete mode 100644 examples/generated-google-javalite/src/main/java/build/buf/connect/demo/eliza/v1/IntroduceResponseOrBuilder.java delete mode 100644 examples/generated-google-javalite/src/main/java/build/buf/connect/demo/eliza/v1/SayRequest.java delete mode 100644 examples/generated-google-javalite/src/main/java/build/buf/connect/demo/eliza/v1/SayRequestOrBuilder.java delete mode 100644 examples/generated-google-javalite/src/main/java/build/buf/connect/demo/eliza/v1/SayResponse.java delete mode 100644 examples/generated-google-javalite/src/main/java/build/buf/connect/demo/eliza/v1/SayResponseOrBuilder.java delete mode 100644 examples/generated-google-javalite/src/main/kotlin/build/buf/connect/demo/eliza/v1/ElizaServiceClient.kt delete mode 100644 examples/generated-google-javalite/src/main/kotlin/build/buf/connect/demo/eliza/v1/ElizaServiceClientInterface.kt delete mode 100644 examples/kotlin-google-java/src/main/kotlin/build/buf/connect/examples/kotlin/Main.kt delete mode 100644 examples/kotlin-google-javalite/src/main/kotlin/build/buf/connect/examples/kotlin/Main.kt diff --git a/examples/android/src/main/AndroidManifest.xml b/examples/android/src/main/AndroidManifest.xml deleted file mode 100644 index 65145d23..00000000 --- a/examples/android/src/main/AndroidManifest.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/examples/android/src/main/kotlin/build/buf/connect/examples/android/ElizaChatActivity.kt b/examples/android/src/main/kotlin/build/buf/connect/examples/android/ElizaChatActivity.kt deleted file mode 100644 index 05731f9a..00000000 --- a/examples/android/src/main/kotlin/build/buf/connect/examples/android/ElizaChatActivity.kt +++ /dev/null @@ -1,175 +0,0 @@ -// Copyright 2022-2023 Buf Technologies, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package build.buf.connect.examples.android - -import android.os.Bundle -import android.widget.Button -import android.widget.EditText -import android.widget.TextView -import androidx.appcompat.app.AppCompatActivity -import androidx.lifecycle.lifecycleScope -import androidx.recyclerview.widget.RecyclerView -import build.buf.connect.ProtocolClientConfig -import build.buf.connect.demo.eliza.v1.ConverseRequest -import build.buf.connect.demo.eliza.v1.ElizaServiceClient -import build.buf.connect.demo.eliza.v1.SayRequest -import build.buf.connect.extensions.GoogleJavaLiteProtobufStrategy -import build.buf.connect.impl.ProtocolClient -import build.buf.connect.okhttp.ConnectOkHttpClient -import build.buf.connect.protocols.NetworkProtocol -import kotlinx.coroutines.Dispatchers -import kotlinx.coroutines.launch -import okhttp3.OkHttpClient -import java.util.concurrent.TimeUnit - -class ElizaChatActivity : AppCompatActivity() { - - private lateinit var adapter: Adapter - private lateinit var titleTextView: TextView - private lateinit var editTextView: EditText - private lateinit var buttonView: Button - - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_eliza_chat) - val recyclerView = findViewById(R.id.recycler_view) - adapter = Adapter() - recyclerView.adapter = adapter - editTextView = findViewById(R.id.edit_text_view) - titleTextView = findViewById(R.id.title_text_view) - buttonView = findViewById