blob: 28da5a91d3e8538005a5aa7b1e34dbfb30f14a7c [file] [log] [blame]
// Generated by the protocol buffer compiler. DO NOT EDIT!
package io.grpc.helloworldexample;
@SuppressWarnings("hiding")
public interface Helloworld {
public static final class HelloRequest extends
com.google.protobuf.nano.MessageNano {
private static volatile HelloRequest[] _emptyArray;
public static HelloRequest[] emptyArray() {
// Lazily initializes the empty array
if (_emptyArray == null) {
synchronized (
com.google.protobuf.nano.InternalNano.LAZY_INIT_LOCK) {
if (_emptyArray == null) {
_emptyArray = new HelloRequest[0];
}
}
}
return _emptyArray;
}
// optional string name = 1;
public java.lang.String name;
public HelloRequest() {
clear();
}
public HelloRequest clear() {
name = "";
cachedSize = -1;
return this;
}
@Override
public void writeTo(com.google.protobuf.nano.CodedOutputByteBufferNano output)
throws java.io.IOException {
if (!this.name.equals("")) {
output.writeString(1, this.name);
}
super.writeTo(output);
}
@Override
protected int computeSerializedSize() {
int size = super.computeSerializedSize();
if (!this.name.equals("")) {
size += com.google.protobuf.nano.CodedOutputByteBufferNano
.computeStringSize(1, this.name);
}
return size;
}
@Override
public HelloRequest mergeFrom(
com.google.protobuf.nano.CodedInputByteBufferNano input)
throws java.io.IOException {
while (true) {
int tag = input.readTag();
switch (tag) {
case 0:
return this;
default: {
if (!com.google.protobuf.nano.WireFormatNano.parseUnknownField(input, tag)) {
return this;
}
break;
}
case 10: {
this.name = input.readString();
break;
}
}
}
}
public static HelloRequest parseFrom(byte[] data)
throws com.google.protobuf.nano.InvalidProtocolBufferNanoException {
return com.google.protobuf.nano.MessageNano.mergeFrom(new HelloRequest(), data);
}
public static HelloRequest parseFrom(
com.google.protobuf.nano.CodedInputByteBufferNano input)
throws java.io.IOException {
return new HelloRequest().mergeFrom(input);
}
}
public static final class HelloReply extends
com.google.protobuf.nano.MessageNano {
private static volatile HelloReply[] _emptyArray;
public static HelloReply[] emptyArray() {
// Lazily initializes the empty array
if (_emptyArray == null) {
synchronized (
com.google.protobuf.nano.InternalNano.LAZY_INIT_LOCK) {
if (_emptyArray == null) {
_emptyArray = new HelloReply[0];
}
}
}
return _emptyArray;
}
// optional string message = 1;
public java.lang.String message;
public HelloReply() {
clear();
}
public HelloReply clear() {
message = "";
cachedSize = -1;
return this;
}
@Override
public void writeTo(com.google.protobuf.nano.CodedOutputByteBufferNano output)
throws java.io.IOException {
if (!this.message.equals("")) {
output.writeString(1, this.message);
}
super.writeTo(output);
}
@Override
protected int computeSerializedSize() {
int size = super.computeSerializedSize();
if (!this.message.equals("")) {
size += com.google.protobuf.nano.CodedOutputByteBufferNano
.computeStringSize(1, this.message);
}
return size;
}
@Override
public HelloReply mergeFrom(
com.google.protobuf.nano.CodedInputByteBufferNano input)
throws java.io.IOException {
while (true) {
int tag = input.readTag();
switch (tag) {
case 0:
return this;
default: {
if (!com.google.protobuf.nano.WireFormatNano.parseUnknownField(input, tag)) {
return this;
}
break;
}
case 10: {
this.message = input.readString();
break;
}
}
}
}
public static HelloReply parseFrom(byte[] data)
throws com.google.protobuf.nano.InvalidProtocolBufferNanoException {
return com.google.protobuf.nano.MessageNano.mergeFrom(new HelloReply(), data);
}
public static HelloReply parseFrom(
com.google.protobuf.nano.CodedInputByteBufferNano input)
throws java.io.IOException {
return new HelloReply().mergeFrom(input);
}
}
}