mirror of https://github.com/grpc/grpc-java.git
parent
fccc282f25
commit
5e1e88357c
|
@ -5,7 +5,7 @@ language: java
|
|||
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
|
||||
|
|
12
COMPILING.md
12
COMPILING.md
|
@ -27,13 +27,13 @@ This section is only necessary if you are making changes to the code
|
|||
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 @@ When building on Windows and VC++, you need to specify project properties for
|
|||
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
|
||||
```
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ android {
|
|||
|
||||
protobuf {
|
||||
protoc {
|
||||
artifact = 'com.google.protobuf:protoc:3.0.0-beta-3'
|
||||
artifact = 'com.google.protobuf:protoc:3.0.0'
|
||||
}
|
||||
plugins {
|
||||
grpc {
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -5,8 +5,14 @@ package io.grpc.benchmarks.proto;
|
|||
|
||||
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 @@ public final class Payloads {
|
|||
* 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 @@ public final class Payloads {
|
|||
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 @@ public final class Payloads {
|
|||
}
|
||||
|
||||
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 final class Payloads {
|
|||
}
|
||||
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 @@ public final class Payloads {
|
|||
|
||||
@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 @@ public final class Payloads {
|
|||
* 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 @@ public final class Payloads {
|
|||
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 @@ public final class Payloads {
|
|||
}
|
||||
|
||||
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 @@ public final class Payloads {
|
|||
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 @@ public final class Payloads {
|
|||
* 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 @@ public final class Payloads {
|
|||
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 @@ public final class Payloads {
|
|||
}
|
||||
|
||||
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 final class Payloads {
|
|||
}
|
||||
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 @@ public final class Payloads {
|
|||
|
||||
@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 @@ public final class Payloads {
|
|||
* 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 @@ public final class Payloads {
|
|||
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 @@ public final class Payloads {
|
|||
}
|
||||
|
||||
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 @@ public final class Payloads {
|
|||
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 @@ public final class Payloads {
|
|||
* 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 @@ public final class Payloads {
|
|||
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 @@ public final class Payloads {
|
|||
}
|
||||
|
||||
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 final class Payloads {
|
|||
}
|
||||
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 @@ public final class Payloads {
|
|||
|
||||
@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 @@ public final class Payloads {
|
|||
* 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 @@ public final class Payloads {
|
|||
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 @@ public final class Payloads {
|
|||
}
|
||||
|
||||
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 @@ public final class Payloads {
|
|||
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 @@ public final class Payloads {
|
|||
* 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 @@ public final class Payloads {
|
|||
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 @@ public final class Payloads {
|
|||
}
|
||||
|
||||
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 final class Payloads {
|
|||
}
|
||||
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 @@ public final class Payloads {
|
|||
|
||||
@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 @@ public final class Payloads {
|
|||
* 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 @@ public final class Payloads {
|
|||
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 @@ public final class Payloads {
|
|||
}
|
||||
|
||||
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 @@ public final class Payloads {
|
|||
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 @@ public final class Payloads {
|
|||
}
|
||||
|
||||
|
||||
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 @@ public final class Payloads {
|
|||
/**
|
||||
* <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 @@ public final class Payloads {
|
|||
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 @@ public final class Payloads {
|
|||
/**
|
||||
* <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 @@ public final class Payloads {
|
|||
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 @@ public final class Payloads {
|
|||
/**
|
||||
* <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 @@ public final class Payloads {
|
|||
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 @@ public final class Payloads {
|
|||
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", });
|
||||
}
|
||||
|
|
|
@ -5,8 +5,14 @@ package io.grpc.benchmarks.proto;
|
|||
|
||||
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
|
||||
|
|
|
@ -5,8 +5,14 @@ package io.grpc.benchmarks.proto;
|
|||
|
||||
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 @@ public final class Stats {
|
|||
* 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 @@ public final class Stats {
|
|||
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 @@ public final class Stats {
|
|||
}
|
||||
|
||||
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 final class Stats {
|
|||
}
|
||||
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 @@ public final class Stats {
|
|||
|
||||
@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 @@ public final class Stats {
|
|||
* 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 @@ public final class Stats {
|
|||
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 @@ public final class Stats {
|
|||
}
|
||||
|
||||
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 @@ public final class Stats {
|
|||
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 @@ public final class Stats {
|
|||
* 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 @@ public final class Stats {
|
|||
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 @@ public final class Stats {
|
|||
}
|
||||
|
||||
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 final class Stats {
|
|||
}
|
||||
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 @@ public final class Stats {
|
|||
|
||||
@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 @@ public final class Stats {
|
|||
* 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 @@ public final class Stats {
|
|||
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 @@ public final class Stats {
|
|||
}
|
||||
|
||||
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 @@ public final class Stats {
|
|||
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 @@ public final class Stats {
|
|||
* 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 @@ public final class Stats {
|
|||
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 @@ public final class Stats {
|
|||
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 @@ public final class Stats {
|
|||
}
|
||||
|
||||
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 final class Stats {
|
|||
}
|
||||
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 @@ public final class Stats {
|
|||
|
||||
@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 @@ public final class Stats {
|
|||
* 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 @@ public final class Stats {
|
|||
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 @@ public final class Stats {
|
|||
}
|
||||
|
||||
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 @@ public final class Stats {
|
|||
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 @@ public final class Stats {
|
|||
* 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 @@ public final class Stats {
|
|||
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 @@ public final class Stats {
|
|||
}
|
||||
|
||||
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 final class Stats {
|
|||
}
|
||||
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 @@ public final class Stats {
|
|||
|
||||
@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 @@ public final class Stats {
|
|||
* 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 @@ public final class Stats {
|
|||
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 @@ public final class Stats {
|
|||
}
|
||||
|
||||
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 @@ public final class Stats {
|
|||
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 @@ public final class Stats {
|
|||
}
|
||||
|
||||
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 @@ public final class Stats {
|
|||
*
|
||||
* <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 @@ public final class Stats {
|
|||
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 @@ public final class Stats {
|
|||
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", });
|
||||
}
|
||||
|
|
|
@ -62,7 +62,7 @@ subprojects {
|
|||
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 @@ subprojects {
|
|||
|
||||
compileJava {
|
||||
// Protobuf-generated code produces some warnings.
|
||||
options.compilerArgs = compileJava.options.compilerArgs + ["-Xlint:-deprecation"]
|
||||
options.compilerArgs += ["-Xlint:-cast"]
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -14,5 +14,5 @@ set ESCWORKSPACE=%WORKSPACE:\=\\%
|
|||
|
||||
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
|
||||
|
|
|
@ -4,7 +4,7 @@ REM 7za is in http://www.7-zip.org/a/7z1507-extra.7z
|
|||
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 @@ set PATH=%PATH%;%cd%\%CMAKE_NAME%\bin
|
|||
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 ..
|
||||
|
|
|
@ -2,7 +2,7 @@ FROM protoc-artifacts:latest
|
|||
|
||||
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"'
|
||||
|
|
|
@ -137,10 +137,13 @@ sourceSets {
|
|||
}
|
||||
}
|
||||
|
||||
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 @@ protobuf {
|
|||
}
|
||||
}
|
||||
plugins {
|
||||
javalite {
|
||||
artifact = "com.google.protobuf:protoc-gen-javalite:${protobufVersion}"
|
||||
}
|
||||
grpc {
|
||||
path = javaPluginPath
|
||||
}
|
||||
|
@ -168,9 +174,15 @@ protobuf {
|
|||
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 ->
|
||||
|
|
|
@ -27,9 +27,12 @@ android {
|
|||
|
||||
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 @@ protobuf {
|
|||
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'
|
||||
|
|
|
@ -35,7 +35,7 @@ protobuf {
|
|||
// 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 {
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -12,11 +12,11 @@ package io.grpc.grpclb;
|
|||
* 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 @@ public final class ClientStats extends
|
|||
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 @@ public final class ClientStats extends
|
|||
}
|
||||
|
||||
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 final class ClientStats extends
|
|||
}
|
||||
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 @@ public final class ClientStats extends
|
|||
|
||||
@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 @@ public final class ClientStats extends
|
|||
* 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 @@ public final class ClientStats extends
|
|||
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 @@ public final class ClientStats extends
|
|||
}
|
||||
|
||||
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 @@ public final class ClientStats extends
|
|||
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);
|
||||
|
|
|
@ -7,11 +7,11 @@ package io.grpc.grpclb;
|
|||
* 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 @@ public final class InitialLoadBalanceRequest extends
|
|||
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 final class InitialLoadBalanceRequest extends
|
|||
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 @@ public final class InitialLoadBalanceRequest extends
|
|||
|
||||
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 final class InitialLoadBalanceRequest extends
|
|||
}
|
||||
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 @@ public final class InitialLoadBalanceRequest extends
|
|||
|
||||
@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 @@ public final class InitialLoadBalanceRequest extends
|
|||
* 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 @@ public final class InitialLoadBalanceRequest extends
|
|||
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 @@ public final class InitialLoadBalanceRequest extends
|
|||
}
|
||||
|
||||
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 @@ public final class InitialLoadBalanceRequest extends
|
|||
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);
|
||||
|
|
|
@ -7,11 +7,11 @@ package io.grpc.grpclb;
|
|||
* 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 @@ public final class InitialLoadBalanceResponse extends
|
|||
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 final class InitialLoadBalanceResponse extends
|
|||
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 @@ public final class InitialLoadBalanceResponse extends
|
|||
|
||||
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 @@ public final class InitialLoadBalanceResponse extends
|
|||
}
|
||||
|
||||
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 final class InitialLoadBalanceResponse extends
|
|||
}
|
||||
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 @@ public final class InitialLoadBalanceResponse extends
|
|||
|
||||
@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 @@ public final class InitialLoadBalanceResponse extends
|
|||
* 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 @@ public final class InitialLoadBalanceResponse extends
|
|||
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 @@ public final class InitialLoadBalanceResponse extends
|
|||
}
|
||||
|
||||
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 @@ public final class InitialLoadBalanceResponse extends
|
|||
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 @@ public final class InitialLoadBalanceResponse extends
|
|||
}
|
||||
|
||||
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 @@ public final class InitialLoadBalanceResponse extends
|
|||
*
|
||||
* <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(),
|
||||
|
|
|
@ -7,11 +7,11 @@ package io.grpc.grpclb;
|
|||
* 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 @@ public final class LoadBalanceRequest extends
|
|||
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 @@ public final class LoadBalanceRequest extends
|
|||
}
|
||||
|
||||
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 final class LoadBalanceRequest extends
|
|||
}
|
||||
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 @@ public final class LoadBalanceRequest extends
|
|||
|
||||
@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 @@ public final class LoadBalanceRequest extends
|
|||
* 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 @@ public final class LoadBalanceRequest extends
|
|||
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 @@ public final class LoadBalanceRequest extends
|
|||
}
|
||||
|
||||
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 @@ public final class LoadBalanceRequest extends
|
|||
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 @@ public final class LoadBalanceRequest extends
|
|||
}
|
||||
|
||||
|
||||
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 @@ public final class LoadBalanceRequest extends
|
|||
*
|
||||
* <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 @@ public final class LoadBalanceRequest extends
|
|||
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 @@ public final class LoadBalanceRequest extends
|
|||
*
|
||||
* <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(),
|
||||
|
|
|
@ -7,11 +7,11 @@ package io.grpc.grpclb;
|
|||
* 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 @@ public final class LoadBalanceResponse extends
|
|||
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 @@ public final class LoadBalanceResponse extends
|
|||
}
|
||||
|
||||
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 final class LoadBalanceResponse extends
|
|||
}
|
||||
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 @@ public final class LoadBalanceResponse extends
|
|||
|
||||
@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 @@ public final class LoadBalanceResponse extends
|
|||
* 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 @@ public final class LoadBalanceResponse extends
|
|||
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 @@ public final class LoadBalanceResponse extends
|
|||
}
|
||||
|
||||
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 @@ public final class LoadBalanceResponse extends
|
|||
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 @@ public final class LoadBalanceResponse extends
|
|||
}
|
||||
|
||||
|
||||
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 @@ public final class LoadBalanceResponse extends
|
|||
*
|
||||
* <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 @@ public final class LoadBalanceResponse extends
|
|||
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 @@ public final class LoadBalanceResponse extends
|
|||
*
|
||||
* <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(),
|
||||
|
|
|
@ -5,43 +5,49 @@ package io.grpc.grpclb;
|
|||
|
||||
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 @@ public final class LoadBalancerProto {
|
|||
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();
|
||||
|
|
|
@ -7,11 +7,11 @@ package io.grpc.grpclb;
|
|||
* 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 @@ public final class Server extends
|
|||
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 @@ public final class Server extends
|
|||
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 @@ public final class Server extends
|
|||
.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 @@ public final class Server extends
|
|||
}
|
||||
|
||||
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 final class Server extends
|
|||
}
|
||||
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 @@ public final class Server extends
|
|||
|
||||
@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 @@ public final class Server extends
|
|||
* 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 @@ public final class Server extends
|
|||
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 @@ public final class Server extends
|
|||
}
|
||||
|
||||
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 @@ public final class Server extends
|
|||
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);
|
||||
|
|
|
@ -7,11 +7,11 @@ package io.grpc.grpclb;
|
|||
* 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 @@ public final class ServerList extends
|
|||
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 @@ public final class ServerList extends
|
|||
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 @@ public final class ServerList extends
|
|||
}
|
||||
|
||||
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 final class ServerList extends
|
|||
}
|
||||
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 @@ public final class ServerList extends
|
|||
|
||||
@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 @@ public final class ServerList extends
|
|||
* 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 @@ public final class ServerList extends
|
|||
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 @@ public final class ServerList extends
|
|||
}
|
||||
|
||||
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 @@ public final class ServerList extends
|
|||
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 @@ public final class ServerList extends
|
|||
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 @@ public final class ServerList extends
|
|||
}
|
||||
}
|
||||
|
||||
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 @@ public final class ServerList extends
|
|||
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 @@ public final class ServerList extends
|
|||
}
|
||||
|
||||
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 @@ public final class ServerList extends
|
|||
*
|
||||
* <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(),
|
||||
|
|
|
@ -5,8 +5,14 @@ package com.google.protobuf;
|
|||
|
||||
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 @@ public final class EmptyProtos {
|
|||
* 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 @@ public final class EmptyProtos {
|
|||
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 @@ public final class EmptyProtos {
|
|||
}
|
||||
|
||||
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 final class EmptyProtos {
|
|||
}
|
||||
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 @@ public final class EmptyProtos {
|
|||
|
||||
@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 @@ public final class EmptyProtos {
|
|||
* 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 @@ public final class EmptyProtos {
|
|||
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 @@ public final class EmptyProtos {
|
|||
}
|
||||
|
||||
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 @@ public final class EmptyProtos {
|
|||
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 @@ public final class EmptyProtos {
|
|||
}
|
||||
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 @@ public final class EmptyProtos {
|
|||
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 @@ public final class EmptyProtos {
|
|||
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[] { });
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -5,8 +5,14 @@ package io.grpc.testing.integration;
|
|||
|
||||
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 @@ public final class Metrics {
|
|||
* 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 @@ public final class Metrics {
|
|||
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 final class Metrics {
|
|||
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 @@ public final class Metrics {
|
|||
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 @@ public final class Metrics {
|
|||
|
||||
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 @@ public final class Metrics {
|
|||
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 final class Metrics {
|
|||
}
|
||||
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 @@ public final class Metrics {
|
|||
|
||||
@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 @@ public final class Metrics {
|
|||
* 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 @@ public final class Metrics {
|
|||
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 @@ public final class Metrics {
|
|||
}
|
||||
|
||||
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 @@ public final class Metrics {
|
|||
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 @@ public final class Metrics {
|
|||
* 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 @@ public final class Metrics {
|
|||
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 final class Metrics {
|
|||
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 @@ public final class Metrics {
|
|||
|
||||
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 final class Metrics {
|
|||
}
|
||||
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 @@ public final class Metrics {
|
|||
|
||||
@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 @@ public final class Metrics {
|
|||
* 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 @@ public final class Metrics {
|
|||
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 @@ public final class Metrics {
|
|||
}
|
||||
|
||||
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 @@ public final class Metrics {
|
|||
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 @@ public final class Metrics {
|
|||
* 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 @@ public final class Metrics {
|
|||
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 @@ public final class Metrics {
|
|||
}
|
||||
|
||||
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 final class Metrics {
|
|||
}
|
||||
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 @@ public final class Metrics {
|
|||
|
||||
@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 @@ public final class Metrics {
|
|||
* 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 @@ public final class Metrics {
|
|||
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 @@ public final class Metrics {
|
|||
}
|
||||
|
||||
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 @@ public final class Metrics {
|
|||
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 @@ public final class Metrics {
|
|||
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 @@ public final class Metrics {
|
|||
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[] { });
|
||||
}
|
||||
|
|
|
@ -5,8 +5,14 @@ package io.grpc.testing.integration;
|
|||
|
||||
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
|
||||
|
|
|
@ -7,11 +7,11 @@ package io.grpc.health.v1;
|
|||
* 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 @@ public final class HealthCheckRequest extends
|
|||
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 final class HealthCheckRequest extends
|
|||
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 @@ public final class HealthCheckRequest extends
|
|||
|
||||
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 final class HealthCheckRequest extends
|
|||
}
|
||||
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 @@ public final class HealthCheckRequest extends
|
|||
|
||||
@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 @@ public final class HealthCheckRequest extends
|
|||
* 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 @@ public final class HealthCheckRequest extends
|
|||
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 @@ public final class HealthCheckRequest extends
|
|||
}
|
||||
|
||||
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 @@ public final class HealthCheckRequest extends
|
|||
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);
|
||||
|
|
|
@ -7,11 +7,11 @@ package io.grpc.health.v1;
|
|||
* 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 @@ public final class HealthCheckResponse extends
|
|||
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 @@ public final class HealthCheckResponse extends
|
|||
* <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 @@ public final class HealthCheckResponse extends
|
|||
}
|
||||
|
||||
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 final class HealthCheckResponse extends
|
|||
}
|
||||
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 @@ public final class HealthCheckResponse extends
|
|||
|
||||
@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 @@ public final class HealthCheckResponse extends
|
|||
* 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 @@ public final class HealthCheckResponse extends
|
|||
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 @@ public final class HealthCheckResponse extends
|
|||
}
|
||||
|
||||
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 @@ public final class HealthCheckResponse extends
|
|||
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 @@ public final class HealthCheckResponse extends
|
|||
* <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;
|
||||
}
|
||||
/**
|
||||
|
|
|
@ -5,18 +5,24 @@ package io.grpc.health.v1;
|
|||
|
||||
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 @@ public final class HealthProto {
|
|||
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", });
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue