// 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 getHobbiesList(); /** *
     * 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 implements // @@protoc_insertion_point(builder_implements:com.example.grpc.HelloRequest) com.example.grpc.GreetingServiceOuterClass.HelloRequestOrBuilder { 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); } // Construct using com.example.grpc.GreetingServiceOuterClass.HelloRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); name_ = ""; hobbies_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.example.grpc.GreetingServiceOuterClass.internal_static_com_example_grpc_HelloRequest_descriptor; } public com.example.grpc.GreetingServiceOuterClass.HelloRequest getDefaultInstanceForType() { return com.example.grpc.GreetingServiceOuterClass.HelloRequest.getDefaultInstance(); } public com.example.grpc.GreetingServiceOuterClass.HelloRequest build() { com.example.grpc.GreetingServiceOuterClass.HelloRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.example.grpc.GreetingServiceOuterClass.HelloRequest buildPartial() { com.example.grpc.GreetingServiceOuterClass.HelloRequest result = new com.example.grpc.GreetingServiceOuterClass.HelloRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.name_ = name_; if (((bitField0_ & 0x00000002) == 0x00000002)) { hobbies_ = hobbies_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.hobbies_ = hobbies_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.example.grpc.GreetingServiceOuterClass.HelloRequest) { return mergeFrom((com.example.grpc.GreetingServiceOuterClass.HelloRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.example.grpc.GreetingServiceOuterClass.HelloRequest other) { if (other == com.example.grpc.GreetingServiceOuterClass.HelloRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.hobbies_.isEmpty()) { if (hobbies_.isEmpty()) { hobbies_ = other.hobbies_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureHobbiesIsMutable(); hobbies_.addAll(other.hobbies_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.example.grpc.GreetingServiceOuterClass.HelloRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.example.grpc.GreetingServiceOuterClass.HelloRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private 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)) { 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 values) { ensureHobbiesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, hobbies_); onChanged(); return this; } /** *
       * 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.Parser PARSER = new com.google.protobuf.AbstractParser() { public HelloRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new HelloRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public com.example.grpc.GreetingServiceOuterClass.HelloRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface HelloResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:com.example.grpc.HelloResponse) com.google.protobuf.MessageOrBuilder { /** * string 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.Builder implements // @@protoc_insertion_point(builder_implements:com.example.grpc.HelloResponse) com.example.grpc.GreetingServiceOuterClass.HelloResponseOrBuilder { 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); } // Construct using com.example.grpc.GreetingServiceOuterClass.HelloResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); greeting_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.example.grpc.GreetingServiceOuterClass.internal_static_com_example_grpc_HelloResponse_descriptor; } public com.example.grpc.GreetingServiceOuterClass.HelloResponse getDefaultInstanceForType() { return com.example.grpc.GreetingServiceOuterClass.HelloResponse.getDefaultInstance(); } public com.example.grpc.GreetingServiceOuterClass.HelloResponse build() { com.example.grpc.GreetingServiceOuterClass.HelloResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.example.grpc.GreetingServiceOuterClass.HelloResponse buildPartial() { com.example.grpc.GreetingServiceOuterClass.HelloResponse result = new com.example.grpc.GreetingServiceOuterClass.HelloResponse(this); result.greeting_ = greeting_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.example.grpc.GreetingServiceOuterClass.HelloResponse) { return mergeFrom((com.example.grpc.GreetingServiceOuterClass.HelloResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.example.grpc.GreetingServiceOuterClass.HelloResponse other) { if (other == com.example.grpc.GreetingServiceOuterClass.HelloResponse.getDefaultInstance()) return this; if (!other.getGreeting().isEmpty()) { greeting_ = other.greeting_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.example.grpc.GreetingServiceOuterClass.HelloResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.example.grpc.GreetingServiceOuterClass.HelloResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object greeting_ = ""; /** * string 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 PARSER = new com.google.protobuf.AbstractParser() { public HelloResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new HelloResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public com.example.grpc.GreetingServiceOuterClass.HelloResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_example_grpc_HelloRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_example_grpc_HelloRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_com_example_grpc_HelloResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_com_example_grpc_HelloResponse_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\025GreetingService.proto\022\020com.example.grp" + "c\"-\n\014HelloRequest\022\014\n\004name\030\001 \001(\t\022\017\n\007hobbi" + "es\030\002 \003(\t\"!\n\rHelloResponse\022\020\n\010greeting\030\001 " + "\001(\t2\263\001\n\017GreetingService\022K\n\010greeting\022\036.co" + "m.example.grpc.HelloRequest\032\037.com.exampl" + "e.grpc.HelloResponse\022S\n\016streamGreeting\022\036" + ".com.example.grpc.HelloRequest\032\037.com.exa" + "mple.grpc.HelloResponse0\001b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); internal_static_com_example_grpc_HelloRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_com_example_grpc_HelloRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_example_grpc_HelloRequest_descriptor, new java.lang.String[] { "Name", "Hobbies", }); internal_static_com_example_grpc_HelloResponse_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_com_example_grpc_HelloResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_com_example_grpc_HelloResponse_descriptor, new java.lang.String[] { "Greeting", }); } // @@protoc_insertion_point(outer_class_scope) }