// Generated by the protocol buffer compiler. DO NOT EDIT! // source: GreetingService.proto package com.example.grpc; public final class GreetingServiceOuterClass { private GreetingServiceOuterClass() {} 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 HelloRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:com.example.grpc.HelloRequest) com.google.protobuf.MessageOrBuilder { /** *
* Each message attribute is strongly typed. * You also must assign a "tag" number. * Each tag number is unique within the message. ** *
string name = 1;
*/
java.lang.String getName();
/**
* * Each message attribute is strongly typed. * You also must assign a "tag" number. * Each tag number is unique within the message. ** *
string name = 1;
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* * This defines a strongly typed list of String ** *
repeated string hobbies = 2;
*/
java.util.List* This defines a strongly typed list of String ** *
repeated string hobbies = 2;
*/
int getHobbiesCount();
/**
* * This defines a strongly typed list of String ** *
repeated string hobbies = 2;
*/
java.lang.String getHobbies(int index);
/**
* * This defines a strongly typed list of String ** *
repeated string hobbies = 2;
*/
com.google.protobuf.ByteString
getHobbiesBytes(int index);
}
/**
* * Request payload ** * Protobuf type {@code com.example.grpc.HelloRequest} */ public static final class HelloRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.example.grpc.HelloRequest) HelloRequestOrBuilder { private static final long serialVersionUID = 0L; // Use HelloRequest.newBuilder() to construct. private HelloRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } private HelloRequest() { name_ = ""; hobbies_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private HelloRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { hobbies_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } hobbies_.add(s); 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 { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { hobbies_ = hobbies_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.example.grpc.GreetingServiceOuterClass.internal_static_com_example_grpc_HelloRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.example.grpc.GreetingServiceOuterClass.internal_static_com_example_grpc_HelloRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.example.grpc.GreetingServiceOuterClass.HelloRequest.class, com.example.grpc.GreetingServiceOuterClass.HelloRequest.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
* Each message attribute is strongly typed. * You also must assign a "tag" number. * Each tag number is unique within the message. ** *
string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
name_ = s;
return s;
}
}
/**
* * Each message attribute is strongly typed. * You also must assign a "tag" number. * Each tag number is unique within the message. ** *
string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int HOBBIES_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList hobbies_;
/**
* * This defines a strongly typed list of String ** *
repeated string hobbies = 2;
*/
public com.google.protobuf.ProtocolStringList
getHobbiesList() {
return hobbies_;
}
/**
* * This defines a strongly typed list of String ** *
repeated string hobbies = 2;
*/
public int getHobbiesCount() {
return hobbies_.size();
}
/**
* * This defines a strongly typed list of String ** *
repeated string hobbies = 2;
*/
public java.lang.String getHobbies(int index) {
return hobbies_.get(index);
}
/**
* * This defines a strongly typed list of String ** *
repeated string hobbies = 2;
*/
public com.google.protobuf.ByteString
getHobbiesBytes(int index) {
return hobbies_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
for (int i = 0; i < hobbies_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, hobbies_.getRaw(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
{
int dataSize = 0;
for (int i = 0; i < hobbies_.size(); i++) {
dataSize += computeStringSizeNoTag(hobbies_.getRaw(i));
}
size += dataSize;
size += 1 * getHobbiesList().size();
}
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 com.example.grpc.GreetingServiceOuterClass.HelloRequest)) {
return super.equals(obj);
}
com.example.grpc.GreetingServiceOuterClass.HelloRequest other = (com.example.grpc.GreetingServiceOuterClass.HelloRequest) obj;
boolean result = true;
result = result && getName()
.equals(other.getName());
result = result && getHobbiesList()
.equals(other.getHobbiesList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
if (getHobbiesCount() > 0) {
hash = (37 * hash) + HOBBIES_FIELD_NUMBER;
hash = (53 * hash) + getHobbiesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.example.grpc.GreetingServiceOuterClass.HelloRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.example.grpc.GreetingServiceOuterClass.HelloRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.example.grpc.GreetingServiceOuterClass.HelloRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.example.grpc.GreetingServiceOuterClass.HelloRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.example.grpc.GreetingServiceOuterClass.HelloRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.example.grpc.GreetingServiceOuterClass.HelloRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.example.grpc.GreetingServiceOuterClass.HelloRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.example.grpc.GreetingServiceOuterClass.HelloRequest 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 com.example.grpc.GreetingServiceOuterClass.HelloRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.example.grpc.GreetingServiceOuterClass.HelloRequest 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 com.example.grpc.GreetingServiceOuterClass.HelloRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.example.grpc.GreetingServiceOuterClass.HelloRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.example.grpc.GreetingServiceOuterClass.HelloRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 payload ** * Protobuf type {@code com.example.grpc.HelloRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
* Each message attribute is strongly typed. * You also must assign a "tag" number. * Each tag number is unique within the message. ** *
string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* * Each message attribute is strongly typed. * You also must assign a "tag" number. * Each tag number is unique within the message. ** *
string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* * Each message attribute is strongly typed. * You also must assign a "tag" number. * Each tag number is unique within the message. ** *
string name = 1;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
* * Each message attribute is strongly typed. * You also must assign a "tag" number. * Each tag number is unique within the message. ** *
string name = 1;
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* * Each message attribute is strongly typed. * You also must assign a "tag" number. * Each tag number is unique within the message. ** *
string name = 1;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList hobbies_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureHobbiesIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
hobbies_ = new com.google.protobuf.LazyStringArrayList(hobbies_);
bitField0_ |= 0x00000002;
}
}
/**
* * This defines a strongly typed list of String ** *
repeated string hobbies = 2;
*/
public com.google.protobuf.ProtocolStringList
getHobbiesList() {
return hobbies_.getUnmodifiableView();
}
/**
* * This defines a strongly typed list of String ** *
repeated string hobbies = 2;
*/
public int getHobbiesCount() {
return hobbies_.size();
}
/**
* * This defines a strongly typed list of String ** *
repeated string hobbies = 2;
*/
public java.lang.String getHobbies(int index) {
return hobbies_.get(index);
}
/**
* * This defines a strongly typed list of String ** *
repeated string hobbies = 2;
*/
public com.google.protobuf.ByteString
getHobbiesBytes(int index) {
return hobbies_.getByteString(index);
}
/**
* * This defines a strongly typed list of String ** *
repeated string hobbies = 2;
*/
public Builder setHobbies(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureHobbiesIsMutable();
hobbies_.set(index, value);
onChanged();
return this;
}
/**
* * This defines a strongly typed list of String ** *
repeated string hobbies = 2;
*/
public Builder addHobbies(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureHobbiesIsMutable();
hobbies_.add(value);
onChanged();
return this;
}
/**
* * This defines a strongly typed list of String ** *
repeated string hobbies = 2;
*/
public Builder addAllHobbies(
java.lang.Iterable* This defines a strongly typed list of String ** *
repeated string hobbies = 2;
*/
public Builder clearHobbies() {
hobbies_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* * This defines a strongly typed list of String ** *
repeated string hobbies = 2;
*/
public Builder addHobbiesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureHobbiesIsMutable();
hobbies_.add(value);
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:com.example.grpc.HelloRequest)
}
// @@protoc_insertion_point(class_scope:com.example.grpc.HelloRequest)
private static final com.example.grpc.GreetingServiceOuterClass.HelloRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.example.grpc.GreetingServiceOuterClass.HelloRequest();
}
public static com.example.grpc.GreetingServiceOuterClass.HelloRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parserstring greeting = 1;
*/
java.lang.String getGreeting();
/**
* string greeting = 1;
*/
com.google.protobuf.ByteString
getGreetingBytes();
}
/**
* Protobuf type {@code com.example.grpc.HelloResponse}
*/
public static final class HelloResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.example.grpc.HelloResponse)
HelloResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use HelloResponse.newBuilder() to construct.
private HelloResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private HelloResponse() {
greeting_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private HelloResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
greeting_ = s;
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 com.example.grpc.GreetingServiceOuterClass.internal_static_com_example_grpc_HelloResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.example.grpc.GreetingServiceOuterClass.internal_static_com_example_grpc_HelloResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.example.grpc.GreetingServiceOuterClass.HelloResponse.class, com.example.grpc.GreetingServiceOuterClass.HelloResponse.Builder.class);
}
public static final int GREETING_FIELD_NUMBER = 1;
private volatile java.lang.Object greeting_;
/**
* string greeting = 1;
*/
public java.lang.String getGreeting() {
java.lang.Object ref = greeting_;
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();
greeting_ = s;
return s;
}
}
/**
* string greeting = 1;
*/
public com.google.protobuf.ByteString
getGreetingBytes() {
java.lang.Object ref = greeting_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
greeting_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getGreetingBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, greeting_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getGreetingBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, greeting_);
}
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 com.example.grpc.GreetingServiceOuterClass.HelloResponse)) {
return super.equals(obj);
}
com.example.grpc.GreetingServiceOuterClass.HelloResponse other = (com.example.grpc.GreetingServiceOuterClass.HelloResponse) obj;
boolean result = true;
result = result && getGreeting()
.equals(other.getGreeting());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + GREETING_FIELD_NUMBER;
hash = (53 * hash) + getGreeting().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.example.grpc.GreetingServiceOuterClass.HelloResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.example.grpc.GreetingServiceOuterClass.HelloResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.example.grpc.GreetingServiceOuterClass.HelloResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.example.grpc.GreetingServiceOuterClass.HelloResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.example.grpc.GreetingServiceOuterClass.HelloResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.example.grpc.GreetingServiceOuterClass.HelloResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.example.grpc.GreetingServiceOuterClass.HelloResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.example.grpc.GreetingServiceOuterClass.HelloResponse 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 com.example.grpc.GreetingServiceOuterClass.HelloResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.example.grpc.GreetingServiceOuterClass.HelloResponse 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 com.example.grpc.GreetingServiceOuterClass.HelloResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.example.grpc.GreetingServiceOuterClass.HelloResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.example.grpc.GreetingServiceOuterClass.HelloResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 com.example.grpc.HelloResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builderstring greeting = 1;
*/
public java.lang.String getGreeting() {
java.lang.Object ref = greeting_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
greeting_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string greeting = 1;
*/
public com.google.protobuf.ByteString
getGreetingBytes() {
java.lang.Object ref = greeting_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
greeting_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string greeting = 1;
*/
public Builder setGreeting(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
greeting_ = value;
onChanged();
return this;
}
/**
* string greeting = 1;
*/
public Builder clearGreeting() {
greeting_ = getDefaultInstance().getGreeting();
onChanged();
return this;
}
/**
* string greeting = 1;
*/
public Builder setGreetingBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
greeting_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:com.example.grpc.HelloResponse)
}
// @@protoc_insertion_point(class_scope:com.example.grpc.HelloResponse)
private static final com.example.grpc.GreetingServiceOuterClass.HelloResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.example.grpc.GreetingServiceOuterClass.HelloResponse();
}
public static com.example.grpc.GreetingServiceOuterClass.HelloResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser