Update protobuf to 3.0.0
Fixes #2086
diff --git a/.travis.yml b/.travis.yml
index 678af08..219dd74 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -5,7 +5,7 @@
env:
global:
- GRADLE_OPTS=-Xmx512m
- - PROTOBUF_VERSION=3.0.0-beta-3
+ - PROTOBUF_VERSION=3.0.0
- LDFLAGS=-L/tmp/protobuf/lib
- CXXFLAGS=-I/tmp/protobuf/include
- LD_LIBRARY_PATH=/tmp/protobuf/lib
diff --git a/COMPILING.md b/COMPILING.md
index f9cecca..497adb7 100644
--- a/COMPILING.md
+++ b/COMPILING.md
@@ -27,13 +27,13 @@
generation. Most users only need to use `skipCodegen=true` as discussed above.
### Build Protobuf
-The codegen plugin is C++ code and requires protobuf 3.0.0-beta-3.
+The codegen plugin is C++ code and requires protobuf 3.0.0.
For Linux, Mac and MinGW:
```
$ git clone https://github.com/google/protobuf.git
$ cd protobuf
-$ git checkout v3.0.0-beta-3
+$ git checkout v3.0.0
$ ./autogen.sh
$ ./configure
$ make
@@ -72,16 +72,16 @@
Gradle to find protobuf:
```
.\gradlew install ^
- -PvcProtobufInclude=C:\path\to\protobuf-3.0.0-beta-3\src ^
- -PvcProtobufLibs=C:\path\to\protobuf-3.0.0-beta-3\vsprojects\Release ^
+ -PvcProtobufInclude=C:\path\to\protobuf-3.0.0\src ^
+ -PvcProtobufLibs=C:\path\to\protobuf-3.0.0\vsprojects\Release ^
-PtargetArch=x86_32
```
Since specifying those properties every build is bothersome, you can instead
create ``<project-root>\gradle.properties`` with contents like:
```
-vcProtobufInclude=C:\\path\\to\\protobuf-3.0.0-beta-3\\src
-vcProtobufLibs=C:\\path\\to\\protobuf-3.0.0-beta-3\\vsprojects\\Release
+vcProtobufInclude=C:\\path\\to\\protobuf-3.0.0\\src
+vcProtobufLibs=C:\\path\\to\\protobuf-3.0.0\\vsprojects\\Release
targetArch=x86_32
```
diff --git a/android-interop-testing/app/build.gradle b/android-interop-testing/app/build.gradle
index b7ac923..355f35d 100644
--- a/android-interop-testing/app/build.gradle
+++ b/android-interop-testing/app/build.gradle
@@ -28,7 +28,7 @@
protobuf {
protoc {
- artifact = 'com.google.protobuf:protoc:3.0.0-beta-3'
+ artifact = 'com.google.protobuf:protoc:3.0.0'
}
plugins {
grpc {
diff --git a/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Control.java b/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Control.java
index 81f353b..2758716 100644
--- a/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Control.java
+++ b/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Control.java
@@ -6,7 +6,13 @@
public final class Control {
private Control() {}
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 grpc.testing.ClientType}
@@ -333,11 +339,11 @@
* Protobuf type {@code grpc.testing.PoissonParams}
*/
public static final class PoissonParams extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.testing.PoissonParams)
PoissonParamsOrBuilder {
// Use PoissonParams.newBuilder() to construct.
- private PoissonParams(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private PoissonParams(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private PoissonParams() {
@@ -390,7 +396,7 @@
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_PoissonParams_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_PoissonParams_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -441,6 +447,39 @@
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.benchmarks.proto.Control.PoissonParams)) {
+ return super.equals(obj);
+ }
+ io.grpc.benchmarks.proto.Control.PoissonParams other = (io.grpc.benchmarks.proto.Control.PoissonParams) obj;
+
+ boolean result = true;
+ result = result && (
+ java.lang.Double.doubleToLongBits(getOfferedLoad())
+ == java.lang.Double.doubleToLongBits(
+ other.getOfferedLoad()));
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ hash = (37 * hash) + OFFERED_LOAD_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getOfferedLoad()));
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
public static io.grpc.benchmarks.proto.Control.PoissonParams parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -464,39 +503,39 @@
}
public static io.grpc.benchmarks.proto.Control.PoissonParams parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Control.PoissonParams parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Control.PoissonParams parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Control.PoissonParams parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Control.PoissonParams parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Control.PoissonParams parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -514,7 +553,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -527,7 +566,7 @@
* Protobuf type {@code grpc.testing.PoissonParams}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.testing.PoissonParams)
io.grpc.benchmarks.proto.Control.PoissonParamsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -535,7 +574,7 @@
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_PoissonParams_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_PoissonParams_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -548,12 +587,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -587,6 +627,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.benchmarks.proto.Control.PoissonParams) {
return mergeFrom((io.grpc.benchmarks.proto.Control.PoissonParams)other);
@@ -731,11 +797,11 @@
* Protobuf type {@code grpc.testing.UniformParams}
*/
public static final class UniformParams extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.testing.UniformParams)
UniformParamsOrBuilder {
// Use UniformParams.newBuilder() to construct.
- private UniformParams(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private UniformParams(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private UniformParams() {
@@ -794,7 +860,7 @@
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_UniformParams_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_UniformParams_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -857,6 +923,46 @@
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.benchmarks.proto.Control.UniformParams)) {
+ return super.equals(obj);
+ }
+ io.grpc.benchmarks.proto.Control.UniformParams other = (io.grpc.benchmarks.proto.Control.UniformParams) obj;
+
+ boolean result = true;
+ result = result && (
+ java.lang.Double.doubleToLongBits(getInterarrivalLo())
+ == java.lang.Double.doubleToLongBits(
+ other.getInterarrivalLo()));
+ result = result && (
+ java.lang.Double.doubleToLongBits(getInterarrivalHi())
+ == java.lang.Double.doubleToLongBits(
+ other.getInterarrivalHi()));
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ hash = (37 * hash) + INTERARRIVAL_LO_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getInterarrivalLo()));
+ hash = (37 * hash) + INTERARRIVAL_HI_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getInterarrivalHi()));
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
public static io.grpc.benchmarks.proto.Control.UniformParams parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -880,39 +986,39 @@
}
public static io.grpc.benchmarks.proto.Control.UniformParams parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Control.UniformParams parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Control.UniformParams parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Control.UniformParams parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Control.UniformParams parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Control.UniformParams parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -930,7 +1036,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -938,7 +1044,7 @@
* Protobuf type {@code grpc.testing.UniformParams}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.testing.UniformParams)
io.grpc.benchmarks.proto.Control.UniformParamsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -946,7 +1052,7 @@
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_UniformParams_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_UniformParams_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -959,12 +1065,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -1001,6 +1108,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.benchmarks.proto.Control.UniformParams) {
return mergeFrom((io.grpc.benchmarks.proto.Control.UniformParams)other);
@@ -1157,11 +1290,11 @@
* Protobuf type {@code grpc.testing.DeterministicParams}
*/
public static final class DeterministicParams extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.testing.DeterministicParams)
DeterministicParamsOrBuilder {
// Use DeterministicParams.newBuilder() to construct.
- private DeterministicParams(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private DeterministicParams(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private DeterministicParams() {
@@ -1214,7 +1347,7 @@
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_DeterministicParams_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_DeterministicParams_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -1261,6 +1394,39 @@
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.benchmarks.proto.Control.DeterministicParams)) {
+ return super.equals(obj);
+ }
+ io.grpc.benchmarks.proto.Control.DeterministicParams other = (io.grpc.benchmarks.proto.Control.DeterministicParams) obj;
+
+ boolean result = true;
+ result = result && (
+ java.lang.Double.doubleToLongBits(getOfferedLoad())
+ == java.lang.Double.doubleToLongBits(
+ other.getOfferedLoad()));
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ hash = (37 * hash) + OFFERED_LOAD_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getOfferedLoad()));
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
public static io.grpc.benchmarks.proto.Control.DeterministicParams parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -1284,39 +1450,39 @@
}
public static io.grpc.benchmarks.proto.Control.DeterministicParams parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Control.DeterministicParams parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Control.DeterministicParams parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Control.DeterministicParams parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Control.DeterministicParams parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Control.DeterministicParams parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -1334,7 +1500,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -1342,7 +1508,7 @@
* Protobuf type {@code grpc.testing.DeterministicParams}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.testing.DeterministicParams)
io.grpc.benchmarks.proto.Control.DeterministicParamsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -1350,7 +1516,7 @@
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_DeterministicParams_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_DeterministicParams_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -1363,12 +1529,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -1402,6 +1569,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.benchmarks.proto.Control.DeterministicParams) {
return mergeFrom((io.grpc.benchmarks.proto.Control.DeterministicParams)other);
@@ -1534,11 +1727,11 @@
* Protobuf type {@code grpc.testing.ParetoParams}
*/
public static final class ParetoParams extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.testing.ParetoParams)
ParetoParamsOrBuilder {
// Use ParetoParams.newBuilder() to construct.
- private ParetoParams(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private ParetoParams(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ParetoParams() {
@@ -1597,7 +1790,7 @@
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ParetoParams_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ParetoParams_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -1660,6 +1853,46 @@
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.benchmarks.proto.Control.ParetoParams)) {
+ return super.equals(obj);
+ }
+ io.grpc.benchmarks.proto.Control.ParetoParams other = (io.grpc.benchmarks.proto.Control.ParetoParams) obj;
+
+ boolean result = true;
+ result = result && (
+ java.lang.Double.doubleToLongBits(getInterarrivalBase())
+ == java.lang.Double.doubleToLongBits(
+ other.getInterarrivalBase()));
+ result = result && (
+ java.lang.Double.doubleToLongBits(getAlpha())
+ == java.lang.Double.doubleToLongBits(
+ other.getAlpha()));
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ hash = (37 * hash) + INTERARRIVAL_BASE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getInterarrivalBase()));
+ hash = (37 * hash) + ALPHA_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getAlpha()));
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
public static io.grpc.benchmarks.proto.Control.ParetoParams parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -1683,39 +1916,39 @@
}
public static io.grpc.benchmarks.proto.Control.ParetoParams parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Control.ParetoParams parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Control.ParetoParams parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Control.ParetoParams parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Control.ParetoParams parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Control.ParetoParams parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -1733,7 +1966,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -1741,7 +1974,7 @@
* Protobuf type {@code grpc.testing.ParetoParams}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.testing.ParetoParams)
io.grpc.benchmarks.proto.Control.ParetoParamsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -1749,7 +1982,7 @@
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ParetoParams_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ParetoParams_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -1762,12 +1995,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -1804,6 +2038,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.benchmarks.proto.Control.ParetoParams) {
return mergeFrom((io.grpc.benchmarks.proto.Control.ParetoParams)other);
@@ -1960,11 +2220,11 @@
* Protobuf type {@code grpc.testing.ClosedLoopParams}
*/
public static final class ClosedLoopParams extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.testing.ClosedLoopParams)
ClosedLoopParamsOrBuilder {
// Use ClosedLoopParams.newBuilder() to construct.
- private ClosedLoopParams(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private ClosedLoopParams(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ClosedLoopParams() {
@@ -2010,7 +2270,7 @@
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ClosedLoopParams_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ClosedLoopParams_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -2041,6 +2301,32 @@
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.benchmarks.proto.Control.ClosedLoopParams)) {
+ return super.equals(obj);
+ }
+ io.grpc.benchmarks.proto.Control.ClosedLoopParams other = (io.grpc.benchmarks.proto.Control.ClosedLoopParams) obj;
+
+ boolean result = true;
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
public static io.grpc.benchmarks.proto.Control.ClosedLoopParams parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -2064,39 +2350,39 @@
}
public static io.grpc.benchmarks.proto.Control.ClosedLoopParams parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Control.ClosedLoopParams parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Control.ClosedLoopParams parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Control.ClosedLoopParams parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Control.ClosedLoopParams parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Control.ClosedLoopParams parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -2114,7 +2400,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -2127,7 +2413,7 @@
* Protobuf type {@code grpc.testing.ClosedLoopParams}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.testing.ClosedLoopParams)
io.grpc.benchmarks.proto.Control.ClosedLoopParamsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -2135,7 +2421,7 @@
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ClosedLoopParams_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ClosedLoopParams_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -2148,12 +2434,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -2184,6 +2471,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.benchmarks.proto.Control.ClosedLoopParams) {
return mergeFrom((io.grpc.benchmarks.proto.Control.ClosedLoopParams)other);
@@ -2324,11 +2637,11 @@
* Protobuf type {@code grpc.testing.LoadParams}
*/
public static final class LoadParams extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.testing.LoadParams)
LoadParamsOrBuilder {
// Use LoadParams.newBuilder() to construct.
- private LoadParams(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private LoadParams(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private LoadParams() {
@@ -2445,7 +2758,7 @@
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_LoadParams_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_LoadParams_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -2655,6 +2968,83 @@
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.benchmarks.proto.Control.LoadParams)) {
+ return super.equals(obj);
+ }
+ io.grpc.benchmarks.proto.Control.LoadParams other = (io.grpc.benchmarks.proto.Control.LoadParams) obj;
+
+ boolean result = true;
+ result = result && getLoadCase().equals(
+ other.getLoadCase());
+ if (!result) return false;
+ switch (loadCase_) {
+ case 1:
+ result = result && getClosedLoop()
+ .equals(other.getClosedLoop());
+ break;
+ case 2:
+ result = result && getPoisson()
+ .equals(other.getPoisson());
+ break;
+ case 3:
+ result = result && getUniform()
+ .equals(other.getUniform());
+ break;
+ case 4:
+ result = result && getDeterm()
+ .equals(other.getDeterm());
+ break;
+ case 5:
+ result = result && getPareto()
+ .equals(other.getPareto());
+ break;
+ case 0:
+ default:
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ switch (loadCase_) {
+ case 1:
+ hash = (37 * hash) + CLOSED_LOOP_FIELD_NUMBER;
+ hash = (53 * hash) + getClosedLoop().hashCode();
+ break;
+ case 2:
+ hash = (37 * hash) + POISSON_FIELD_NUMBER;
+ hash = (53 * hash) + getPoisson().hashCode();
+ break;
+ case 3:
+ hash = (37 * hash) + UNIFORM_FIELD_NUMBER;
+ hash = (53 * hash) + getUniform().hashCode();
+ break;
+ case 4:
+ hash = (37 * hash) + DETERM_FIELD_NUMBER;
+ hash = (53 * hash) + getDeterm().hashCode();
+ break;
+ case 5:
+ hash = (37 * hash) + PARETO_FIELD_NUMBER;
+ hash = (53 * hash) + getPareto().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
public static io.grpc.benchmarks.proto.Control.LoadParams parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -2678,39 +3068,39 @@
}
public static io.grpc.benchmarks.proto.Control.LoadParams parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Control.LoadParams parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Control.LoadParams parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Control.LoadParams parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Control.LoadParams parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Control.LoadParams parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -2728,7 +3118,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -2736,7 +3126,7 @@
* Protobuf type {@code grpc.testing.LoadParams}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.testing.LoadParams)
io.grpc.benchmarks.proto.Control.LoadParamsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -2744,7 +3134,7 @@
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_LoadParams_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_LoadParams_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -2757,12 +3147,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -2831,6 +3222,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.benchmarks.proto.Control.LoadParams) {
return mergeFrom((io.grpc.benchmarks.proto.Control.LoadParams)other);
@@ -2908,7 +3325,7 @@
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Control.ClosedLoopParams, io.grpc.benchmarks.proto.Control.ClosedLoopParams.Builder, io.grpc.benchmarks.proto.Control.ClosedLoopParamsOrBuilder> closedLoopBuilder_;
/**
* <code>optional .grpc.testing.ClosedLoopParams closed_loop = 1;</code>
@@ -3019,14 +3436,14 @@
/**
* <code>optional .grpc.testing.ClosedLoopParams closed_loop = 1;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Control.ClosedLoopParams, io.grpc.benchmarks.proto.Control.ClosedLoopParams.Builder, io.grpc.benchmarks.proto.Control.ClosedLoopParamsOrBuilder>
getClosedLoopFieldBuilder() {
if (closedLoopBuilder_ == null) {
if (!(loadCase_ == 1)) {
load_ = io.grpc.benchmarks.proto.Control.ClosedLoopParams.getDefaultInstance();
}
- closedLoopBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ closedLoopBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Control.ClosedLoopParams, io.grpc.benchmarks.proto.Control.ClosedLoopParams.Builder, io.grpc.benchmarks.proto.Control.ClosedLoopParamsOrBuilder>(
(io.grpc.benchmarks.proto.Control.ClosedLoopParams) load_,
getParentForChildren(),
@@ -3038,7 +3455,7 @@
return closedLoopBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Control.PoissonParams, io.grpc.benchmarks.proto.Control.PoissonParams.Builder, io.grpc.benchmarks.proto.Control.PoissonParamsOrBuilder> poissonBuilder_;
/**
* <code>optional .grpc.testing.PoissonParams poisson = 2;</code>
@@ -3149,14 +3566,14 @@
/**
* <code>optional .grpc.testing.PoissonParams poisson = 2;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Control.PoissonParams, io.grpc.benchmarks.proto.Control.PoissonParams.Builder, io.grpc.benchmarks.proto.Control.PoissonParamsOrBuilder>
getPoissonFieldBuilder() {
if (poissonBuilder_ == null) {
if (!(loadCase_ == 2)) {
load_ = io.grpc.benchmarks.proto.Control.PoissonParams.getDefaultInstance();
}
- poissonBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ poissonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Control.PoissonParams, io.grpc.benchmarks.proto.Control.PoissonParams.Builder, io.grpc.benchmarks.proto.Control.PoissonParamsOrBuilder>(
(io.grpc.benchmarks.proto.Control.PoissonParams) load_,
getParentForChildren(),
@@ -3168,7 +3585,7 @@
return poissonBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Control.UniformParams, io.grpc.benchmarks.proto.Control.UniformParams.Builder, io.grpc.benchmarks.proto.Control.UniformParamsOrBuilder> uniformBuilder_;
/**
* <code>optional .grpc.testing.UniformParams uniform = 3;</code>
@@ -3279,14 +3696,14 @@
/**
* <code>optional .grpc.testing.UniformParams uniform = 3;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Control.UniformParams, io.grpc.benchmarks.proto.Control.UniformParams.Builder, io.grpc.benchmarks.proto.Control.UniformParamsOrBuilder>
getUniformFieldBuilder() {
if (uniformBuilder_ == null) {
if (!(loadCase_ == 3)) {
load_ = io.grpc.benchmarks.proto.Control.UniformParams.getDefaultInstance();
}
- uniformBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ uniformBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Control.UniformParams, io.grpc.benchmarks.proto.Control.UniformParams.Builder, io.grpc.benchmarks.proto.Control.UniformParamsOrBuilder>(
(io.grpc.benchmarks.proto.Control.UniformParams) load_,
getParentForChildren(),
@@ -3298,7 +3715,7 @@
return uniformBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Control.DeterministicParams, io.grpc.benchmarks.proto.Control.DeterministicParams.Builder, io.grpc.benchmarks.proto.Control.DeterministicParamsOrBuilder> determBuilder_;
/**
* <code>optional .grpc.testing.DeterministicParams determ = 4;</code>
@@ -3409,14 +3826,14 @@
/**
* <code>optional .grpc.testing.DeterministicParams determ = 4;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Control.DeterministicParams, io.grpc.benchmarks.proto.Control.DeterministicParams.Builder, io.grpc.benchmarks.proto.Control.DeterministicParamsOrBuilder>
getDetermFieldBuilder() {
if (determBuilder_ == null) {
if (!(loadCase_ == 4)) {
load_ = io.grpc.benchmarks.proto.Control.DeterministicParams.getDefaultInstance();
}
- determBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ determBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Control.DeterministicParams, io.grpc.benchmarks.proto.Control.DeterministicParams.Builder, io.grpc.benchmarks.proto.Control.DeterministicParamsOrBuilder>(
(io.grpc.benchmarks.proto.Control.DeterministicParams) load_,
getParentForChildren(),
@@ -3428,7 +3845,7 @@
return determBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Control.ParetoParams, io.grpc.benchmarks.proto.Control.ParetoParams.Builder, io.grpc.benchmarks.proto.Control.ParetoParamsOrBuilder> paretoBuilder_;
/**
* <code>optional .grpc.testing.ParetoParams pareto = 5;</code>
@@ -3539,14 +3956,14 @@
/**
* <code>optional .grpc.testing.ParetoParams pareto = 5;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Control.ParetoParams, io.grpc.benchmarks.proto.Control.ParetoParams.Builder, io.grpc.benchmarks.proto.Control.ParetoParamsOrBuilder>
getParetoFieldBuilder() {
if (paretoBuilder_ == null) {
if (!(loadCase_ == 5)) {
load_ = io.grpc.benchmarks.proto.Control.ParetoParams.getDefaultInstance();
}
- paretoBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ paretoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Control.ParetoParams, io.grpc.benchmarks.proto.Control.ParetoParams.Builder, io.grpc.benchmarks.proto.Control.ParetoParamsOrBuilder>(
(io.grpc.benchmarks.proto.Control.ParetoParams) load_,
getParentForChildren(),
@@ -3633,11 +4050,11 @@
* Protobuf type {@code grpc.testing.SecurityParams}
*/
public static final class SecurityParams extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.testing.SecurityParams)
SecurityParamsOrBuilder {
// Use SecurityParams.newBuilder() to construct.
- private SecurityParams(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private SecurityParams(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private SecurityParams() {
@@ -3697,7 +4114,7 @@
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_SecurityParams_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_SecurityParams_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -3763,7 +4180,7 @@
output.writeBool(1, useTestCa_);
}
if (!getServerHostOverrideBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessage.writeString(output, 2, serverHostOverride_);
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, serverHostOverride_);
}
}
@@ -3777,13 +4194,48 @@
.computeBoolSize(1, useTestCa_);
}
if (!getServerHostOverrideBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(2, serverHostOverride_);
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, serverHostOverride_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.benchmarks.proto.Control.SecurityParams)) {
+ return super.equals(obj);
+ }
+ io.grpc.benchmarks.proto.Control.SecurityParams other = (io.grpc.benchmarks.proto.Control.SecurityParams) obj;
+
+ boolean result = true;
+ result = result && (getUseTestCa()
+ == other.getUseTestCa());
+ result = result && getServerHostOverride()
+ .equals(other.getServerHostOverride());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ hash = (37 * hash) + USE_TEST_CA_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getUseTestCa());
+ hash = (37 * hash) + SERVER_HOST_OVERRIDE_FIELD_NUMBER;
+ hash = (53 * hash) + getServerHostOverride().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
public static io.grpc.benchmarks.proto.Control.SecurityParams parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -3807,39 +4259,39 @@
}
public static io.grpc.benchmarks.proto.Control.SecurityParams parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Control.SecurityParams parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Control.SecurityParams parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Control.SecurityParams parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Control.SecurityParams parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Control.SecurityParams parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -3857,7 +4309,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -3869,7 +4321,7 @@
* Protobuf type {@code grpc.testing.SecurityParams}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.testing.SecurityParams)
io.grpc.benchmarks.proto.Control.SecurityParamsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -3877,7 +4329,7 @@
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_SecurityParams_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_SecurityParams_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -3890,12 +4342,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -3932,6 +4385,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.benchmarks.proto.Control.SecurityParams) {
return mergeFrom((io.grpc.benchmarks.proto.Control.SecurityParams)other);
@@ -4130,7 +4609,7 @@
*
* <code>repeated string server_targets = 1;</code>
*/
- com.google.protobuf.ProtocolStringList
+ java.util.List<java.lang.String>
getServerTargetsList();
/**
* <pre>
@@ -4303,11 +4782,11 @@
* Protobuf type {@code grpc.testing.ClientConfig}
*/
public static final class ClientConfig extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.testing.ClientConfig)
ClientConfigOrBuilder {
// Use ClientConfig.newBuilder() to construct.
- private ClientConfig(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private ClientConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ClientConfig() {
@@ -4482,7 +4961,7 @@
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ClientConfig_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ClientConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -4547,7 +5026,7 @@
* <code>optional .grpc.testing.ClientType client_type = 2;</code>
*/
public io.grpc.benchmarks.proto.Control.ClientType getClientType() {
- io.grpc.benchmarks.proto.Control.ClientType result = io.grpc.benchmarks.proto.Control.ClientType.forNumber(clientType_);
+ io.grpc.benchmarks.proto.Control.ClientType result = io.grpc.benchmarks.proto.Control.ClientType.valueOf(clientType_);
return result == null ? io.grpc.benchmarks.proto.Control.ClientType.UNRECOGNIZED : result;
}
@@ -4625,7 +5104,7 @@
* <code>optional .grpc.testing.RpcType rpc_type = 8;</code>
*/
public io.grpc.benchmarks.proto.Control.RpcType getRpcType() {
- io.grpc.benchmarks.proto.Control.RpcType result = io.grpc.benchmarks.proto.Control.RpcType.forNumber(rpcType_);
+ io.grpc.benchmarks.proto.Control.RpcType result = io.grpc.benchmarks.proto.Control.RpcType.valueOf(rpcType_);
return result == null ? io.grpc.benchmarks.proto.Control.RpcType.UNRECOGNIZED : result;
}
@@ -4762,7 +5241,7 @@
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < serverTargets_.size(); i++) {
- com.google.protobuf.GeneratedMessage.writeString(output, 1, serverTargets_.getRaw(i));
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serverTargets_.getRaw(i));
}
if (clientType_ != io.grpc.benchmarks.proto.Control.ClientType.SYNC_CLIENT.getNumber()) {
output.writeEnum(2, clientType_);
@@ -4792,8 +5271,8 @@
output.writeMessage(12, getHistogramParams());
}
if (getCoreListList().size() > 0) {
- output.writeRawVarint32(106);
- output.writeRawVarint32(coreListMemoizedSerializedSize);
+ output.writeUInt32NoTag(106);
+ output.writeUInt32NoTag(coreListMemoizedSerializedSize);
}
for (int i = 0; i < coreList_.size(); i++) {
output.writeInt32NoTag(coreList_.get(i));
@@ -4875,6 +5354,102 @@
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.benchmarks.proto.Control.ClientConfig)) {
+ return super.equals(obj);
+ }
+ io.grpc.benchmarks.proto.Control.ClientConfig other = (io.grpc.benchmarks.proto.Control.ClientConfig) obj;
+
+ boolean result = true;
+ result = result && getServerTargetsList()
+ .equals(other.getServerTargetsList());
+ result = result && clientType_ == other.clientType_;
+ result = result && (hasSecurityParams() == other.hasSecurityParams());
+ if (hasSecurityParams()) {
+ result = result && getSecurityParams()
+ .equals(other.getSecurityParams());
+ }
+ result = result && (getOutstandingRpcsPerChannel()
+ == other.getOutstandingRpcsPerChannel());
+ result = result && (getClientChannels()
+ == other.getClientChannels());
+ result = result && (getAsyncClientThreads()
+ == other.getAsyncClientThreads());
+ result = result && rpcType_ == other.rpcType_;
+ result = result && (hasLoadParams() == other.hasLoadParams());
+ if (hasLoadParams()) {
+ result = result && getLoadParams()
+ .equals(other.getLoadParams());
+ }
+ result = result && (hasPayloadConfig() == other.hasPayloadConfig());
+ if (hasPayloadConfig()) {
+ result = result && getPayloadConfig()
+ .equals(other.getPayloadConfig());
+ }
+ result = result && (hasHistogramParams() == other.hasHistogramParams());
+ if (hasHistogramParams()) {
+ result = result && getHistogramParams()
+ .equals(other.getHistogramParams());
+ }
+ result = result && getCoreListList()
+ .equals(other.getCoreListList());
+ result = result && (getCoreLimit()
+ == other.getCoreLimit());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ if (getServerTargetsCount() > 0) {
+ hash = (37 * hash) + SERVER_TARGETS_FIELD_NUMBER;
+ hash = (53 * hash) + getServerTargetsList().hashCode();
+ }
+ hash = (37 * hash) + CLIENT_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + clientType_;
+ if (hasSecurityParams()) {
+ hash = (37 * hash) + SECURITY_PARAMS_FIELD_NUMBER;
+ hash = (53 * hash) + getSecurityParams().hashCode();
+ }
+ hash = (37 * hash) + OUTSTANDING_RPCS_PER_CHANNEL_FIELD_NUMBER;
+ hash = (53 * hash) + getOutstandingRpcsPerChannel();
+ hash = (37 * hash) + CLIENT_CHANNELS_FIELD_NUMBER;
+ hash = (53 * hash) + getClientChannels();
+ hash = (37 * hash) + ASYNC_CLIENT_THREADS_FIELD_NUMBER;
+ hash = (53 * hash) + getAsyncClientThreads();
+ hash = (37 * hash) + RPC_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + rpcType_;
+ if (hasLoadParams()) {
+ hash = (37 * hash) + LOAD_PARAMS_FIELD_NUMBER;
+ hash = (53 * hash) + getLoadParams().hashCode();
+ }
+ if (hasPayloadConfig()) {
+ hash = (37 * hash) + PAYLOAD_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getPayloadConfig().hashCode();
+ }
+ if (hasHistogramParams()) {
+ hash = (37 * hash) + HISTOGRAM_PARAMS_FIELD_NUMBER;
+ hash = (53 * hash) + getHistogramParams().hashCode();
+ }
+ if (getCoreListCount() > 0) {
+ hash = (37 * hash) + CORE_LIST_FIELD_NUMBER;
+ hash = (53 * hash) + getCoreListList().hashCode();
+ }
+ hash = (37 * hash) + CORE_LIMIT_FIELD_NUMBER;
+ hash = (53 * hash) + getCoreLimit();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
public static io.grpc.benchmarks.proto.Control.ClientConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -4898,39 +5473,39 @@
}
public static io.grpc.benchmarks.proto.Control.ClientConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Control.ClientConfig parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Control.ClientConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Control.ClientConfig parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Control.ClientConfig parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Control.ClientConfig parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -4948,7 +5523,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -4956,7 +5531,7 @@
* Protobuf type {@code grpc.testing.ClientConfig}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.testing.ClientConfig)
io.grpc.benchmarks.proto.Control.ClientConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -4964,7 +5539,7 @@
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ClientConfig_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ClientConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -4977,12 +5552,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -5092,6 +5668,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.benchmarks.proto.Control.ClientConfig) {
return mergeFrom((io.grpc.benchmarks.proto.Control.ClientConfig)other);
@@ -5329,7 +5931,7 @@
* <code>optional .grpc.testing.ClientType client_type = 2;</code>
*/
public io.grpc.benchmarks.proto.Control.ClientType getClientType() {
- io.grpc.benchmarks.proto.Control.ClientType result = io.grpc.benchmarks.proto.Control.ClientType.forNumber(clientType_);
+ io.grpc.benchmarks.proto.Control.ClientType result = io.grpc.benchmarks.proto.Control.ClientType.valueOf(clientType_);
return result == null ? io.grpc.benchmarks.proto.Control.ClientType.UNRECOGNIZED : result;
}
/**
@@ -5355,7 +5957,7 @@
}
private io.grpc.benchmarks.proto.Control.SecurityParams securityParams_ = null;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Control.SecurityParams, io.grpc.benchmarks.proto.Control.SecurityParams.Builder, io.grpc.benchmarks.proto.Control.SecurityParamsOrBuilder> securityParamsBuilder_;
/**
* <code>optional .grpc.testing.SecurityParams security_params = 3;</code>
@@ -5457,11 +6059,11 @@
/**
* <code>optional .grpc.testing.SecurityParams security_params = 3;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Control.SecurityParams, io.grpc.benchmarks.proto.Control.SecurityParams.Builder, io.grpc.benchmarks.proto.Control.SecurityParamsOrBuilder>
getSecurityParamsFieldBuilder() {
if (securityParamsBuilder_ == null) {
- securityParamsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ securityParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Control.SecurityParams, io.grpc.benchmarks.proto.Control.SecurityParams.Builder, io.grpc.benchmarks.proto.Control.SecurityParamsOrBuilder>(
getSecurityParams(),
getParentForChildren(),
@@ -5610,7 +6212,7 @@
* <code>optional .grpc.testing.RpcType rpc_type = 8;</code>
*/
public io.grpc.benchmarks.proto.Control.RpcType getRpcType() {
- io.grpc.benchmarks.proto.Control.RpcType result = io.grpc.benchmarks.proto.Control.RpcType.forNumber(rpcType_);
+ io.grpc.benchmarks.proto.Control.RpcType result = io.grpc.benchmarks.proto.Control.RpcType.valueOf(rpcType_);
return result == null ? io.grpc.benchmarks.proto.Control.RpcType.UNRECOGNIZED : result;
}
/**
@@ -5636,7 +6238,7 @@
}
private io.grpc.benchmarks.proto.Control.LoadParams loadParams_ = null;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Control.LoadParams, io.grpc.benchmarks.proto.Control.LoadParams.Builder, io.grpc.benchmarks.proto.Control.LoadParamsOrBuilder> loadParamsBuilder_;
/**
* <pre>
@@ -5774,11 +6376,11 @@
*
* <code>optional .grpc.testing.LoadParams load_params = 10;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Control.LoadParams, io.grpc.benchmarks.proto.Control.LoadParams.Builder, io.grpc.benchmarks.proto.Control.LoadParamsOrBuilder>
getLoadParamsFieldBuilder() {
if (loadParamsBuilder_ == null) {
- loadParamsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ loadParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Control.LoadParams, io.grpc.benchmarks.proto.Control.LoadParams.Builder, io.grpc.benchmarks.proto.Control.LoadParamsOrBuilder>(
getLoadParams(),
getParentForChildren(),
@@ -5789,7 +6391,7 @@
}
private io.grpc.benchmarks.proto.Payloads.PayloadConfig payloadConfig_ = null;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Payloads.PayloadConfig, io.grpc.benchmarks.proto.Payloads.PayloadConfig.Builder, io.grpc.benchmarks.proto.Payloads.PayloadConfigOrBuilder> payloadConfigBuilder_;
/**
* <code>optional .grpc.testing.PayloadConfig payload_config = 11;</code>
@@ -5891,11 +6493,11 @@
/**
* <code>optional .grpc.testing.PayloadConfig payload_config = 11;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Payloads.PayloadConfig, io.grpc.benchmarks.proto.Payloads.PayloadConfig.Builder, io.grpc.benchmarks.proto.Payloads.PayloadConfigOrBuilder>
getPayloadConfigFieldBuilder() {
if (payloadConfigBuilder_ == null) {
- payloadConfigBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ payloadConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Payloads.PayloadConfig, io.grpc.benchmarks.proto.Payloads.PayloadConfig.Builder, io.grpc.benchmarks.proto.Payloads.PayloadConfigOrBuilder>(
getPayloadConfig(),
getParentForChildren(),
@@ -5906,7 +6508,7 @@
}
private io.grpc.benchmarks.proto.Stats.HistogramParams histogramParams_ = null;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Stats.HistogramParams, io.grpc.benchmarks.proto.Stats.HistogramParams.Builder, io.grpc.benchmarks.proto.Stats.HistogramParamsOrBuilder> histogramParamsBuilder_;
/**
* <code>optional .grpc.testing.HistogramParams histogram_params = 12;</code>
@@ -6008,11 +6610,11 @@
/**
* <code>optional .grpc.testing.HistogramParams histogram_params = 12;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Stats.HistogramParams, io.grpc.benchmarks.proto.Stats.HistogramParams.Builder, io.grpc.benchmarks.proto.Stats.HistogramParamsOrBuilder>
getHistogramParamsFieldBuilder() {
if (histogramParamsBuilder_ == null) {
- histogramParamsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ histogramParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Stats.HistogramParams, io.grpc.benchmarks.proto.Stats.HistogramParams.Builder, io.grpc.benchmarks.proto.Stats.HistogramParamsOrBuilder>(
getHistogramParams(),
getParentForChildren(),
@@ -6211,11 +6813,11 @@
* Protobuf type {@code grpc.testing.ClientStatus}
*/
public static final class ClientStatus extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.testing.ClientStatus)
ClientStatusOrBuilder {
// Use ClientStatus.newBuilder() to construct.
- private ClientStatus(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private ClientStatus(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ClientStatus() {
@@ -6275,7 +6877,7 @@
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ClientStatus_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ClientStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -6334,6 +6936,41 @@
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.benchmarks.proto.Control.ClientStatus)) {
+ return super.equals(obj);
+ }
+ io.grpc.benchmarks.proto.Control.ClientStatus other = (io.grpc.benchmarks.proto.Control.ClientStatus) obj;
+
+ boolean result = true;
+ result = result && (hasStats() == other.hasStats());
+ if (hasStats()) {
+ result = result && getStats()
+ .equals(other.getStats());
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ if (hasStats()) {
+ hash = (37 * hash) + STATS_FIELD_NUMBER;
+ hash = (53 * hash) + getStats().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
public static io.grpc.benchmarks.proto.Control.ClientStatus parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -6357,39 +6994,39 @@
}
public static io.grpc.benchmarks.proto.Control.ClientStatus parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Control.ClientStatus parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Control.ClientStatus parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Control.ClientStatus parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Control.ClientStatus parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Control.ClientStatus parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -6407,7 +7044,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -6415,7 +7052,7 @@
* Protobuf type {@code grpc.testing.ClientStatus}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.testing.ClientStatus)
io.grpc.benchmarks.proto.Control.ClientStatusOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -6423,7 +7060,7 @@
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ClientStatus_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ClientStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -6436,12 +7073,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -6483,6 +7121,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.benchmarks.proto.Control.ClientStatus) {
return mergeFrom((io.grpc.benchmarks.proto.Control.ClientStatus)other);
@@ -6524,7 +7188,7 @@
}
private io.grpc.benchmarks.proto.Stats.ClientStats stats_ = null;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Stats.ClientStats, io.grpc.benchmarks.proto.Stats.ClientStats.Builder, io.grpc.benchmarks.proto.Stats.ClientStatsOrBuilder> statsBuilder_;
/**
* <code>optional .grpc.testing.ClientStats stats = 1;</code>
@@ -6626,11 +7290,11 @@
/**
* <code>optional .grpc.testing.ClientStats stats = 1;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Stats.ClientStats, io.grpc.benchmarks.proto.Stats.ClientStats.Builder, io.grpc.benchmarks.proto.Stats.ClientStatsOrBuilder>
getStatsFieldBuilder() {
if (statsBuilder_ == null) {
- statsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ statsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Stats.ClientStats, io.grpc.benchmarks.proto.Stats.ClientStats.Builder, io.grpc.benchmarks.proto.Stats.ClientStatsOrBuilder>(
getStats(),
getParentForChildren(),
@@ -6709,11 +7373,11 @@
* Protobuf type {@code grpc.testing.Mark}
*/
public static final class Mark extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.testing.Mark)
MarkOrBuilder {
// Use Mark.newBuilder() to construct.
- private Mark(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private Mark(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private Mark() {
@@ -6766,7 +7430,7 @@
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_Mark_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_Mark_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -6817,6 +7481,37 @@
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.benchmarks.proto.Control.Mark)) {
+ return super.equals(obj);
+ }
+ io.grpc.benchmarks.proto.Control.Mark other = (io.grpc.benchmarks.proto.Control.Mark) obj;
+
+ boolean result = true;
+ result = result && (getReset()
+ == other.getReset());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ hash = (37 * hash) + RESET_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getReset());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
public static io.grpc.benchmarks.proto.Control.Mark parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -6840,39 +7535,39 @@
}
public static io.grpc.benchmarks.proto.Control.Mark parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Control.Mark parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Control.Mark parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Control.Mark parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Control.Mark parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Control.Mark parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -6890,7 +7585,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -6902,7 +7597,7 @@
* Protobuf type {@code grpc.testing.Mark}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.testing.Mark)
io.grpc.benchmarks.proto.Control.MarkOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -6910,7 +7605,7 @@
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_Mark_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_Mark_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -6923,12 +7618,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -6962,6 +7658,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.benchmarks.proto.Control.Mark) {
return mergeFrom((io.grpc.benchmarks.proto.Control.Mark)other);
@@ -7116,11 +7838,11 @@
* Protobuf type {@code grpc.testing.ClientArgs}
*/
public static final class ClientArgs extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.testing.ClientArgs)
ClientArgsOrBuilder {
// Use ClientArgs.newBuilder() to construct.
- private ClientArgs(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private ClientArgs(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ClientArgs() {
@@ -7195,7 +7917,7 @@
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ClientArgs_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ClientArgs_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -7318,6 +8040,59 @@
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.benchmarks.proto.Control.ClientArgs)) {
+ return super.equals(obj);
+ }
+ io.grpc.benchmarks.proto.Control.ClientArgs other = (io.grpc.benchmarks.proto.Control.ClientArgs) obj;
+
+ boolean result = true;
+ result = result && getArgtypeCase().equals(
+ other.getArgtypeCase());
+ if (!result) return false;
+ switch (argtypeCase_) {
+ case 1:
+ result = result && getSetup()
+ .equals(other.getSetup());
+ break;
+ case 2:
+ result = result && getMark()
+ .equals(other.getMark());
+ break;
+ case 0:
+ default:
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ switch (argtypeCase_) {
+ case 1:
+ hash = (37 * hash) + SETUP_FIELD_NUMBER;
+ hash = (53 * hash) + getSetup().hashCode();
+ break;
+ case 2:
+ hash = (37 * hash) + MARK_FIELD_NUMBER;
+ hash = (53 * hash) + getMark().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
public static io.grpc.benchmarks.proto.Control.ClientArgs parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -7341,39 +8116,39 @@
}
public static io.grpc.benchmarks.proto.Control.ClientArgs parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Control.ClientArgs parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Control.ClientArgs parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Control.ClientArgs parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Control.ClientArgs parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Control.ClientArgs parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -7391,7 +8166,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -7399,7 +8174,7 @@
* Protobuf type {@code grpc.testing.ClientArgs}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.testing.ClientArgs)
io.grpc.benchmarks.proto.Control.ClientArgsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -7407,7 +8182,7 @@
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ClientArgs_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ClientArgs_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -7420,12 +8195,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -7473,6 +8249,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.benchmarks.proto.Control.ClientArgs) {
return mergeFrom((io.grpc.benchmarks.proto.Control.ClientArgs)other);
@@ -7538,7 +8340,7 @@
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Control.ClientConfig, io.grpc.benchmarks.proto.Control.ClientConfig.Builder, io.grpc.benchmarks.proto.Control.ClientConfigOrBuilder> setupBuilder_;
/**
* <code>optional .grpc.testing.ClientConfig setup = 1;</code>
@@ -7649,14 +8451,14 @@
/**
* <code>optional .grpc.testing.ClientConfig setup = 1;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Control.ClientConfig, io.grpc.benchmarks.proto.Control.ClientConfig.Builder, io.grpc.benchmarks.proto.Control.ClientConfigOrBuilder>
getSetupFieldBuilder() {
if (setupBuilder_ == null) {
if (!(argtypeCase_ == 1)) {
argtype_ = io.grpc.benchmarks.proto.Control.ClientConfig.getDefaultInstance();
}
- setupBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ setupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Control.ClientConfig, io.grpc.benchmarks.proto.Control.ClientConfig.Builder, io.grpc.benchmarks.proto.Control.ClientConfigOrBuilder>(
(io.grpc.benchmarks.proto.Control.ClientConfig) argtype_,
getParentForChildren(),
@@ -7668,7 +8470,7 @@
return setupBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Control.Mark, io.grpc.benchmarks.proto.Control.Mark.Builder, io.grpc.benchmarks.proto.Control.MarkOrBuilder> markBuilder_;
/**
* <code>optional .grpc.testing.Mark mark = 2;</code>
@@ -7779,14 +8581,14 @@
/**
* <code>optional .grpc.testing.Mark mark = 2;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Control.Mark, io.grpc.benchmarks.proto.Control.Mark.Builder, io.grpc.benchmarks.proto.Control.MarkOrBuilder>
getMarkFieldBuilder() {
if (markBuilder_ == null) {
if (!(argtypeCase_ == 2)) {
argtype_ = io.grpc.benchmarks.proto.Control.Mark.getDefaultInstance();
}
- markBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ markBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Control.Mark, io.grpc.benchmarks.proto.Control.Mark.Builder, io.grpc.benchmarks.proto.Control.MarkOrBuilder>(
(io.grpc.benchmarks.proto.Control.Mark) argtype_,
getParentForChildren(),
@@ -7953,11 +8755,11 @@
* Protobuf type {@code grpc.testing.ServerConfig}
*/
public static final class ServerConfig extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.testing.ServerConfig)
ServerConfigOrBuilder {
// Use ServerConfig.newBuilder() to construct.
- private ServerConfig(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private ServerConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ServerConfig() {
@@ -8080,7 +8882,7 @@
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ServerConfig_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ServerConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -8100,7 +8902,7 @@
* <code>optional .grpc.testing.ServerType server_type = 1;</code>
*/
public io.grpc.benchmarks.proto.Control.ServerType getServerType() {
- io.grpc.benchmarks.proto.Control.ServerType result = io.grpc.benchmarks.proto.Control.ServerType.forNumber(serverType_);
+ io.grpc.benchmarks.proto.Control.ServerType result = io.grpc.benchmarks.proto.Control.ServerType.valueOf(serverType_);
return result == null ? io.grpc.benchmarks.proto.Control.ServerType.UNRECOGNIZED : result;
}
@@ -8264,8 +9066,8 @@
output.writeMessage(9, getPayloadConfig());
}
if (getCoreListList().size() > 0) {
- output.writeRawVarint32(82);
- output.writeRawVarint32(coreListMemoizedSerializedSize);
+ output.writeUInt32NoTag(82);
+ output.writeUInt32NoTag(coreListMemoizedSerializedSize);
}
for (int i = 0; i < coreList_.size(); i++) {
output.writeInt32NoTag(coreList_.get(i));
@@ -8320,6 +9122,71 @@
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.benchmarks.proto.Control.ServerConfig)) {
+ return super.equals(obj);
+ }
+ io.grpc.benchmarks.proto.Control.ServerConfig other = (io.grpc.benchmarks.proto.Control.ServerConfig) obj;
+
+ boolean result = true;
+ result = result && serverType_ == other.serverType_;
+ result = result && (hasSecurityParams() == other.hasSecurityParams());
+ if (hasSecurityParams()) {
+ result = result && getSecurityParams()
+ .equals(other.getSecurityParams());
+ }
+ result = result && (getPort()
+ == other.getPort());
+ result = result && (getAsyncServerThreads()
+ == other.getAsyncServerThreads());
+ result = result && (getCoreLimit()
+ == other.getCoreLimit());
+ result = result && (hasPayloadConfig() == other.hasPayloadConfig());
+ if (hasPayloadConfig()) {
+ result = result && getPayloadConfig()
+ .equals(other.getPayloadConfig());
+ }
+ result = result && getCoreListList()
+ .equals(other.getCoreListList());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ hash = (37 * hash) + SERVER_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + serverType_;
+ if (hasSecurityParams()) {
+ hash = (37 * hash) + SECURITY_PARAMS_FIELD_NUMBER;
+ hash = (53 * hash) + getSecurityParams().hashCode();
+ }
+ hash = (37 * hash) + PORT_FIELD_NUMBER;
+ hash = (53 * hash) + getPort();
+ hash = (37 * hash) + ASYNC_SERVER_THREADS_FIELD_NUMBER;
+ hash = (53 * hash) + getAsyncServerThreads();
+ hash = (37 * hash) + CORE_LIMIT_FIELD_NUMBER;
+ hash = (53 * hash) + getCoreLimit();
+ if (hasPayloadConfig()) {
+ hash = (37 * hash) + PAYLOAD_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getPayloadConfig().hashCode();
+ }
+ if (getCoreListCount() > 0) {
+ hash = (37 * hash) + CORE_LIST_FIELD_NUMBER;
+ hash = (53 * hash) + getCoreListList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
public static io.grpc.benchmarks.proto.Control.ServerConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -8343,39 +9210,39 @@
}
public static io.grpc.benchmarks.proto.Control.ServerConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Control.ServerConfig parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Control.ServerConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Control.ServerConfig parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Control.ServerConfig parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Control.ServerConfig parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -8393,7 +9260,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -8401,7 +9268,7 @@
* Protobuf type {@code grpc.testing.ServerConfig}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.testing.ServerConfig)
io.grpc.benchmarks.proto.Control.ServerConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -8409,7 +9276,7 @@
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ServerConfig_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ServerConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -8422,12 +9289,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -8502,6 +9370,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.benchmarks.proto.Control.ServerConfig) {
return mergeFrom((io.grpc.benchmarks.proto.Control.ServerConfig)other);
@@ -8587,7 +9481,7 @@
* <code>optional .grpc.testing.ServerType server_type = 1;</code>
*/
public io.grpc.benchmarks.proto.Control.ServerType getServerType() {
- io.grpc.benchmarks.proto.Control.ServerType result = io.grpc.benchmarks.proto.Control.ServerType.forNumber(serverType_);
+ io.grpc.benchmarks.proto.Control.ServerType result = io.grpc.benchmarks.proto.Control.ServerType.valueOf(serverType_);
return result == null ? io.grpc.benchmarks.proto.Control.ServerType.UNRECOGNIZED : result;
}
/**
@@ -8613,7 +9507,7 @@
}
private io.grpc.benchmarks.proto.Control.SecurityParams securityParams_ = null;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Control.SecurityParams, io.grpc.benchmarks.proto.Control.SecurityParams.Builder, io.grpc.benchmarks.proto.Control.SecurityParamsOrBuilder> securityParamsBuilder_;
/**
* <code>optional .grpc.testing.SecurityParams security_params = 2;</code>
@@ -8715,11 +9609,11 @@
/**
* <code>optional .grpc.testing.SecurityParams security_params = 2;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Control.SecurityParams, io.grpc.benchmarks.proto.Control.SecurityParams.Builder, io.grpc.benchmarks.proto.Control.SecurityParamsOrBuilder>
getSecurityParamsFieldBuilder() {
if (securityParamsBuilder_ == null) {
- securityParamsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ securityParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Control.SecurityParams, io.grpc.benchmarks.proto.Control.SecurityParams.Builder, io.grpc.benchmarks.proto.Control.SecurityParamsOrBuilder>(
getSecurityParams(),
getParentForChildren(),
@@ -8844,7 +9738,7 @@
}
private io.grpc.benchmarks.proto.Payloads.PayloadConfig payloadConfig_ = null;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Payloads.PayloadConfig, io.grpc.benchmarks.proto.Payloads.PayloadConfig.Builder, io.grpc.benchmarks.proto.Payloads.PayloadConfigOrBuilder> payloadConfigBuilder_;
/**
* <pre>
@@ -8982,11 +9876,11 @@
*
* <code>optional .grpc.testing.PayloadConfig payload_config = 9;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Payloads.PayloadConfig, io.grpc.benchmarks.proto.Payloads.PayloadConfig.Builder, io.grpc.benchmarks.proto.Payloads.PayloadConfigOrBuilder>
getPayloadConfigFieldBuilder() {
if (payloadConfigBuilder_ == null) {
- payloadConfigBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ payloadConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Payloads.PayloadConfig, io.grpc.benchmarks.proto.Payloads.PayloadConfig.Builder, io.grpc.benchmarks.proto.Payloads.PayloadConfigOrBuilder>(
getPayloadConfig(),
getParentForChildren(),
@@ -9166,11 +10060,11 @@
* Protobuf type {@code grpc.testing.ServerArgs}
*/
public static final class ServerArgs extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.testing.ServerArgs)
ServerArgsOrBuilder {
// Use ServerArgs.newBuilder() to construct.
- private ServerArgs(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private ServerArgs(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ServerArgs() {
@@ -9245,7 +10139,7 @@
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ServerArgs_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ServerArgs_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -9368,6 +10262,59 @@
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.benchmarks.proto.Control.ServerArgs)) {
+ return super.equals(obj);
+ }
+ io.grpc.benchmarks.proto.Control.ServerArgs other = (io.grpc.benchmarks.proto.Control.ServerArgs) obj;
+
+ boolean result = true;
+ result = result && getArgtypeCase().equals(
+ other.getArgtypeCase());
+ if (!result) return false;
+ switch (argtypeCase_) {
+ case 1:
+ result = result && getSetup()
+ .equals(other.getSetup());
+ break;
+ case 2:
+ result = result && getMark()
+ .equals(other.getMark());
+ break;
+ case 0:
+ default:
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ switch (argtypeCase_) {
+ case 1:
+ hash = (37 * hash) + SETUP_FIELD_NUMBER;
+ hash = (53 * hash) + getSetup().hashCode();
+ break;
+ case 2:
+ hash = (37 * hash) + MARK_FIELD_NUMBER;
+ hash = (53 * hash) + getMark().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
public static io.grpc.benchmarks.proto.Control.ServerArgs parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -9391,39 +10338,39 @@
}
public static io.grpc.benchmarks.proto.Control.ServerArgs parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Control.ServerArgs parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Control.ServerArgs parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Control.ServerArgs parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Control.ServerArgs parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Control.ServerArgs parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -9441,7 +10388,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -9449,7 +10396,7 @@
* Protobuf type {@code grpc.testing.ServerArgs}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.testing.ServerArgs)
io.grpc.benchmarks.proto.Control.ServerArgsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -9457,7 +10404,7 @@
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ServerArgs_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ServerArgs_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -9470,12 +10417,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -9523,6 +10471,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.benchmarks.proto.Control.ServerArgs) {
return mergeFrom((io.grpc.benchmarks.proto.Control.ServerArgs)other);
@@ -9588,7 +10562,7 @@
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Control.ServerConfig, io.grpc.benchmarks.proto.Control.ServerConfig.Builder, io.grpc.benchmarks.proto.Control.ServerConfigOrBuilder> setupBuilder_;
/**
* <code>optional .grpc.testing.ServerConfig setup = 1;</code>
@@ -9699,14 +10673,14 @@
/**
* <code>optional .grpc.testing.ServerConfig setup = 1;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Control.ServerConfig, io.grpc.benchmarks.proto.Control.ServerConfig.Builder, io.grpc.benchmarks.proto.Control.ServerConfigOrBuilder>
getSetupFieldBuilder() {
if (setupBuilder_ == null) {
if (!(argtypeCase_ == 1)) {
argtype_ = io.grpc.benchmarks.proto.Control.ServerConfig.getDefaultInstance();
}
- setupBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ setupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Control.ServerConfig, io.grpc.benchmarks.proto.Control.ServerConfig.Builder, io.grpc.benchmarks.proto.Control.ServerConfigOrBuilder>(
(io.grpc.benchmarks.proto.Control.ServerConfig) argtype_,
getParentForChildren(),
@@ -9718,7 +10692,7 @@
return setupBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Control.Mark, io.grpc.benchmarks.proto.Control.Mark.Builder, io.grpc.benchmarks.proto.Control.MarkOrBuilder> markBuilder_;
/**
* <code>optional .grpc.testing.Mark mark = 2;</code>
@@ -9829,14 +10803,14 @@
/**
* <code>optional .grpc.testing.Mark mark = 2;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Control.Mark, io.grpc.benchmarks.proto.Control.Mark.Builder, io.grpc.benchmarks.proto.Control.MarkOrBuilder>
getMarkFieldBuilder() {
if (markBuilder_ == null) {
if (!(argtypeCase_ == 2)) {
argtype_ = io.grpc.benchmarks.proto.Control.Mark.getDefaultInstance();
}
- markBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ markBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Control.Mark, io.grpc.benchmarks.proto.Control.Mark.Builder, io.grpc.benchmarks.proto.Control.MarkOrBuilder>(
(io.grpc.benchmarks.proto.Control.Mark) argtype_,
getParentForChildren(),
@@ -9935,11 +10909,11 @@
* Protobuf type {@code grpc.testing.ServerStatus}
*/
public static final class ServerStatus extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.testing.ServerStatus)
ServerStatusOrBuilder {
// Use ServerStatus.newBuilder() to construct.
- private ServerStatus(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private ServerStatus(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ServerStatus() {
@@ -10011,7 +10985,7 @@
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ServerStatus_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ServerStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -10110,6 +11084,49 @@
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.benchmarks.proto.Control.ServerStatus)) {
+ return super.equals(obj);
+ }
+ io.grpc.benchmarks.proto.Control.ServerStatus other = (io.grpc.benchmarks.proto.Control.ServerStatus) obj;
+
+ boolean result = true;
+ result = result && (hasStats() == other.hasStats());
+ if (hasStats()) {
+ result = result && getStats()
+ .equals(other.getStats());
+ }
+ result = result && (getPort()
+ == other.getPort());
+ result = result && (getCores()
+ == other.getCores());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ if (hasStats()) {
+ hash = (37 * hash) + STATS_FIELD_NUMBER;
+ hash = (53 * hash) + getStats().hashCode();
+ }
+ hash = (37 * hash) + PORT_FIELD_NUMBER;
+ hash = (53 * hash) + getPort();
+ hash = (37 * hash) + CORES_FIELD_NUMBER;
+ hash = (53 * hash) + getCores();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
public static io.grpc.benchmarks.proto.Control.ServerStatus parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -10133,39 +11150,39 @@
}
public static io.grpc.benchmarks.proto.Control.ServerStatus parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Control.ServerStatus parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Control.ServerStatus parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Control.ServerStatus parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Control.ServerStatus parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Control.ServerStatus parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -10183,7 +11200,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -10191,7 +11208,7 @@
* Protobuf type {@code grpc.testing.ServerStatus}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.testing.ServerStatus)
io.grpc.benchmarks.proto.Control.ServerStatusOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -10199,7 +11216,7 @@
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ServerStatus_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_ServerStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -10212,12 +11229,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -10265,6 +11283,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.benchmarks.proto.Control.ServerStatus) {
return mergeFrom((io.grpc.benchmarks.proto.Control.ServerStatus)other);
@@ -10312,7 +11356,7 @@
}
private io.grpc.benchmarks.proto.Stats.ServerStats stats_ = null;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Stats.ServerStats, io.grpc.benchmarks.proto.Stats.ServerStats.Builder, io.grpc.benchmarks.proto.Stats.ServerStatsOrBuilder> statsBuilder_;
/**
* <code>optional .grpc.testing.ServerStats stats = 1;</code>
@@ -10414,11 +11458,11 @@
/**
* <code>optional .grpc.testing.ServerStats stats = 1;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Stats.ServerStats, io.grpc.benchmarks.proto.Stats.ServerStats.Builder, io.grpc.benchmarks.proto.Stats.ServerStatsOrBuilder>
getStatsFieldBuilder() {
if (statsBuilder_ == null) {
- statsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ statsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Stats.ServerStats, io.grpc.benchmarks.proto.Stats.ServerStats.Builder, io.grpc.benchmarks.proto.Stats.ServerStatsOrBuilder>(
getStats(),
getParentForChildren(),
@@ -10560,11 +11604,11 @@
* Protobuf type {@code grpc.testing.CoreRequest}
*/
public static final class CoreRequest extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.testing.CoreRequest)
CoreRequestOrBuilder {
// Use CoreRequest.newBuilder() to construct.
- private CoreRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private CoreRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private CoreRequest() {
@@ -10610,7 +11654,7 @@
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_CoreRequest_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_CoreRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -10641,6 +11685,32 @@
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.benchmarks.proto.Control.CoreRequest)) {
+ return super.equals(obj);
+ }
+ io.grpc.benchmarks.proto.Control.CoreRequest other = (io.grpc.benchmarks.proto.Control.CoreRequest) obj;
+
+ boolean result = true;
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
public static io.grpc.benchmarks.proto.Control.CoreRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -10664,39 +11734,39 @@
}
public static io.grpc.benchmarks.proto.Control.CoreRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Control.CoreRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Control.CoreRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Control.CoreRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Control.CoreRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Control.CoreRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -10714,7 +11784,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -10722,7 +11792,7 @@
* Protobuf type {@code grpc.testing.CoreRequest}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.testing.CoreRequest)
io.grpc.benchmarks.proto.Control.CoreRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -10730,7 +11800,7 @@
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_CoreRequest_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_CoreRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -10743,12 +11813,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -10779,6 +11850,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.benchmarks.proto.Control.CoreRequest) {
return mergeFrom((io.grpc.benchmarks.proto.Control.CoreRequest)other);
@@ -10881,11 +11978,11 @@
* Protobuf type {@code grpc.testing.CoreResponse}
*/
public static final class CoreResponse extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.testing.CoreResponse)
CoreResponseOrBuilder {
// Use CoreResponse.newBuilder() to construct.
- private CoreResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private CoreResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private CoreResponse() {
@@ -10938,7 +12035,7 @@
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_CoreResponse_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_CoreResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -10989,6 +12086,36 @@
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.benchmarks.proto.Control.CoreResponse)) {
+ return super.equals(obj);
+ }
+ io.grpc.benchmarks.proto.Control.CoreResponse other = (io.grpc.benchmarks.proto.Control.CoreResponse) obj;
+
+ boolean result = true;
+ result = result && (getCores()
+ == other.getCores());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ hash = (37 * hash) + CORES_FIELD_NUMBER;
+ hash = (53 * hash) + getCores();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
public static io.grpc.benchmarks.proto.Control.CoreResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -11012,39 +12139,39 @@
}
public static io.grpc.benchmarks.proto.Control.CoreResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Control.CoreResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Control.CoreResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Control.CoreResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Control.CoreResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Control.CoreResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -11062,7 +12189,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -11070,7 +12197,7 @@
* Protobuf type {@code grpc.testing.CoreResponse}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.testing.CoreResponse)
io.grpc.benchmarks.proto.Control.CoreResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -11078,7 +12205,7 @@
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_CoreResponse_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_CoreResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -11091,12 +12218,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -11130,6 +12258,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.benchmarks.proto.Control.CoreResponse) {
return mergeFrom((io.grpc.benchmarks.proto.Control.CoreResponse)other);
@@ -11264,11 +12418,11 @@
* Protobuf type {@code grpc.testing.Void}
*/
public static final class Void extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.testing.Void)
VoidOrBuilder {
// Use Void.newBuilder() to construct.
- private Void(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private Void(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private Void() {
@@ -11314,7 +12468,7 @@
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_Void_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_Void_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -11345,6 +12499,32 @@
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.benchmarks.proto.Control.Void)) {
+ return super.equals(obj);
+ }
+ io.grpc.benchmarks.proto.Control.Void other = (io.grpc.benchmarks.proto.Control.Void) obj;
+
+ boolean result = true;
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
public static io.grpc.benchmarks.proto.Control.Void parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -11368,39 +12548,39 @@
}
public static io.grpc.benchmarks.proto.Control.Void parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Control.Void parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Control.Void parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Control.Void parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Control.Void parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Control.Void parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -11418,7 +12598,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -11426,7 +12606,7 @@
* Protobuf type {@code grpc.testing.Void}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.testing.Void)
io.grpc.benchmarks.proto.Control.VoidOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -11434,7 +12614,7 @@
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_Void_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Control.internal_static_grpc_testing_Void_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -11447,12 +12627,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -11483,6 +12664,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.benchmarks.proto.Control.Void) {
return mergeFrom((io.grpc.benchmarks.proto.Control.Void)other);
@@ -11571,87 +12778,87 @@
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_grpc_testing_PoissonParams_descriptor;
private static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_grpc_testing_PoissonParams_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_grpc_testing_UniformParams_descriptor;
private static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_grpc_testing_UniformParams_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_grpc_testing_DeterministicParams_descriptor;
private static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_grpc_testing_DeterministicParams_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_grpc_testing_ParetoParams_descriptor;
private static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_grpc_testing_ParetoParams_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_grpc_testing_ClosedLoopParams_descriptor;
private static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_grpc_testing_ClosedLoopParams_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_grpc_testing_LoadParams_descriptor;
private static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_grpc_testing_LoadParams_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_grpc_testing_SecurityParams_descriptor;
private static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_grpc_testing_SecurityParams_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_grpc_testing_ClientConfig_descriptor;
private static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_grpc_testing_ClientConfig_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_grpc_testing_ClientStatus_descriptor;
private static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_grpc_testing_ClientStatus_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_grpc_testing_Mark_descriptor;
private static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_grpc_testing_Mark_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_grpc_testing_ClientArgs_descriptor;
private static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_grpc_testing_ClientArgs_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_grpc_testing_ServerConfig_descriptor;
private static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_grpc_testing_ServerConfig_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_grpc_testing_ServerArgs_descriptor;
private static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_grpc_testing_ServerArgs_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_grpc_testing_ServerStatus_descriptor;
private static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_grpc_testing_ServerStatus_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_grpc_testing_CoreRequest_descriptor;
private static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_grpc_testing_CoreRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_grpc_testing_CoreResponse_descriptor;
private static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_grpc_testing_CoreResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_grpc_testing_Void_descriptor;
private static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_grpc_testing_Void_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
@@ -11730,103 +12937,103 @@
internal_static_grpc_testing_PoissonParams_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_grpc_testing_PoissonParams_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_testing_PoissonParams_descriptor,
new java.lang.String[] { "OfferedLoad", });
internal_static_grpc_testing_UniformParams_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_grpc_testing_UniformParams_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_testing_UniformParams_descriptor,
new java.lang.String[] { "InterarrivalLo", "InterarrivalHi", });
internal_static_grpc_testing_DeterministicParams_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_grpc_testing_DeterministicParams_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_testing_DeterministicParams_descriptor,
new java.lang.String[] { "OfferedLoad", });
internal_static_grpc_testing_ParetoParams_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_grpc_testing_ParetoParams_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_testing_ParetoParams_descriptor,
new java.lang.String[] { "InterarrivalBase", "Alpha", });
internal_static_grpc_testing_ClosedLoopParams_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_grpc_testing_ClosedLoopParams_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_testing_ClosedLoopParams_descriptor,
new java.lang.String[] { });
internal_static_grpc_testing_LoadParams_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_grpc_testing_LoadParams_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_testing_LoadParams_descriptor,
new java.lang.String[] { "ClosedLoop", "Poisson", "Uniform", "Determ", "Pareto", "Load", });
internal_static_grpc_testing_SecurityParams_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_grpc_testing_SecurityParams_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_testing_SecurityParams_descriptor,
new java.lang.String[] { "UseTestCa", "ServerHostOverride", });
internal_static_grpc_testing_ClientConfig_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_grpc_testing_ClientConfig_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_testing_ClientConfig_descriptor,
new java.lang.String[] { "ServerTargets", "ClientType", "SecurityParams", "OutstandingRpcsPerChannel", "ClientChannels", "AsyncClientThreads", "RpcType", "LoadParams", "PayloadConfig", "HistogramParams", "CoreList", "CoreLimit", });
internal_static_grpc_testing_ClientStatus_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_grpc_testing_ClientStatus_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_testing_ClientStatus_descriptor,
new java.lang.String[] { "Stats", });
internal_static_grpc_testing_Mark_descriptor =
getDescriptor().getMessageTypes().get(9);
internal_static_grpc_testing_Mark_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_testing_Mark_descriptor,
new java.lang.String[] { "Reset", });
internal_static_grpc_testing_ClientArgs_descriptor =
getDescriptor().getMessageTypes().get(10);
internal_static_grpc_testing_ClientArgs_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_testing_ClientArgs_descriptor,
new java.lang.String[] { "Setup", "Mark", "Argtype", });
internal_static_grpc_testing_ServerConfig_descriptor =
getDescriptor().getMessageTypes().get(11);
internal_static_grpc_testing_ServerConfig_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_testing_ServerConfig_descriptor,
new java.lang.String[] { "ServerType", "SecurityParams", "Port", "AsyncServerThreads", "CoreLimit", "PayloadConfig", "CoreList", });
internal_static_grpc_testing_ServerArgs_descriptor =
getDescriptor().getMessageTypes().get(12);
internal_static_grpc_testing_ServerArgs_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_testing_ServerArgs_descriptor,
new java.lang.String[] { "Setup", "Mark", "Argtype", });
internal_static_grpc_testing_ServerStatus_descriptor =
getDescriptor().getMessageTypes().get(13);
internal_static_grpc_testing_ServerStatus_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_testing_ServerStatus_descriptor,
new java.lang.String[] { "Stats", "Port", "Cores", });
internal_static_grpc_testing_CoreRequest_descriptor =
getDescriptor().getMessageTypes().get(14);
internal_static_grpc_testing_CoreRequest_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_testing_CoreRequest_descriptor,
new java.lang.String[] { });
internal_static_grpc_testing_CoreResponse_descriptor =
getDescriptor().getMessageTypes().get(15);
internal_static_grpc_testing_CoreResponse_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_testing_CoreResponse_descriptor,
new java.lang.String[] { "Cores", });
internal_static_grpc_testing_Void_descriptor =
getDescriptor().getMessageTypes().get(16);
internal_static_grpc_testing_Void_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_testing_Void_descriptor,
new java.lang.String[] { });
io.grpc.benchmarks.proto.Payloads.getDescriptor();
diff --git a/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Messages.java b/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Messages.java
index 65f7fde..b24c25b 100644
--- a/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Messages.java
+++ b/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Messages.java
@@ -6,7 +6,13 @@
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);
}
/**
* <pre>
@@ -300,11 +306,11 @@
* Protobuf type {@code grpc.testing.Payload}
*/
public static final class Payload extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.testing.Payload)
PayloadOrBuilder {
// Use Payload.newBuilder() to construct.
- private Payload(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private Payload(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private Payload() {
@@ -364,7 +370,7 @@
return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_Payload_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_Payload_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -391,7 +397,7 @@
* <code>optional .grpc.testing.PayloadType type = 1;</code>
*/
public io.grpc.benchmarks.proto.Messages.PayloadType getType() {
- io.grpc.benchmarks.proto.Messages.PayloadType result = io.grpc.benchmarks.proto.Messages.PayloadType.forNumber(type_);
+ io.grpc.benchmarks.proto.Messages.PayloadType result = io.grpc.benchmarks.proto.Messages.PayloadType.valueOf(type_);
return result == null ? io.grpc.benchmarks.proto.Messages.PayloadType.UNRECOGNIZED : result;
}
@@ -446,6 +452,39 @@
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.benchmarks.proto.Messages.Payload)) {
+ return super.equals(obj);
+ }
+ io.grpc.benchmarks.proto.Messages.Payload other = (io.grpc.benchmarks.proto.Messages.Payload) obj;
+
+ boolean result = true;
+ result = result && type_ == other.type_;
+ result = result && getBody()
+ .equals(other.getBody());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().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 io.grpc.benchmarks.proto.Messages.Payload parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -469,39 +508,39 @@
}
public static io.grpc.benchmarks.proto.Messages.Payload parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Messages.Payload parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Messages.Payload parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Messages.Payload parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Messages.Payload parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Messages.Payload parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -519,7 +558,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -531,7 +570,7 @@
* Protobuf type {@code grpc.testing.Payload}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.testing.Payload)
io.grpc.benchmarks.proto.Messages.PayloadOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -539,7 +578,7 @@
return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_Payload_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_Payload_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -552,12 +591,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -594,6 +634,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.benchmarks.proto.Messages.Payload) {
return mergeFrom((io.grpc.benchmarks.proto.Messages.Payload)other);
@@ -668,7 +734,7 @@
* <code>optional .grpc.testing.PayloadType type = 1;</code>
*/
public io.grpc.benchmarks.proto.Messages.PayloadType getType() {
- io.grpc.benchmarks.proto.Messages.PayloadType result = io.grpc.benchmarks.proto.Messages.PayloadType.forNumber(type_);
+ io.grpc.benchmarks.proto.Messages.PayloadType result = io.grpc.benchmarks.proto.Messages.PayloadType.valueOf(type_);
return result == null ? io.grpc.benchmarks.proto.Messages.PayloadType.UNRECOGNIZED : result;
}
/**
@@ -818,11 +884,11 @@
* Protobuf type {@code grpc.testing.EchoStatus}
*/
public static final class EchoStatus extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.testing.EchoStatus)
EchoStatusOrBuilder {
// Use EchoStatus.newBuilder() to construct.
- private EchoStatus(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private EchoStatus(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private EchoStatus() {
@@ -882,7 +948,7 @@
return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_EchoStatus_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_EchoStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -948,7 +1014,7 @@
output.writeInt32(1, code_);
}
if (!getMessageBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessage.writeString(output, 2, message_);
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_);
}
}
@@ -962,13 +1028,47 @@
.computeInt32Size(1, code_);
}
if (!getMessageBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(2, message_);
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.benchmarks.proto.Messages.EchoStatus)) {
+ return super.equals(obj);
+ }
+ io.grpc.benchmarks.proto.Messages.EchoStatus other = (io.grpc.benchmarks.proto.Messages.EchoStatus) obj;
+
+ boolean result = true;
+ result = result && (getCode()
+ == other.getCode());
+ result = result && getMessage()
+ .equals(other.getMessage());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().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 io.grpc.benchmarks.proto.Messages.EchoStatus parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -992,39 +1092,39 @@
}
public static io.grpc.benchmarks.proto.Messages.EchoStatus parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Messages.EchoStatus parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Messages.EchoStatus parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Messages.EchoStatus parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Messages.EchoStatus parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Messages.EchoStatus parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -1042,7 +1142,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -1055,7 +1155,7 @@
* Protobuf type {@code grpc.testing.EchoStatus}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.testing.EchoStatus)
io.grpc.benchmarks.proto.Messages.EchoStatusOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -1063,7 +1163,7 @@
return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_EchoStatus_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_EchoStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -1076,12 +1176,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -1118,6 +1219,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.benchmarks.proto.Messages.EchoStatus) {
return mergeFrom((io.grpc.benchmarks.proto.Messages.EchoStatus)other);
@@ -1431,11 +1558,11 @@
* Protobuf type {@code grpc.testing.SimpleRequest}
*/
public static final class SimpleRequest extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.testing.SimpleRequest)
SimpleRequestOrBuilder {
// Use SimpleRequest.newBuilder() to construct.
- private SimpleRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private SimpleRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private SimpleRequest() {
@@ -1540,7 +1667,7 @@
return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_SimpleRequest_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_SimpleRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -1569,7 +1696,7 @@
* <code>optional .grpc.testing.PayloadType response_type = 1;</code>
*/
public io.grpc.benchmarks.proto.Messages.PayloadType getResponseType() {
- io.grpc.benchmarks.proto.Messages.PayloadType result = io.grpc.benchmarks.proto.Messages.PayloadType.forNumber(responseType_);
+ io.grpc.benchmarks.proto.Messages.PayloadType result = io.grpc.benchmarks.proto.Messages.PayloadType.valueOf(responseType_);
return result == null ? io.grpc.benchmarks.proto.Messages.PayloadType.UNRECOGNIZED : result;
}
@@ -1666,7 +1793,7 @@
* <code>optional .grpc.testing.CompressionType response_compression = 6;</code>
*/
public io.grpc.benchmarks.proto.Messages.CompressionType getResponseCompression() {
- io.grpc.benchmarks.proto.Messages.CompressionType result = io.grpc.benchmarks.proto.Messages.CompressionType.forNumber(responseCompression_);
+ io.grpc.benchmarks.proto.Messages.CompressionType result = io.grpc.benchmarks.proto.Messages.CompressionType.valueOf(responseCompression_);
return result == null ? io.grpc.benchmarks.proto.Messages.CompressionType.UNRECOGNIZED : result;
}
@@ -1776,6 +1903,70 @@
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.benchmarks.proto.Messages.SimpleRequest)) {
+ return super.equals(obj);
+ }
+ io.grpc.benchmarks.proto.Messages.SimpleRequest other = (io.grpc.benchmarks.proto.Messages.SimpleRequest) obj;
+
+ boolean result = true;
+ result = result && responseType_ == other.responseType_;
+ result = result && (getResponseSize()
+ == other.getResponseSize());
+ result = result && (hasPayload() == other.hasPayload());
+ if (hasPayload()) {
+ result = result && getPayload()
+ .equals(other.getPayload());
+ }
+ result = result && (getFillUsername()
+ == other.getFillUsername());
+ result = result && (getFillOauthScope()
+ == other.getFillOauthScope());
+ result = result && responseCompression_ == other.responseCompression_;
+ result = result && (hasResponseStatus() == other.hasResponseStatus());
+ if (hasResponseStatus()) {
+ result = result && getResponseStatus()
+ .equals(other.getResponseStatus());
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().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());
+ hash = (37 * hash) + RESPONSE_COMPRESSION_FIELD_NUMBER;
+ hash = (53 * hash) + responseCompression_;
+ 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 io.grpc.benchmarks.proto.Messages.SimpleRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -1799,39 +1990,39 @@
}
public static io.grpc.benchmarks.proto.Messages.SimpleRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Messages.SimpleRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Messages.SimpleRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Messages.SimpleRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Messages.SimpleRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Messages.SimpleRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -1849,7 +2040,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -1861,7 +2052,7 @@
* Protobuf type {@code grpc.testing.SimpleRequest}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.testing.SimpleRequest)
io.grpc.benchmarks.proto.Messages.SimpleRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -1869,7 +2060,7 @@
return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_SimpleRequest_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_SimpleRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -1882,12 +2073,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -1955,6 +2147,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.benchmarks.proto.Messages.SimpleRequest) {
return mergeFrom((io.grpc.benchmarks.proto.Messages.SimpleRequest)other);
@@ -2047,7 +2265,7 @@
* <code>optional .grpc.testing.PayloadType response_type = 1;</code>
*/
public io.grpc.benchmarks.proto.Messages.PayloadType getResponseType() {
- io.grpc.benchmarks.proto.Messages.PayloadType result = io.grpc.benchmarks.proto.Messages.PayloadType.forNumber(responseType_);
+ io.grpc.benchmarks.proto.Messages.PayloadType result = io.grpc.benchmarks.proto.Messages.PayloadType.valueOf(responseType_);
return result == null ? io.grpc.benchmarks.proto.Messages.PayloadType.UNRECOGNIZED : result;
}
/**
@@ -2124,7 +2342,7 @@
}
private io.grpc.benchmarks.proto.Messages.Payload payload_ = null;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Messages.Payload, io.grpc.benchmarks.proto.Messages.Payload.Builder, io.grpc.benchmarks.proto.Messages.PayloadOrBuilder> payloadBuilder_;
/**
* <pre>
@@ -2262,11 +2480,11 @@
*
* <code>optional .grpc.testing.Payload payload = 3;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Messages.Payload, io.grpc.benchmarks.proto.Messages.Payload.Builder, io.grpc.benchmarks.proto.Messages.PayloadOrBuilder>
getPayloadFieldBuilder() {
if (payloadBuilder_ == null) {
- payloadBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ payloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Messages.Payload, io.grpc.benchmarks.proto.Messages.Payload.Builder, io.grpc.benchmarks.proto.Messages.PayloadOrBuilder>(
getPayload(),
getParentForChildren(),
@@ -2383,7 +2601,7 @@
* <code>optional .grpc.testing.CompressionType response_compression = 6;</code>
*/
public io.grpc.benchmarks.proto.Messages.CompressionType getResponseCompression() {
- io.grpc.benchmarks.proto.Messages.CompressionType result = io.grpc.benchmarks.proto.Messages.CompressionType.forNumber(responseCompression_);
+ io.grpc.benchmarks.proto.Messages.CompressionType result = io.grpc.benchmarks.proto.Messages.CompressionType.valueOf(responseCompression_);
return result == null ? io.grpc.benchmarks.proto.Messages.CompressionType.UNRECOGNIZED : result;
}
/**
@@ -2417,7 +2635,7 @@
}
private io.grpc.benchmarks.proto.Messages.EchoStatus responseStatus_ = null;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Messages.EchoStatus, io.grpc.benchmarks.proto.Messages.EchoStatus.Builder, io.grpc.benchmarks.proto.Messages.EchoStatusOrBuilder> responseStatusBuilder_;
/**
* <pre>
@@ -2555,11 +2773,11 @@
*
* <code>optional .grpc.testing.EchoStatus response_status = 7;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Messages.EchoStatus, io.grpc.benchmarks.proto.Messages.EchoStatus.Builder, io.grpc.benchmarks.proto.Messages.EchoStatusOrBuilder>
getResponseStatusFieldBuilder() {
if (responseStatusBuilder_ == null) {
- responseStatusBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ responseStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Messages.EchoStatus, io.grpc.benchmarks.proto.Messages.EchoStatus.Builder, io.grpc.benchmarks.proto.Messages.EchoStatusOrBuilder>(
getResponseStatus(),
getParentForChildren(),
@@ -2692,11 +2910,11 @@
* Protobuf type {@code grpc.testing.SimpleResponse}
*/
public static final class SimpleResponse extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.testing.SimpleResponse)
SimpleResponseOrBuilder {
// Use SimpleResponse.newBuilder() to construct.
- private SimpleResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private SimpleResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private SimpleResponse() {
@@ -2770,7 +2988,7 @@
return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_SimpleResponse_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_SimpleResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -2912,10 +3130,10 @@
output.writeMessage(1, getPayload());
}
if (!getUsernameBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessage.writeString(output, 2, username_);
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, username_);
}
if (!getOauthScopeBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessage.writeString(output, 3, oauthScope_);
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, oauthScope_);
}
}
@@ -2929,16 +3147,59 @@
.computeMessageSize(1, getPayload());
}
if (!getUsernameBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(2, username_);
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, username_);
}
if (!getOauthScopeBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(3, oauthScope_);
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, oauthScope_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.benchmarks.proto.Messages.SimpleResponse)) {
+ return super.equals(obj);
+ }
+ io.grpc.benchmarks.proto.Messages.SimpleResponse other = (io.grpc.benchmarks.proto.Messages.SimpleResponse) obj;
+
+ boolean result = true;
+ result = result && (hasPayload() == other.hasPayload());
+ if (hasPayload()) {
+ result = result && getPayload()
+ .equals(other.getPayload());
+ }
+ result = result && getUsername()
+ .equals(other.getUsername());
+ result = result && getOauthScope()
+ .equals(other.getOauthScope());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().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 = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
public static io.grpc.benchmarks.proto.Messages.SimpleResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -2962,39 +3223,39 @@
}
public static io.grpc.benchmarks.proto.Messages.SimpleResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Messages.SimpleResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Messages.SimpleResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Messages.SimpleResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Messages.SimpleResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Messages.SimpleResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -3012,7 +3273,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -3024,7 +3285,7 @@
* Protobuf type {@code grpc.testing.SimpleResponse}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.testing.SimpleResponse)
io.grpc.benchmarks.proto.Messages.SimpleResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -3032,7 +3293,7 @@
return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_SimpleResponse_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_SimpleResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -3045,12 +3306,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -3098,6 +3360,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.benchmarks.proto.Messages.SimpleResponse) {
return mergeFrom((io.grpc.benchmarks.proto.Messages.SimpleResponse)other);
@@ -3147,7 +3435,7 @@
}
private io.grpc.benchmarks.proto.Messages.Payload payload_ = null;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Messages.Payload, io.grpc.benchmarks.proto.Messages.Payload.Builder, io.grpc.benchmarks.proto.Messages.PayloadOrBuilder> payloadBuilder_;
/**
* <pre>
@@ -3285,11 +3573,11 @@
*
* <code>optional .grpc.testing.Payload payload = 1;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Messages.Payload, io.grpc.benchmarks.proto.Messages.Payload.Builder, io.grpc.benchmarks.proto.Messages.PayloadOrBuilder>
getPayloadFieldBuilder() {
if (payloadBuilder_ == null) {
- payloadBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ payloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Messages.Payload, io.grpc.benchmarks.proto.Messages.Payload.Builder, io.grpc.benchmarks.proto.Messages.PayloadOrBuilder>(
getPayload(),
getParentForChildren(),
@@ -3567,11 +3855,11 @@
* Protobuf type {@code grpc.testing.StreamingInputCallRequest}
*/
public static final class StreamingInputCallRequest extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.testing.StreamingInputCallRequest)
StreamingInputCallRequestOrBuilder {
// Use StreamingInputCallRequest.newBuilder() to construct.
- private StreamingInputCallRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private StreamingInputCallRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private StreamingInputCallRequest() {
@@ -3631,7 +3919,7 @@
return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_StreamingInputCallRequest_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_StreamingInputCallRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -3702,6 +3990,41 @@
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.benchmarks.proto.Messages.StreamingInputCallRequest)) {
+ return super.equals(obj);
+ }
+ io.grpc.benchmarks.proto.Messages.StreamingInputCallRequest other = (io.grpc.benchmarks.proto.Messages.StreamingInputCallRequest) obj;
+
+ boolean result = true;
+ result = result && (hasPayload() == other.hasPayload());
+ if (hasPayload()) {
+ result = result && getPayload()
+ .equals(other.getPayload());
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().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 io.grpc.benchmarks.proto.Messages.StreamingInputCallRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -3725,39 +4048,39 @@
}
public static io.grpc.benchmarks.proto.Messages.StreamingInputCallRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Messages.StreamingInputCallRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Messages.StreamingInputCallRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Messages.StreamingInputCallRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Messages.StreamingInputCallRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Messages.StreamingInputCallRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -3775,7 +4098,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -3787,7 +4110,7 @@
* Protobuf type {@code grpc.testing.StreamingInputCallRequest}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.testing.StreamingInputCallRequest)
io.grpc.benchmarks.proto.Messages.StreamingInputCallRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -3795,7 +4118,7 @@
return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_StreamingInputCallRequest_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_StreamingInputCallRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -3808,12 +4131,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -3855,6 +4179,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.benchmarks.proto.Messages.StreamingInputCallRequest) {
return mergeFrom((io.grpc.benchmarks.proto.Messages.StreamingInputCallRequest)other);
@@ -3896,7 +4246,7 @@
}
private io.grpc.benchmarks.proto.Messages.Payload payload_ = null;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Messages.Payload, io.grpc.benchmarks.proto.Messages.Payload.Builder, io.grpc.benchmarks.proto.Messages.PayloadOrBuilder> payloadBuilder_;
/**
* <pre>
@@ -4034,11 +4384,11 @@
*
* <code>optional .grpc.testing.Payload payload = 1;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Messages.Payload, io.grpc.benchmarks.proto.Messages.Payload.Builder, io.grpc.benchmarks.proto.Messages.PayloadOrBuilder>
getPayloadFieldBuilder() {
if (payloadBuilder_ == null) {
- payloadBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ payloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Messages.Payload, io.grpc.benchmarks.proto.Messages.Payload.Builder, io.grpc.benchmarks.proto.Messages.PayloadOrBuilder>(
getPayload(),
getParentForChildren(),
@@ -4117,11 +4467,11 @@
* Protobuf type {@code grpc.testing.StreamingInputCallResponse}
*/
public static final class StreamingInputCallResponse extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.testing.StreamingInputCallResponse)
StreamingInputCallResponseOrBuilder {
// Use StreamingInputCallResponse.newBuilder() to construct.
- private StreamingInputCallResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private StreamingInputCallResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private StreamingInputCallResponse() {
@@ -4174,7 +4524,7 @@
return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_StreamingInputCallResponse_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_StreamingInputCallResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -4225,6 +4575,36 @@
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.benchmarks.proto.Messages.StreamingInputCallResponse)) {
+ return super.equals(obj);
+ }
+ io.grpc.benchmarks.proto.Messages.StreamingInputCallResponse other = (io.grpc.benchmarks.proto.Messages.StreamingInputCallResponse) obj;
+
+ boolean result = true;
+ result = result && (getAggregatedPayloadSize()
+ == other.getAggregatedPayloadSize());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ hash = (37 * hash) + AGGREGATED_PAYLOAD_SIZE_FIELD_NUMBER;
+ hash = (53 * hash) + getAggregatedPayloadSize();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
public static io.grpc.benchmarks.proto.Messages.StreamingInputCallResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -4248,39 +4628,39 @@
}
public static io.grpc.benchmarks.proto.Messages.StreamingInputCallResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Messages.StreamingInputCallResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Messages.StreamingInputCallResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Messages.StreamingInputCallResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Messages.StreamingInputCallResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Messages.StreamingInputCallResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -4298,7 +4678,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -4310,7 +4690,7 @@
* Protobuf type {@code grpc.testing.StreamingInputCallResponse}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.testing.StreamingInputCallResponse)
io.grpc.benchmarks.proto.Messages.StreamingInputCallResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -4318,7 +4698,7 @@
return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_StreamingInputCallResponse_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_StreamingInputCallResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -4331,12 +4711,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -4370,6 +4751,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.benchmarks.proto.Messages.StreamingInputCallResponse) {
return mergeFrom((io.grpc.benchmarks.proto.Messages.StreamingInputCallResponse)other);
@@ -4528,11 +4935,11 @@
* Protobuf type {@code grpc.testing.ResponseParameters}
*/
public static final class ResponseParameters extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.testing.ResponseParameters)
ResponseParametersOrBuilder {
// Use ResponseParameters.newBuilder() to construct.
- private ResponseParameters(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private ResponseParameters(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ResponseParameters() {
@@ -4591,7 +4998,7 @@
return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_ResponseParameters_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_ResponseParameters_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -4664,6 +5071,40 @@
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.benchmarks.proto.Messages.ResponseParameters)) {
+ return super.equals(obj);
+ }
+ io.grpc.benchmarks.proto.Messages.ResponseParameters other = (io.grpc.benchmarks.proto.Messages.ResponseParameters) obj;
+
+ boolean result = true;
+ result = result && (getSize()
+ == other.getSize());
+ result = result && (getIntervalUs()
+ == other.getIntervalUs());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ hash = (37 * hash) + SIZE_FIELD_NUMBER;
+ hash = (53 * hash) + getSize();
+ hash = (37 * hash) + INTERVAL_US_FIELD_NUMBER;
+ hash = (53 * hash) + getIntervalUs();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
public static io.grpc.benchmarks.proto.Messages.ResponseParameters parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -4687,39 +5128,39 @@
}
public static io.grpc.benchmarks.proto.Messages.ResponseParameters parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Messages.ResponseParameters parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Messages.ResponseParameters parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Messages.ResponseParameters parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Messages.ResponseParameters parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Messages.ResponseParameters parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -4737,7 +5178,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -4749,7 +5190,7 @@
* Protobuf type {@code grpc.testing.ResponseParameters}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.testing.ResponseParameters)
io.grpc.benchmarks.proto.Messages.ResponseParametersOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -4757,7 +5198,7 @@
return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_ResponseParameters_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_ResponseParameters_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -4770,12 +5211,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -4812,6 +5254,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.benchmarks.proto.Messages.ResponseParameters) {
return mergeFrom((io.grpc.benchmarks.proto.Messages.ResponseParameters)other);
@@ -5131,11 +5599,11 @@
* Protobuf type {@code grpc.testing.StreamingOutputCallRequest}
*/
public static final class StreamingOutputCallRequest extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.testing.StreamingOutputCallRequest)
StreamingOutputCallRequestOrBuilder {
// Use StreamingOutputCallRequest.newBuilder() to construct.
- private StreamingOutputCallRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private StreamingOutputCallRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private StreamingOutputCallRequest() {
@@ -5180,7 +5648,8 @@
responseParameters_ = new java.util.ArrayList<io.grpc.benchmarks.proto.Messages.ResponseParameters>();
mutable_bitField0_ |= 0x00000002;
}
- responseParameters_.add(input.readMessage(io.grpc.benchmarks.proto.Messages.ResponseParameters.parser(), extensionRegistry));
+ responseParameters_.add(
+ input.readMessage(io.grpc.benchmarks.proto.Messages.ResponseParameters.parser(), extensionRegistry));
break;
}
case 26: {
@@ -5234,7 +5703,7 @@
return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_StreamingOutputCallRequest_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_StreamingOutputCallRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -5268,7 +5737,7 @@
* <code>optional .grpc.testing.PayloadType response_type = 1;</code>
*/
public io.grpc.benchmarks.proto.Messages.PayloadType getResponseType() {
- io.grpc.benchmarks.proto.Messages.PayloadType result = io.grpc.benchmarks.proto.Messages.PayloadType.forNumber(responseType_);
+ io.grpc.benchmarks.proto.Messages.PayloadType result = io.grpc.benchmarks.proto.Messages.PayloadType.valueOf(responseType_);
return result == null ? io.grpc.benchmarks.proto.Messages.PayloadType.UNRECOGNIZED : result;
}
@@ -5380,7 +5849,7 @@
* <code>optional .grpc.testing.CompressionType response_compression = 6;</code>
*/
public io.grpc.benchmarks.proto.Messages.CompressionType getResponseCompression() {
- io.grpc.benchmarks.proto.Messages.CompressionType result = io.grpc.benchmarks.proto.Messages.CompressionType.forNumber(responseCompression_);
+ io.grpc.benchmarks.proto.Messages.CompressionType result = io.grpc.benchmarks.proto.Messages.CompressionType.valueOf(responseCompression_);
return result == null ? io.grpc.benchmarks.proto.Messages.CompressionType.UNRECOGNIZED : result;
}
@@ -5476,6 +5945,62 @@
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.benchmarks.proto.Messages.StreamingOutputCallRequest)) {
+ return super.equals(obj);
+ }
+ io.grpc.benchmarks.proto.Messages.StreamingOutputCallRequest other = (io.grpc.benchmarks.proto.Messages.StreamingOutputCallRequest) obj;
+
+ boolean result = true;
+ result = result && responseType_ == other.responseType_;
+ result = result && getResponseParametersList()
+ .equals(other.getResponseParametersList());
+ result = result && (hasPayload() == other.hasPayload());
+ if (hasPayload()) {
+ result = result && getPayload()
+ .equals(other.getPayload());
+ }
+ result = result && responseCompression_ == other.responseCompression_;
+ result = result && (hasResponseStatus() == other.hasResponseStatus());
+ if (hasResponseStatus()) {
+ result = result && getResponseStatus()
+ .equals(other.getResponseStatus());
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().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();
+ }
+ hash = (37 * hash) + RESPONSE_COMPRESSION_FIELD_NUMBER;
+ hash = (53 * hash) + responseCompression_;
+ 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 io.grpc.benchmarks.proto.Messages.StreamingOutputCallRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -5499,39 +6024,39 @@
}
public static io.grpc.benchmarks.proto.Messages.StreamingOutputCallRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Messages.StreamingOutputCallRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Messages.StreamingOutputCallRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Messages.StreamingOutputCallRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Messages.StreamingOutputCallRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Messages.StreamingOutputCallRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -5549,7 +6074,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -5561,7 +6086,7 @@
* Protobuf type {@code grpc.testing.StreamingOutputCallRequest}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.testing.StreamingOutputCallRequest)
io.grpc.benchmarks.proto.Messages.StreamingOutputCallRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -5569,7 +6094,7 @@
return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_StreamingOutputCallRequest_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_StreamingOutputCallRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -5582,12 +6107,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
getResponseParametersFieldBuilder();
}
}
@@ -5665,6 +6191,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.benchmarks.proto.Messages.StreamingOutputCallRequest) {
return mergeFrom((io.grpc.benchmarks.proto.Messages.StreamingOutputCallRequest)other);
@@ -5698,7 +6250,7 @@
responseParameters_ = other.responseParameters_;
bitField0_ = (bitField0_ & ~0x00000002);
responseParametersBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getResponseParametersFieldBuilder() : null;
} else {
responseParametersBuilder_.addAllMessages(other.responseParameters_);
@@ -5781,7 +6333,7 @@
* <code>optional .grpc.testing.PayloadType response_type = 1;</code>
*/
public io.grpc.benchmarks.proto.Messages.PayloadType getResponseType() {
- io.grpc.benchmarks.proto.Messages.PayloadType result = io.grpc.benchmarks.proto.Messages.PayloadType.forNumber(responseType_);
+ io.grpc.benchmarks.proto.Messages.PayloadType result = io.grpc.benchmarks.proto.Messages.PayloadType.valueOf(responseType_);
return result == null ? io.grpc.benchmarks.proto.Messages.PayloadType.UNRECOGNIZED : result;
}
/**
@@ -5829,7 +6381,7 @@
}
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
io.grpc.benchmarks.proto.Messages.ResponseParameters, io.grpc.benchmarks.proto.Messages.ResponseParameters.Builder, io.grpc.benchmarks.proto.Messages.ResponseParametersOrBuilder> responseParametersBuilder_;
/**
@@ -6117,11 +6669,11 @@
getResponseParametersBuilderList() {
return getResponseParametersFieldBuilder().getBuilderList();
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
io.grpc.benchmarks.proto.Messages.ResponseParameters, io.grpc.benchmarks.proto.Messages.ResponseParameters.Builder, io.grpc.benchmarks.proto.Messages.ResponseParametersOrBuilder>
getResponseParametersFieldBuilder() {
if (responseParametersBuilder_ == null) {
- responseParametersBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ responseParametersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.grpc.benchmarks.proto.Messages.ResponseParameters, io.grpc.benchmarks.proto.Messages.ResponseParameters.Builder, io.grpc.benchmarks.proto.Messages.ResponseParametersOrBuilder>(
responseParameters_,
((bitField0_ & 0x00000002) == 0x00000002),
@@ -6133,7 +6685,7 @@
}
private io.grpc.benchmarks.proto.Messages.Payload payload_ = null;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Messages.Payload, io.grpc.benchmarks.proto.Messages.Payload.Builder, io.grpc.benchmarks.proto.Messages.PayloadOrBuilder> payloadBuilder_;
/**
* <pre>
@@ -6271,11 +6823,11 @@
*
* <code>optional .grpc.testing.Payload payload = 3;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Messages.Payload, io.grpc.benchmarks.proto.Messages.Payload.Builder, io.grpc.benchmarks.proto.Messages.PayloadOrBuilder>
getPayloadFieldBuilder() {
if (payloadBuilder_ == null) {
- payloadBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ payloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Messages.Payload, io.grpc.benchmarks.proto.Messages.Payload.Builder, io.grpc.benchmarks.proto.Messages.PayloadOrBuilder>(
getPayload(),
getParentForChildren(),
@@ -6316,7 +6868,7 @@
* <code>optional .grpc.testing.CompressionType response_compression = 6;</code>
*/
public io.grpc.benchmarks.proto.Messages.CompressionType getResponseCompression() {
- io.grpc.benchmarks.proto.Messages.CompressionType result = io.grpc.benchmarks.proto.Messages.CompressionType.forNumber(responseCompression_);
+ io.grpc.benchmarks.proto.Messages.CompressionType result = io.grpc.benchmarks.proto.Messages.CompressionType.valueOf(responseCompression_);
return result == null ? io.grpc.benchmarks.proto.Messages.CompressionType.UNRECOGNIZED : result;
}
/**
@@ -6350,7 +6902,7 @@
}
private io.grpc.benchmarks.proto.Messages.EchoStatus responseStatus_ = null;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Messages.EchoStatus, io.grpc.benchmarks.proto.Messages.EchoStatus.Builder, io.grpc.benchmarks.proto.Messages.EchoStatusOrBuilder> responseStatusBuilder_;
/**
* <pre>
@@ -6488,11 +7040,11 @@
*
* <code>optional .grpc.testing.EchoStatus response_status = 7;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Messages.EchoStatus, io.grpc.benchmarks.proto.Messages.EchoStatus.Builder, io.grpc.benchmarks.proto.Messages.EchoStatusOrBuilder>
getResponseStatusFieldBuilder() {
if (responseStatusBuilder_ == null) {
- responseStatusBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ responseStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Messages.EchoStatus, io.grpc.benchmarks.proto.Messages.EchoStatus.Builder, io.grpc.benchmarks.proto.Messages.EchoStatusOrBuilder>(
getResponseStatus(),
getParentForChildren(),
@@ -6587,11 +7139,11 @@
* Protobuf type {@code grpc.testing.StreamingOutputCallResponse}
*/
public static final class StreamingOutputCallResponse extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.testing.StreamingOutputCallResponse)
StreamingOutputCallResponseOrBuilder {
// Use StreamingOutputCallResponse.newBuilder() to construct.
- private StreamingOutputCallResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private StreamingOutputCallResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private StreamingOutputCallResponse() {
@@ -6651,7 +7203,7 @@
return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_StreamingOutputCallResponse_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_StreamingOutputCallResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -6722,6 +7274,41 @@
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.benchmarks.proto.Messages.StreamingOutputCallResponse)) {
+ return super.equals(obj);
+ }
+ io.grpc.benchmarks.proto.Messages.StreamingOutputCallResponse other = (io.grpc.benchmarks.proto.Messages.StreamingOutputCallResponse) obj;
+
+ boolean result = true;
+ result = result && (hasPayload() == other.hasPayload());
+ if (hasPayload()) {
+ result = result && getPayload()
+ .equals(other.getPayload());
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().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 io.grpc.benchmarks.proto.Messages.StreamingOutputCallResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -6745,39 +7332,39 @@
}
public static io.grpc.benchmarks.proto.Messages.StreamingOutputCallResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Messages.StreamingOutputCallResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Messages.StreamingOutputCallResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Messages.StreamingOutputCallResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Messages.StreamingOutputCallResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Messages.StreamingOutputCallResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -6795,7 +7382,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -6807,7 +7394,7 @@
* Protobuf type {@code grpc.testing.StreamingOutputCallResponse}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.testing.StreamingOutputCallResponse)
io.grpc.benchmarks.proto.Messages.StreamingOutputCallResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -6815,7 +7402,7 @@
return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_StreamingOutputCallResponse_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_StreamingOutputCallResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -6828,12 +7415,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -6875,6 +7463,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.benchmarks.proto.Messages.StreamingOutputCallResponse) {
return mergeFrom((io.grpc.benchmarks.proto.Messages.StreamingOutputCallResponse)other);
@@ -6916,7 +7530,7 @@
}
private io.grpc.benchmarks.proto.Messages.Payload payload_ = null;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Messages.Payload, io.grpc.benchmarks.proto.Messages.Payload.Builder, io.grpc.benchmarks.proto.Messages.PayloadOrBuilder> payloadBuilder_;
/**
* <pre>
@@ -7054,11 +7668,11 @@
*
* <code>optional .grpc.testing.Payload payload = 1;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Messages.Payload, io.grpc.benchmarks.proto.Messages.Payload.Builder, io.grpc.benchmarks.proto.Messages.PayloadOrBuilder>
getPayloadFieldBuilder() {
if (payloadBuilder_ == null) {
- payloadBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ payloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Messages.Payload, io.grpc.benchmarks.proto.Messages.Payload.Builder, io.grpc.benchmarks.proto.Messages.PayloadOrBuilder>(
getPayload(),
getParentForChildren(),
@@ -7148,11 +7762,11 @@
* Protobuf type {@code grpc.testing.ReconnectInfo}
*/
public static final class ReconnectInfo extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.testing.ReconnectInfo)
ReconnectInfoOrBuilder {
// Use ReconnectInfo.newBuilder() to construct.
- private ReconnectInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private ReconnectInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ReconnectInfo() {
@@ -7230,7 +7844,7 @@
return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_ReconnectInfo_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_ReconnectInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -7287,8 +7901,8 @@
output.writeBool(1, passed_);
}
if (getBackoffMsList().size() > 0) {
- output.writeRawVarint32(18);
- output.writeRawVarint32(backoffMsMemoizedSerializedSize);
+ output.writeUInt32NoTag(18);
+ output.writeUInt32NoTag(backoffMsMemoizedSerializedSize);
}
for (int i = 0; i < backoffMs_.size(); i++) {
output.writeInt32NoTag(backoffMs_.get(i));
@@ -7323,6 +7937,43 @@
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.benchmarks.proto.Messages.ReconnectInfo)) {
+ return super.equals(obj);
+ }
+ io.grpc.benchmarks.proto.Messages.ReconnectInfo other = (io.grpc.benchmarks.proto.Messages.ReconnectInfo) obj;
+
+ boolean result = true;
+ result = result && (getPassed()
+ == other.getPassed());
+ result = result && getBackoffMsList()
+ .equals(other.getBackoffMsList());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().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 io.grpc.benchmarks.proto.Messages.ReconnectInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -7346,39 +7997,39 @@
}
public static io.grpc.benchmarks.proto.Messages.ReconnectInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Messages.ReconnectInfo parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Messages.ReconnectInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Messages.ReconnectInfo parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Messages.ReconnectInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Messages.ReconnectInfo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -7396,7 +8047,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -7410,7 +8061,7 @@
* Protobuf type {@code grpc.testing.ReconnectInfo}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.testing.ReconnectInfo)
io.grpc.benchmarks.proto.Messages.ReconnectInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -7418,7 +8069,7 @@
return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_ReconnectInfo_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Messages.internal_static_grpc_testing_ReconnectInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -7431,12 +8082,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -7480,6 +8132,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.benchmarks.proto.Messages.ReconnectInfo) {
return mergeFrom((io.grpc.benchmarks.proto.Messages.ReconnectInfo)other);
@@ -7674,52 +8352,52 @@
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_grpc_testing_Payload_descriptor;
private static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ 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.GeneratedMessage.FieldAccessorTable
+ 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.GeneratedMessage.FieldAccessorTable
+ 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.GeneratedMessage.FieldAccessorTable
+ 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.GeneratedMessage.FieldAccessorTable
+ 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.GeneratedMessage.FieldAccessorTable
+ 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.GeneratedMessage.FieldAccessorTable
+ 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.GeneratedMessage.FieldAccessorTable
+ 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.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_grpc_testing_StreamingOutputCallResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_grpc_testing_ReconnectInfo_descriptor;
private static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_grpc_testing_ReconnectInfo_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
@@ -7779,61 +8457,61 @@
internal_static_grpc_testing_Payload_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_grpc_testing_Payload_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ 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(1);
internal_static_grpc_testing_EchoStatus_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ 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(2);
internal_static_grpc_testing_SimpleRequest_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_testing_SimpleRequest_descriptor,
new java.lang.String[] { "ResponseType", "ResponseSize", "Payload", "FillUsername", "FillOauthScope", "ResponseCompression", "ResponseStatus", });
internal_static_grpc_testing_SimpleResponse_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_grpc_testing_SimpleResponse_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_testing_SimpleResponse_descriptor,
new java.lang.String[] { "Payload", "Username", "OauthScope", });
internal_static_grpc_testing_StreamingInputCallRequest_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_grpc_testing_StreamingInputCallRequest_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_testing_StreamingInputCallRequest_descriptor,
new java.lang.String[] { "Payload", });
internal_static_grpc_testing_StreamingInputCallResponse_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_grpc_testing_StreamingInputCallResponse_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ 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(6);
internal_static_grpc_testing_ResponseParameters_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_testing_ResponseParameters_descriptor,
new java.lang.String[] { "Size", "IntervalUs", });
internal_static_grpc_testing_StreamingOutputCallRequest_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_grpc_testing_StreamingOutputCallRequest_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_testing_StreamingOutputCallRequest_descriptor,
new java.lang.String[] { "ResponseType", "ResponseParameters", "Payload", "ResponseCompression", "ResponseStatus", });
internal_static_grpc_testing_StreamingOutputCallResponse_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_grpc_testing_StreamingOutputCallResponse_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_testing_StreamingOutputCallResponse_descriptor,
new java.lang.String[] { "Payload", });
internal_static_grpc_testing_ReconnectInfo_descriptor =
getDescriptor().getMessageTypes().get(9);
internal_static_grpc_testing_ReconnectInfo_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_testing_ReconnectInfo_descriptor,
new java.lang.String[] { "Passed", "BackoffMs", });
}
diff --git a/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Payloads.java b/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Payloads.java
index e351346..08fb7ed 100644
--- a/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Payloads.java
+++ b/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Payloads.java
@@ -6,7 +6,13 @@
public final class Payloads {
private Payloads() {}
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 ByteBufferParamsOrBuilder extends
// @@protoc_insertion_point(interface_extends:grpc.testing.ByteBufferParams)
@@ -26,11 +32,11 @@
* Protobuf type {@code grpc.testing.ByteBufferParams}
*/
public static final class ByteBufferParams extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.testing.ByteBufferParams)
ByteBufferParamsOrBuilder {
// Use ByteBufferParams.newBuilder() to construct.
- private ByteBufferParams(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private ByteBufferParams(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ByteBufferParams() {
@@ -89,7 +95,7 @@
return io.grpc.benchmarks.proto.Payloads.internal_static_grpc_testing_ByteBufferParams_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Payloads.internal_static_grpc_testing_ByteBufferParams_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -152,6 +158,40 @@
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.benchmarks.proto.Payloads.ByteBufferParams)) {
+ return super.equals(obj);
+ }
+ io.grpc.benchmarks.proto.Payloads.ByteBufferParams other = (io.grpc.benchmarks.proto.Payloads.ByteBufferParams) obj;
+
+ boolean result = true;
+ result = result && (getReqSize()
+ == other.getReqSize());
+ result = result && (getRespSize()
+ == other.getRespSize());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ hash = (37 * hash) + REQ_SIZE_FIELD_NUMBER;
+ hash = (53 * hash) + getReqSize();
+ hash = (37 * hash) + RESP_SIZE_FIELD_NUMBER;
+ hash = (53 * hash) + getRespSize();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
public static io.grpc.benchmarks.proto.Payloads.ByteBufferParams parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -175,39 +215,39 @@
}
public static io.grpc.benchmarks.proto.Payloads.ByteBufferParams parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Payloads.ByteBufferParams parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Payloads.ByteBufferParams parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Payloads.ByteBufferParams parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Payloads.ByteBufferParams parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Payloads.ByteBufferParams parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -225,7 +265,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -233,7 +273,7 @@
* Protobuf type {@code grpc.testing.ByteBufferParams}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.testing.ByteBufferParams)
io.grpc.benchmarks.proto.Payloads.ByteBufferParamsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -241,7 +281,7 @@
return io.grpc.benchmarks.proto.Payloads.internal_static_grpc_testing_ByteBufferParams_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Payloads.internal_static_grpc_testing_ByteBufferParams_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -254,12 +294,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -296,6 +337,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.benchmarks.proto.Payloads.ByteBufferParams) {
return mergeFrom((io.grpc.benchmarks.proto.Payloads.ByteBufferParams)other);
@@ -457,11 +524,11 @@
* Protobuf type {@code grpc.testing.SimpleProtoParams}
*/
public static final class SimpleProtoParams extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.testing.SimpleProtoParams)
SimpleProtoParamsOrBuilder {
// Use SimpleProtoParams.newBuilder() to construct.
- private SimpleProtoParams(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private SimpleProtoParams(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private SimpleProtoParams() {
@@ -520,7 +587,7 @@
return io.grpc.benchmarks.proto.Payloads.internal_static_grpc_testing_SimpleProtoParams_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Payloads.internal_static_grpc_testing_SimpleProtoParams_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -583,6 +650,40 @@
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.benchmarks.proto.Payloads.SimpleProtoParams)) {
+ return super.equals(obj);
+ }
+ io.grpc.benchmarks.proto.Payloads.SimpleProtoParams other = (io.grpc.benchmarks.proto.Payloads.SimpleProtoParams) obj;
+
+ boolean result = true;
+ result = result && (getReqSize()
+ == other.getReqSize());
+ result = result && (getRespSize()
+ == other.getRespSize());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ hash = (37 * hash) + REQ_SIZE_FIELD_NUMBER;
+ hash = (53 * hash) + getReqSize();
+ hash = (37 * hash) + RESP_SIZE_FIELD_NUMBER;
+ hash = (53 * hash) + getRespSize();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
public static io.grpc.benchmarks.proto.Payloads.SimpleProtoParams parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -606,39 +707,39 @@
}
public static io.grpc.benchmarks.proto.Payloads.SimpleProtoParams parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Payloads.SimpleProtoParams parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Payloads.SimpleProtoParams parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Payloads.SimpleProtoParams parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Payloads.SimpleProtoParams parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Payloads.SimpleProtoParams parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -656,7 +757,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -664,7 +765,7 @@
* Protobuf type {@code grpc.testing.SimpleProtoParams}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.testing.SimpleProtoParams)
io.grpc.benchmarks.proto.Payloads.SimpleProtoParamsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -672,7 +773,7 @@
return io.grpc.benchmarks.proto.Payloads.internal_static_grpc_testing_SimpleProtoParams_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Payloads.internal_static_grpc_testing_SimpleProtoParams_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -685,12 +786,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -727,6 +829,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.benchmarks.proto.Payloads.SimpleProtoParams) {
return mergeFrom((io.grpc.benchmarks.proto.Payloads.SimpleProtoParams)other);
@@ -883,11 +1011,11 @@
* Protobuf type {@code grpc.testing.ComplexProtoParams}
*/
public static final class ComplexProtoParams extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.testing.ComplexProtoParams)
ComplexProtoParamsOrBuilder {
// Use ComplexProtoParams.newBuilder() to construct.
- private ComplexProtoParams(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private ComplexProtoParams(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ComplexProtoParams() {
@@ -933,7 +1061,7 @@
return io.grpc.benchmarks.proto.Payloads.internal_static_grpc_testing_ComplexProtoParams_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Payloads.internal_static_grpc_testing_ComplexProtoParams_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -964,6 +1092,32 @@
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.benchmarks.proto.Payloads.ComplexProtoParams)) {
+ return super.equals(obj);
+ }
+ io.grpc.benchmarks.proto.Payloads.ComplexProtoParams other = (io.grpc.benchmarks.proto.Payloads.ComplexProtoParams) obj;
+
+ boolean result = true;
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
public static io.grpc.benchmarks.proto.Payloads.ComplexProtoParams parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -987,39 +1141,39 @@
}
public static io.grpc.benchmarks.proto.Payloads.ComplexProtoParams parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Payloads.ComplexProtoParams parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Payloads.ComplexProtoParams parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Payloads.ComplexProtoParams parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Payloads.ComplexProtoParams parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Payloads.ComplexProtoParams parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -1037,7 +1191,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -1050,7 +1204,7 @@
* Protobuf type {@code grpc.testing.ComplexProtoParams}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.testing.ComplexProtoParams)
io.grpc.benchmarks.proto.Payloads.ComplexProtoParamsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -1058,7 +1212,7 @@
return io.grpc.benchmarks.proto.Payloads.internal_static_grpc_testing_ComplexProtoParams_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Payloads.internal_static_grpc_testing_ComplexProtoParams_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -1071,12 +1225,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -1107,6 +1262,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.benchmarks.proto.Payloads.ComplexProtoParams) {
return mergeFrom((io.grpc.benchmarks.proto.Payloads.ComplexProtoParams)other);
@@ -1229,11 +1410,11 @@
* Protobuf type {@code grpc.testing.PayloadConfig}
*/
public static final class PayloadConfig extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.testing.PayloadConfig)
PayloadConfigOrBuilder {
// Use PayloadConfig.newBuilder() to construct.
- private PayloadConfig(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private PayloadConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private PayloadConfig() {
@@ -1322,7 +1503,7 @@
return io.grpc.benchmarks.proto.Payloads.internal_static_grpc_testing_PayloadConfig_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Payloads.internal_static_grpc_testing_PayloadConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -1474,6 +1655,67 @@
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.benchmarks.proto.Payloads.PayloadConfig)) {
+ return super.equals(obj);
+ }
+ io.grpc.benchmarks.proto.Payloads.PayloadConfig other = (io.grpc.benchmarks.proto.Payloads.PayloadConfig) obj;
+
+ boolean result = true;
+ result = result && getPayloadCase().equals(
+ other.getPayloadCase());
+ if (!result) return false;
+ switch (payloadCase_) {
+ case 1:
+ result = result && getBytebufParams()
+ .equals(other.getBytebufParams());
+ break;
+ case 2:
+ result = result && getSimpleParams()
+ .equals(other.getSimpleParams());
+ break;
+ case 3:
+ result = result && getComplexParams()
+ .equals(other.getComplexParams());
+ break;
+ case 0:
+ default:
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ switch (payloadCase_) {
+ case 1:
+ hash = (37 * hash) + BYTEBUF_PARAMS_FIELD_NUMBER;
+ hash = (53 * hash) + getBytebufParams().hashCode();
+ break;
+ case 2:
+ hash = (37 * hash) + SIMPLE_PARAMS_FIELD_NUMBER;
+ hash = (53 * hash) + getSimpleParams().hashCode();
+ break;
+ case 3:
+ hash = (37 * hash) + COMPLEX_PARAMS_FIELD_NUMBER;
+ hash = (53 * hash) + getComplexParams().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
public static io.grpc.benchmarks.proto.Payloads.PayloadConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -1497,39 +1739,39 @@
}
public static io.grpc.benchmarks.proto.Payloads.PayloadConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Payloads.PayloadConfig parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Payloads.PayloadConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Payloads.PayloadConfig parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Payloads.PayloadConfig parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Payloads.PayloadConfig parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -1547,7 +1789,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -1555,7 +1797,7 @@
* Protobuf type {@code grpc.testing.PayloadConfig}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.testing.PayloadConfig)
io.grpc.benchmarks.proto.Payloads.PayloadConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -1563,7 +1805,7 @@
return io.grpc.benchmarks.proto.Payloads.internal_static_grpc_testing_PayloadConfig_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Payloads.internal_static_grpc_testing_PayloadConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -1576,12 +1818,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -1636,6 +1879,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.benchmarks.proto.Payloads.PayloadConfig) {
return mergeFrom((io.grpc.benchmarks.proto.Payloads.PayloadConfig)other);
@@ -1705,7 +1974,7 @@
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Payloads.ByteBufferParams, io.grpc.benchmarks.proto.Payloads.ByteBufferParams.Builder, io.grpc.benchmarks.proto.Payloads.ByteBufferParamsOrBuilder> bytebufParamsBuilder_;
/**
* <code>optional .grpc.testing.ByteBufferParams bytebuf_params = 1;</code>
@@ -1816,14 +2085,14 @@
/**
* <code>optional .grpc.testing.ByteBufferParams bytebuf_params = 1;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Payloads.ByteBufferParams, io.grpc.benchmarks.proto.Payloads.ByteBufferParams.Builder, io.grpc.benchmarks.proto.Payloads.ByteBufferParamsOrBuilder>
getBytebufParamsFieldBuilder() {
if (bytebufParamsBuilder_ == null) {
if (!(payloadCase_ == 1)) {
payload_ = io.grpc.benchmarks.proto.Payloads.ByteBufferParams.getDefaultInstance();
}
- bytebufParamsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ bytebufParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Payloads.ByteBufferParams, io.grpc.benchmarks.proto.Payloads.ByteBufferParams.Builder, io.grpc.benchmarks.proto.Payloads.ByteBufferParamsOrBuilder>(
(io.grpc.benchmarks.proto.Payloads.ByteBufferParams) payload_,
getParentForChildren(),
@@ -1835,7 +2104,7 @@
return bytebufParamsBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Payloads.SimpleProtoParams, io.grpc.benchmarks.proto.Payloads.SimpleProtoParams.Builder, io.grpc.benchmarks.proto.Payloads.SimpleProtoParamsOrBuilder> simpleParamsBuilder_;
/**
* <code>optional .grpc.testing.SimpleProtoParams simple_params = 2;</code>
@@ -1946,14 +2215,14 @@
/**
* <code>optional .grpc.testing.SimpleProtoParams simple_params = 2;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Payloads.SimpleProtoParams, io.grpc.benchmarks.proto.Payloads.SimpleProtoParams.Builder, io.grpc.benchmarks.proto.Payloads.SimpleProtoParamsOrBuilder>
getSimpleParamsFieldBuilder() {
if (simpleParamsBuilder_ == null) {
if (!(payloadCase_ == 2)) {
payload_ = io.grpc.benchmarks.proto.Payloads.SimpleProtoParams.getDefaultInstance();
}
- simpleParamsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ simpleParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Payloads.SimpleProtoParams, io.grpc.benchmarks.proto.Payloads.SimpleProtoParams.Builder, io.grpc.benchmarks.proto.Payloads.SimpleProtoParamsOrBuilder>(
(io.grpc.benchmarks.proto.Payloads.SimpleProtoParams) payload_,
getParentForChildren(),
@@ -1965,7 +2234,7 @@
return simpleParamsBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Payloads.ComplexProtoParams, io.grpc.benchmarks.proto.Payloads.ComplexProtoParams.Builder, io.grpc.benchmarks.proto.Payloads.ComplexProtoParamsOrBuilder> complexParamsBuilder_;
/**
* <code>optional .grpc.testing.ComplexProtoParams complex_params = 3;</code>
@@ -2076,14 +2345,14 @@
/**
* <code>optional .grpc.testing.ComplexProtoParams complex_params = 3;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Payloads.ComplexProtoParams, io.grpc.benchmarks.proto.Payloads.ComplexProtoParams.Builder, io.grpc.benchmarks.proto.Payloads.ComplexProtoParamsOrBuilder>
getComplexParamsFieldBuilder() {
if (complexParamsBuilder_ == null) {
if (!(payloadCase_ == 3)) {
payload_ = io.grpc.benchmarks.proto.Payloads.ComplexProtoParams.getDefaultInstance();
}
- complexParamsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ complexParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Payloads.ComplexProtoParams, io.grpc.benchmarks.proto.Payloads.ComplexProtoParams.Builder, io.grpc.benchmarks.proto.Payloads.ComplexProtoParamsOrBuilder>(
(io.grpc.benchmarks.proto.Payloads.ComplexProtoParams) payload_,
getParentForChildren(),
@@ -2146,22 +2415,22 @@
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_grpc_testing_ByteBufferParams_descriptor;
private static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_grpc_testing_ByteBufferParams_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_grpc_testing_SimpleProtoParams_descriptor;
private static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_grpc_testing_SimpleProtoParams_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_grpc_testing_ComplexProtoParams_descriptor;
private static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_grpc_testing_ComplexProtoParams_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_grpc_testing_PayloadConfig_descriptor;
private static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_grpc_testing_PayloadConfig_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
@@ -2199,25 +2468,25 @@
internal_static_grpc_testing_ByteBufferParams_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_grpc_testing_ByteBufferParams_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_testing_ByteBufferParams_descriptor,
new java.lang.String[] { "ReqSize", "RespSize", });
internal_static_grpc_testing_SimpleProtoParams_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_grpc_testing_SimpleProtoParams_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_testing_SimpleProtoParams_descriptor,
new java.lang.String[] { "ReqSize", "RespSize", });
internal_static_grpc_testing_ComplexProtoParams_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_grpc_testing_ComplexProtoParams_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_testing_ComplexProtoParams_descriptor,
new java.lang.String[] { });
internal_static_grpc_testing_PayloadConfig_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_grpc_testing_PayloadConfig_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_testing_PayloadConfig_descriptor,
new java.lang.String[] { "BytebufParams", "SimpleParams", "ComplexParams", "Payload", });
}
diff --git a/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Services.java b/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Services.java
index 6f24cf2..4372cf8 100644
--- a/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Services.java
+++ b/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Services.java
@@ -6,7 +6,13 @@
public final class Services {
private Services() {}
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
diff --git a/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Stats.java b/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Stats.java
index 18fd5bf..c0ee400 100644
--- a/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Stats.java
+++ b/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/Stats.java
@@ -6,7 +6,13 @@
public final class Stats {
private Stats() {}
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 ServerStatsOrBuilder extends
// @@protoc_insertion_point(interface_extends:grpc.testing.ServerStats)
@@ -44,11 +50,11 @@
* Protobuf type {@code grpc.testing.ServerStats}
*/
public static final class ServerStats extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.testing.ServerStats)
ServerStatsOrBuilder {
// Use ServerStats.newBuilder() to construct.
- private ServerStats(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private ServerStats(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ServerStats() {
@@ -113,7 +119,7 @@
return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_ServerStats_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_ServerStats_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -205,6 +211,53 @@
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.benchmarks.proto.Stats.ServerStats)) {
+ return super.equals(obj);
+ }
+ io.grpc.benchmarks.proto.Stats.ServerStats other = (io.grpc.benchmarks.proto.Stats.ServerStats) obj;
+
+ boolean result = true;
+ result = result && (
+ java.lang.Double.doubleToLongBits(getTimeElapsed())
+ == java.lang.Double.doubleToLongBits(
+ other.getTimeElapsed()));
+ result = result && (
+ java.lang.Double.doubleToLongBits(getTimeUser())
+ == java.lang.Double.doubleToLongBits(
+ other.getTimeUser()));
+ result = result && (
+ java.lang.Double.doubleToLongBits(getTimeSystem())
+ == java.lang.Double.doubleToLongBits(
+ other.getTimeSystem()));
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ hash = (37 * hash) + TIME_ELAPSED_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getTimeElapsed()));
+ hash = (37 * hash) + TIME_USER_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getTimeUser()));
+ hash = (37 * hash) + TIME_SYSTEM_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getTimeSystem()));
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
public static io.grpc.benchmarks.proto.Stats.ServerStats parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -228,39 +281,39 @@
}
public static io.grpc.benchmarks.proto.Stats.ServerStats parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Stats.ServerStats parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Stats.ServerStats parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Stats.ServerStats parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Stats.ServerStats parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Stats.ServerStats parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -278,7 +331,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -286,7 +339,7 @@
* Protobuf type {@code grpc.testing.ServerStats}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.testing.ServerStats)
io.grpc.benchmarks.proto.Stats.ServerStatsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -294,7 +347,7 @@
return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_ServerStats_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_ServerStats_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -307,12 +360,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -352,6 +406,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.benchmarks.proto.Stats.ServerStats) {
return mergeFrom((io.grpc.benchmarks.proto.Stats.ServerStats)other);
@@ -593,11 +673,11 @@
* Protobuf type {@code grpc.testing.HistogramParams}
*/
public static final class HistogramParams extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.testing.HistogramParams)
HistogramParamsOrBuilder {
// Use HistogramParams.newBuilder() to construct.
- private HistogramParams(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private HistogramParams(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private HistogramParams() {
@@ -656,7 +736,7 @@
return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_HistogramParams_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_HistogramParams_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -727,6 +807,46 @@
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.benchmarks.proto.Stats.HistogramParams)) {
+ return super.equals(obj);
+ }
+ io.grpc.benchmarks.proto.Stats.HistogramParams other = (io.grpc.benchmarks.proto.Stats.HistogramParams) obj;
+
+ boolean result = true;
+ result = result && (
+ java.lang.Double.doubleToLongBits(getResolution())
+ == java.lang.Double.doubleToLongBits(
+ other.getResolution()));
+ result = result && (
+ java.lang.Double.doubleToLongBits(getMaxPossible())
+ == java.lang.Double.doubleToLongBits(
+ other.getMaxPossible()));
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ hash = (37 * hash) + RESOLUTION_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getResolution()));
+ hash = (37 * hash) + MAX_POSSIBLE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getMaxPossible()));
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
public static io.grpc.benchmarks.proto.Stats.HistogramParams parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -750,39 +870,39 @@
}
public static io.grpc.benchmarks.proto.Stats.HistogramParams parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Stats.HistogramParams parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Stats.HistogramParams parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Stats.HistogramParams parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Stats.HistogramParams parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Stats.HistogramParams parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -800,7 +920,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -812,7 +932,7 @@
* Protobuf type {@code grpc.testing.HistogramParams}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.testing.HistogramParams)
io.grpc.benchmarks.proto.Stats.HistogramParamsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -820,7 +940,7 @@
return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_HistogramParams_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_HistogramParams_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -833,12 +953,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -875,6 +996,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.benchmarks.proto.Stats.HistogramParams) {
return mergeFrom((io.grpc.benchmarks.proto.Stats.HistogramParams)other);
@@ -1092,11 +1239,11 @@
* Protobuf type {@code grpc.testing.HistogramData}
*/
public static final class HistogramData extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.testing.HistogramData)
HistogramDataOrBuilder {
// Use HistogramData.newBuilder() to construct.
- private HistogramData(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private HistogramData(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private HistogramData() {
@@ -1198,7 +1345,7 @@
return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_HistogramData_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_HistogramData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -1288,8 +1435,8 @@
throws java.io.IOException {
getSerializedSize();
if (getBucketList().size() > 0) {
- output.writeRawVarint32(10);
- output.writeRawVarint32(bucketMemoizedSerializedSize);
+ output.writeUInt32NoTag(10);
+ output.writeUInt32NoTag(bucketMemoizedSerializedSize);
}
for (int i = 0; i < bucket_.size(); i++) {
output.writeUInt32NoTag(bucket_.get(i));
@@ -1355,6 +1502,73 @@
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.benchmarks.proto.Stats.HistogramData)) {
+ return super.equals(obj);
+ }
+ io.grpc.benchmarks.proto.Stats.HistogramData other = (io.grpc.benchmarks.proto.Stats.HistogramData) obj;
+
+ boolean result = true;
+ result = result && getBucketList()
+ .equals(other.getBucketList());
+ result = result && (
+ java.lang.Double.doubleToLongBits(getMinSeen())
+ == java.lang.Double.doubleToLongBits(
+ other.getMinSeen()));
+ result = result && (
+ java.lang.Double.doubleToLongBits(getMaxSeen())
+ == java.lang.Double.doubleToLongBits(
+ other.getMaxSeen()));
+ result = result && (
+ java.lang.Double.doubleToLongBits(getSum())
+ == java.lang.Double.doubleToLongBits(
+ other.getSum()));
+ result = result && (
+ java.lang.Double.doubleToLongBits(getSumOfSquares())
+ == java.lang.Double.doubleToLongBits(
+ other.getSumOfSquares()));
+ result = result && (
+ java.lang.Double.doubleToLongBits(getCount())
+ == java.lang.Double.doubleToLongBits(
+ other.getCount()));
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ if (getBucketCount() > 0) {
+ hash = (37 * hash) + BUCKET_FIELD_NUMBER;
+ hash = (53 * hash) + getBucketList().hashCode();
+ }
+ hash = (37 * hash) + MIN_SEEN_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getMinSeen()));
+ hash = (37 * hash) + MAX_SEEN_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getMaxSeen()));
+ hash = (37 * hash) + SUM_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getSum()));
+ hash = (37 * hash) + SUM_OF_SQUARES_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getSumOfSquares()));
+ hash = (37 * hash) + COUNT_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getCount()));
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
public static io.grpc.benchmarks.proto.Stats.HistogramData parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -1378,39 +1592,39 @@
}
public static io.grpc.benchmarks.proto.Stats.HistogramData parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Stats.HistogramData parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Stats.HistogramData parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Stats.HistogramData parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Stats.HistogramData parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Stats.HistogramData parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -1428,7 +1642,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -1440,7 +1654,7 @@
* Protobuf type {@code grpc.testing.HistogramData}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.testing.HistogramData)
io.grpc.benchmarks.proto.Stats.HistogramDataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -1448,7 +1662,7 @@
return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_HistogramData_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_HistogramData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -1461,12 +1675,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -1522,6 +1737,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.benchmarks.proto.Stats.HistogramData) {
return mergeFrom((io.grpc.benchmarks.proto.Stats.HistogramData)other);
@@ -1881,11 +2122,11 @@
* Protobuf type {@code grpc.testing.ClientStats}
*/
public static final class ClientStats extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.testing.ClientStats)
ClientStatsOrBuilder {
// Use ClientStats.newBuilder() to construct.
- private ClientStats(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private ClientStats(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ClientStats() {
@@ -1963,7 +2204,7 @@
return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_ClientStats_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_ClientStats_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -2086,6 +2327,62 @@
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.benchmarks.proto.Stats.ClientStats)) {
+ return super.equals(obj);
+ }
+ io.grpc.benchmarks.proto.Stats.ClientStats other = (io.grpc.benchmarks.proto.Stats.ClientStats) obj;
+
+ boolean result = true;
+ result = result && (hasLatencies() == other.hasLatencies());
+ if (hasLatencies()) {
+ result = result && getLatencies()
+ .equals(other.getLatencies());
+ }
+ result = result && (
+ java.lang.Double.doubleToLongBits(getTimeElapsed())
+ == java.lang.Double.doubleToLongBits(
+ other.getTimeElapsed()));
+ result = result && (
+ java.lang.Double.doubleToLongBits(getTimeUser())
+ == java.lang.Double.doubleToLongBits(
+ other.getTimeUser()));
+ result = result && (
+ java.lang.Double.doubleToLongBits(getTimeSystem())
+ == java.lang.Double.doubleToLongBits(
+ other.getTimeSystem()));
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ if (hasLatencies()) {
+ hash = (37 * hash) + LATENCIES_FIELD_NUMBER;
+ hash = (53 * hash) + getLatencies().hashCode();
+ }
+ hash = (37 * hash) + TIME_ELAPSED_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getTimeElapsed()));
+ hash = (37 * hash) + TIME_USER_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getTimeUser()));
+ hash = (37 * hash) + TIME_SYSTEM_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getTimeSystem()));
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
public static io.grpc.benchmarks.proto.Stats.ClientStats parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -2109,39 +2406,39 @@
}
public static io.grpc.benchmarks.proto.Stats.ClientStats parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Stats.ClientStats parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Stats.ClientStats parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Stats.ClientStats parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.benchmarks.proto.Stats.ClientStats parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.benchmarks.proto.Stats.ClientStats parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -2159,7 +2456,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -2167,7 +2464,7 @@
* Protobuf type {@code grpc.testing.ClientStats}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.testing.ClientStats)
io.grpc.benchmarks.proto.Stats.ClientStatsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -2175,7 +2472,7 @@
return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_ClientStats_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.benchmarks.proto.Stats.internal_static_grpc_testing_ClientStats_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -2188,12 +2485,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -2244,6 +2542,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.benchmarks.proto.Stats.ClientStats) {
return mergeFrom((io.grpc.benchmarks.proto.Stats.ClientStats)other);
@@ -2294,7 +2618,7 @@
}
private io.grpc.benchmarks.proto.Stats.HistogramData latencies_ = null;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Stats.HistogramData, io.grpc.benchmarks.proto.Stats.HistogramData.Builder, io.grpc.benchmarks.proto.Stats.HistogramDataOrBuilder> latenciesBuilder_;
/**
* <pre>
@@ -2432,11 +2756,11 @@
*
* <code>optional .grpc.testing.HistogramData latencies = 1;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Stats.HistogramData, io.grpc.benchmarks.proto.Stats.HistogramData.Builder, io.grpc.benchmarks.proto.Stats.HistogramDataOrBuilder>
getLatenciesFieldBuilder() {
if (latenciesBuilder_ == null) {
- latenciesBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ latenciesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.grpc.benchmarks.proto.Stats.HistogramData, io.grpc.benchmarks.proto.Stats.HistogramData.Builder, io.grpc.benchmarks.proto.Stats.HistogramDataOrBuilder>(
getLatencies(),
getParentForChildren(),
@@ -2587,22 +2911,22 @@
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_grpc_testing_ServerStats_descriptor;
private static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_grpc_testing_ServerStats_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_grpc_testing_HistogramParams_descriptor;
private static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_grpc_testing_HistogramParams_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_grpc_testing_HistogramData_descriptor;
private static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_grpc_testing_HistogramData_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_grpc_testing_ClientStats_descriptor;
private static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_grpc_testing_ClientStats_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
@@ -2641,25 +2965,25 @@
internal_static_grpc_testing_ServerStats_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_grpc_testing_ServerStats_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_testing_ServerStats_descriptor,
new java.lang.String[] { "TimeElapsed", "TimeUser", "TimeSystem", });
internal_static_grpc_testing_HistogramParams_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_grpc_testing_HistogramParams_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_testing_HistogramParams_descriptor,
new java.lang.String[] { "Resolution", "MaxPossible", });
internal_static_grpc_testing_HistogramData_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_grpc_testing_HistogramData_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_testing_HistogramData_descriptor,
new java.lang.String[] { "Bucket", "MinSeen", "MaxSeen", "Sum", "SumOfSquares", "Count", });
internal_static_grpc_testing_ClientStats_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_grpc_testing_ClientStats_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_testing_ClientStats_descriptor,
new java.lang.String[] { "Latencies", "TimeElapsed", "TimeUser", "TimeSystem", });
}
diff --git a/build.gradle b/build.gradle
index 3e2df8e..7fc5183 100644
--- a/build.gradle
+++ b/build.gradle
@@ -62,7 +62,7 @@
javaPluginPath = "$rootDir/compiler/build/exe/java_plugin/$protocPluginBaseName$exeSuffix"
guavaVersion = '19.0'
- protobufVersion = '3.0.0-beta-3'
+ protobufVersion = '3.0.0'
protobufNanoVersion = '3.0.0-alpha-5'
configureProtoCompilation = {
@@ -133,7 +133,7 @@
compileJava {
// Protobuf-generated code produces some warnings.
- options.compilerArgs = compileJava.options.compilerArgs + ["-Xlint:-deprecation"]
+ options.compilerArgs += ["-Xlint:-cast"]
}
}
diff --git a/buildscripts/jenkins-pre.bat b/buildscripts/jenkins-pre.bat
index d992db1..fafd37c 100644
--- a/buildscripts/jenkins-pre.bat
+++ b/buildscripts/jenkins-pre.bat
@@ -14,5 +14,5 @@
echo targetArch=x86_32> gradle.properties
echo failOnWarnings=true>> gradle.properties
-echo vcProtobufLibs=%ESCWORKSPACE%\\grpc-java-helper\\protobuf-3.0.0-beta-3\\cmake\\build\\Release>> gradle.properties
-echo vcProtobufInclude=%ESCWORKSPACE%\\grpc-java-helper\\protobuf-3.0.0-beta-3\\cmake\\build\\include>> gradle.properties
+echo vcProtobufLibs=%ESCWORKSPACE%\\grpc-java-helper\\protobuf-3.0.0\\cmake\\build\\Release>> gradle.properties
+echo vcProtobufInclude=%ESCWORKSPACE%\\grpc-java-helper\\protobuf-3.0.0\\cmake\\build\\include>> gradle.properties
diff --git a/buildscripts/make_dependencies.bat b/buildscripts/make_dependencies.bat
index 93ff3fc..fe616c5 100644
--- a/buildscripts/make_dependencies.bat
+++ b/buildscripts/make_dependencies.bat
@@ -4,7 +4,7 @@
REM Prerequisite:
REM 7za.exe in current directory or PATH
-set PROTOBUF_VER=3.0.0-beta-3
+set PROTOBUF_VER=3.0.0
set CMAKE_NAME=cmake-3.3.2-win32-x86
if not exist "protobuf-%PROTOBUF_VER%\cmake\build\Release\" (
@@ -25,7 +25,7 @@
powershell -command "& { iwr https://github.com/google/protobuf/archive/v%PROTOBUF_VER%.zip -OutFile protobuf.zip }"
7za X protobuf.zip
del protobuf.zip
-pushd protobuf-3.0.0-beta-3\cmake
+pushd protobuf-3.0.0\cmake
mkdir build
cd build
cmake -Dprotobuf_BUILD_TESTS=OFF ..
diff --git a/compiler/Dockerfile b/compiler/Dockerfile
index a51aaca..ffc85a3 100644
--- a/compiler/Dockerfile
+++ b/compiler/Dockerfile
@@ -2,7 +2,7 @@
RUN scl enable devtoolset-1.1 'bash -c "cd /protobuf && \
git fetch && \
- git checkout v3.0.0-beta-3 && \
+ git checkout v3.0.0 && \
./autogen.sh && \
CXXFLAGS=-m32 ./configure --disable-shared --prefix=/protobuf-32 && \
make clean && make -j$(nproc) && make -j$(nproc) install"'
diff --git a/compiler/build.gradle b/compiler/build.gradle
index e368c36..460e116 100644
--- a/compiler/build.gradle
+++ b/compiler/build.gradle
@@ -137,10 +137,13 @@
}
}
+compileTestJava {
+ options.compilerArgs += ["-Xlint:-cast"]
+}
+
compileTestLiteJava {
// Protobuf-generated Lite produces quite a few warnings.
- options.compilerArgs = compileTestJava.options.compilerArgs +
- ["-Xlint:-unchecked", "-Xlint:-rawtypes", "-Xlint:-fallthrough"]
+ options.compilerArgs += ["-Xlint:-rawtypes", "-Xlint:-unchecked"]
}
compileTestNanoJava {
@@ -156,6 +159,9 @@
}
}
plugins {
+ javalite {
+ artifact = "com.google.protobuf:protoc-gen-javalite:${protobufVersion}"
+ }
grpc {
path = javaPluginPath
}
@@ -168,9 +174,15 @@
ofSourceSet('test')*.plugins {
grpc {}
}
- ofSourceSet('testLite')*.plugins {
- grpc {
- option 'lite'
+ ofSourceSet('testLite')*.each { task ->
+ task.builtins {
+ remove java
+ }
+ task.plugins {
+ javalite {}
+ grpc {
+ option 'lite'
+ }
}
}
ofSourceSet('testNano').each { task ->
diff --git a/examples/android/app/build.gradle b/examples/android/app/build.gradle
index 4e8dba9..43a0fd5 100644
--- a/examples/android/app/build.gradle
+++ b/examples/android/app/build.gradle
@@ -27,9 +27,12 @@
protobuf {
protoc {
- artifact = 'com.google.protobuf:protoc:3.0.0-beta-3'
+ artifact = 'com.google.protobuf:protoc:3.0.0'
}
plugins {
+ javalite {
+ artifact = "com.google.protobuf:protoc-gen-javalite:3.0.0"
+ }
grpc {
artifact = 'io.grpc:protoc-gen-grpc-java:1.1.0-SNAPSHOT' // CURRENT_GRPC_VERSION
}
@@ -39,13 +42,10 @@
task.builtins {
// Javanano is installed by default, but needs to be removed to use protobuf lite..
remove javanano
- java {
- // Options added to --java_out
- option 'lite'
- }
}
task.plugins {
+ javalite {}
grpc {
// Options added to --grpc_out
option 'lite'
diff --git a/examples/build.gradle b/examples/build.gradle
index 6f9f1f6..e8add04 100644
--- a/examples/build.gradle
+++ b/examples/build.gradle
@@ -35,7 +35,7 @@
// The version of protoc must match protobuf-java. If you don't depend on
// protobuf-java directly, you will be transitively depending on the
// protobuf-java version that grpc depends on.
- artifact = 'com.google.protobuf:protoc:3.0.0-beta-3'
+ artifact = 'com.google.protobuf:protoc:3.0.0'
}
plugins {
grpc {
diff --git a/examples/pom.xml b/examples/pom.xml
index af97f02..2feac23 100644
--- a/examples/pom.xml
+++ b/examples/pom.xml
@@ -48,7 +48,7 @@
protobuf-java directly, you will be transitively depending on the
protobuf-java version that grpc depends on.
-->
- <protocArtifact>com.google.protobuf:protoc:3.0.0-beta-3:exe:${os.detected.classifier}</protocArtifact>
+ <protocArtifact>com.google.protobuf:protoc:3.0.0:exe:${os.detected.classifier}</protocArtifact>
<pluginId>grpc-java</pluginId>
<pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}</pluginArtifact>
</configuration>
diff --git a/grpclb/src/generated/main/java/io/grpc/grpclb/ClientStats.java b/grpclb/src/generated/main/java/io/grpc/grpclb/ClientStats.java
index a733021..c368a8a 100644
--- a/grpclb/src/generated/main/java/io/grpc/grpclb/ClientStats.java
+++ b/grpclb/src/generated/main/java/io/grpc/grpclb/ClientStats.java
@@ -12,11 +12,11 @@
* Protobuf type {@code grpc.lb.v1.ClientStats}
*/
public final class ClientStats extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.lb.v1.ClientStats)
ClientStatsOrBuilder {
// Use ClientStats.newBuilder() to construct.
- private ClientStats(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private ClientStats(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ClientStats() {
@@ -81,7 +81,7 @@
return io.grpc.grpclb.LoadBalancerProto.internal_static_grpc_lb_v1_ClientStats_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.grpclb.LoadBalancerProto.internal_static_grpc_lb_v1_ClientStats_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -172,6 +172,47 @@
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.grpclb.ClientStats)) {
+ return super.equals(obj);
+ }
+ io.grpc.grpclb.ClientStats other = (io.grpc.grpclb.ClientStats) obj;
+
+ boolean result = true;
+ result = result && (getTotalRequests()
+ == other.getTotalRequests());
+ result = result && (getClientRpcErrors()
+ == other.getClientRpcErrors());
+ result = result && (getDroppedRequests()
+ == other.getDroppedRequests());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ hash = (37 * hash) + TOTAL_REQUESTS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getTotalRequests());
+ hash = (37 * hash) + CLIENT_RPC_ERRORS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getClientRpcErrors());
+ hash = (37 * hash) + DROPPED_REQUESTS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getDroppedRequests());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
public static io.grpc.grpclb.ClientStats parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -195,39 +236,39 @@
}
public static io.grpc.grpclb.ClientStats parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.grpclb.ClientStats parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.grpclb.ClientStats parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.grpclb.ClientStats parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.grpclb.ClientStats parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.grpclb.ClientStats parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -245,7 +286,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -258,7 +299,7 @@
* Protobuf type {@code grpc.lb.v1.ClientStats}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.lb.v1.ClientStats)
io.grpc.grpclb.ClientStatsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -266,7 +307,7 @@
return io.grpc.grpclb.LoadBalancerProto.internal_static_grpc_lb_v1_ClientStats_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.grpclb.LoadBalancerProto.internal_static_grpc_lb_v1_ClientStats_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -279,12 +320,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -324,6 +366,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.grpclb.ClientStats) {
return mergeFrom((io.grpc.grpclb.ClientStats)other);
diff --git a/grpclb/src/generated/main/java/io/grpc/grpclb/InitialLoadBalanceRequest.java b/grpclb/src/generated/main/java/io/grpc/grpclb/InitialLoadBalanceRequest.java
index f09a492..d1ce2ee 100644
--- a/grpclb/src/generated/main/java/io/grpc/grpclb/InitialLoadBalanceRequest.java
+++ b/grpclb/src/generated/main/java/io/grpc/grpclb/InitialLoadBalanceRequest.java
@@ -7,11 +7,11 @@
* Protobuf type {@code grpc.lb.v1.InitialLoadBalanceRequest}
*/
public final class InitialLoadBalanceRequest extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.lb.v1.InitialLoadBalanceRequest)
InitialLoadBalanceRequestOrBuilder {
// Use InitialLoadBalanceRequest.newBuilder() to construct.
- private InitialLoadBalanceRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private InitialLoadBalanceRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private InitialLoadBalanceRequest() {
@@ -65,7 +65,7 @@
return io.grpc.grpclb.LoadBalancerProto.internal_static_grpc_lb_v1_InitialLoadBalanceRequest_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.grpclb.LoadBalancerProto.internal_static_grpc_lb_v1_InitialLoadBalanceRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -127,7 +127,7 @@
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getNameBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessage.writeString(output, 1, name_);
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
}
@@ -137,13 +137,43 @@
size = 0;
if (!getNameBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_);
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.grpclb.InitialLoadBalanceRequest)) {
+ return super.equals(obj);
+ }
+ io.grpc.grpclb.InitialLoadBalanceRequest other = (io.grpc.grpclb.InitialLoadBalanceRequest) obj;
+
+ boolean result = true;
+ result = result && getName()
+ .equals(other.getName());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
public static io.grpc.grpclb.InitialLoadBalanceRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -167,39 +197,39 @@
}
public static io.grpc.grpclb.InitialLoadBalanceRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.grpclb.InitialLoadBalanceRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.grpclb.InitialLoadBalanceRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.grpclb.InitialLoadBalanceRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.grpclb.InitialLoadBalanceRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.grpclb.InitialLoadBalanceRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -217,7 +247,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -225,7 +255,7 @@
* Protobuf type {@code grpc.lb.v1.InitialLoadBalanceRequest}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.lb.v1.InitialLoadBalanceRequest)
io.grpc.grpclb.InitialLoadBalanceRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -233,7 +263,7 @@
return io.grpc.grpclb.LoadBalancerProto.internal_static_grpc_lb_v1_InitialLoadBalanceRequest_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.grpclb.LoadBalancerProto.internal_static_grpc_lb_v1_InitialLoadBalanceRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -246,12 +276,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -285,6 +316,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.grpclb.InitialLoadBalanceRequest) {
return mergeFrom((io.grpc.grpclb.InitialLoadBalanceRequest)other);
diff --git a/grpclb/src/generated/main/java/io/grpc/grpclb/InitialLoadBalanceResponse.java b/grpclb/src/generated/main/java/io/grpc/grpclb/InitialLoadBalanceResponse.java
index b65fa70..e61c65e 100644
--- a/grpclb/src/generated/main/java/io/grpc/grpclb/InitialLoadBalanceResponse.java
+++ b/grpclb/src/generated/main/java/io/grpc/grpclb/InitialLoadBalanceResponse.java
@@ -7,11 +7,11 @@
* Protobuf type {@code grpc.lb.v1.InitialLoadBalanceResponse}
*/
public final class InitialLoadBalanceResponse extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.lb.v1.InitialLoadBalanceResponse)
InitialLoadBalanceResponseOrBuilder {
// Use InitialLoadBalanceResponse.newBuilder() to construct.
- private InitialLoadBalanceResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private InitialLoadBalanceResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private InitialLoadBalanceResponse() {
@@ -77,7 +77,7 @@
return io.grpc.grpclb.LoadBalancerProto.internal_static_grpc_lb_v1_InitialLoadBalanceResponse_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.grpclb.LoadBalancerProto.internal_static_grpc_lb_v1_InitialLoadBalanceResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -229,7 +229,7 @@
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (initialResponseTypeCase_ == 2) {
- com.google.protobuf.GeneratedMessage.writeString(output, 2, initialResponseType_);
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, initialResponseType_);
}
if (clientStatsReportInterval_ != null) {
output.writeMessage(3, getClientStatsReportInterval());
@@ -242,7 +242,7 @@
size = 0;
if (initialResponseTypeCase_ == 2) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(2, initialResponseType_);
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, initialResponseType_);
}
if (clientStatsReportInterval_ != null) {
size += com.google.protobuf.CodedOutputStream
@@ -253,6 +253,60 @@
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.grpclb.InitialLoadBalanceResponse)) {
+ return super.equals(obj);
+ }
+ io.grpc.grpclb.InitialLoadBalanceResponse other = (io.grpc.grpclb.InitialLoadBalanceResponse) obj;
+
+ boolean result = true;
+ result = result && (hasClientStatsReportInterval() == other.hasClientStatsReportInterval());
+ if (hasClientStatsReportInterval()) {
+ result = result && getClientStatsReportInterval()
+ .equals(other.getClientStatsReportInterval());
+ }
+ result = result && getInitialResponseTypeCase().equals(
+ other.getInitialResponseTypeCase());
+ if (!result) return false;
+ switch (initialResponseTypeCase_) {
+ case 2:
+ result = result && getLoadBalancerDelegate()
+ .equals(other.getLoadBalancerDelegate());
+ break;
+ case 0:
+ default:
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ if (hasClientStatsReportInterval()) {
+ hash = (37 * hash) + CLIENT_STATS_REPORT_INTERVAL_FIELD_NUMBER;
+ hash = (53 * hash) + getClientStatsReportInterval().hashCode();
+ }
+ switch (initialResponseTypeCase_) {
+ case 2:
+ hash = (37 * hash) + LOAD_BALANCER_DELEGATE_FIELD_NUMBER;
+ hash = (53 * hash) + getLoadBalancerDelegate().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
public static io.grpc.grpclb.InitialLoadBalanceResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -276,39 +330,39 @@
}
public static io.grpc.grpclb.InitialLoadBalanceResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.grpclb.InitialLoadBalanceResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.grpclb.InitialLoadBalanceResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.grpclb.InitialLoadBalanceResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.grpclb.InitialLoadBalanceResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.grpclb.InitialLoadBalanceResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -326,7 +380,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -334,7 +388,7 @@
* Protobuf type {@code grpc.lb.v1.InitialLoadBalanceResponse}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.lb.v1.InitialLoadBalanceResponse)
io.grpc.grpclb.InitialLoadBalanceResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -342,7 +396,7 @@
return io.grpc.grpclb.LoadBalancerProto.internal_static_grpc_lb_v1_InitialLoadBalanceResponse_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.grpclb.LoadBalancerProto.internal_static_grpc_lb_v1_InitialLoadBalanceResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -355,12 +409,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -408,6 +463,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.grpclb.InitialLoadBalanceResponse) {
return mergeFrom((io.grpc.grpclb.InitialLoadBalanceResponse)other);
@@ -590,7 +671,7 @@
}
private com.google.protobuf.Duration clientStatsReportInterval_ = null;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> clientStatsReportIntervalBuilder_;
/**
* <pre>
@@ -746,11 +827,11 @@
*
* <code>optional .google.protobuf.Duration client_stats_report_interval = 3;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
getClientStatsReportIntervalFieldBuilder() {
if (clientStatsReportIntervalBuilder_ == null) {
- clientStatsReportIntervalBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ clientStatsReportIntervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
getClientStatsReportInterval(),
getParentForChildren(),
diff --git a/grpclb/src/generated/main/java/io/grpc/grpclb/LoadBalanceRequest.java b/grpclb/src/generated/main/java/io/grpc/grpclb/LoadBalanceRequest.java
index 1473a81..41cd796 100644
--- a/grpclb/src/generated/main/java/io/grpc/grpclb/LoadBalanceRequest.java
+++ b/grpclb/src/generated/main/java/io/grpc/grpclb/LoadBalanceRequest.java
@@ -7,11 +7,11 @@
* Protobuf type {@code grpc.lb.v1.LoadBalanceRequest}
*/
public final class LoadBalanceRequest extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.lb.v1.LoadBalanceRequest)
LoadBalanceRequestOrBuilder {
// Use LoadBalanceRequest.newBuilder() to construct.
- private LoadBalanceRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private LoadBalanceRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private LoadBalanceRequest() {
@@ -86,7 +86,7 @@
return io.grpc.grpclb.LoadBalancerProto.internal_static_grpc_lb_v1_LoadBalanceRequest_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.grpclb.LoadBalancerProto.internal_static_grpc_lb_v1_LoadBalanceRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -227,6 +227,59 @@
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.grpclb.LoadBalanceRequest)) {
+ return super.equals(obj);
+ }
+ io.grpc.grpclb.LoadBalanceRequest other = (io.grpc.grpclb.LoadBalanceRequest) obj;
+
+ boolean result = true;
+ result = result && getLoadBalanceRequestTypeCase().equals(
+ other.getLoadBalanceRequestTypeCase());
+ if (!result) return false;
+ switch (loadBalanceRequestTypeCase_) {
+ case 1:
+ result = result && getInitialRequest()
+ .equals(other.getInitialRequest());
+ break;
+ case 2:
+ result = result && getClientStats()
+ .equals(other.getClientStats());
+ break;
+ case 0:
+ default:
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ switch (loadBalanceRequestTypeCase_) {
+ case 1:
+ hash = (37 * hash) + INITIAL_REQUEST_FIELD_NUMBER;
+ hash = (53 * hash) + getInitialRequest().hashCode();
+ break;
+ case 2:
+ hash = (37 * hash) + CLIENT_STATS_FIELD_NUMBER;
+ hash = (53 * hash) + getClientStats().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
public static io.grpc.grpclb.LoadBalanceRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -250,39 +303,39 @@
}
public static io.grpc.grpclb.LoadBalanceRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.grpclb.LoadBalanceRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.grpclb.LoadBalanceRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.grpclb.LoadBalanceRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.grpclb.LoadBalanceRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.grpclb.LoadBalanceRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -300,7 +353,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -308,7 +361,7 @@
* Protobuf type {@code grpc.lb.v1.LoadBalanceRequest}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.lb.v1.LoadBalanceRequest)
io.grpc.grpclb.LoadBalanceRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -316,7 +369,7 @@
return io.grpc.grpclb.LoadBalancerProto.internal_static_grpc_lb_v1_LoadBalanceRequest_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.grpclb.LoadBalancerProto.internal_static_grpc_lb_v1_LoadBalanceRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -329,12 +382,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -382,6 +436,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.grpclb.LoadBalanceRequest) {
return mergeFrom((io.grpc.grpclb.LoadBalanceRequest)other);
@@ -447,7 +527,7 @@
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.grpclb.InitialLoadBalanceRequest, io.grpc.grpclb.InitialLoadBalanceRequest.Builder, io.grpc.grpclb.InitialLoadBalanceRequestOrBuilder> initialRequestBuilder_;
/**
* <pre>
@@ -590,14 +670,14 @@
*
* <code>optional .grpc.lb.v1.InitialLoadBalanceRequest initial_request = 1;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.grpclb.InitialLoadBalanceRequest, io.grpc.grpclb.InitialLoadBalanceRequest.Builder, io.grpc.grpclb.InitialLoadBalanceRequestOrBuilder>
getInitialRequestFieldBuilder() {
if (initialRequestBuilder_ == null) {
if (!(loadBalanceRequestTypeCase_ == 1)) {
loadBalanceRequestType_ = io.grpc.grpclb.InitialLoadBalanceRequest.getDefaultInstance();
}
- initialRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ initialRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.grpc.grpclb.InitialLoadBalanceRequest, io.grpc.grpclb.InitialLoadBalanceRequest.Builder, io.grpc.grpclb.InitialLoadBalanceRequestOrBuilder>(
(io.grpc.grpclb.InitialLoadBalanceRequest) loadBalanceRequestType_,
getParentForChildren(),
@@ -609,7 +689,7 @@
return initialRequestBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.grpclb.ClientStats, io.grpc.grpclb.ClientStats.Builder, io.grpc.grpclb.ClientStatsOrBuilder> clientStatsBuilder_;
/**
* <pre>
@@ -760,14 +840,14 @@
*
* <code>optional .grpc.lb.v1.ClientStats client_stats = 2;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.grpclb.ClientStats, io.grpc.grpclb.ClientStats.Builder, io.grpc.grpclb.ClientStatsOrBuilder>
getClientStatsFieldBuilder() {
if (clientStatsBuilder_ == null) {
if (!(loadBalanceRequestTypeCase_ == 2)) {
loadBalanceRequestType_ = io.grpc.grpclb.ClientStats.getDefaultInstance();
}
- clientStatsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ clientStatsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.grpc.grpclb.ClientStats, io.grpc.grpclb.ClientStats.Builder, io.grpc.grpclb.ClientStatsOrBuilder>(
(io.grpc.grpclb.ClientStats) loadBalanceRequestType_,
getParentForChildren(),
diff --git a/grpclb/src/generated/main/java/io/grpc/grpclb/LoadBalanceResponse.java b/grpclb/src/generated/main/java/io/grpc/grpclb/LoadBalanceResponse.java
index 422a922..048681c 100644
--- a/grpclb/src/generated/main/java/io/grpc/grpclb/LoadBalanceResponse.java
+++ b/grpclb/src/generated/main/java/io/grpc/grpclb/LoadBalanceResponse.java
@@ -7,11 +7,11 @@
* Protobuf type {@code grpc.lb.v1.LoadBalanceResponse}
*/
public final class LoadBalanceResponse extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.lb.v1.LoadBalanceResponse)
LoadBalanceResponseOrBuilder {
// Use LoadBalanceResponse.newBuilder() to construct.
- private LoadBalanceResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private LoadBalanceResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private LoadBalanceResponse() {
@@ -86,7 +86,7 @@
return io.grpc.grpclb.LoadBalancerProto.internal_static_grpc_lb_v1_LoadBalanceResponse_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.grpclb.LoadBalancerProto.internal_static_grpc_lb_v1_LoadBalanceResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -227,6 +227,59 @@
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.grpclb.LoadBalanceResponse)) {
+ return super.equals(obj);
+ }
+ io.grpc.grpclb.LoadBalanceResponse other = (io.grpc.grpclb.LoadBalanceResponse) obj;
+
+ boolean result = true;
+ result = result && getLoadBalanceResponseTypeCase().equals(
+ other.getLoadBalanceResponseTypeCase());
+ if (!result) return false;
+ switch (loadBalanceResponseTypeCase_) {
+ case 1:
+ result = result && getInitialResponse()
+ .equals(other.getInitialResponse());
+ break;
+ case 2:
+ result = result && getServerList()
+ .equals(other.getServerList());
+ break;
+ case 0:
+ default:
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ switch (loadBalanceResponseTypeCase_) {
+ case 1:
+ hash = (37 * hash) + INITIAL_RESPONSE_FIELD_NUMBER;
+ hash = (53 * hash) + getInitialResponse().hashCode();
+ break;
+ case 2:
+ hash = (37 * hash) + SERVER_LIST_FIELD_NUMBER;
+ hash = (53 * hash) + getServerList().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
public static io.grpc.grpclb.LoadBalanceResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -250,39 +303,39 @@
}
public static io.grpc.grpclb.LoadBalanceResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.grpclb.LoadBalanceResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.grpclb.LoadBalanceResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.grpclb.LoadBalanceResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.grpclb.LoadBalanceResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.grpclb.LoadBalanceResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -300,7 +353,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -308,7 +361,7 @@
* Protobuf type {@code grpc.lb.v1.LoadBalanceResponse}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.lb.v1.LoadBalanceResponse)
io.grpc.grpclb.LoadBalanceResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -316,7 +369,7 @@
return io.grpc.grpclb.LoadBalancerProto.internal_static_grpc_lb_v1_LoadBalanceResponse_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.grpclb.LoadBalancerProto.internal_static_grpc_lb_v1_LoadBalanceResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -329,12 +382,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -382,6 +436,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.grpclb.LoadBalanceResponse) {
return mergeFrom((io.grpc.grpclb.LoadBalanceResponse)other);
@@ -447,7 +527,7 @@
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.grpclb.InitialLoadBalanceResponse, io.grpc.grpclb.InitialLoadBalanceResponse.Builder, io.grpc.grpclb.InitialLoadBalanceResponseOrBuilder> initialResponseBuilder_;
/**
* <pre>
@@ -590,14 +670,14 @@
*
* <code>optional .grpc.lb.v1.InitialLoadBalanceResponse initial_response = 1;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.grpclb.InitialLoadBalanceResponse, io.grpc.grpclb.InitialLoadBalanceResponse.Builder, io.grpc.grpclb.InitialLoadBalanceResponseOrBuilder>
getInitialResponseFieldBuilder() {
if (initialResponseBuilder_ == null) {
if (!(loadBalanceResponseTypeCase_ == 1)) {
loadBalanceResponseType_ = io.grpc.grpclb.InitialLoadBalanceResponse.getDefaultInstance();
}
- initialResponseBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ initialResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.grpc.grpclb.InitialLoadBalanceResponse, io.grpc.grpclb.InitialLoadBalanceResponse.Builder, io.grpc.grpclb.InitialLoadBalanceResponseOrBuilder>(
(io.grpc.grpclb.InitialLoadBalanceResponse) loadBalanceResponseType_,
getParentForChildren(),
@@ -609,7 +689,7 @@
return initialResponseBuilder_;
}
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.grpclb.ServerList, io.grpc.grpclb.ServerList.Builder, io.grpc.grpclb.ServerListOrBuilder> serverListBuilder_;
/**
* <pre>
@@ -760,14 +840,14 @@
*
* <code>optional .grpc.lb.v1.ServerList server_list = 2;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.grpclb.ServerList, io.grpc.grpclb.ServerList.Builder, io.grpc.grpclb.ServerListOrBuilder>
getServerListFieldBuilder() {
if (serverListBuilder_ == null) {
if (!(loadBalanceResponseTypeCase_ == 2)) {
loadBalanceResponseType_ = io.grpc.grpclb.ServerList.getDefaultInstance();
}
- serverListBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ serverListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.grpc.grpclb.ServerList, io.grpc.grpclb.ServerList.Builder, io.grpc.grpclb.ServerListOrBuilder>(
(io.grpc.grpclb.ServerList) loadBalanceResponseType_,
getParentForChildren(),
diff --git a/grpclb/src/generated/main/java/io/grpc/grpclb/LoadBalancerProto.java b/grpclb/src/generated/main/java/io/grpc/grpclb/LoadBalancerProto.java
index 0cf679f..699aff3 100644
--- a/grpclb/src/generated/main/java/io/grpc/grpclb/LoadBalancerProto.java
+++ b/grpclb/src/generated/main/java/io/grpc/grpclb/LoadBalancerProto.java
@@ -6,42 +6,48 @@
public final class LoadBalancerProto {
private LoadBalancerProto() {}
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_grpc_lb_v1_LoadBalanceRequest_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_grpc_lb_v1_LoadBalanceRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_grpc_lb_v1_InitialLoadBalanceRequest_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_grpc_lb_v1_InitialLoadBalanceRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_grpc_lb_v1_ClientStats_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_grpc_lb_v1_ClientStats_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_grpc_lb_v1_LoadBalanceResponse_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_grpc_lb_v1_LoadBalanceResponse_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_grpc_lb_v1_InitialLoadBalanceResponse_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_grpc_lb_v1_InitialLoadBalanceResponse_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_grpc_lb_v1_ServerList_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_grpc_lb_v1_ServerList_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_grpc_lb_v1_Server_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_grpc_lb_v1_Server_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
@@ -95,43 +101,43 @@
internal_static_grpc_lb_v1_LoadBalanceRequest_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_grpc_lb_v1_LoadBalanceRequest_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_lb_v1_LoadBalanceRequest_descriptor,
new java.lang.String[] { "InitialRequest", "ClientStats", "LoadBalanceRequestType", });
internal_static_grpc_lb_v1_InitialLoadBalanceRequest_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_grpc_lb_v1_InitialLoadBalanceRequest_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_lb_v1_InitialLoadBalanceRequest_descriptor,
new java.lang.String[] { "Name", });
internal_static_grpc_lb_v1_ClientStats_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_grpc_lb_v1_ClientStats_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_lb_v1_ClientStats_descriptor,
new java.lang.String[] { "TotalRequests", "ClientRpcErrors", "DroppedRequests", });
internal_static_grpc_lb_v1_LoadBalanceResponse_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_grpc_lb_v1_LoadBalanceResponse_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_lb_v1_LoadBalanceResponse_descriptor,
new java.lang.String[] { "InitialResponse", "ServerList", "LoadBalanceResponseType", });
internal_static_grpc_lb_v1_InitialLoadBalanceResponse_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_grpc_lb_v1_InitialLoadBalanceResponse_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_lb_v1_InitialLoadBalanceResponse_descriptor,
new java.lang.String[] { "LoadBalancerDelegate", "ClientStatsReportInterval", "InitialResponseType", });
internal_static_grpc_lb_v1_ServerList_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_grpc_lb_v1_ServerList_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_lb_v1_ServerList_descriptor,
new java.lang.String[] { "Servers", "ExpirationInterval", });
internal_static_grpc_lb_v1_Server_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_grpc_lb_v1_Server_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_lb_v1_Server_descriptor,
new java.lang.String[] { "IpAddress", "Port", "LoadBalanceToken", "DropRequest", });
com.google.protobuf.DurationProto.getDescriptor();
diff --git a/grpclb/src/generated/main/java/io/grpc/grpclb/Server.java b/grpclb/src/generated/main/java/io/grpc/grpclb/Server.java
index 8e876d2..c905f31 100644
--- a/grpclb/src/generated/main/java/io/grpc/grpclb/Server.java
+++ b/grpclb/src/generated/main/java/io/grpc/grpclb/Server.java
@@ -7,11 +7,11 @@
* Protobuf type {@code grpc.lb.v1.Server}
*/
public final class Server extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.lb.v1.Server)
ServerOrBuilder {
// Use Server.newBuilder() to construct.
- private Server(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private Server(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private Server() {
@@ -83,7 +83,7 @@
return io.grpc.grpclb.LoadBalancerProto.internal_static_grpc_lb_v1_Server_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.grpclb.LoadBalancerProto.internal_static_grpc_lb_v1_Server_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -196,7 +196,7 @@
output.writeInt32(2, port_);
}
if (!getLoadBalanceTokenBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessage.writeString(output, 3, loadBalanceToken_);
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, loadBalanceToken_);
}
if (dropRequest_ != false) {
output.writeBool(4, dropRequest_);
@@ -217,7 +217,7 @@
.computeInt32Size(2, port_);
}
if (!getLoadBalanceTokenBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(3, loadBalanceToken_);
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, loadBalanceToken_);
}
if (dropRequest_ != false) {
size += com.google.protobuf.CodedOutputStream
@@ -228,6 +228,49 @@
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.grpclb.Server)) {
+ return super.equals(obj);
+ }
+ io.grpc.grpclb.Server other = (io.grpc.grpclb.Server) obj;
+
+ boolean result = true;
+ result = result && getIpAddress()
+ .equals(other.getIpAddress());
+ result = result && (getPort()
+ == other.getPort());
+ result = result && getLoadBalanceToken()
+ .equals(other.getLoadBalanceToken());
+ result = result && (getDropRequest()
+ == other.getDropRequest());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ hash = (37 * hash) + IP_ADDRESS_FIELD_NUMBER;
+ hash = (53 * hash) + getIpAddress().hashCode();
+ hash = (37 * hash) + PORT_FIELD_NUMBER;
+ hash = (53 * hash) + getPort();
+ hash = (37 * hash) + LOAD_BALANCE_TOKEN_FIELD_NUMBER;
+ hash = (53 * hash) + getLoadBalanceToken().hashCode();
+ hash = (37 * hash) + DROP_REQUEST_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getDropRequest());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
public static io.grpc.grpclb.Server parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -251,39 +294,39 @@
}
public static io.grpc.grpclb.Server parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.grpclb.Server parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.grpclb.Server parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.grpclb.Server parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.grpclb.Server parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.grpclb.Server parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -301,7 +344,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -309,7 +352,7 @@
* Protobuf type {@code grpc.lb.v1.Server}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.lb.v1.Server)
io.grpc.grpclb.ServerOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -317,7 +360,7 @@
return io.grpc.grpclb.LoadBalancerProto.internal_static_grpc_lb_v1_Server_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.grpclb.LoadBalancerProto.internal_static_grpc_lb_v1_Server_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -330,12 +373,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -378,6 +422,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.grpclb.Server) {
return mergeFrom((io.grpc.grpclb.Server)other);
diff --git a/grpclb/src/generated/main/java/io/grpc/grpclb/ServerList.java b/grpclb/src/generated/main/java/io/grpc/grpclb/ServerList.java
index 69a66d2..9eedb50 100644
--- a/grpclb/src/generated/main/java/io/grpc/grpclb/ServerList.java
+++ b/grpclb/src/generated/main/java/io/grpc/grpclb/ServerList.java
@@ -7,11 +7,11 @@
* Protobuf type {@code grpc.lb.v1.ServerList}
*/
public final class ServerList extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.lb.v1.ServerList)
ServerListOrBuilder {
// Use ServerList.newBuilder() to construct.
- private ServerList(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private ServerList(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ServerList() {
@@ -48,7 +48,8 @@
servers_ = new java.util.ArrayList<io.grpc.grpclb.Server>();
mutable_bitField0_ |= 0x00000001;
}
- servers_.add(input.readMessage(io.grpc.grpclb.Server.parser(), extensionRegistry));
+ servers_.add(
+ input.readMessage(io.grpc.grpclb.Server.parser(), extensionRegistry));
break;
}
case 26: {
@@ -83,7 +84,7 @@
return io.grpc.grpclb.LoadBalancerProto.internal_static_grpc_lb_v1_ServerList_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.grpclb.LoadBalancerProto.internal_static_grpc_lb_v1_ServerList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -241,6 +242,47 @@
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.grpclb.ServerList)) {
+ return super.equals(obj);
+ }
+ io.grpc.grpclb.ServerList other = (io.grpc.grpclb.ServerList) obj;
+
+ boolean result = true;
+ result = result && getServersList()
+ .equals(other.getServersList());
+ result = result && (hasExpirationInterval() == other.hasExpirationInterval());
+ if (hasExpirationInterval()) {
+ result = result && getExpirationInterval()
+ .equals(other.getExpirationInterval());
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ if (getServersCount() > 0) {
+ hash = (37 * hash) + SERVERS_FIELD_NUMBER;
+ hash = (53 * hash) + getServersList().hashCode();
+ }
+ if (hasExpirationInterval()) {
+ hash = (37 * hash) + EXPIRATION_INTERVAL_FIELD_NUMBER;
+ hash = (53 * hash) + getExpirationInterval().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
public static io.grpc.grpclb.ServerList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -264,39 +306,39 @@
}
public static io.grpc.grpclb.ServerList parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.grpclb.ServerList parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.grpclb.ServerList parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.grpclb.ServerList parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.grpclb.ServerList parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.grpclb.ServerList parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -314,7 +356,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -322,7 +364,7 @@
* Protobuf type {@code grpc.lb.v1.ServerList}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.lb.v1.ServerList)
io.grpc.grpclb.ServerListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -330,7 +372,7 @@
return io.grpc.grpclb.LoadBalancerProto.internal_static_grpc_lb_v1_ServerList_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.grpclb.LoadBalancerProto.internal_static_grpc_lb_v1_ServerList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -343,12 +385,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
getServersFieldBuilder();
}
}
@@ -409,6 +452,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.grpclb.ServerList) {
return mergeFrom((io.grpc.grpclb.ServerList)other);
@@ -439,7 +508,7 @@
servers_ = other.servers_;
bitField0_ = (bitField0_ & ~0x00000001);
serversBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getServersFieldBuilder() : null;
} else {
serversBuilder_.addAllMessages(other.servers_);
@@ -485,7 +554,7 @@
}
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
io.grpc.grpclb.Server, io.grpc.grpclb.Server.Builder, io.grpc.grpclb.ServerOrBuilder> serversBuilder_;
/**
@@ -827,11 +896,11 @@
getServersBuilderList() {
return getServersFieldBuilder().getBuilderList();
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
io.grpc.grpclb.Server, io.grpc.grpclb.Server.Builder, io.grpc.grpclb.ServerOrBuilder>
getServersFieldBuilder() {
if (serversBuilder_ == null) {
- serversBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ serversBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.grpc.grpclb.Server, io.grpc.grpclb.Server.Builder, io.grpc.grpclb.ServerOrBuilder>(
servers_,
((bitField0_ & 0x00000001) == 0x00000001),
@@ -843,7 +912,7 @@
}
private com.google.protobuf.Duration expirationInterval_ = null;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> expirationIntervalBuilder_;
/**
* <pre>
@@ -1008,11 +1077,11 @@
*
* <code>optional .google.protobuf.Duration expiration_interval = 3;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
getExpirationIntervalFieldBuilder() {
if (expirationIntervalBuilder_ == null) {
- expirationIntervalBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ expirationIntervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
getExpirationInterval(),
getParentForChildren(),
diff --git a/interop-testing/src/generated/main/java/com/google/protobuf/EmptyProtos.java b/interop-testing/src/generated/main/java/com/google/protobuf/EmptyProtos.java
index 02cde0c..8267ef9 100644
--- a/interop-testing/src/generated/main/java/com/google/protobuf/EmptyProtos.java
+++ b/interop-testing/src/generated/main/java/com/google/protobuf/EmptyProtos.java
@@ -6,7 +6,13 @@
public final class EmptyProtos {
private EmptyProtos() {}
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)
@@ -25,11 +31,11 @@
* Protobuf type {@code grpc.testing.Empty}
*/
public static final class Empty extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.testing.Empty)
EmptyOrBuilder {
// Use Empty.newBuilder() to construct.
- private Empty(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private Empty(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private Empty() {
@@ -79,7 +85,7 @@
return com.google.protobuf.EmptyProtos.internal_static_grpc_testing_Empty_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.protobuf.EmptyProtos.internal_static_grpc_testing_Empty_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -112,6 +118,33 @@
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.protobuf.EmptyProtos.Empty)) {
+ return super.equals(obj);
+ }
+ com.google.protobuf.EmptyProtos.Empty other = (com.google.protobuf.EmptyProtos.Empty) obj;
+
+ boolean result = true;
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
public static com.google.protobuf.EmptyProtos.Empty parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -135,39 +168,39 @@
}
public static com.google.protobuf.EmptyProtos.Empty parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.protobuf.EmptyProtos.Empty parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.protobuf.EmptyProtos.Empty parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.protobuf.EmptyProtos.Empty parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.protobuf.EmptyProtos.Empty parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.protobuf.EmptyProtos.Empty parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -185,7 +218,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -202,7 +235,7 @@
* Protobuf type {@code grpc.testing.Empty}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.testing.Empty)
com.google.protobuf.EmptyProtos.EmptyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -210,7 +243,7 @@
return com.google.protobuf.EmptyProtos.internal_static_grpc_testing_Empty_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.protobuf.EmptyProtos.internal_static_grpc_testing_Empty_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -223,12 +256,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -259,6 +293,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.protobuf.EmptyProtos.Empty) {
return mergeFrom((com.google.protobuf.EmptyProtos.Empty)other);
@@ -296,6 +356,16 @@
}
return this;
}
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:grpc.testing.Empty)
}
@@ -338,7 +408,7 @@
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_grpc_testing_Empty_descriptor;
private static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_grpc_testing_Empty_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
@@ -368,7 +438,7 @@
internal_static_grpc_testing_Empty_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_grpc_testing_Empty_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_testing_Empty_descriptor,
new java.lang.String[] { });
}
diff --git a/interop-testing/src/generated/main/java/io/grpc/testing/integration/Messages.java b/interop-testing/src/generated/main/java/io/grpc/testing/integration/Messages.java
index 9e857ae..aa6978e 100644
--- a/interop-testing/src/generated/main/java/io/grpc/testing/integration/Messages.java
+++ b/interop-testing/src/generated/main/java/io/grpc/testing/integration/Messages.java
@@ -6,7 +6,13 @@
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);
}
/**
* <pre>
@@ -300,11 +306,11 @@
* Protobuf type {@code grpc.testing.Payload}
*/
public static final class Payload extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.testing.Payload)
PayloadOrBuilder {
// Use Payload.newBuilder() to construct.
- private Payload(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private Payload(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private Payload() {
@@ -364,7 +370,7 @@
return io.grpc.testing.integration.Messages.internal_static_grpc_testing_Payload_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.testing.integration.Messages.internal_static_grpc_testing_Payload_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -391,7 +397,7 @@
* <code>optional .grpc.testing.PayloadType type = 1;</code>
*/
public io.grpc.testing.integration.Messages.PayloadType getType() {
- io.grpc.testing.integration.Messages.PayloadType result = io.grpc.testing.integration.Messages.PayloadType.forNumber(type_);
+ io.grpc.testing.integration.Messages.PayloadType result = io.grpc.testing.integration.Messages.PayloadType.valueOf(type_);
return result == null ? io.grpc.testing.integration.Messages.PayloadType.UNRECOGNIZED : result;
}
@@ -446,6 +452,39 @@
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.testing.integration.Messages.Payload)) {
+ return super.equals(obj);
+ }
+ io.grpc.testing.integration.Messages.Payload other = (io.grpc.testing.integration.Messages.Payload) obj;
+
+ boolean result = true;
+ result = result && type_ == other.type_;
+ result = result && getBody()
+ .equals(other.getBody());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().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 io.grpc.testing.integration.Messages.Payload parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -469,39 +508,39 @@
}
public static io.grpc.testing.integration.Messages.Payload parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.testing.integration.Messages.Payload parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.testing.integration.Messages.Payload parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.testing.integration.Messages.Payload parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.testing.integration.Messages.Payload parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.testing.integration.Messages.Payload parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -519,7 +558,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -531,7 +570,7 @@
* Protobuf type {@code grpc.testing.Payload}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.testing.Payload)
io.grpc.testing.integration.Messages.PayloadOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -539,7 +578,7 @@
return io.grpc.testing.integration.Messages.internal_static_grpc_testing_Payload_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.testing.integration.Messages.internal_static_grpc_testing_Payload_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -552,12 +591,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -594,6 +634,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.testing.integration.Messages.Payload) {
return mergeFrom((io.grpc.testing.integration.Messages.Payload)other);
@@ -668,7 +734,7 @@
* <code>optional .grpc.testing.PayloadType type = 1;</code>
*/
public io.grpc.testing.integration.Messages.PayloadType getType() {
- io.grpc.testing.integration.Messages.PayloadType result = io.grpc.testing.integration.Messages.PayloadType.forNumber(type_);
+ io.grpc.testing.integration.Messages.PayloadType result = io.grpc.testing.integration.Messages.PayloadType.valueOf(type_);
return result == null ? io.grpc.testing.integration.Messages.PayloadType.UNRECOGNIZED : result;
}
/**
@@ -818,11 +884,11 @@
* Protobuf type {@code grpc.testing.EchoStatus}
*/
public static final class EchoStatus extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.testing.EchoStatus)
EchoStatusOrBuilder {
// Use EchoStatus.newBuilder() to construct.
- private EchoStatus(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private EchoStatus(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private EchoStatus() {
@@ -882,7 +948,7 @@
return io.grpc.testing.integration.Messages.internal_static_grpc_testing_EchoStatus_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.testing.integration.Messages.internal_static_grpc_testing_EchoStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -948,7 +1014,7 @@
output.writeInt32(1, code_);
}
if (!getMessageBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessage.writeString(output, 2, message_);
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_);
}
}
@@ -962,13 +1028,47 @@
.computeInt32Size(1, code_);
}
if (!getMessageBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(2, message_);
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.testing.integration.Messages.EchoStatus)) {
+ return super.equals(obj);
+ }
+ io.grpc.testing.integration.Messages.EchoStatus other = (io.grpc.testing.integration.Messages.EchoStatus) obj;
+
+ boolean result = true;
+ result = result && (getCode()
+ == other.getCode());
+ result = result && getMessage()
+ .equals(other.getMessage());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().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 io.grpc.testing.integration.Messages.EchoStatus parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -992,39 +1092,39 @@
}
public static io.grpc.testing.integration.Messages.EchoStatus parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.testing.integration.Messages.EchoStatus parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.testing.integration.Messages.EchoStatus parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.testing.integration.Messages.EchoStatus parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.testing.integration.Messages.EchoStatus parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.testing.integration.Messages.EchoStatus parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -1042,7 +1142,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -1055,7 +1155,7 @@
* Protobuf type {@code grpc.testing.EchoStatus}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.testing.EchoStatus)
io.grpc.testing.integration.Messages.EchoStatusOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -1063,7 +1163,7 @@
return io.grpc.testing.integration.Messages.internal_static_grpc_testing_EchoStatus_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.testing.integration.Messages.internal_static_grpc_testing_EchoStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -1076,12 +1176,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -1118,6 +1219,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.testing.integration.Messages.EchoStatus) {
return mergeFrom((io.grpc.testing.integration.Messages.EchoStatus)other);
@@ -1431,11 +1558,11 @@
* Protobuf type {@code grpc.testing.SimpleRequest}
*/
public static final class SimpleRequest extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.testing.SimpleRequest)
SimpleRequestOrBuilder {
// Use SimpleRequest.newBuilder() to construct.
- private SimpleRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private SimpleRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private SimpleRequest() {
@@ -1540,7 +1667,7 @@
return io.grpc.testing.integration.Messages.internal_static_grpc_testing_SimpleRequest_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.testing.integration.Messages.internal_static_grpc_testing_SimpleRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -1569,7 +1696,7 @@
* <code>optional .grpc.testing.PayloadType response_type = 1;</code>
*/
public io.grpc.testing.integration.Messages.PayloadType getResponseType() {
- io.grpc.testing.integration.Messages.PayloadType result = io.grpc.testing.integration.Messages.PayloadType.forNumber(responseType_);
+ io.grpc.testing.integration.Messages.PayloadType result = io.grpc.testing.integration.Messages.PayloadType.valueOf(responseType_);
return result == null ? io.grpc.testing.integration.Messages.PayloadType.UNRECOGNIZED : result;
}
@@ -1666,7 +1793,7 @@
* <code>optional .grpc.testing.CompressionType response_compression = 6;</code>
*/
public io.grpc.testing.integration.Messages.CompressionType getResponseCompression() {
- io.grpc.testing.integration.Messages.CompressionType result = io.grpc.testing.integration.Messages.CompressionType.forNumber(responseCompression_);
+ io.grpc.testing.integration.Messages.CompressionType result = io.grpc.testing.integration.Messages.CompressionType.valueOf(responseCompression_);
return result == null ? io.grpc.testing.integration.Messages.CompressionType.UNRECOGNIZED : result;
}
@@ -1776,6 +1903,70 @@
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.testing.integration.Messages.SimpleRequest)) {
+ return super.equals(obj);
+ }
+ io.grpc.testing.integration.Messages.SimpleRequest other = (io.grpc.testing.integration.Messages.SimpleRequest) obj;
+
+ boolean result = true;
+ result = result && responseType_ == other.responseType_;
+ result = result && (getResponseSize()
+ == other.getResponseSize());
+ result = result && (hasPayload() == other.hasPayload());
+ if (hasPayload()) {
+ result = result && getPayload()
+ .equals(other.getPayload());
+ }
+ result = result && (getFillUsername()
+ == other.getFillUsername());
+ result = result && (getFillOauthScope()
+ == other.getFillOauthScope());
+ result = result && responseCompression_ == other.responseCompression_;
+ result = result && (hasResponseStatus() == other.hasResponseStatus());
+ if (hasResponseStatus()) {
+ result = result && getResponseStatus()
+ .equals(other.getResponseStatus());
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().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());
+ hash = (37 * hash) + RESPONSE_COMPRESSION_FIELD_NUMBER;
+ hash = (53 * hash) + responseCompression_;
+ 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 io.grpc.testing.integration.Messages.SimpleRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -1799,39 +1990,39 @@
}
public static io.grpc.testing.integration.Messages.SimpleRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.testing.integration.Messages.SimpleRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.testing.integration.Messages.SimpleRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.testing.integration.Messages.SimpleRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.testing.integration.Messages.SimpleRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.testing.integration.Messages.SimpleRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -1849,7 +2040,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -1861,7 +2052,7 @@
* Protobuf type {@code grpc.testing.SimpleRequest}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.testing.SimpleRequest)
io.grpc.testing.integration.Messages.SimpleRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -1869,7 +2060,7 @@
return io.grpc.testing.integration.Messages.internal_static_grpc_testing_SimpleRequest_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.testing.integration.Messages.internal_static_grpc_testing_SimpleRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -1882,12 +2073,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -1955,6 +2147,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.testing.integration.Messages.SimpleRequest) {
return mergeFrom((io.grpc.testing.integration.Messages.SimpleRequest)other);
@@ -2047,7 +2265,7 @@
* <code>optional .grpc.testing.PayloadType response_type = 1;</code>
*/
public io.grpc.testing.integration.Messages.PayloadType getResponseType() {
- io.grpc.testing.integration.Messages.PayloadType result = io.grpc.testing.integration.Messages.PayloadType.forNumber(responseType_);
+ io.grpc.testing.integration.Messages.PayloadType result = io.grpc.testing.integration.Messages.PayloadType.valueOf(responseType_);
return result == null ? io.grpc.testing.integration.Messages.PayloadType.UNRECOGNIZED : result;
}
/**
@@ -2124,7 +2342,7 @@
}
private io.grpc.testing.integration.Messages.Payload payload_ = null;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.testing.integration.Messages.Payload, io.grpc.testing.integration.Messages.Payload.Builder, io.grpc.testing.integration.Messages.PayloadOrBuilder> payloadBuilder_;
/**
* <pre>
@@ -2262,11 +2480,11 @@
*
* <code>optional .grpc.testing.Payload payload = 3;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.testing.integration.Messages.Payload, io.grpc.testing.integration.Messages.Payload.Builder, io.grpc.testing.integration.Messages.PayloadOrBuilder>
getPayloadFieldBuilder() {
if (payloadBuilder_ == null) {
- payloadBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ payloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.grpc.testing.integration.Messages.Payload, io.grpc.testing.integration.Messages.Payload.Builder, io.grpc.testing.integration.Messages.PayloadOrBuilder>(
getPayload(),
getParentForChildren(),
@@ -2383,7 +2601,7 @@
* <code>optional .grpc.testing.CompressionType response_compression = 6;</code>
*/
public io.grpc.testing.integration.Messages.CompressionType getResponseCompression() {
- io.grpc.testing.integration.Messages.CompressionType result = io.grpc.testing.integration.Messages.CompressionType.forNumber(responseCompression_);
+ io.grpc.testing.integration.Messages.CompressionType result = io.grpc.testing.integration.Messages.CompressionType.valueOf(responseCompression_);
return result == null ? io.grpc.testing.integration.Messages.CompressionType.UNRECOGNIZED : result;
}
/**
@@ -2417,7 +2635,7 @@
}
private io.grpc.testing.integration.Messages.EchoStatus responseStatus_ = null;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.testing.integration.Messages.EchoStatus, io.grpc.testing.integration.Messages.EchoStatus.Builder, io.grpc.testing.integration.Messages.EchoStatusOrBuilder> responseStatusBuilder_;
/**
* <pre>
@@ -2555,11 +2773,11 @@
*
* <code>optional .grpc.testing.EchoStatus response_status = 7;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.testing.integration.Messages.EchoStatus, io.grpc.testing.integration.Messages.EchoStatus.Builder, io.grpc.testing.integration.Messages.EchoStatusOrBuilder>
getResponseStatusFieldBuilder() {
if (responseStatusBuilder_ == null) {
- responseStatusBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ responseStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.grpc.testing.integration.Messages.EchoStatus, io.grpc.testing.integration.Messages.EchoStatus.Builder, io.grpc.testing.integration.Messages.EchoStatusOrBuilder>(
getResponseStatus(),
getParentForChildren(),
@@ -2692,11 +2910,11 @@
* Protobuf type {@code grpc.testing.SimpleResponse}
*/
public static final class SimpleResponse extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.testing.SimpleResponse)
SimpleResponseOrBuilder {
// Use SimpleResponse.newBuilder() to construct.
- private SimpleResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private SimpleResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private SimpleResponse() {
@@ -2770,7 +2988,7 @@
return io.grpc.testing.integration.Messages.internal_static_grpc_testing_SimpleResponse_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.testing.integration.Messages.internal_static_grpc_testing_SimpleResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -2912,10 +3130,10 @@
output.writeMessage(1, getPayload());
}
if (!getUsernameBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessage.writeString(output, 2, username_);
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, username_);
}
if (!getOauthScopeBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessage.writeString(output, 3, oauthScope_);
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, oauthScope_);
}
}
@@ -2929,16 +3147,59 @@
.computeMessageSize(1, getPayload());
}
if (!getUsernameBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(2, username_);
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, username_);
}
if (!getOauthScopeBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(3, oauthScope_);
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, oauthScope_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.testing.integration.Messages.SimpleResponse)) {
+ return super.equals(obj);
+ }
+ io.grpc.testing.integration.Messages.SimpleResponse other = (io.grpc.testing.integration.Messages.SimpleResponse) obj;
+
+ boolean result = true;
+ result = result && (hasPayload() == other.hasPayload());
+ if (hasPayload()) {
+ result = result && getPayload()
+ .equals(other.getPayload());
+ }
+ result = result && getUsername()
+ .equals(other.getUsername());
+ result = result && getOauthScope()
+ .equals(other.getOauthScope());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().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 = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
public static io.grpc.testing.integration.Messages.SimpleResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -2962,39 +3223,39 @@
}
public static io.grpc.testing.integration.Messages.SimpleResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.testing.integration.Messages.SimpleResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.testing.integration.Messages.SimpleResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.testing.integration.Messages.SimpleResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.testing.integration.Messages.SimpleResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.testing.integration.Messages.SimpleResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -3012,7 +3273,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -3024,7 +3285,7 @@
* Protobuf type {@code grpc.testing.SimpleResponse}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.testing.SimpleResponse)
io.grpc.testing.integration.Messages.SimpleResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -3032,7 +3293,7 @@
return io.grpc.testing.integration.Messages.internal_static_grpc_testing_SimpleResponse_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.testing.integration.Messages.internal_static_grpc_testing_SimpleResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -3045,12 +3306,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -3098,6 +3360,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.testing.integration.Messages.SimpleResponse) {
return mergeFrom((io.grpc.testing.integration.Messages.SimpleResponse)other);
@@ -3147,7 +3435,7 @@
}
private io.grpc.testing.integration.Messages.Payload payload_ = null;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.testing.integration.Messages.Payload, io.grpc.testing.integration.Messages.Payload.Builder, io.grpc.testing.integration.Messages.PayloadOrBuilder> payloadBuilder_;
/**
* <pre>
@@ -3285,11 +3573,11 @@
*
* <code>optional .grpc.testing.Payload payload = 1;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.testing.integration.Messages.Payload, io.grpc.testing.integration.Messages.Payload.Builder, io.grpc.testing.integration.Messages.PayloadOrBuilder>
getPayloadFieldBuilder() {
if (payloadBuilder_ == null) {
- payloadBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ payloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.grpc.testing.integration.Messages.Payload, io.grpc.testing.integration.Messages.Payload.Builder, io.grpc.testing.integration.Messages.PayloadOrBuilder>(
getPayload(),
getParentForChildren(),
@@ -3548,11 +3836,11 @@
* Protobuf type {@code grpc.testing.SimpleContext}
*/
public static final class SimpleContext extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.testing.SimpleContext)
SimpleContextOrBuilder {
// Use SimpleContext.newBuilder() to construct.
- private SimpleContext(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private SimpleContext(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private SimpleContext() {
@@ -3606,7 +3894,7 @@
return io.grpc.testing.integration.Messages.internal_static_grpc_testing_SimpleContext_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.testing.integration.Messages.internal_static_grpc_testing_SimpleContext_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -3660,7 +3948,7 @@
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getValueBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessage.writeString(output, 1, value_);
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_);
}
}
@@ -3670,13 +3958,43 @@
size = 0;
if (!getValueBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(1, value_);
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.testing.integration.Messages.SimpleContext)) {
+ return super.equals(obj);
+ }
+ io.grpc.testing.integration.Messages.SimpleContext other = (io.grpc.testing.integration.Messages.SimpleContext) obj;
+
+ boolean result = true;
+ result = result && getValue()
+ .equals(other.getValue());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ hash = (37 * hash) + VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + getValue().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
public static io.grpc.testing.integration.Messages.SimpleContext parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -3700,39 +4018,39 @@
}
public static io.grpc.testing.integration.Messages.SimpleContext parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.testing.integration.Messages.SimpleContext parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.testing.integration.Messages.SimpleContext parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.testing.integration.Messages.SimpleContext parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.testing.integration.Messages.SimpleContext parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.testing.integration.Messages.SimpleContext parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -3750,7 +4068,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -3758,7 +4076,7 @@
* Protobuf type {@code grpc.testing.SimpleContext}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.testing.SimpleContext)
io.grpc.testing.integration.Messages.SimpleContextOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -3766,7 +4084,7 @@
return io.grpc.testing.integration.Messages.internal_static_grpc_testing_SimpleContext_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.testing.integration.Messages.internal_static_grpc_testing_SimpleContext_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -3779,12 +4097,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -3818,6 +4137,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.testing.integration.Messages.SimpleContext) {
return mergeFrom((io.grpc.testing.integration.Messages.SimpleContext)other);
@@ -4013,11 +4358,11 @@
* Protobuf type {@code grpc.testing.StreamingInputCallRequest}
*/
public static final class StreamingInputCallRequest extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.testing.StreamingInputCallRequest)
StreamingInputCallRequestOrBuilder {
// Use StreamingInputCallRequest.newBuilder() to construct.
- private StreamingInputCallRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private StreamingInputCallRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private StreamingInputCallRequest() {
@@ -4077,7 +4422,7 @@
return io.grpc.testing.integration.Messages.internal_static_grpc_testing_StreamingInputCallRequest_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.testing.integration.Messages.internal_static_grpc_testing_StreamingInputCallRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -4148,6 +4493,41 @@
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.testing.integration.Messages.StreamingInputCallRequest)) {
+ return super.equals(obj);
+ }
+ io.grpc.testing.integration.Messages.StreamingInputCallRequest other = (io.grpc.testing.integration.Messages.StreamingInputCallRequest) obj;
+
+ boolean result = true;
+ result = result && (hasPayload() == other.hasPayload());
+ if (hasPayload()) {
+ result = result && getPayload()
+ .equals(other.getPayload());
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().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 io.grpc.testing.integration.Messages.StreamingInputCallRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -4171,39 +4551,39 @@
}
public static io.grpc.testing.integration.Messages.StreamingInputCallRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.testing.integration.Messages.StreamingInputCallRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.testing.integration.Messages.StreamingInputCallRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.testing.integration.Messages.StreamingInputCallRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.testing.integration.Messages.StreamingInputCallRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.testing.integration.Messages.StreamingInputCallRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -4221,7 +4601,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -4233,7 +4613,7 @@
* Protobuf type {@code grpc.testing.StreamingInputCallRequest}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.testing.StreamingInputCallRequest)
io.grpc.testing.integration.Messages.StreamingInputCallRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -4241,7 +4621,7 @@
return io.grpc.testing.integration.Messages.internal_static_grpc_testing_StreamingInputCallRequest_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.testing.integration.Messages.internal_static_grpc_testing_StreamingInputCallRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -4254,12 +4634,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -4301,6 +4682,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.testing.integration.Messages.StreamingInputCallRequest) {
return mergeFrom((io.grpc.testing.integration.Messages.StreamingInputCallRequest)other);
@@ -4342,7 +4749,7 @@
}
private io.grpc.testing.integration.Messages.Payload payload_ = null;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.testing.integration.Messages.Payload, io.grpc.testing.integration.Messages.Payload.Builder, io.grpc.testing.integration.Messages.PayloadOrBuilder> payloadBuilder_;
/**
* <pre>
@@ -4480,11 +4887,11 @@
*
* <code>optional .grpc.testing.Payload payload = 1;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.testing.integration.Messages.Payload, io.grpc.testing.integration.Messages.Payload.Builder, io.grpc.testing.integration.Messages.PayloadOrBuilder>
getPayloadFieldBuilder() {
if (payloadBuilder_ == null) {
- payloadBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ payloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.grpc.testing.integration.Messages.Payload, io.grpc.testing.integration.Messages.Payload.Builder, io.grpc.testing.integration.Messages.PayloadOrBuilder>(
getPayload(),
getParentForChildren(),
@@ -4563,11 +4970,11 @@
* Protobuf type {@code grpc.testing.StreamingInputCallResponse}
*/
public static final class StreamingInputCallResponse extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.testing.StreamingInputCallResponse)
StreamingInputCallResponseOrBuilder {
// Use StreamingInputCallResponse.newBuilder() to construct.
- private StreamingInputCallResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private StreamingInputCallResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private StreamingInputCallResponse() {
@@ -4620,7 +5027,7 @@
return io.grpc.testing.integration.Messages.internal_static_grpc_testing_StreamingInputCallResponse_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.testing.integration.Messages.internal_static_grpc_testing_StreamingInputCallResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -4671,6 +5078,36 @@
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.testing.integration.Messages.StreamingInputCallResponse)) {
+ return super.equals(obj);
+ }
+ io.grpc.testing.integration.Messages.StreamingInputCallResponse other = (io.grpc.testing.integration.Messages.StreamingInputCallResponse) obj;
+
+ boolean result = true;
+ result = result && (getAggregatedPayloadSize()
+ == other.getAggregatedPayloadSize());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ hash = (37 * hash) + AGGREGATED_PAYLOAD_SIZE_FIELD_NUMBER;
+ hash = (53 * hash) + getAggregatedPayloadSize();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
public static io.grpc.testing.integration.Messages.StreamingInputCallResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -4694,39 +5131,39 @@
}
public static io.grpc.testing.integration.Messages.StreamingInputCallResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.testing.integration.Messages.StreamingInputCallResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.testing.integration.Messages.StreamingInputCallResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.testing.integration.Messages.StreamingInputCallResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.testing.integration.Messages.StreamingInputCallResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.testing.integration.Messages.StreamingInputCallResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -4744,7 +5181,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -4756,7 +5193,7 @@
* Protobuf type {@code grpc.testing.StreamingInputCallResponse}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.testing.StreamingInputCallResponse)
io.grpc.testing.integration.Messages.StreamingInputCallResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -4764,7 +5201,7 @@
return io.grpc.testing.integration.Messages.internal_static_grpc_testing_StreamingInputCallResponse_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.testing.integration.Messages.internal_static_grpc_testing_StreamingInputCallResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -4777,12 +5214,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -4816,6 +5254,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.testing.integration.Messages.StreamingInputCallResponse) {
return mergeFrom((io.grpc.testing.integration.Messages.StreamingInputCallResponse)other);
@@ -4974,11 +5438,11 @@
* Protobuf type {@code grpc.testing.ResponseParameters}
*/
public static final class ResponseParameters extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.testing.ResponseParameters)
ResponseParametersOrBuilder {
// Use ResponseParameters.newBuilder() to construct.
- private ResponseParameters(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private ResponseParameters(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ResponseParameters() {
@@ -5037,7 +5501,7 @@
return io.grpc.testing.integration.Messages.internal_static_grpc_testing_ResponseParameters_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.testing.integration.Messages.internal_static_grpc_testing_ResponseParameters_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -5110,6 +5574,40 @@
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.testing.integration.Messages.ResponseParameters)) {
+ return super.equals(obj);
+ }
+ io.grpc.testing.integration.Messages.ResponseParameters other = (io.grpc.testing.integration.Messages.ResponseParameters) obj;
+
+ boolean result = true;
+ result = result && (getSize()
+ == other.getSize());
+ result = result && (getIntervalUs()
+ == other.getIntervalUs());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ hash = (37 * hash) + SIZE_FIELD_NUMBER;
+ hash = (53 * hash) + getSize();
+ hash = (37 * hash) + INTERVAL_US_FIELD_NUMBER;
+ hash = (53 * hash) + getIntervalUs();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
public static io.grpc.testing.integration.Messages.ResponseParameters parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -5133,39 +5631,39 @@
}
public static io.grpc.testing.integration.Messages.ResponseParameters parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.testing.integration.Messages.ResponseParameters parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.testing.integration.Messages.ResponseParameters parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.testing.integration.Messages.ResponseParameters parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.testing.integration.Messages.ResponseParameters parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.testing.integration.Messages.ResponseParameters parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -5183,7 +5681,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -5195,7 +5693,7 @@
* Protobuf type {@code grpc.testing.ResponseParameters}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.testing.ResponseParameters)
io.grpc.testing.integration.Messages.ResponseParametersOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -5203,7 +5701,7 @@
return io.grpc.testing.integration.Messages.internal_static_grpc_testing_ResponseParameters_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.testing.integration.Messages.internal_static_grpc_testing_ResponseParameters_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -5216,12 +5714,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -5258,6 +5757,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.testing.integration.Messages.ResponseParameters) {
return mergeFrom((io.grpc.testing.integration.Messages.ResponseParameters)other);
@@ -5577,11 +6102,11 @@
* Protobuf type {@code grpc.testing.StreamingOutputCallRequest}
*/
public static final class StreamingOutputCallRequest extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.testing.StreamingOutputCallRequest)
StreamingOutputCallRequestOrBuilder {
// Use StreamingOutputCallRequest.newBuilder() to construct.
- private StreamingOutputCallRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private StreamingOutputCallRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private StreamingOutputCallRequest() {
@@ -5626,7 +6151,8 @@
responseParameters_ = new java.util.ArrayList<io.grpc.testing.integration.Messages.ResponseParameters>();
mutable_bitField0_ |= 0x00000002;
}
- responseParameters_.add(input.readMessage(io.grpc.testing.integration.Messages.ResponseParameters.parser(), extensionRegistry));
+ responseParameters_.add(
+ input.readMessage(io.grpc.testing.integration.Messages.ResponseParameters.parser(), extensionRegistry));
break;
}
case 26: {
@@ -5680,7 +6206,7 @@
return io.grpc.testing.integration.Messages.internal_static_grpc_testing_StreamingOutputCallRequest_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.testing.integration.Messages.internal_static_grpc_testing_StreamingOutputCallRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -5714,7 +6240,7 @@
* <code>optional .grpc.testing.PayloadType response_type = 1;</code>
*/
public io.grpc.testing.integration.Messages.PayloadType getResponseType() {
- io.grpc.testing.integration.Messages.PayloadType result = io.grpc.testing.integration.Messages.PayloadType.forNumber(responseType_);
+ io.grpc.testing.integration.Messages.PayloadType result = io.grpc.testing.integration.Messages.PayloadType.valueOf(responseType_);
return result == null ? io.grpc.testing.integration.Messages.PayloadType.UNRECOGNIZED : result;
}
@@ -5826,7 +6352,7 @@
* <code>optional .grpc.testing.CompressionType response_compression = 6;</code>
*/
public io.grpc.testing.integration.Messages.CompressionType getResponseCompression() {
- io.grpc.testing.integration.Messages.CompressionType result = io.grpc.testing.integration.Messages.CompressionType.forNumber(responseCompression_);
+ io.grpc.testing.integration.Messages.CompressionType result = io.grpc.testing.integration.Messages.CompressionType.valueOf(responseCompression_);
return result == null ? io.grpc.testing.integration.Messages.CompressionType.UNRECOGNIZED : result;
}
@@ -5922,6 +6448,62 @@
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.testing.integration.Messages.StreamingOutputCallRequest)) {
+ return super.equals(obj);
+ }
+ io.grpc.testing.integration.Messages.StreamingOutputCallRequest other = (io.grpc.testing.integration.Messages.StreamingOutputCallRequest) obj;
+
+ boolean result = true;
+ result = result && responseType_ == other.responseType_;
+ result = result && getResponseParametersList()
+ .equals(other.getResponseParametersList());
+ result = result && (hasPayload() == other.hasPayload());
+ if (hasPayload()) {
+ result = result && getPayload()
+ .equals(other.getPayload());
+ }
+ result = result && responseCompression_ == other.responseCompression_;
+ result = result && (hasResponseStatus() == other.hasResponseStatus());
+ if (hasResponseStatus()) {
+ result = result && getResponseStatus()
+ .equals(other.getResponseStatus());
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().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();
+ }
+ hash = (37 * hash) + RESPONSE_COMPRESSION_FIELD_NUMBER;
+ hash = (53 * hash) + responseCompression_;
+ 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 io.grpc.testing.integration.Messages.StreamingOutputCallRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -5945,39 +6527,39 @@
}
public static io.grpc.testing.integration.Messages.StreamingOutputCallRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.testing.integration.Messages.StreamingOutputCallRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.testing.integration.Messages.StreamingOutputCallRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.testing.integration.Messages.StreamingOutputCallRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.testing.integration.Messages.StreamingOutputCallRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.testing.integration.Messages.StreamingOutputCallRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -5995,7 +6577,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -6007,7 +6589,7 @@
* Protobuf type {@code grpc.testing.StreamingOutputCallRequest}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.testing.StreamingOutputCallRequest)
io.grpc.testing.integration.Messages.StreamingOutputCallRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -6015,7 +6597,7 @@
return io.grpc.testing.integration.Messages.internal_static_grpc_testing_StreamingOutputCallRequest_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.testing.integration.Messages.internal_static_grpc_testing_StreamingOutputCallRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -6028,12 +6610,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
getResponseParametersFieldBuilder();
}
}
@@ -6111,6 +6694,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.testing.integration.Messages.StreamingOutputCallRequest) {
return mergeFrom((io.grpc.testing.integration.Messages.StreamingOutputCallRequest)other);
@@ -6144,7 +6753,7 @@
responseParameters_ = other.responseParameters_;
bitField0_ = (bitField0_ & ~0x00000002);
responseParametersBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getResponseParametersFieldBuilder() : null;
} else {
responseParametersBuilder_.addAllMessages(other.responseParameters_);
@@ -6227,7 +6836,7 @@
* <code>optional .grpc.testing.PayloadType response_type = 1;</code>
*/
public io.grpc.testing.integration.Messages.PayloadType getResponseType() {
- io.grpc.testing.integration.Messages.PayloadType result = io.grpc.testing.integration.Messages.PayloadType.forNumber(responseType_);
+ io.grpc.testing.integration.Messages.PayloadType result = io.grpc.testing.integration.Messages.PayloadType.valueOf(responseType_);
return result == null ? io.grpc.testing.integration.Messages.PayloadType.UNRECOGNIZED : result;
}
/**
@@ -6275,7 +6884,7 @@
}
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
io.grpc.testing.integration.Messages.ResponseParameters, io.grpc.testing.integration.Messages.ResponseParameters.Builder, io.grpc.testing.integration.Messages.ResponseParametersOrBuilder> responseParametersBuilder_;
/**
@@ -6563,11 +7172,11 @@
getResponseParametersBuilderList() {
return getResponseParametersFieldBuilder().getBuilderList();
}
- private com.google.protobuf.RepeatedFieldBuilder<
+ private com.google.protobuf.RepeatedFieldBuilderV3<
io.grpc.testing.integration.Messages.ResponseParameters, io.grpc.testing.integration.Messages.ResponseParameters.Builder, io.grpc.testing.integration.Messages.ResponseParametersOrBuilder>
getResponseParametersFieldBuilder() {
if (responseParametersBuilder_ == null) {
- responseParametersBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ responseParametersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.grpc.testing.integration.Messages.ResponseParameters, io.grpc.testing.integration.Messages.ResponseParameters.Builder, io.grpc.testing.integration.Messages.ResponseParametersOrBuilder>(
responseParameters_,
((bitField0_ & 0x00000002) == 0x00000002),
@@ -6579,7 +7188,7 @@
}
private io.grpc.testing.integration.Messages.Payload payload_ = null;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.testing.integration.Messages.Payload, io.grpc.testing.integration.Messages.Payload.Builder, io.grpc.testing.integration.Messages.PayloadOrBuilder> payloadBuilder_;
/**
* <pre>
@@ -6717,11 +7326,11 @@
*
* <code>optional .grpc.testing.Payload payload = 3;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.testing.integration.Messages.Payload, io.grpc.testing.integration.Messages.Payload.Builder, io.grpc.testing.integration.Messages.PayloadOrBuilder>
getPayloadFieldBuilder() {
if (payloadBuilder_ == null) {
- payloadBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ payloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.grpc.testing.integration.Messages.Payload, io.grpc.testing.integration.Messages.Payload.Builder, io.grpc.testing.integration.Messages.PayloadOrBuilder>(
getPayload(),
getParentForChildren(),
@@ -6762,7 +7371,7 @@
* <code>optional .grpc.testing.CompressionType response_compression = 6;</code>
*/
public io.grpc.testing.integration.Messages.CompressionType getResponseCompression() {
- io.grpc.testing.integration.Messages.CompressionType result = io.grpc.testing.integration.Messages.CompressionType.forNumber(responseCompression_);
+ io.grpc.testing.integration.Messages.CompressionType result = io.grpc.testing.integration.Messages.CompressionType.valueOf(responseCompression_);
return result == null ? io.grpc.testing.integration.Messages.CompressionType.UNRECOGNIZED : result;
}
/**
@@ -6796,7 +7405,7 @@
}
private io.grpc.testing.integration.Messages.EchoStatus responseStatus_ = null;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.testing.integration.Messages.EchoStatus, io.grpc.testing.integration.Messages.EchoStatus.Builder, io.grpc.testing.integration.Messages.EchoStatusOrBuilder> responseStatusBuilder_;
/**
* <pre>
@@ -6934,11 +7543,11 @@
*
* <code>optional .grpc.testing.EchoStatus response_status = 7;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.testing.integration.Messages.EchoStatus, io.grpc.testing.integration.Messages.EchoStatus.Builder, io.grpc.testing.integration.Messages.EchoStatusOrBuilder>
getResponseStatusFieldBuilder() {
if (responseStatusBuilder_ == null) {
- responseStatusBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ responseStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.grpc.testing.integration.Messages.EchoStatus, io.grpc.testing.integration.Messages.EchoStatus.Builder, io.grpc.testing.integration.Messages.EchoStatusOrBuilder>(
getResponseStatus(),
getParentForChildren(),
@@ -7033,11 +7642,11 @@
* Protobuf type {@code grpc.testing.StreamingOutputCallResponse}
*/
public static final class StreamingOutputCallResponse extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.testing.StreamingOutputCallResponse)
StreamingOutputCallResponseOrBuilder {
// Use StreamingOutputCallResponse.newBuilder() to construct.
- private StreamingOutputCallResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private StreamingOutputCallResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private StreamingOutputCallResponse() {
@@ -7097,7 +7706,7 @@
return io.grpc.testing.integration.Messages.internal_static_grpc_testing_StreamingOutputCallResponse_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.testing.integration.Messages.internal_static_grpc_testing_StreamingOutputCallResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -7168,6 +7777,41 @@
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.testing.integration.Messages.StreamingOutputCallResponse)) {
+ return super.equals(obj);
+ }
+ io.grpc.testing.integration.Messages.StreamingOutputCallResponse other = (io.grpc.testing.integration.Messages.StreamingOutputCallResponse) obj;
+
+ boolean result = true;
+ result = result && (hasPayload() == other.hasPayload());
+ if (hasPayload()) {
+ result = result && getPayload()
+ .equals(other.getPayload());
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().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 io.grpc.testing.integration.Messages.StreamingOutputCallResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -7191,39 +7835,39 @@
}
public static io.grpc.testing.integration.Messages.StreamingOutputCallResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.testing.integration.Messages.StreamingOutputCallResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.testing.integration.Messages.StreamingOutputCallResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.testing.integration.Messages.StreamingOutputCallResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.testing.integration.Messages.StreamingOutputCallResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.testing.integration.Messages.StreamingOutputCallResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -7241,7 +7885,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -7253,7 +7897,7 @@
* Protobuf type {@code grpc.testing.StreamingOutputCallResponse}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.testing.StreamingOutputCallResponse)
io.grpc.testing.integration.Messages.StreamingOutputCallResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -7261,7 +7905,7 @@
return io.grpc.testing.integration.Messages.internal_static_grpc_testing_StreamingOutputCallResponse_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.testing.integration.Messages.internal_static_grpc_testing_StreamingOutputCallResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -7274,12 +7918,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -7321,6 +7966,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.testing.integration.Messages.StreamingOutputCallResponse) {
return mergeFrom((io.grpc.testing.integration.Messages.StreamingOutputCallResponse)other);
@@ -7362,7 +8033,7 @@
}
private io.grpc.testing.integration.Messages.Payload payload_ = null;
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.testing.integration.Messages.Payload, io.grpc.testing.integration.Messages.Payload.Builder, io.grpc.testing.integration.Messages.PayloadOrBuilder> payloadBuilder_;
/**
* <pre>
@@ -7500,11 +8171,11 @@
*
* <code>optional .grpc.testing.Payload payload = 1;</code>
*/
- private com.google.protobuf.SingleFieldBuilder<
+ private com.google.protobuf.SingleFieldBuilderV3<
io.grpc.testing.integration.Messages.Payload, io.grpc.testing.integration.Messages.Payload.Builder, io.grpc.testing.integration.Messages.PayloadOrBuilder>
getPayloadFieldBuilder() {
if (payloadBuilder_ == null) {
- payloadBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ payloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.grpc.testing.integration.Messages.Payload, io.grpc.testing.integration.Messages.Payload.Builder, io.grpc.testing.integration.Messages.PayloadOrBuilder>(
getPayload(),
getParentForChildren(),
@@ -7580,11 +8251,11 @@
* Protobuf type {@code grpc.testing.ReconnectParams}
*/
public static final class ReconnectParams extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.testing.ReconnectParams)
ReconnectParamsOrBuilder {
// Use ReconnectParams.newBuilder() to construct.
- private ReconnectParams(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private ReconnectParams(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ReconnectParams() {
@@ -7637,7 +8308,7 @@
return io.grpc.testing.integration.Messages.internal_static_grpc_testing_ReconnectParams_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.testing.integration.Messages.internal_static_grpc_testing_ReconnectParams_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -7684,6 +8355,36 @@
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.testing.integration.Messages.ReconnectParams)) {
+ return super.equals(obj);
+ }
+ io.grpc.testing.integration.Messages.ReconnectParams other = (io.grpc.testing.integration.Messages.ReconnectParams) obj;
+
+ boolean result = true;
+ result = result && (getMaxReconnectBackoffMs()
+ == other.getMaxReconnectBackoffMs());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().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 io.grpc.testing.integration.Messages.ReconnectParams parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -7707,39 +8408,39 @@
}
public static io.grpc.testing.integration.Messages.ReconnectParams parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.testing.integration.Messages.ReconnectParams parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.testing.integration.Messages.ReconnectParams parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.testing.integration.Messages.ReconnectParams parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.testing.integration.Messages.ReconnectParams parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.testing.integration.Messages.ReconnectParams parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -7757,7 +8458,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -7770,7 +8471,7 @@
* Protobuf type {@code grpc.testing.ReconnectParams}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.testing.ReconnectParams)
io.grpc.testing.integration.Messages.ReconnectParamsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -7778,7 +8479,7 @@
return io.grpc.testing.integration.Messages.internal_static_grpc_testing_ReconnectParams_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.testing.integration.Messages.internal_static_grpc_testing_ReconnectParams_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -7791,12 +8492,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -7830,6 +8532,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.testing.integration.Messages.ReconnectParams) {
return mergeFrom((io.grpc.testing.integration.Messages.ReconnectParams)other);
@@ -7976,11 +8704,11 @@
* Protobuf type {@code grpc.testing.ReconnectInfo}
*/
public static final class ReconnectInfo extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.testing.ReconnectInfo)
ReconnectInfoOrBuilder {
// Use ReconnectInfo.newBuilder() to construct.
- private ReconnectInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private ReconnectInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ReconnectInfo() {
@@ -8058,7 +8786,7 @@
return io.grpc.testing.integration.Messages.internal_static_grpc_testing_ReconnectInfo_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.testing.integration.Messages.internal_static_grpc_testing_ReconnectInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -8115,8 +8843,8 @@
output.writeBool(1, passed_);
}
if (getBackoffMsList().size() > 0) {
- output.writeRawVarint32(18);
- output.writeRawVarint32(backoffMsMemoizedSerializedSize);
+ output.writeUInt32NoTag(18);
+ output.writeUInt32NoTag(backoffMsMemoizedSerializedSize);
}
for (int i = 0; i < backoffMs_.size(); i++) {
output.writeInt32NoTag(backoffMs_.get(i));
@@ -8151,6 +8879,43 @@
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.testing.integration.Messages.ReconnectInfo)) {
+ return super.equals(obj);
+ }
+ io.grpc.testing.integration.Messages.ReconnectInfo other = (io.grpc.testing.integration.Messages.ReconnectInfo) obj;
+
+ boolean result = true;
+ result = result && (getPassed()
+ == other.getPassed());
+ result = result && getBackoffMsList()
+ .equals(other.getBackoffMsList());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().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 io.grpc.testing.integration.Messages.ReconnectInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -8174,39 +8939,39 @@
}
public static io.grpc.testing.integration.Messages.ReconnectInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.testing.integration.Messages.ReconnectInfo parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.testing.integration.Messages.ReconnectInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.testing.integration.Messages.ReconnectInfo parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.testing.integration.Messages.ReconnectInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.testing.integration.Messages.ReconnectInfo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -8224,7 +8989,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -8238,7 +9003,7 @@
* Protobuf type {@code grpc.testing.ReconnectInfo}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.testing.ReconnectInfo)
io.grpc.testing.integration.Messages.ReconnectInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -8246,7 +9011,7 @@
return io.grpc.testing.integration.Messages.internal_static_grpc_testing_ReconnectInfo_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.testing.integration.Messages.internal_static_grpc_testing_ReconnectInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -8259,12 +9024,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -8308,6 +9074,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.testing.integration.Messages.ReconnectInfo) {
return mergeFrom((io.grpc.testing.integration.Messages.ReconnectInfo)other);
@@ -8502,62 +9294,62 @@
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_grpc_testing_Payload_descriptor;
private static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ 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.GeneratedMessage.FieldAccessorTable
+ 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.GeneratedMessage.FieldAccessorTable
+ 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.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_grpc_testing_SimpleResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_grpc_testing_SimpleContext_descriptor;
private static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_grpc_testing_SimpleContext_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_grpc_testing_StreamingInputCallRequest_descriptor;
private static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ 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.GeneratedMessage.FieldAccessorTable
+ 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.GeneratedMessage.FieldAccessorTable
+ 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.GeneratedMessage.FieldAccessorTable
+ 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.GeneratedMessage.FieldAccessorTable
+ 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.GeneratedMessage.FieldAccessorTable
+ 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.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_grpc_testing_ReconnectInfo_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
@@ -8620,73 +9412,73 @@
internal_static_grpc_testing_Payload_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_grpc_testing_Payload_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ 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(1);
internal_static_grpc_testing_EchoStatus_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ 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(2);
internal_static_grpc_testing_SimpleRequest_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_testing_SimpleRequest_descriptor,
new java.lang.String[] { "ResponseType", "ResponseSize", "Payload", "FillUsername", "FillOauthScope", "ResponseCompression", "ResponseStatus", });
internal_static_grpc_testing_SimpleResponse_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_grpc_testing_SimpleResponse_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_testing_SimpleResponse_descriptor,
new java.lang.String[] { "Payload", "Username", "OauthScope", });
internal_static_grpc_testing_SimpleContext_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_grpc_testing_SimpleContext_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_testing_SimpleContext_descriptor,
new java.lang.String[] { "Value", });
internal_static_grpc_testing_StreamingInputCallRequest_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_grpc_testing_StreamingInputCallRequest_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_testing_StreamingInputCallRequest_descriptor,
new java.lang.String[] { "Payload", });
internal_static_grpc_testing_StreamingInputCallResponse_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_grpc_testing_StreamingInputCallResponse_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ 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.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_testing_ResponseParameters_descriptor,
new java.lang.String[] { "Size", "IntervalUs", });
internal_static_grpc_testing_StreamingOutputCallRequest_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_grpc_testing_StreamingOutputCallRequest_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_testing_StreamingOutputCallRequest_descriptor,
new java.lang.String[] { "ResponseType", "ResponseParameters", "Payload", "ResponseCompression", "ResponseStatus", });
internal_static_grpc_testing_StreamingOutputCallResponse_descriptor =
getDescriptor().getMessageTypes().get(9);
internal_static_grpc_testing_StreamingOutputCallResponse_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ 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.GeneratedMessage.FieldAccessorTable(
+ 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.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_testing_ReconnectInfo_descriptor,
new java.lang.String[] { "Passed", "BackoffMs", });
}
diff --git a/interop-testing/src/generated/main/java/io/grpc/testing/integration/Metrics.java b/interop-testing/src/generated/main/java/io/grpc/testing/integration/Metrics.java
index de70c66..8ee2778 100644
--- a/interop-testing/src/generated/main/java/io/grpc/testing/integration/Metrics.java
+++ b/interop-testing/src/generated/main/java/io/grpc/testing/integration/Metrics.java
@@ -6,7 +6,13 @@
public final class Metrics {
private Metrics() {}
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 GaugeResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:grpc.testing.GaugeResponse)
@@ -52,11 +58,11 @@
* Protobuf type {@code grpc.testing.GaugeResponse}
*/
public static final class GaugeResponse extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.testing.GaugeResponse)
GaugeResponseOrBuilder {
// Use GaugeResponse.newBuilder() to construct.
- private GaugeResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private GaugeResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private GaugeResponse() {
@@ -126,7 +132,7 @@
return io.grpc.testing.integration.Metrics.internal_static_grpc_testing_GaugeResponse_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.testing.integration.Metrics.internal_static_grpc_testing_GaugeResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -285,7 +291,7 @@
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getNameBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessage.writeString(output, 1, name_);
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (valueCase_ == 2) {
output.writeInt64(
@@ -296,7 +302,7 @@
3, (double)((java.lang.Double) value_));
}
if (valueCase_ == 4) {
- com.google.protobuf.GeneratedMessage.writeString(output, 4, value_);
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, value_);
}
}
@@ -306,7 +312,7 @@
size = 0;
if (!getNameBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_);
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (valueCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
@@ -319,13 +325,82 @@
3, (double)((java.lang.Double) value_));
}
if (valueCase_ == 4) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(4, value_);
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, value_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.testing.integration.Metrics.GaugeResponse)) {
+ return super.equals(obj);
+ }
+ io.grpc.testing.integration.Metrics.GaugeResponse other = (io.grpc.testing.integration.Metrics.GaugeResponse) obj;
+
+ boolean result = true;
+ result = result && getName()
+ .equals(other.getName());
+ result = result && getValueCase().equals(
+ other.getValueCase());
+ if (!result) return false;
+ switch (valueCase_) {
+ case 2:
+ result = result && (getLongValue()
+ == other.getLongValue());
+ break;
+ case 3:
+ result = result && (
+ java.lang.Double.doubleToLongBits(getDoubleValue())
+ == java.lang.Double.doubleToLongBits(
+ other.getDoubleValue()));
+ break;
+ case 4:
+ result = result && getStringValue()
+ .equals(other.getStringValue());
+ break;
+ case 0:
+ default:
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ switch (valueCase_) {
+ case 2:
+ hash = (37 * hash) + LONG_VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getLongValue());
+ break;
+ case 3:
+ hash = (37 * hash) + DOUBLE_VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getDoubleValue()));
+ break;
+ case 4:
+ hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + getStringValue().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
public static io.grpc.testing.integration.Metrics.GaugeResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -349,39 +424,39 @@
}
public static io.grpc.testing.integration.Metrics.GaugeResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.testing.integration.Metrics.GaugeResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.testing.integration.Metrics.GaugeResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.testing.integration.Metrics.GaugeResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.testing.integration.Metrics.GaugeResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.testing.integration.Metrics.GaugeResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -399,7 +474,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -411,7 +486,7 @@
* Protobuf type {@code grpc.testing.GaugeResponse}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.testing.GaugeResponse)
io.grpc.testing.integration.Metrics.GaugeResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -419,7 +494,7 @@
return io.grpc.testing.integration.Metrics.internal_static_grpc_testing_GaugeResponse_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.testing.integration.Metrics.internal_static_grpc_testing_GaugeResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -432,12 +507,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -483,6 +559,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.testing.integration.Metrics.GaugeResponse) {
return mergeFrom((io.grpc.testing.integration.Metrics.GaugeResponse)other);
@@ -837,11 +939,11 @@
* Protobuf type {@code grpc.testing.GaugeRequest}
*/
public static final class GaugeRequest extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.testing.GaugeRequest)
GaugeRequestOrBuilder {
// Use GaugeRequest.newBuilder() to construct.
- private GaugeRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private GaugeRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private GaugeRequest() {
@@ -895,7 +997,7 @@
return io.grpc.testing.integration.Metrics.internal_static_grpc_testing_GaugeRequest_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.testing.integration.Metrics.internal_static_grpc_testing_GaugeRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -949,7 +1051,7 @@
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getNameBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessage.writeString(output, 1, name_);
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
}
@@ -959,13 +1061,43 @@
size = 0;
if (!getNameBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_);
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.testing.integration.Metrics.GaugeRequest)) {
+ return super.equals(obj);
+ }
+ io.grpc.testing.integration.Metrics.GaugeRequest other = (io.grpc.testing.integration.Metrics.GaugeRequest) obj;
+
+ boolean result = true;
+ result = result && getName()
+ .equals(other.getName());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
public static io.grpc.testing.integration.Metrics.GaugeRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -989,39 +1121,39 @@
}
public static io.grpc.testing.integration.Metrics.GaugeRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.testing.integration.Metrics.GaugeRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.testing.integration.Metrics.GaugeRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.testing.integration.Metrics.GaugeRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.testing.integration.Metrics.GaugeRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.testing.integration.Metrics.GaugeRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -1039,7 +1171,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -1051,7 +1183,7 @@
* Protobuf type {@code grpc.testing.GaugeRequest}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.testing.GaugeRequest)
io.grpc.testing.integration.Metrics.GaugeRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -1059,7 +1191,7 @@
return io.grpc.testing.integration.Metrics.internal_static_grpc_testing_GaugeRequest_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.testing.integration.Metrics.internal_static_grpc_testing_GaugeRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -1072,12 +1204,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -1111,6 +1244,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.testing.integration.Metrics.GaugeRequest) {
return mergeFrom((io.grpc.testing.integration.Metrics.GaugeRequest)other);
@@ -1277,11 +1436,11 @@
* Protobuf type {@code grpc.testing.EmptyMessage}
*/
public static final class EmptyMessage extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.testing.EmptyMessage)
EmptyMessageOrBuilder {
// Use EmptyMessage.newBuilder() to construct.
- private EmptyMessage(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private EmptyMessage(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private EmptyMessage() {
@@ -1327,7 +1486,7 @@
return io.grpc.testing.integration.Metrics.internal_static_grpc_testing_EmptyMessage_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.testing.integration.Metrics.internal_static_grpc_testing_EmptyMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -1358,6 +1517,32 @@
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.testing.integration.Metrics.EmptyMessage)) {
+ return super.equals(obj);
+ }
+ io.grpc.testing.integration.Metrics.EmptyMessage other = (io.grpc.testing.integration.Metrics.EmptyMessage) obj;
+
+ boolean result = true;
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
public static io.grpc.testing.integration.Metrics.EmptyMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -1381,39 +1566,39 @@
}
public static io.grpc.testing.integration.Metrics.EmptyMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.testing.integration.Metrics.EmptyMessage parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.testing.integration.Metrics.EmptyMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.testing.integration.Metrics.EmptyMessage parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.testing.integration.Metrics.EmptyMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.testing.integration.Metrics.EmptyMessage parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -1431,7 +1616,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -1439,7 +1624,7 @@
* Protobuf type {@code grpc.testing.EmptyMessage}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.testing.EmptyMessage)
io.grpc.testing.integration.Metrics.EmptyMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -1447,7 +1632,7 @@
return io.grpc.testing.integration.Metrics.internal_static_grpc_testing_EmptyMessage_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.testing.integration.Metrics.internal_static_grpc_testing_EmptyMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -1460,12 +1645,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -1496,6 +1682,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.testing.integration.Metrics.EmptyMessage) {
return mergeFrom((io.grpc.testing.integration.Metrics.EmptyMessage)other);
@@ -1584,17 +1796,17 @@
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_grpc_testing_GaugeResponse_descriptor;
private static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_grpc_testing_GaugeResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_grpc_testing_GaugeRequest_descriptor;
private static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_grpc_testing_GaugeRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_grpc_testing_EmptyMessage_descriptor;
private static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_grpc_testing_EmptyMessage_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
@@ -1632,19 +1844,19 @@
internal_static_grpc_testing_GaugeResponse_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_grpc_testing_GaugeResponse_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_testing_GaugeResponse_descriptor,
new java.lang.String[] { "Name", "LongValue", "DoubleValue", "StringValue", "Value", });
internal_static_grpc_testing_GaugeRequest_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_grpc_testing_GaugeRequest_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_testing_GaugeRequest_descriptor,
new java.lang.String[] { "Name", });
internal_static_grpc_testing_EmptyMessage_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_grpc_testing_EmptyMessage_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_testing_EmptyMessage_descriptor,
new java.lang.String[] { });
}
diff --git a/interop-testing/src/generated/main/java/io/grpc/testing/integration/Test.java b/interop-testing/src/generated/main/java/io/grpc/testing/integration/Test.java
index d8e2ee1..c0eaf5d 100644
--- a/interop-testing/src/generated/main/java/io/grpc/testing/integration/Test.java
+++ b/interop-testing/src/generated/main/java/io/grpc/testing/integration/Test.java
@@ -6,7 +6,13 @@
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
diff --git a/services/src/generated/main/java/io/grpc/health/v1/HealthCheckRequest.java b/services/src/generated/main/java/io/grpc/health/v1/HealthCheckRequest.java
index 99d309c..9fea657 100644
--- a/services/src/generated/main/java/io/grpc/health/v1/HealthCheckRequest.java
+++ b/services/src/generated/main/java/io/grpc/health/v1/HealthCheckRequest.java
@@ -7,11 +7,11 @@
* Protobuf type {@code grpc.health.v1.HealthCheckRequest}
*/
public final class HealthCheckRequest extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.health.v1.HealthCheckRequest)
HealthCheckRequestOrBuilder {
// Use HealthCheckRequest.newBuilder() to construct.
- private HealthCheckRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private HealthCheckRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private HealthCheckRequest() {
@@ -65,7 +65,7 @@
return io.grpc.health.v1.HealthProto.internal_static_grpc_health_v1_HealthCheckRequest_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.health.v1.HealthProto.internal_static_grpc_health_v1_HealthCheckRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -119,7 +119,7 @@
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getServiceBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessage.writeString(output, 1, service_);
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, service_);
}
}
@@ -129,13 +129,43 @@
size = 0;
if (!getServiceBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(1, service_);
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, service_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.health.v1.HealthCheckRequest)) {
+ return super.equals(obj);
+ }
+ io.grpc.health.v1.HealthCheckRequest other = (io.grpc.health.v1.HealthCheckRequest) obj;
+
+ boolean result = true;
+ result = result && getService()
+ .equals(other.getService());
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ hash = (37 * hash) + SERVICE_FIELD_NUMBER;
+ hash = (53 * hash) + getService().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
public static io.grpc.health.v1.HealthCheckRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -159,39 +189,39 @@
}
public static io.grpc.health.v1.HealthCheckRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.health.v1.HealthCheckRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.health.v1.HealthCheckRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.health.v1.HealthCheckRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.health.v1.HealthCheckRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.health.v1.HealthCheckRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -209,7 +239,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -217,7 +247,7 @@
* Protobuf type {@code grpc.health.v1.HealthCheckRequest}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.health.v1.HealthCheckRequest)
io.grpc.health.v1.HealthCheckRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -225,7 +255,7 @@
return io.grpc.health.v1.HealthProto.internal_static_grpc_health_v1_HealthCheckRequest_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.health.v1.HealthProto.internal_static_grpc_health_v1_HealthCheckRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -238,12 +268,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -277,6 +308,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.health.v1.HealthCheckRequest) {
return mergeFrom((io.grpc.health.v1.HealthCheckRequest)other);
diff --git a/services/src/generated/main/java/io/grpc/health/v1/HealthCheckResponse.java b/services/src/generated/main/java/io/grpc/health/v1/HealthCheckResponse.java
index 3a0a9ea..e80bb2d 100644
--- a/services/src/generated/main/java/io/grpc/health/v1/HealthCheckResponse.java
+++ b/services/src/generated/main/java/io/grpc/health/v1/HealthCheckResponse.java
@@ -7,11 +7,11 @@
* Protobuf type {@code grpc.health.v1.HealthCheckResponse}
*/
public final class HealthCheckResponse extends
- com.google.protobuf.GeneratedMessage implements
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.health.v1.HealthCheckResponse)
HealthCheckResponseOrBuilder {
// Use HealthCheckResponse.newBuilder() to construct.
- private HealthCheckResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private HealthCheckResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private HealthCheckResponse() {
@@ -65,7 +65,7 @@
return io.grpc.health.v1.HealthProto.internal_static_grpc_health_v1_HealthCheckResponse_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.health.v1.HealthProto.internal_static_grpc_health_v1_HealthCheckResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -191,7 +191,7 @@
* <code>optional .grpc.health.v1.HealthCheckResponse.ServingStatus status = 1;</code>
*/
public io.grpc.health.v1.HealthCheckResponse.ServingStatus getStatus() {
- io.grpc.health.v1.HealthCheckResponse.ServingStatus result = io.grpc.health.v1.HealthCheckResponse.ServingStatus.forNumber(status_);
+ io.grpc.health.v1.HealthCheckResponse.ServingStatus result = io.grpc.health.v1.HealthCheckResponse.ServingStatus.valueOf(status_);
return result == null ? io.grpc.health.v1.HealthCheckResponse.ServingStatus.UNRECOGNIZED : result;
}
@@ -226,6 +226,35 @@
}
private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.grpc.health.v1.HealthCheckResponse)) {
+ return super.equals(obj);
+ }
+ io.grpc.health.v1.HealthCheckResponse other = (io.grpc.health.v1.HealthCheckResponse) obj;
+
+ boolean result = true;
+ result = result && status_ == other.status_;
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptorForType().hashCode();
+ hash = (37 * hash) + STATUS_FIELD_NUMBER;
+ hash = (53 * hash) + status_;
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
public static io.grpc.health.v1.HealthCheckResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -249,39 +278,39 @@
}
public static io.grpc.health.v1.HealthCheckResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.health.v1.HealthCheckResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.health.v1.HealthCheckResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.grpc.health.v1.HealthCheckResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.grpc.health.v1.HealthCheckResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.grpc.health.v1.HealthCheckResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return com.google.protobuf.GeneratedMessage
+ return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@@ -299,7 +328,7 @@
@java.lang.Override
protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
@@ -307,7 +336,7 @@
* Protobuf type {@code grpc.health.v1.HealthCheckResponse}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:grpc.health.v1.HealthCheckResponse)
io.grpc.health.v1.HealthCheckResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
@@ -315,7 +344,7 @@
return io.grpc.health.v1.HealthProto.internal_static_grpc_health_v1_HealthCheckResponse_descriptor;
}
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.grpc.health.v1.HealthProto.internal_static_grpc_health_v1_HealthCheckResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
@@ -328,12 +357,13 @@
}
private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
public Builder clear() {
@@ -367,6 +397,32 @@
return result;
}
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.grpc.health.v1.HealthCheckResponse) {
return mergeFrom((io.grpc.health.v1.HealthCheckResponse)other);
@@ -426,7 +482,7 @@
* <code>optional .grpc.health.v1.HealthCheckResponse.ServingStatus status = 1;</code>
*/
public io.grpc.health.v1.HealthCheckResponse.ServingStatus getStatus() {
- io.grpc.health.v1.HealthCheckResponse.ServingStatus result = io.grpc.health.v1.HealthCheckResponse.ServingStatus.forNumber(status_);
+ io.grpc.health.v1.HealthCheckResponse.ServingStatus result = io.grpc.health.v1.HealthCheckResponse.ServingStatus.valueOf(status_);
return result == null ? io.grpc.health.v1.HealthCheckResponse.ServingStatus.UNRECOGNIZED : result;
}
/**
diff --git a/services/src/generated/main/java/io/grpc/health/v1/HealthProto.java b/services/src/generated/main/java/io/grpc/health/v1/HealthProto.java
index 526b98c..09ce4d0 100644
--- a/services/src/generated/main/java/io/grpc/health/v1/HealthProto.java
+++ b/services/src/generated/main/java/io/grpc/health/v1/HealthProto.java
@@ -6,17 +6,23 @@
public final class HealthProto {
private HealthProto() {}
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_grpc_health_v1_HealthCheckRequest_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_grpc_health_v1_HealthCheckRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_grpc_health_v1_HealthCheckResponse_descriptor;
static final
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_grpc_health_v1_HealthCheckResponse_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
@@ -53,13 +59,13 @@
internal_static_grpc_health_v1_HealthCheckRequest_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_grpc_health_v1_HealthCheckRequest_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_health_v1_HealthCheckRequest_descriptor,
new java.lang.String[] { "Service", });
internal_static_grpc_health_v1_HealthCheckResponse_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_grpc_health_v1_HealthCheckResponse_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_health_v1_HealthCheckResponse_descriptor,
new java.lang.String[] { "Status", });
}