grpc.gateway.testing.Echo Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: echo.proto
package grpc.gateway.testing;
public final class Echo {
private Echo() {}
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.gateway.testing.Empty)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code grpc.gateway.testing.Empty}
*/
public static final class Empty extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.gateway.testing.Empty)
EmptyOrBuilder {
private static final long serialVersionUID = 0L;
// Use Empty.newBuilder() to construct.
private Empty(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Empty() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Empty();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Empty(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.gateway.testing.Echo.internal_static_grpc_gateway_testing_Empty_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.gateway.testing.Echo.internal_static_grpc_gateway_testing_Empty_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.gateway.testing.Echo.Empty.class, grpc.gateway.testing.Echo.Empty.Builder.class);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof grpc.gateway.testing.Echo.Empty)) {
return super.equals(obj);
}
grpc.gateway.testing.Echo.Empty other = (grpc.gateway.testing.Echo.Empty) obj;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static grpc.gateway.testing.Echo.Empty parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.gateway.testing.Echo.Empty parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.gateway.testing.Echo.Empty parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.gateway.testing.Echo.Empty parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.gateway.testing.Echo.Empty parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.gateway.testing.Echo.Empty parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.gateway.testing.Echo.Empty parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.gateway.testing.Echo.Empty parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static grpc.gateway.testing.Echo.Empty parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static grpc.gateway.testing.Echo.Empty parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static grpc.gateway.testing.Echo.Empty parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.gateway.testing.Echo.Empty parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(grpc.gateway.testing.Echo.Empty prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code grpc.gateway.testing.Empty}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:grpc.gateway.testing.Empty)
grpc.gateway.testing.Echo.EmptyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.gateway.testing.Echo.internal_static_grpc_gateway_testing_Empty_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.gateway.testing.Echo.internal_static_grpc_gateway_testing_Empty_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.gateway.testing.Echo.Empty.class, grpc.gateway.testing.Echo.Empty.Builder.class);
}
// Construct using grpc.gateway.testing.Echo.Empty.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return grpc.gateway.testing.Echo.internal_static_grpc_gateway_testing_Empty_descriptor;
}
@java.lang.Override
public grpc.gateway.testing.Echo.Empty getDefaultInstanceForType() {
return grpc.gateway.testing.Echo.Empty.getDefaultInstance();
}
@java.lang.Override
public grpc.gateway.testing.Echo.Empty build() {
grpc.gateway.testing.Echo.Empty result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public grpc.gateway.testing.Echo.Empty buildPartial() {
grpc.gateway.testing.Echo.Empty result = new grpc.gateway.testing.Echo.Empty(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof grpc.gateway.testing.Echo.Empty) {
return mergeFrom((grpc.gateway.testing.Echo.Empty)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(grpc.gateway.testing.Echo.Empty other) {
if (other == grpc.gateway.testing.Echo.Empty.getDefaultInstance()) return this;
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
grpc.gateway.testing.Echo.Empty parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (grpc.gateway.testing.Echo.Empty) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:grpc.gateway.testing.Empty)
}
// @@protoc_insertion_point(class_scope:grpc.gateway.testing.Empty)
private static final grpc.gateway.testing.Echo.Empty DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new grpc.gateway.testing.Echo.Empty();
}
public static grpc.gateway.testing.Echo.Empty getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Empty parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Empty(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public grpc.gateway.testing.Echo.Empty getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface EchoRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:grpc.gateway.testing.EchoRequest)
com.google.protobuf.MessageOrBuilder {
/**
* string message = 1;
* @return The message.
*/
java.lang.String getMessage();
/**
* string message = 1;
* @return The bytes for message.
*/
com.google.protobuf.ByteString
getMessageBytes();
}
/**
* Protobuf type {@code grpc.gateway.testing.EchoRequest}
*/
public static final class EchoRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.gateway.testing.EchoRequest)
EchoRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use EchoRequest.newBuilder() to construct.
private EchoRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private EchoRequest() {
message_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new EchoRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private EchoRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
message_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.gateway.testing.Echo.internal_static_grpc_gateway_testing_EchoRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.gateway.testing.Echo.internal_static_grpc_gateway_testing_EchoRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.gateway.testing.Echo.EchoRequest.class, grpc.gateway.testing.Echo.EchoRequest.Builder.class);
}
public static final int MESSAGE_FIELD_NUMBER = 1;
private volatile java.lang.Object message_;
/**
* string message = 1;
* @return The message.
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
message_ = s;
return s;
}
}
/**
* string message = 1;
* @return The bytes for message.
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getMessageBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getMessageBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof grpc.gateway.testing.Echo.EchoRequest)) {
return super.equals(obj);
}
grpc.gateway.testing.Echo.EchoRequest other = (grpc.gateway.testing.Echo.EchoRequest) obj;
if (!getMessage()
.equals(other.getMessage())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getMessage().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static grpc.gateway.testing.Echo.EchoRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.gateway.testing.Echo.EchoRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.gateway.testing.Echo.EchoRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.gateway.testing.Echo.EchoRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.gateway.testing.Echo.EchoRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.gateway.testing.Echo.EchoRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.gateway.testing.Echo.EchoRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.gateway.testing.Echo.EchoRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static grpc.gateway.testing.Echo.EchoRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static grpc.gateway.testing.Echo.EchoRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static grpc.gateway.testing.Echo.EchoRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.gateway.testing.Echo.EchoRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(grpc.gateway.testing.Echo.EchoRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code grpc.gateway.testing.EchoRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:grpc.gateway.testing.EchoRequest)
grpc.gateway.testing.Echo.EchoRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.gateway.testing.Echo.internal_static_grpc_gateway_testing_EchoRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.gateway.testing.Echo.internal_static_grpc_gateway_testing_EchoRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.gateway.testing.Echo.EchoRequest.class, grpc.gateway.testing.Echo.EchoRequest.Builder.class);
}
// Construct using grpc.gateway.testing.Echo.EchoRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
message_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return grpc.gateway.testing.Echo.internal_static_grpc_gateway_testing_EchoRequest_descriptor;
}
@java.lang.Override
public grpc.gateway.testing.Echo.EchoRequest getDefaultInstanceForType() {
return grpc.gateway.testing.Echo.EchoRequest.getDefaultInstance();
}
@java.lang.Override
public grpc.gateway.testing.Echo.EchoRequest build() {
grpc.gateway.testing.Echo.EchoRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public grpc.gateway.testing.Echo.EchoRequest buildPartial() {
grpc.gateway.testing.Echo.EchoRequest result = new grpc.gateway.testing.Echo.EchoRequest(this);
result.message_ = message_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof grpc.gateway.testing.Echo.EchoRequest) {
return mergeFrom((grpc.gateway.testing.Echo.EchoRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(grpc.gateway.testing.Echo.EchoRequest other) {
if (other == grpc.gateway.testing.Echo.EchoRequest.getDefaultInstance()) return this;
if (!other.getMessage().isEmpty()) {
message_ = other.message_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
grpc.gateway.testing.Echo.EchoRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (grpc.gateway.testing.Echo.EchoRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object message_ = "";
/**
* string message = 1;
* @return The message.
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
message_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string message = 1;
* @return The bytes for message.
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string message = 1;
* @param value The message to set.
* @return This builder for chaining.
*/
public Builder setMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
return this;
}
/**
* string message = 1;
* @return This builder for chaining.
*/
public Builder clearMessage() {
message_ = getDefaultInstance().getMessage();
onChanged();
return this;
}
/**
* string message = 1;
* @param value The bytes for message to set.
* @return This builder for chaining.
*/
public Builder setMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
message_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:grpc.gateway.testing.EchoRequest)
}
// @@protoc_insertion_point(class_scope:grpc.gateway.testing.EchoRequest)
private static final grpc.gateway.testing.Echo.EchoRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new grpc.gateway.testing.Echo.EchoRequest();
}
public static grpc.gateway.testing.Echo.EchoRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public EchoRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new EchoRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public grpc.gateway.testing.Echo.EchoRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface EchoResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:grpc.gateway.testing.EchoResponse)
com.google.protobuf.MessageOrBuilder {
/**
* string message = 1;
* @return The message.
*/
java.lang.String getMessage();
/**
* string message = 1;
* @return The bytes for message.
*/
com.google.protobuf.ByteString
getMessageBytes();
/**
* int32 message_count = 2;
* @return The messageCount.
*/
int getMessageCount();
}
/**
* Protobuf type {@code grpc.gateway.testing.EchoResponse}
*/
public static final class EchoResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.gateway.testing.EchoResponse)
EchoResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use EchoResponse.newBuilder() to construct.
private EchoResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private EchoResponse() {
message_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new EchoResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private EchoResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
message_ = s;
break;
}
case 16: {
messageCount_ = input.readInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.gateway.testing.Echo.internal_static_grpc_gateway_testing_EchoResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.gateway.testing.Echo.internal_static_grpc_gateway_testing_EchoResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.gateway.testing.Echo.EchoResponse.class, grpc.gateway.testing.Echo.EchoResponse.Builder.class);
}
public static final int MESSAGE_FIELD_NUMBER = 1;
private volatile java.lang.Object message_;
/**
* string message = 1;
* @return The message.
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
message_ = s;
return s;
}
}
/**
* string message = 1;
* @return The bytes for message.
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MESSAGE_COUNT_FIELD_NUMBER = 2;
private int messageCount_;
/**
* int32 message_count = 2;
* @return The messageCount.
*/
public int getMessageCount() {
return messageCount_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getMessageBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_);
}
if (messageCount_ != 0) {
output.writeInt32(2, messageCount_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getMessageBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_);
}
if (messageCount_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, messageCount_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof grpc.gateway.testing.Echo.EchoResponse)) {
return super.equals(obj);
}
grpc.gateway.testing.Echo.EchoResponse other = (grpc.gateway.testing.Echo.EchoResponse) obj;
if (!getMessage()
.equals(other.getMessage())) return false;
if (getMessageCount()
!= other.getMessageCount()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getMessage().hashCode();
hash = (37 * hash) + MESSAGE_COUNT_FIELD_NUMBER;
hash = (53 * hash) + getMessageCount();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static grpc.gateway.testing.Echo.EchoResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.gateway.testing.Echo.EchoResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.gateway.testing.Echo.EchoResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.gateway.testing.Echo.EchoResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.gateway.testing.Echo.EchoResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.gateway.testing.Echo.EchoResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.gateway.testing.Echo.EchoResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.gateway.testing.Echo.EchoResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static grpc.gateway.testing.Echo.EchoResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static grpc.gateway.testing.Echo.EchoResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static grpc.gateway.testing.Echo.EchoResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.gateway.testing.Echo.EchoResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(grpc.gateway.testing.Echo.EchoResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code grpc.gateway.testing.EchoResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:grpc.gateway.testing.EchoResponse)
grpc.gateway.testing.Echo.EchoResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.gateway.testing.Echo.internal_static_grpc_gateway_testing_EchoResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.gateway.testing.Echo.internal_static_grpc_gateway_testing_EchoResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.gateway.testing.Echo.EchoResponse.class, grpc.gateway.testing.Echo.EchoResponse.Builder.class);
}
// Construct using grpc.gateway.testing.Echo.EchoResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
message_ = "";
messageCount_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return grpc.gateway.testing.Echo.internal_static_grpc_gateway_testing_EchoResponse_descriptor;
}
@java.lang.Override
public grpc.gateway.testing.Echo.EchoResponse getDefaultInstanceForType() {
return grpc.gateway.testing.Echo.EchoResponse.getDefaultInstance();
}
@java.lang.Override
public grpc.gateway.testing.Echo.EchoResponse build() {
grpc.gateway.testing.Echo.EchoResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public grpc.gateway.testing.Echo.EchoResponse buildPartial() {
grpc.gateway.testing.Echo.EchoResponse result = new grpc.gateway.testing.Echo.EchoResponse(this);
result.message_ = message_;
result.messageCount_ = messageCount_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof grpc.gateway.testing.Echo.EchoResponse) {
return mergeFrom((grpc.gateway.testing.Echo.EchoResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(grpc.gateway.testing.Echo.EchoResponse other) {
if (other == grpc.gateway.testing.Echo.EchoResponse.getDefaultInstance()) return this;
if (!other.getMessage().isEmpty()) {
message_ = other.message_;
onChanged();
}
if (other.getMessageCount() != 0) {
setMessageCount(other.getMessageCount());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
grpc.gateway.testing.Echo.EchoResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (grpc.gateway.testing.Echo.EchoResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object message_ = "";
/**
* string message = 1;
* @return The message.
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
message_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string message = 1;
* @return The bytes for message.
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string message = 1;
* @param value The message to set.
* @return This builder for chaining.
*/
public Builder setMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
return this;
}
/**
* string message = 1;
* @return This builder for chaining.
*/
public Builder clearMessage() {
message_ = getDefaultInstance().getMessage();
onChanged();
return this;
}
/**
* string message = 1;
* @param value The bytes for message to set.
* @return This builder for chaining.
*/
public Builder setMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
message_ = value;
onChanged();
return this;
}
private int messageCount_ ;
/**
* int32 message_count = 2;
* @return The messageCount.
*/
public int getMessageCount() {
return messageCount_;
}
/**
* int32 message_count = 2;
* @param value The messageCount to set.
* @return This builder for chaining.
*/
public Builder setMessageCount(int value) {
messageCount_ = value;
onChanged();
return this;
}
/**
* int32 message_count = 2;
* @return This builder for chaining.
*/
public Builder clearMessageCount() {
messageCount_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:grpc.gateway.testing.EchoResponse)
}
// @@protoc_insertion_point(class_scope:grpc.gateway.testing.EchoResponse)
private static final grpc.gateway.testing.Echo.EchoResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new grpc.gateway.testing.Echo.EchoResponse();
}
public static grpc.gateway.testing.Echo.EchoResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public EchoResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new EchoResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public grpc.gateway.testing.Echo.EchoResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ServerStreamingEchoRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:grpc.gateway.testing.ServerStreamingEchoRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* Message string for server streaming request.
*
*
* string message = 1;
* @return The message.
*/
java.lang.String getMessage();
/**
*
* Message string for server streaming request.
*
*
* string message = 1;
* @return The bytes for message.
*/
com.google.protobuf.ByteString
getMessageBytes();
/**
*
* The total number of messages to be generated before the server
* closes the stream; default is 10.
*
*
* int32 message_count = 2;
* @return The messageCount.
*/
int getMessageCount();
/**
*
* The interval (ms) between two server messages. The server implementation
* may enforce some minimum interval (e.g. 100ms) to avoid message overflow.
*
*
* int32 message_interval = 3;
* @return The messageInterval.
*/
int getMessageInterval();
}
/**
*
* Request type for server side streaming echo.
*
*
* Protobuf type {@code grpc.gateway.testing.ServerStreamingEchoRequest}
*/
public static final class ServerStreamingEchoRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.gateway.testing.ServerStreamingEchoRequest)
ServerStreamingEchoRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ServerStreamingEchoRequest.newBuilder() to construct.
private ServerStreamingEchoRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ServerStreamingEchoRequest() {
message_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ServerStreamingEchoRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ServerStreamingEchoRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
message_ = s;
break;
}
case 16: {
messageCount_ = input.readInt32();
break;
}
case 24: {
messageInterval_ = input.readInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.gateway.testing.Echo.internal_static_grpc_gateway_testing_ServerStreamingEchoRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.gateway.testing.Echo.internal_static_grpc_gateway_testing_ServerStreamingEchoRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.gateway.testing.Echo.ServerStreamingEchoRequest.class, grpc.gateway.testing.Echo.ServerStreamingEchoRequest.Builder.class);
}
public static final int MESSAGE_FIELD_NUMBER = 1;
private volatile java.lang.Object message_;
/**
*
* Message string for server streaming request.
*
*
* string message = 1;
* @return The message.
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
message_ = s;
return s;
}
}
/**
*
* Message string for server streaming request.
*
*
* string message = 1;
* @return The bytes for message.
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MESSAGE_COUNT_FIELD_NUMBER = 2;
private int messageCount_;
/**
*
* The total number of messages to be generated before the server
* closes the stream; default is 10.
*
*
* int32 message_count = 2;
* @return The messageCount.
*/
public int getMessageCount() {
return messageCount_;
}
public static final int MESSAGE_INTERVAL_FIELD_NUMBER = 3;
private int messageInterval_;
/**
*
* The interval (ms) between two server messages. The server implementation
* may enforce some minimum interval (e.g. 100ms) to avoid message overflow.
*
*
* int32 message_interval = 3;
* @return The messageInterval.
*/
public int getMessageInterval() {
return messageInterval_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getMessageBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_);
}
if (messageCount_ != 0) {
output.writeInt32(2, messageCount_);
}
if (messageInterval_ != 0) {
output.writeInt32(3, messageInterval_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getMessageBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_);
}
if (messageCount_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, messageCount_);
}
if (messageInterval_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, messageInterval_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof grpc.gateway.testing.Echo.ServerStreamingEchoRequest)) {
return super.equals(obj);
}
grpc.gateway.testing.Echo.ServerStreamingEchoRequest other = (grpc.gateway.testing.Echo.ServerStreamingEchoRequest) obj;
if (!getMessage()
.equals(other.getMessage())) return false;
if (getMessageCount()
!= other.getMessageCount()) return false;
if (getMessageInterval()
!= other.getMessageInterval()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getMessage().hashCode();
hash = (37 * hash) + MESSAGE_COUNT_FIELD_NUMBER;
hash = (53 * hash) + getMessageCount();
hash = (37 * hash) + MESSAGE_INTERVAL_FIELD_NUMBER;
hash = (53 * hash) + getMessageInterval();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static grpc.gateway.testing.Echo.ServerStreamingEchoRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.gateway.testing.Echo.ServerStreamingEchoRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.gateway.testing.Echo.ServerStreamingEchoRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.gateway.testing.Echo.ServerStreamingEchoRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.gateway.testing.Echo.ServerStreamingEchoRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.gateway.testing.Echo.ServerStreamingEchoRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.gateway.testing.Echo.ServerStreamingEchoRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.gateway.testing.Echo.ServerStreamingEchoRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static grpc.gateway.testing.Echo.ServerStreamingEchoRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static grpc.gateway.testing.Echo.ServerStreamingEchoRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static grpc.gateway.testing.Echo.ServerStreamingEchoRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.gateway.testing.Echo.ServerStreamingEchoRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(grpc.gateway.testing.Echo.ServerStreamingEchoRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Request type for server side streaming echo.
*
*
* Protobuf type {@code grpc.gateway.testing.ServerStreamingEchoRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:grpc.gateway.testing.ServerStreamingEchoRequest)
grpc.gateway.testing.Echo.ServerStreamingEchoRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.gateway.testing.Echo.internal_static_grpc_gateway_testing_ServerStreamingEchoRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.gateway.testing.Echo.internal_static_grpc_gateway_testing_ServerStreamingEchoRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.gateway.testing.Echo.ServerStreamingEchoRequest.class, grpc.gateway.testing.Echo.ServerStreamingEchoRequest.Builder.class);
}
// Construct using grpc.gateway.testing.Echo.ServerStreamingEchoRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
message_ = "";
messageCount_ = 0;
messageInterval_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return grpc.gateway.testing.Echo.internal_static_grpc_gateway_testing_ServerStreamingEchoRequest_descriptor;
}
@java.lang.Override
public grpc.gateway.testing.Echo.ServerStreamingEchoRequest getDefaultInstanceForType() {
return grpc.gateway.testing.Echo.ServerStreamingEchoRequest.getDefaultInstance();
}
@java.lang.Override
public grpc.gateway.testing.Echo.ServerStreamingEchoRequest build() {
grpc.gateway.testing.Echo.ServerStreamingEchoRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public grpc.gateway.testing.Echo.ServerStreamingEchoRequest buildPartial() {
grpc.gateway.testing.Echo.ServerStreamingEchoRequest result = new grpc.gateway.testing.Echo.ServerStreamingEchoRequest(this);
result.message_ = message_;
result.messageCount_ = messageCount_;
result.messageInterval_ = messageInterval_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof grpc.gateway.testing.Echo.ServerStreamingEchoRequest) {
return mergeFrom((grpc.gateway.testing.Echo.ServerStreamingEchoRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(grpc.gateway.testing.Echo.ServerStreamingEchoRequest other) {
if (other == grpc.gateway.testing.Echo.ServerStreamingEchoRequest.getDefaultInstance()) return this;
if (!other.getMessage().isEmpty()) {
message_ = other.message_;
onChanged();
}
if (other.getMessageCount() != 0) {
setMessageCount(other.getMessageCount());
}
if (other.getMessageInterval() != 0) {
setMessageInterval(other.getMessageInterval());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
grpc.gateway.testing.Echo.ServerStreamingEchoRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (grpc.gateway.testing.Echo.ServerStreamingEchoRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object message_ = "";
/**
*
* Message string for server streaming request.
*
*
* string message = 1;
* @return The message.
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
message_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Message string for server streaming request.
*
*
* string message = 1;
* @return The bytes for message.
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Message string for server streaming request.
*
*
* string message = 1;
* @param value The message to set.
* @return This builder for chaining.
*/
public Builder setMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
return this;
}
/**
*
* Message string for server streaming request.
*
*
* string message = 1;
* @return This builder for chaining.
*/
public Builder clearMessage() {
message_ = getDefaultInstance().getMessage();
onChanged();
return this;
}
/**
*
* Message string for server streaming request.
*
*
* string message = 1;
* @param value The bytes for message to set.
* @return This builder for chaining.
*/
public Builder setMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
message_ = value;
onChanged();
return this;
}
private int messageCount_ ;
/**
*
* The total number of messages to be generated before the server
* closes the stream; default is 10.
*
*
* int32 message_count = 2;
* @return The messageCount.
*/
public int getMessageCount() {
return messageCount_;
}
/**
*
* The total number of messages to be generated before the server
* closes the stream; default is 10.
*
*
* int32 message_count = 2;
* @param value The messageCount to set.
* @return This builder for chaining.
*/
public Builder setMessageCount(int value) {
messageCount_ = value;
onChanged();
return this;
}
/**
*
* The total number of messages to be generated before the server
* closes the stream; default is 10.
*
*
* int32 message_count = 2;
* @return This builder for chaining.
*/
public Builder clearMessageCount() {
messageCount_ = 0;
onChanged();
return this;
}
private int messageInterval_ ;
/**
*
* The interval (ms) between two server messages. The server implementation
* may enforce some minimum interval (e.g. 100ms) to avoid message overflow.
*
*
* int32 message_interval = 3;
* @return The messageInterval.
*/
public int getMessageInterval() {
return messageInterval_;
}
/**
*
* The interval (ms) between two server messages. The server implementation
* may enforce some minimum interval (e.g. 100ms) to avoid message overflow.
*
*
* int32 message_interval = 3;
* @param value The messageInterval to set.
* @return This builder for chaining.
*/
public Builder setMessageInterval(int value) {
messageInterval_ = value;
onChanged();
return this;
}
/**
*
* The interval (ms) between two server messages. The server implementation
* may enforce some minimum interval (e.g. 100ms) to avoid message overflow.
*
*
* int32 message_interval = 3;
* @return This builder for chaining.
*/
public Builder clearMessageInterval() {
messageInterval_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:grpc.gateway.testing.ServerStreamingEchoRequest)
}
// @@protoc_insertion_point(class_scope:grpc.gateway.testing.ServerStreamingEchoRequest)
private static final grpc.gateway.testing.Echo.ServerStreamingEchoRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new grpc.gateway.testing.Echo.ServerStreamingEchoRequest();
}
public static grpc.gateway.testing.Echo.ServerStreamingEchoRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ServerStreamingEchoRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ServerStreamingEchoRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public grpc.gateway.testing.Echo.ServerStreamingEchoRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ServerStreamingEchoResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:grpc.gateway.testing.ServerStreamingEchoResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* Response message.
*
*
* string message = 1;
* @return The message.
*/
java.lang.String getMessage();
/**
*
* Response message.
*
*
* string message = 1;
* @return The bytes for message.
*/
com.google.protobuf.ByteString
getMessageBytes();
}
/**
*
* Response type for server streaming response.
*
*
* Protobuf type {@code grpc.gateway.testing.ServerStreamingEchoResponse}
*/
public static final class ServerStreamingEchoResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.gateway.testing.ServerStreamingEchoResponse)
ServerStreamingEchoResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ServerStreamingEchoResponse.newBuilder() to construct.
private ServerStreamingEchoResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ServerStreamingEchoResponse() {
message_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ServerStreamingEchoResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ServerStreamingEchoResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
message_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.gateway.testing.Echo.internal_static_grpc_gateway_testing_ServerStreamingEchoResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.gateway.testing.Echo.internal_static_grpc_gateway_testing_ServerStreamingEchoResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.gateway.testing.Echo.ServerStreamingEchoResponse.class, grpc.gateway.testing.Echo.ServerStreamingEchoResponse.Builder.class);
}
public static final int MESSAGE_FIELD_NUMBER = 1;
private volatile java.lang.Object message_;
/**
*
* Response message.
*
*
* string message = 1;
* @return The message.
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
message_ = s;
return s;
}
}
/**
*
* Response message.
*
*
* string message = 1;
* @return The bytes for message.
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getMessageBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getMessageBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof grpc.gateway.testing.Echo.ServerStreamingEchoResponse)) {
return super.equals(obj);
}
grpc.gateway.testing.Echo.ServerStreamingEchoResponse other = (grpc.gateway.testing.Echo.ServerStreamingEchoResponse) obj;
if (!getMessage()
.equals(other.getMessage())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getMessage().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static grpc.gateway.testing.Echo.ServerStreamingEchoResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.gateway.testing.Echo.ServerStreamingEchoResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.gateway.testing.Echo.ServerStreamingEchoResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.gateway.testing.Echo.ServerStreamingEchoResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.gateway.testing.Echo.ServerStreamingEchoResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.gateway.testing.Echo.ServerStreamingEchoResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.gateway.testing.Echo.ServerStreamingEchoResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.gateway.testing.Echo.ServerStreamingEchoResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static grpc.gateway.testing.Echo.ServerStreamingEchoResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static grpc.gateway.testing.Echo.ServerStreamingEchoResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static grpc.gateway.testing.Echo.ServerStreamingEchoResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.gateway.testing.Echo.ServerStreamingEchoResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(grpc.gateway.testing.Echo.ServerStreamingEchoResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Response type for server streaming response.
*
*
* Protobuf type {@code grpc.gateway.testing.ServerStreamingEchoResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:grpc.gateway.testing.ServerStreamingEchoResponse)
grpc.gateway.testing.Echo.ServerStreamingEchoResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.gateway.testing.Echo.internal_static_grpc_gateway_testing_ServerStreamingEchoResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.gateway.testing.Echo.internal_static_grpc_gateway_testing_ServerStreamingEchoResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.gateway.testing.Echo.ServerStreamingEchoResponse.class, grpc.gateway.testing.Echo.ServerStreamingEchoResponse.Builder.class);
}
// Construct using grpc.gateway.testing.Echo.ServerStreamingEchoResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
message_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return grpc.gateway.testing.Echo.internal_static_grpc_gateway_testing_ServerStreamingEchoResponse_descriptor;
}
@java.lang.Override
public grpc.gateway.testing.Echo.ServerStreamingEchoResponse getDefaultInstanceForType() {
return grpc.gateway.testing.Echo.ServerStreamingEchoResponse.getDefaultInstance();
}
@java.lang.Override
public grpc.gateway.testing.Echo.ServerStreamingEchoResponse build() {
grpc.gateway.testing.Echo.ServerStreamingEchoResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public grpc.gateway.testing.Echo.ServerStreamingEchoResponse buildPartial() {
grpc.gateway.testing.Echo.ServerStreamingEchoResponse result = new grpc.gateway.testing.Echo.ServerStreamingEchoResponse(this);
result.message_ = message_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof grpc.gateway.testing.Echo.ServerStreamingEchoResponse) {
return mergeFrom((grpc.gateway.testing.Echo.ServerStreamingEchoResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(grpc.gateway.testing.Echo.ServerStreamingEchoResponse other) {
if (other == grpc.gateway.testing.Echo.ServerStreamingEchoResponse.getDefaultInstance()) return this;
if (!other.getMessage().isEmpty()) {
message_ = other.message_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
grpc.gateway.testing.Echo.ServerStreamingEchoResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (grpc.gateway.testing.Echo.ServerStreamingEchoResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object message_ = "";
/**
*
* Response message.
*
*
* string message = 1;
* @return The message.
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
message_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Response message.
*
*
* string message = 1;
* @return The bytes for message.
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Response message.
*
*
* string message = 1;
* @param value The message to set.
* @return This builder for chaining.
*/
public Builder setMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
return this;
}
/**
*
* Response message.
*
*
* string message = 1;
* @return This builder for chaining.
*/
public Builder clearMessage() {
message_ = getDefaultInstance().getMessage();
onChanged();
return this;
}
/**
*
* Response message.
*
*
* string message = 1;
* @param value The bytes for message to set.
* @return This builder for chaining.
*/
public Builder setMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
message_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:grpc.gateway.testing.ServerStreamingEchoResponse)
}
// @@protoc_insertion_point(class_scope:grpc.gateway.testing.ServerStreamingEchoResponse)
private static final grpc.gateway.testing.Echo.ServerStreamingEchoResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new grpc.gateway.testing.Echo.ServerStreamingEchoResponse();
}
public static grpc.gateway.testing.Echo.ServerStreamingEchoResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ServerStreamingEchoResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ServerStreamingEchoResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public grpc.gateway.testing.Echo.ServerStreamingEchoResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ClientStreamingEchoRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:grpc.gateway.testing.ClientStreamingEchoRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* A special value "" indicates that there's no further messages.
*
*
* string message = 1;
* @return The message.
*/
java.lang.String getMessage();
/**
*
* A special value "" indicates that there's no further messages.
*
*
* string message = 1;
* @return The bytes for message.
*/
com.google.protobuf.ByteString
getMessageBytes();
}
/**
*
* Request type for client side streaming echo.
*
*
* Protobuf type {@code grpc.gateway.testing.ClientStreamingEchoRequest}
*/
public static final class ClientStreamingEchoRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.gateway.testing.ClientStreamingEchoRequest)
ClientStreamingEchoRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ClientStreamingEchoRequest.newBuilder() to construct.
private ClientStreamingEchoRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ClientStreamingEchoRequest() {
message_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ClientStreamingEchoRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ClientStreamingEchoRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
message_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.gateway.testing.Echo.internal_static_grpc_gateway_testing_ClientStreamingEchoRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.gateway.testing.Echo.internal_static_grpc_gateway_testing_ClientStreamingEchoRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.gateway.testing.Echo.ClientStreamingEchoRequest.class, grpc.gateway.testing.Echo.ClientStreamingEchoRequest.Builder.class);
}
public static final int MESSAGE_FIELD_NUMBER = 1;
private volatile java.lang.Object message_;
/**
*
* A special value "" indicates that there's no further messages.
*
*
* string message = 1;
* @return The message.
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
message_ = s;
return s;
}
}
/**
*
* A special value "" indicates that there's no further messages.
*
*
* string message = 1;
* @return The bytes for message.
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getMessageBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getMessageBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof grpc.gateway.testing.Echo.ClientStreamingEchoRequest)) {
return super.equals(obj);
}
grpc.gateway.testing.Echo.ClientStreamingEchoRequest other = (grpc.gateway.testing.Echo.ClientStreamingEchoRequest) obj;
if (!getMessage()
.equals(other.getMessage())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getMessage().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static grpc.gateway.testing.Echo.ClientStreamingEchoRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.gateway.testing.Echo.ClientStreamingEchoRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.gateway.testing.Echo.ClientStreamingEchoRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.gateway.testing.Echo.ClientStreamingEchoRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.gateway.testing.Echo.ClientStreamingEchoRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.gateway.testing.Echo.ClientStreamingEchoRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.gateway.testing.Echo.ClientStreamingEchoRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.gateway.testing.Echo.ClientStreamingEchoRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static grpc.gateway.testing.Echo.ClientStreamingEchoRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static grpc.gateway.testing.Echo.ClientStreamingEchoRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static grpc.gateway.testing.Echo.ClientStreamingEchoRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.gateway.testing.Echo.ClientStreamingEchoRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(grpc.gateway.testing.Echo.ClientStreamingEchoRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Request type for client side streaming echo.
*
*
* Protobuf type {@code grpc.gateway.testing.ClientStreamingEchoRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:grpc.gateway.testing.ClientStreamingEchoRequest)
grpc.gateway.testing.Echo.ClientStreamingEchoRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.gateway.testing.Echo.internal_static_grpc_gateway_testing_ClientStreamingEchoRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.gateway.testing.Echo.internal_static_grpc_gateway_testing_ClientStreamingEchoRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.gateway.testing.Echo.ClientStreamingEchoRequest.class, grpc.gateway.testing.Echo.ClientStreamingEchoRequest.Builder.class);
}
// Construct using grpc.gateway.testing.Echo.ClientStreamingEchoRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
message_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return grpc.gateway.testing.Echo.internal_static_grpc_gateway_testing_ClientStreamingEchoRequest_descriptor;
}
@java.lang.Override
public grpc.gateway.testing.Echo.ClientStreamingEchoRequest getDefaultInstanceForType() {
return grpc.gateway.testing.Echo.ClientStreamingEchoRequest.getDefaultInstance();
}
@java.lang.Override
public grpc.gateway.testing.Echo.ClientStreamingEchoRequest build() {
grpc.gateway.testing.Echo.ClientStreamingEchoRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public grpc.gateway.testing.Echo.ClientStreamingEchoRequest buildPartial() {
grpc.gateway.testing.Echo.ClientStreamingEchoRequest result = new grpc.gateway.testing.Echo.ClientStreamingEchoRequest(this);
result.message_ = message_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof grpc.gateway.testing.Echo.ClientStreamingEchoRequest) {
return mergeFrom((grpc.gateway.testing.Echo.ClientStreamingEchoRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(grpc.gateway.testing.Echo.ClientStreamingEchoRequest other) {
if (other == grpc.gateway.testing.Echo.ClientStreamingEchoRequest.getDefaultInstance()) return this;
if (!other.getMessage().isEmpty()) {
message_ = other.message_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
grpc.gateway.testing.Echo.ClientStreamingEchoRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (grpc.gateway.testing.Echo.ClientStreamingEchoRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object message_ = "";
/**
*
* A special value "" indicates that there's no further messages.
*
*
* string message = 1;
* @return The message.
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
message_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* A special value "" indicates that there's no further messages.
*
*
* string message = 1;
* @return The bytes for message.
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* A special value "" indicates that there's no further messages.
*
*
* string message = 1;
* @param value The message to set.
* @return This builder for chaining.
*/
public Builder setMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
return this;
}
/**
*
* A special value "" indicates that there's no further messages.
*
*
* string message = 1;
* @return This builder for chaining.
*/
public Builder clearMessage() {
message_ = getDefaultInstance().getMessage();
onChanged();
return this;
}
/**
*
* A special value "" indicates that there's no further messages.
*
*
* string message = 1;
* @param value The bytes for message to set.
* @return This builder for chaining.
*/
public Builder setMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
message_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:grpc.gateway.testing.ClientStreamingEchoRequest)
}
// @@protoc_insertion_point(class_scope:grpc.gateway.testing.ClientStreamingEchoRequest)
private static final grpc.gateway.testing.Echo.ClientStreamingEchoRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new grpc.gateway.testing.Echo.ClientStreamingEchoRequest();
}
public static grpc.gateway.testing.Echo.ClientStreamingEchoRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ClientStreamingEchoRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ClientStreamingEchoRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public grpc.gateway.testing.Echo.ClientStreamingEchoRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ClientStreamingEchoResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:grpc.gateway.testing.ClientStreamingEchoResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* Total number of client messages that have been received.
*
*
* int32 message_count = 1;
* @return The messageCount.
*/
int getMessageCount();
}
/**
*
* Response type for client side streaming echo.
*
*
* Protobuf type {@code grpc.gateway.testing.ClientStreamingEchoResponse}
*/
public static final class ClientStreamingEchoResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:grpc.gateway.testing.ClientStreamingEchoResponse)
ClientStreamingEchoResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ClientStreamingEchoResponse.newBuilder() to construct.
private ClientStreamingEchoResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ClientStreamingEchoResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ClientStreamingEchoResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ClientStreamingEchoResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
messageCount_ = input.readInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.gateway.testing.Echo.internal_static_grpc_gateway_testing_ClientStreamingEchoResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.gateway.testing.Echo.internal_static_grpc_gateway_testing_ClientStreamingEchoResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.gateway.testing.Echo.ClientStreamingEchoResponse.class, grpc.gateway.testing.Echo.ClientStreamingEchoResponse.Builder.class);
}
public static final int MESSAGE_COUNT_FIELD_NUMBER = 1;
private int messageCount_;
/**
*
* Total number of client messages that have been received.
*
*
* int32 message_count = 1;
* @return The messageCount.
*/
public int getMessageCount() {
return messageCount_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (messageCount_ != 0) {
output.writeInt32(1, messageCount_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (messageCount_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, messageCount_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof grpc.gateway.testing.Echo.ClientStreamingEchoResponse)) {
return super.equals(obj);
}
grpc.gateway.testing.Echo.ClientStreamingEchoResponse other = (grpc.gateway.testing.Echo.ClientStreamingEchoResponse) obj;
if (getMessageCount()
!= other.getMessageCount()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + MESSAGE_COUNT_FIELD_NUMBER;
hash = (53 * hash) + getMessageCount();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static grpc.gateway.testing.Echo.ClientStreamingEchoResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.gateway.testing.Echo.ClientStreamingEchoResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.gateway.testing.Echo.ClientStreamingEchoResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.gateway.testing.Echo.ClientStreamingEchoResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.gateway.testing.Echo.ClientStreamingEchoResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static grpc.gateway.testing.Echo.ClientStreamingEchoResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static grpc.gateway.testing.Echo.ClientStreamingEchoResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.gateway.testing.Echo.ClientStreamingEchoResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static grpc.gateway.testing.Echo.ClientStreamingEchoResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static grpc.gateway.testing.Echo.ClientStreamingEchoResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static grpc.gateway.testing.Echo.ClientStreamingEchoResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static grpc.gateway.testing.Echo.ClientStreamingEchoResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(grpc.gateway.testing.Echo.ClientStreamingEchoResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Response type for client side streaming echo.
*
*
* Protobuf type {@code grpc.gateway.testing.ClientStreamingEchoResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:grpc.gateway.testing.ClientStreamingEchoResponse)
grpc.gateway.testing.Echo.ClientStreamingEchoResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return grpc.gateway.testing.Echo.internal_static_grpc_gateway_testing_ClientStreamingEchoResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return grpc.gateway.testing.Echo.internal_static_grpc_gateway_testing_ClientStreamingEchoResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
grpc.gateway.testing.Echo.ClientStreamingEchoResponse.class, grpc.gateway.testing.Echo.ClientStreamingEchoResponse.Builder.class);
}
// Construct using grpc.gateway.testing.Echo.ClientStreamingEchoResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
messageCount_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return grpc.gateway.testing.Echo.internal_static_grpc_gateway_testing_ClientStreamingEchoResponse_descriptor;
}
@java.lang.Override
public grpc.gateway.testing.Echo.ClientStreamingEchoResponse getDefaultInstanceForType() {
return grpc.gateway.testing.Echo.ClientStreamingEchoResponse.getDefaultInstance();
}
@java.lang.Override
public grpc.gateway.testing.Echo.ClientStreamingEchoResponse build() {
grpc.gateway.testing.Echo.ClientStreamingEchoResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public grpc.gateway.testing.Echo.ClientStreamingEchoResponse buildPartial() {
grpc.gateway.testing.Echo.ClientStreamingEchoResponse result = new grpc.gateway.testing.Echo.ClientStreamingEchoResponse(this);
result.messageCount_ = messageCount_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof grpc.gateway.testing.Echo.ClientStreamingEchoResponse) {
return mergeFrom((grpc.gateway.testing.Echo.ClientStreamingEchoResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(grpc.gateway.testing.Echo.ClientStreamingEchoResponse other) {
if (other == grpc.gateway.testing.Echo.ClientStreamingEchoResponse.getDefaultInstance()) return this;
if (other.getMessageCount() != 0) {
setMessageCount(other.getMessageCount());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
grpc.gateway.testing.Echo.ClientStreamingEchoResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (grpc.gateway.testing.Echo.ClientStreamingEchoResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int messageCount_ ;
/**
*
* Total number of client messages that have been received.
*
*
* int32 message_count = 1;
* @return The messageCount.
*/
public int getMessageCount() {
return messageCount_;
}
/**
*
* Total number of client messages that have been received.
*
*
* int32 message_count = 1;
* @param value The messageCount to set.
* @return This builder for chaining.
*/
public Builder setMessageCount(int value) {
messageCount_ = value;
onChanged();
return this;
}
/**
*
* Total number of client messages that have been received.
*
*
* int32 message_count = 1;
* @return This builder for chaining.
*/
public Builder clearMessageCount() {
messageCount_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:grpc.gateway.testing.ClientStreamingEchoResponse)
}
// @@protoc_insertion_point(class_scope:grpc.gateway.testing.ClientStreamingEchoResponse)
private static final grpc.gateway.testing.Echo.ClientStreamingEchoResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new grpc.gateway.testing.Echo.ClientStreamingEchoResponse();
}
public static grpc.gateway.testing.Echo.ClientStreamingEchoResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ClientStreamingEchoResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ClientStreamingEchoResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public grpc.gateway.testing.Echo.ClientStreamingEchoResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_grpc_gateway_testing_Empty_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_grpc_gateway_testing_Empty_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_grpc_gateway_testing_EchoRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_grpc_gateway_testing_EchoRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_grpc_gateway_testing_EchoResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_grpc_gateway_testing_EchoResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_grpc_gateway_testing_ServerStreamingEchoRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_grpc_gateway_testing_ServerStreamingEchoRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_grpc_gateway_testing_ServerStreamingEchoResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_grpc_gateway_testing_ServerStreamingEchoResponse_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_grpc_gateway_testing_ClientStreamingEchoRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_grpc_gateway_testing_ClientStreamingEchoRequest_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_grpc_gateway_testing_ClientStreamingEchoResponse_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_grpc_gateway_testing_ClientStreamingEchoResponse_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\necho.proto\022\024grpc.gateway.testing\"\007\n\005Em" +
"pty\"\036\n\013EchoRequest\022\017\n\007message\030\001 \001(\t\"6\n\014E" +
"choResponse\022\017\n\007message\030\001 \001(\t\022\025\n\rmessage_" +
"count\030\002 \001(\005\"^\n\032ServerStreamingEchoReques" +
"t\022\017\n\007message\030\001 \001(\t\022\025\n\rmessage_count\030\002 \001(" +
"\005\022\030\n\020message_interval\030\003 \001(\005\".\n\033ServerStr" +
"eamingEchoResponse\022\017\n\007message\030\001 \001(\t\"-\n\032C" +
"lientStreamingEchoRequest\022\017\n\007message\030\001 \001" +
"(\t\"4\n\033ClientStreamingEchoResponse\022\025\n\rmes" +
"sage_count\030\001 \001(\0052\260\006\n\013EchoService\022M\n\004Echo" +
"\022!.grpc.gateway.testing.EchoRequest\032\".gr" +
"pc.gateway.testing.EchoResponse\022T\n\tEchoA" +
"bort\022!.grpc.gateway.testing.EchoRequest\032" +
"\".grpc.gateway.testing.EchoResponse\"\000\022@\n" +
"\004NoOp\022\033.grpc.gateway.testing.Empty\032\033.grp" +
"c.gateway.testing.Empty\022|\n\023ServerStreami" +
"ngEcho\0220.grpc.gateway.testing.ServerStre" +
"amingEchoRequest\0321.grpc.gateway.testing." +
"ServerStreamingEchoResponse0\001\022\203\001\n\030Server" +
"StreamingEchoAbort\0220.grpc.gateway.testin" +
"g.ServerStreamingEchoRequest\0321.grpc.gate" +
"way.testing.ServerStreamingEchoResponse\"" +
"\0000\001\022|\n\023ClientStreamingEcho\0220.grpc.gatewa" +
"y.testing.ClientStreamingEchoRequest\0321.g" +
"rpc.gateway.testing.ClientStreamingEchoR" +
"esponse(\001\022[\n\016FullDuplexEcho\022!.grpc.gatew" +
"ay.testing.EchoRequest\032\".grpc.gateway.te" +
"sting.EchoResponse(\0010\001\022[\n\016HalfDuplexEcho" +
"\022!.grpc.gateway.testing.EchoRequest\032\".gr" +
"pc.gateway.testing.EchoResponse(\0010\001b\006pro" +
"to3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_grpc_gateway_testing_Empty_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_grpc_gateway_testing_Empty_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_gateway_testing_Empty_descriptor,
new java.lang.String[] { });
internal_static_grpc_gateway_testing_EchoRequest_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_grpc_gateway_testing_EchoRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_gateway_testing_EchoRequest_descriptor,
new java.lang.String[] { "Message", });
internal_static_grpc_gateway_testing_EchoResponse_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_grpc_gateway_testing_EchoResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_gateway_testing_EchoResponse_descriptor,
new java.lang.String[] { "Message", "MessageCount", });
internal_static_grpc_gateway_testing_ServerStreamingEchoRequest_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_grpc_gateway_testing_ServerStreamingEchoRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_gateway_testing_ServerStreamingEchoRequest_descriptor,
new java.lang.String[] { "Message", "MessageCount", "MessageInterval", });
internal_static_grpc_gateway_testing_ServerStreamingEchoResponse_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_grpc_gateway_testing_ServerStreamingEchoResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_gateway_testing_ServerStreamingEchoResponse_descriptor,
new java.lang.String[] { "Message", });
internal_static_grpc_gateway_testing_ClientStreamingEchoRequest_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_grpc_gateway_testing_ClientStreamingEchoRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_gateway_testing_ClientStreamingEchoRequest_descriptor,
new java.lang.String[] { "Message", });
internal_static_grpc_gateway_testing_ClientStreamingEchoResponse_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_grpc_gateway_testing_ClientStreamingEchoResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_grpc_gateway_testing_ClientStreamingEchoResponse_descriptor,
new java.lang.String[] { "MessageCount", });
}
// @@protoc_insertion_point(outer_class_scope)
}