// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: routeguide.proto

package com.baeldung.protobuf;

public final class AddressBookProtos {
    private AddressBookProtos() {
    }

    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 PersonOrBuilder extends
            // @@protoc_insertion_point(interface_extends:protobuf.Person)
            com.google.protobuf.MessageOrBuilder {

        /**
         * <code>required string name = 1;</code>
         */
        boolean hasName();

        /**
         * <code>required string name = 1;</code>
         */
        java.lang.String getName();

        /**
         * <code>required string name = 1;</code>
         */
        com.google.protobuf.ByteString
        getNameBytes();

        /**
         * <code>required int32 id = 2;</code>
         */
        boolean hasId();

        /**
         * <code>required int32 id = 2;</code>
         */
        int getId();

        /**
         * <code>optional string email = 3;</code>
         */
        boolean hasEmail();

        /**
         * <code>optional string email = 3;</code>
         */
        java.lang.String getEmail();

        /**
         * <code>optional string email = 3;</code>
         */
        com.google.protobuf.ByteString
        getEmailBytes();

        /**
         * <code>repeated string numbers = 4;</code>
         */
        java.util.List<java.lang.String>
        getNumbersList();

        /**
         * <code>repeated string numbers = 4;</code>
         */
        int getNumbersCount();

        /**
         * <code>repeated string numbers = 4;</code>
         */
        java.lang.String getNumbers(int index);

        /**
         * <code>repeated string numbers = 4;</code>
         */
        com.google.protobuf.ByteString
        getNumbersBytes(int index);
    }

    /**
     * Protobuf type {@code protobuf.Person}
     */
    public static final class Person extends
            com.google.protobuf.GeneratedMessageV3 implements
            // @@protoc_insertion_point(message_implements:protobuf.Person)
            PersonOrBuilder {
        // Use Person.newBuilder() to construct.
        private Person(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
            super(builder);
        }

        private Person() {
            name_ = "";
            id_ = 0;
            email_ = "";
            numbers_ = com.google.protobuf.LazyStringArrayList.EMPTY;
        }

        @java.lang.Override
        public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
            return this.unknownFields;
        }

        private Person(
                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 (!parseUnknownField(input, unknownFields,
                                    extensionRegistry, tag)) {
                                done = true;
                            }
                            break;
                        }
                        case 10: {
                            com.google.protobuf.ByteString bs = input.readBytes();
                            bitField0_ |= 0x00000001;
                            name_ = bs;
                            break;
                        }
                        case 16: {
                            bitField0_ |= 0x00000002;
                            id_ = input.readInt32();
                            break;
                        }
                        case 26: {
                            com.google.protobuf.ByteString bs = input.readBytes();
                            bitField0_ |= 0x00000004;
                            email_ = bs;
                            break;
                        }
                        case 34: {
                            com.google.protobuf.ByteString bs = input.readBytes();
                            if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
                                numbers_ = new com.google.protobuf.LazyStringArrayList();
                                mutable_bitField0_ |= 0x00000008;
                            }
                            numbers_.add(bs);
                            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_ & 0x00000008) == 0x00000008)) {
                    numbers_ = numbers_.getUnmodifiableView();
                }
                this.unknownFields = unknownFields.build();
                makeExtensionsImmutable();
            }
        }

        public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
            return com.baeldung.protobuf.AddressBookProtos.internal_static_protobuf_Person_descriptor;
        }

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
            return com.baeldung.protobuf.AddressBookProtos.internal_static_protobuf_Person_fieldAccessorTable
                    .ensureFieldAccessorsInitialized(
                            com.baeldung.protobuf.AddressBookProtos.Person.class, com.baeldung.protobuf.AddressBookProtos.Person.Builder.class);
        }

        private int bitField0_;
        public static final int NAME_FIELD_NUMBER = 1;
        private volatile java.lang.Object name_;

        /**
         * <code>required string name = 1;</code>
         */
        public boolean hasName() {
            return ((bitField0_ & 0x00000001) == 0x00000001);
        }

        /**
         * <code>required string name = 1;</code>
         */
        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();
                if (bs.isValidUtf8()) {
                    name_ = s;
                }
                return s;
            }
        }

        /**
         * <code>required string name = 1;</code>
         */
        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 ID_FIELD_NUMBER = 2;
        private int id_;

        /**
         * <code>required int32 id = 2;</code>
         */
        public boolean hasId() {
            return ((bitField0_ & 0x00000002) == 0x00000002);
        }

        /**
         * <code>required int32 id = 2;</code>
         */
        public int getId() {
            return id_;
        }

        public static final int EMAIL_FIELD_NUMBER = 3;
        private volatile java.lang.Object email_;

        /**
         * <code>optional string email = 3;</code>
         */
        public boolean hasEmail() {
            return ((bitField0_ & 0x00000004) == 0x00000004);
        }

        /**
         * <code>optional string email = 3;</code>
         */
        public java.lang.String getEmail() {
            java.lang.Object ref = email_;
            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();
                if (bs.isValidUtf8()) {
                    email_ = s;
                }
                return s;
            }
        }

        /**
         * <code>optional string email = 3;</code>
         */
        public com.google.protobuf.ByteString
        getEmailBytes() {
            java.lang.Object ref = email_;
            if (ref instanceof java.lang.String) {
                com.google.protobuf.ByteString b =
                        com.google.protobuf.ByteString.copyFromUtf8(
                                (java.lang.String) ref);
                email_ = b;
                return b;
            } else {
                return (com.google.protobuf.ByteString) ref;
            }
        }

        public static final int NUMBERS_FIELD_NUMBER = 4;
        private com.google.protobuf.LazyStringList numbers_;

        /**
         * <code>repeated string numbers = 4;</code>
         */
        public com.google.protobuf.ProtocolStringList
        getNumbersList() {
            return numbers_;
        }

        /**
         * <code>repeated string numbers = 4;</code>
         */
        public int getNumbersCount() {
            return numbers_.size();
        }

        /**
         * <code>repeated string numbers = 4;</code>
         */
        public java.lang.String getNumbers(int index) {
            return numbers_.get(index);
        }

        /**
         * <code>repeated string numbers = 4;</code>
         */
        public com.google.protobuf.ByteString
        getNumbersBytes(int index) {
            return numbers_.getByteString(index);
        }

        private byte memoizedIsInitialized = -1;

        public final boolean isInitialized() {
            byte isInitialized = memoizedIsInitialized;
            if (isInitialized == 1) return true;
            if (isInitialized == 0) return false;

            if (!hasName()) {
                memoizedIsInitialized = 0;
                return false;
            }
            if (!hasId()) {
                memoizedIsInitialized = 0;
                return false;
            }
            memoizedIsInitialized = 1;
            return true;
        }

        public void writeTo(com.google.protobuf.CodedOutputStream output)
                throws java.io.IOException {
            if (((bitField0_ & 0x00000001) == 0x00000001)) {
                com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
            }
            if (((bitField0_ & 0x00000002) == 0x00000002)) {
                output.writeInt32(2, id_);
            }
            if (((bitField0_ & 0x00000004) == 0x00000004)) {
                com.google.protobuf.GeneratedMessageV3.writeString(output, 3, email_);
            }
            for (int i = 0; i < numbers_.size(); i++) {
                com.google.protobuf.GeneratedMessageV3.writeString(output, 4, numbers_.getRaw(i));
            }
            unknownFields.writeTo(output);
        }

        public int getSerializedSize() {
            int size = memoizedSize;
            if (size != -1) return size;

            size = 0;
            if (((bitField0_ & 0x00000001) == 0x00000001)) {
                size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
            }
            if (((bitField0_ & 0x00000002) == 0x00000002)) {
                size += com.google.protobuf.CodedOutputStream
                        .computeInt32Size(2, id_);
            }
            if (((bitField0_ & 0x00000004) == 0x00000004)) {
                size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, email_);
            }
            {
                int dataSize = 0;
                for (int i = 0; i < numbers_.size(); i++) {
                    dataSize += computeStringSizeNoTag(numbers_.getRaw(i));
                }
                size += dataSize;
                size += 1 * getNumbersList().size();
            }
            size += unknownFields.getSerializedSize();
            memoizedSize = size;
            return size;
        }

        private static final long serialVersionUID = 0L;

        @java.lang.Override
        public boolean equals(final java.lang.Object obj) {
            if (obj == this) {
                return true;
            }
            if (!(obj instanceof com.baeldung.protobuf.AddressBookProtos.Person)) {
                return super.equals(obj);
            }
            com.baeldung.protobuf.AddressBookProtos.Person other = (com.baeldung.protobuf.AddressBookProtos.Person) obj;

            boolean result = true;
            result = result && (hasName() == other.hasName());
            if (hasName()) {
                result = result && getName()
                        .equals(other.getName());
            }
            result = result && (hasId() == other.hasId());
            if (hasId()) {
                result = result && (getId()
                        == other.getId());
            }
            result = result && (hasEmail() == other.hasEmail());
            if (hasEmail()) {
                result = result && getEmail()
                        .equals(other.getEmail());
            }
            result = result && getNumbersList()
                    .equals(other.getNumbersList());
            result = result && unknownFields.equals(other.unknownFields);
            return result;
        }

        @java.lang.Override
        public int hashCode() {
            if (memoizedHashCode != 0) {
                return memoizedHashCode;
            }
            int hash = 41;
            hash = (19 * hash) + getDescriptorForType().hashCode();
            if (hasName()) {
                hash = (37 * hash) + NAME_FIELD_NUMBER;
                hash = (53 * hash) + getName().hashCode();
            }
            if (hasId()) {
                hash = (37 * hash) + ID_FIELD_NUMBER;
                hash = (53 * hash) + getId();
            }
            if (hasEmail()) {
                hash = (37 * hash) + EMAIL_FIELD_NUMBER;
                hash = (53 * hash) + getEmail().hashCode();
            }
            if (getNumbersCount() > 0) {
                hash = (37 * hash) + NUMBERS_FIELD_NUMBER;
                hash = (53 * hash) + getNumbersList().hashCode();
            }
            hash = (29 * hash) + unknownFields.hashCode();
            memoizedHashCode = hash;
            return hash;
        }

        public static com.baeldung.protobuf.AddressBookProtos.Person parseFrom(
                com.google.protobuf.ByteString data)
                throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data);
        }

        public static com.baeldung.protobuf.AddressBookProtos.Person parseFrom(
                com.google.protobuf.ByteString data,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data, extensionRegistry);
        }

        public static com.baeldung.protobuf.AddressBookProtos.Person parseFrom(byte[] data)
                throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data);
        }

        public static com.baeldung.protobuf.AddressBookProtos.Person parseFrom(
                byte[] data,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data, extensionRegistry);
        }

        public static com.baeldung.protobuf.AddressBookProtos.Person parseFrom(java.io.InputStream input)
                throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3
                    .parseWithIOException(PARSER, input);
        }

        public static com.baeldung.protobuf.AddressBookProtos.Person 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.baeldung.protobuf.AddressBookProtos.Person parseDelimitedFrom(java.io.InputStream input)
                throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3
                    .parseDelimitedWithIOException(PARSER, input);
        }

        public static com.baeldung.protobuf.AddressBookProtos.Person 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.baeldung.protobuf.AddressBookProtos.Person parseFrom(
                com.google.protobuf.CodedInputStream input)
                throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3
                    .parseWithIOException(PARSER, input);
        }

        public static com.baeldung.protobuf.AddressBookProtos.Person 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.baeldung.protobuf.AddressBookProtos.Person 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 protobuf.Person}
         */
        public static final class Builder extends
                com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
                // @@protoc_insertion_point(builder_implements:protobuf.Person)
                com.baeldung.protobuf.AddressBookProtos.PersonOrBuilder {
            public static final com.google.protobuf.Descriptors.Descriptor
            getDescriptor() {
                return com.baeldung.protobuf.AddressBookProtos.internal_static_protobuf_Person_descriptor;
            }

            protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
                return com.baeldung.protobuf.AddressBookProtos.internal_static_protobuf_Person_fieldAccessorTable
                        .ensureFieldAccessorsInitialized(
                                com.baeldung.protobuf.AddressBookProtos.Person.class, com.baeldung.protobuf.AddressBookProtos.Person.Builder.class);
            }

            // Construct using com.baeldung.protobuf.AddressBookProtos.Person.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_ = "";
                bitField0_ = (bitField0_ & ~0x00000001);
                id_ = 0;
                bitField0_ = (bitField0_ & ~0x00000002);
                email_ = "";
                bitField0_ = (bitField0_ & ~0x00000004);
                numbers_ = com.google.protobuf.LazyStringArrayList.EMPTY;
                bitField0_ = (bitField0_ & ~0x00000008);
                return this;
            }

            public com.google.protobuf.Descriptors.Descriptor
            getDescriptorForType() {
                return com.baeldung.protobuf.AddressBookProtos.internal_static_protobuf_Person_descriptor;
            }

            public com.baeldung.protobuf.AddressBookProtos.Person getDefaultInstanceForType() {
                return com.baeldung.protobuf.AddressBookProtos.Person.getDefaultInstance();
            }

            public com.baeldung.protobuf.AddressBookProtos.Person build() {
                com.baeldung.protobuf.AddressBookProtos.Person result = buildPartial();
                if (!result.isInitialized()) {
                    throw newUninitializedMessageException(result);
                }
                return result;
            }

            public com.baeldung.protobuf.AddressBookProtos.Person buildPartial() {
                com.baeldung.protobuf.AddressBookProtos.Person result = new com.baeldung.protobuf.AddressBookProtos.Person(this);
                int from_bitField0_ = bitField0_;
                int to_bitField0_ = 0;
                if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
                    to_bitField0_ |= 0x00000001;
                }
                result.name_ = name_;
                if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
                    to_bitField0_ |= 0x00000002;
                }
                result.id_ = id_;
                if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
                    to_bitField0_ |= 0x00000004;
                }
                result.email_ = email_;
                if (((bitField0_ & 0x00000008) == 0x00000008)) {
                    numbers_ = numbers_.getUnmodifiableView();
                    bitField0_ = (bitField0_ & ~0x00000008);
                }
                result.numbers_ = numbers_;
                result.bitField0_ = to_bitField0_;
                onBuilt();
                return result;
            }

            public Builder clone() {
                return (Builder) super.clone();
            }

            public Builder setField(
                    com.google.protobuf.Descriptors.FieldDescriptor field,
                    Object value) {
                return (Builder) super.setField(field, value);
            }

            public Builder clearField(
                    com.google.protobuf.Descriptors.FieldDescriptor field) {
                return (Builder) super.clearField(field);
            }

            public Builder clearOneof(
                    com.google.protobuf.Descriptors.OneofDescriptor oneof) {
                return (Builder) super.clearOneof(oneof);
            }

            public Builder setRepeatedField(
                    com.google.protobuf.Descriptors.FieldDescriptor field,
                    int index, Object value) {
                return (Builder) super.setRepeatedField(field, index, value);
            }

            public Builder addRepeatedField(
                    com.google.protobuf.Descriptors.FieldDescriptor field,
                    Object value) {
                return (Builder) super.addRepeatedField(field, value);
            }

            public Builder mergeFrom(com.google.protobuf.Message other) {
                if (other instanceof com.baeldung.protobuf.AddressBookProtos.Person) {
                    return mergeFrom((com.baeldung.protobuf.AddressBookProtos.Person) other);
                } else {
                    super.mergeFrom(other);
                    return this;
                }
            }

            public Builder mergeFrom(com.baeldung.protobuf.AddressBookProtos.Person other) {
                if (other == com.baeldung.protobuf.AddressBookProtos.Person.getDefaultInstance()) return this;
                if (other.hasName()) {
                    bitField0_ |= 0x00000001;
                    name_ = other.name_;
                    onChanged();
                }
                if (other.hasId()) {
                    setId(other.getId());
                }
                if (other.hasEmail()) {
                    bitField0_ |= 0x00000004;
                    email_ = other.email_;
                    onChanged();
                }
                if (!other.numbers_.isEmpty()) {
                    if (numbers_.isEmpty()) {
                        numbers_ = other.numbers_;
                        bitField0_ = (bitField0_ & ~0x00000008);
                    } else {
                        ensureNumbersIsMutable();
                        numbers_.addAll(other.numbers_);
                    }
                    onChanged();
                }
                this.mergeUnknownFields(other.unknownFields);
                onChanged();
                return this;
            }

            public final boolean isInitialized() {
                if (!hasName()) {
                    return false;
                }
                if (!hasId()) {
                    return false;
                }
                return true;
            }

            public Builder mergeFrom(
                    com.google.protobuf.CodedInputStream input,
                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                    throws java.io.IOException {
                com.baeldung.protobuf.AddressBookProtos.Person parsedMessage = null;
                try {
                    parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
                } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                    parsedMessage = (com.baeldung.protobuf.AddressBookProtos.Person) e.getUnfinishedMessage();
                    throw e.unwrapIOException();
                } finally {
                    if (parsedMessage != null) {
                        mergeFrom(parsedMessage);
                    }
                }
                return this;
            }

            private int bitField0_;

            private java.lang.Object name_ = "";

            /**
             * <code>required string name = 1;</code>
             */
            public boolean hasName() {
                return ((bitField0_ & 0x00000001) == 0x00000001);
            }

            /**
             * <code>required string name = 1;</code>
             */
            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();
                    if (bs.isValidUtf8()) {
                        name_ = s;
                    }
                    return s;
                } else {
                    return (java.lang.String) ref;
                }
            }

            /**
             * <code>required string name = 1;</code>
             */
            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;
                }
            }

            /**
             * <code>required string name = 1;</code>
             */
            public Builder setName(
                    java.lang.String value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                bitField0_ |= 0x00000001;
                name_ = value;
                onChanged();
                return this;
            }

            /**
             * <code>required string name = 1;</code>
             */
            public Builder clearName() {
                bitField0_ = (bitField0_ & ~0x00000001);
                name_ = getDefaultInstance().getName();
                onChanged();
                return this;
            }

            /**
             * <code>required string name = 1;</code>
             */
            public Builder setNameBytes(
                    com.google.protobuf.ByteString value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                bitField0_ |= 0x00000001;
                name_ = value;
                onChanged();
                return this;
            }

            private int id_;

            /**
             * <code>required int32 id = 2;</code>
             */
            public boolean hasId() {
                return ((bitField0_ & 0x00000002) == 0x00000002);
            }

            /**
             * <code>required int32 id = 2;</code>
             */
            public int getId() {
                return id_;
            }

            /**
             * <code>required int32 id = 2;</code>
             */
            public Builder setId(int value) {
                bitField0_ |= 0x00000002;
                id_ = value;
                onChanged();
                return this;
            }

            /**
             * <code>required int32 id = 2;</code>
             */
            public Builder clearId() {
                bitField0_ = (bitField0_ & ~0x00000002);
                id_ = 0;
                onChanged();
                return this;
            }

            private java.lang.Object email_ = "";

            /**
             * <code>optional string email = 3;</code>
             */
            public boolean hasEmail() {
                return ((bitField0_ & 0x00000004) == 0x00000004);
            }

            /**
             * <code>optional string email = 3;</code>
             */
            public java.lang.String getEmail() {
                java.lang.Object ref = email_;
                if (!(ref instanceof java.lang.String)) {
                    com.google.protobuf.ByteString bs =
                            (com.google.protobuf.ByteString) ref;
                    java.lang.String s = bs.toStringUtf8();
                    if (bs.isValidUtf8()) {
                        email_ = s;
                    }
                    return s;
                } else {
                    return (java.lang.String) ref;
                }
            }

            /**
             * <code>optional string email = 3;</code>
             */
            public com.google.protobuf.ByteString
            getEmailBytes() {
                java.lang.Object ref = email_;
                if (ref instanceof String) {
                    com.google.protobuf.ByteString b =
                            com.google.protobuf.ByteString.copyFromUtf8(
                                    (java.lang.String) ref);
                    email_ = b;
                    return b;
                } else {
                    return (com.google.protobuf.ByteString) ref;
                }
            }

            /**
             * <code>optional string email = 3;</code>
             */
            public Builder setEmail(
                    java.lang.String value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                bitField0_ |= 0x00000004;
                email_ = value;
                onChanged();
                return this;
            }

            /**
             * <code>optional string email = 3;</code>
             */
            public Builder clearEmail() {
                bitField0_ = (bitField0_ & ~0x00000004);
                email_ = getDefaultInstance().getEmail();
                onChanged();
                return this;
            }

            /**
             * <code>optional string email = 3;</code>
             */
            public Builder setEmailBytes(
                    com.google.protobuf.ByteString value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                bitField0_ |= 0x00000004;
                email_ = value;
                onChanged();
                return this;
            }

            private com.google.protobuf.LazyStringList numbers_ = com.google.protobuf.LazyStringArrayList.EMPTY;

            private void ensureNumbersIsMutable() {
                if (!((bitField0_ & 0x00000008) == 0x00000008)) {
                    numbers_ = new com.google.protobuf.LazyStringArrayList(numbers_);
                    bitField0_ |= 0x00000008;
                }
            }

            /**
             * <code>repeated string numbers = 4;</code>
             */
            public com.google.protobuf.ProtocolStringList
            getNumbersList() {
                return numbers_.getUnmodifiableView();
            }

            /**
             * <code>repeated string numbers = 4;</code>
             */
            public int getNumbersCount() {
                return numbers_.size();
            }

            /**
             * <code>repeated string numbers = 4;</code>
             */
            public java.lang.String getNumbers(int index) {
                return numbers_.get(index);
            }

            /**
             * <code>repeated string numbers = 4;</code>
             */
            public com.google.protobuf.ByteString
            getNumbersBytes(int index) {
                return numbers_.getByteString(index);
            }

            /**
             * <code>repeated string numbers = 4;</code>
             */
            public Builder setNumbers(
                    int index, java.lang.String value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                ensureNumbersIsMutable();
                numbers_.set(index, value);
                onChanged();
                return this;
            }

            /**
             * <code>repeated string numbers = 4;</code>
             */
            public Builder addNumbers(
                    java.lang.String value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                ensureNumbersIsMutable();
                numbers_.add(value);
                onChanged();
                return this;
            }

            /**
             * <code>repeated string numbers = 4;</code>
             */
            public Builder addAllNumbers(
                    java.lang.Iterable<java.lang.String> values) {
                ensureNumbersIsMutable();
                com.google.protobuf.AbstractMessageLite.Builder.addAll(
                        values, numbers_);
                onChanged();
                return this;
            }

            /**
             * <code>repeated string numbers = 4;</code>
             */
            public Builder clearNumbers() {
                numbers_ = com.google.protobuf.LazyStringArrayList.EMPTY;
                bitField0_ = (bitField0_ & ~0x00000008);
                onChanged();
                return this;
            }

            /**
             * <code>repeated string numbers = 4;</code>
             */
            public Builder addNumbersBytes(
                    com.google.protobuf.ByteString value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                ensureNumbersIsMutable();
                numbers_.add(value);
                onChanged();
                return this;
            }

            public final Builder setUnknownFields(
                    final com.google.protobuf.UnknownFieldSet unknownFields) {
                return super.setUnknownFields(unknownFields);
            }

            public final Builder mergeUnknownFields(
                    final com.google.protobuf.UnknownFieldSet unknownFields) {
                return super.mergeUnknownFields(unknownFields);
            }


            // @@protoc_insertion_point(builder_scope:protobuf.Person)
        }

        // @@protoc_insertion_point(class_scope:protobuf.Person)
        private static final com.baeldung.protobuf.AddressBookProtos.Person DEFAULT_INSTANCE;

        static {
            DEFAULT_INSTANCE = new com.baeldung.protobuf.AddressBookProtos.Person();
        }

        public static com.baeldung.protobuf.AddressBookProtos.Person getDefaultInstance() {
            return DEFAULT_INSTANCE;
        }

        @java.lang.Deprecated
        public static final com.google.protobuf.Parser<Person>
                PARSER = new com.google.protobuf.AbstractParser<Person>() {
            public Person parsePartialFrom(
                    com.google.protobuf.CodedInputStream input,
                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                    throws com.google.protobuf.InvalidProtocolBufferException {
                return new Person(input, extensionRegistry);
            }
        };

        public static com.google.protobuf.Parser<Person> parser() {
            return PARSER;
        }

        @java.lang.Override
        public com.google.protobuf.Parser<Person> getParserForType() {
            return PARSER;
        }

        public com.baeldung.protobuf.AddressBookProtos.Person getDefaultInstanceForType() {
            return DEFAULT_INSTANCE;
        }

    }

    public interface AddressBookOrBuilder extends
            // @@protoc_insertion_point(interface_extends:protobuf.AddressBook)
            com.google.protobuf.MessageOrBuilder {

        /**
         * <code>repeated .protobuf.Person people = 1;</code>
         */
        java.util.List<com.baeldung.protobuf.AddressBookProtos.Person>
        getPeopleList();

        /**
         * <code>repeated .protobuf.Person people = 1;</code>
         */
        com.baeldung.protobuf.AddressBookProtos.Person getPeople(int index);

        /**
         * <code>repeated .protobuf.Person people = 1;</code>
         */
        int getPeopleCount();

        /**
         * <code>repeated .protobuf.Person people = 1;</code>
         */
        java.util.List<? extends com.baeldung.protobuf.AddressBookProtos.PersonOrBuilder>
        getPeopleOrBuilderList();

        /**
         * <code>repeated .protobuf.Person people = 1;</code>
         */
        com.baeldung.protobuf.AddressBookProtos.PersonOrBuilder getPeopleOrBuilder(
                int index);
    }

    /**
     * Protobuf type {@code protobuf.AddressBook}
     */
    public static final class AddressBook extends
            com.google.protobuf.GeneratedMessageV3 implements
            // @@protoc_insertion_point(message_implements:protobuf.AddressBook)
            AddressBookOrBuilder {
        // Use AddressBook.newBuilder() to construct.
        private AddressBook(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
            super(builder);
        }

        private AddressBook() {
            people_ = java.util.Collections.emptyList();
        }

        @java.lang.Override
        public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
            return this.unknownFields;
        }

        private AddressBook(
                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 (!parseUnknownField(input, unknownFields,
                                    extensionRegistry, tag)) {
                                done = true;
                            }
                            break;
                        }
                        case 10: {
                            if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
                                people_ = new java.util.ArrayList<com.baeldung.protobuf.AddressBookProtos.Person>();
                                mutable_bitField0_ |= 0x00000001;
                            }
                            people_.add(
                                    input.readMessage(com.baeldung.protobuf.AddressBookProtos.Person.PARSER, extensionRegistry));
                            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_ & 0x00000001) == 0x00000001)) {
                    people_ = java.util.Collections.unmodifiableList(people_);
                }
                this.unknownFields = unknownFields.build();
                makeExtensionsImmutable();
            }
        }

        public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
            return com.baeldung.protobuf.AddressBookProtos.internal_static_protobuf_AddressBook_descriptor;
        }

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
            return com.baeldung.protobuf.AddressBookProtos.internal_static_protobuf_AddressBook_fieldAccessorTable
                    .ensureFieldAccessorsInitialized(
                            com.baeldung.protobuf.AddressBookProtos.AddressBook.class, com.baeldung.protobuf.AddressBookProtos.AddressBook.Builder.class);
        }

        public static final int PEOPLE_FIELD_NUMBER = 1;
        private java.util.List<com.baeldung.protobuf.AddressBookProtos.Person> people_;

        /**
         * <code>repeated .protobuf.Person people = 1;</code>
         */
        public java.util.List<com.baeldung.protobuf.AddressBookProtos.Person> getPeopleList() {
            return people_;
        }

        /**
         * <code>repeated .protobuf.Person people = 1;</code>
         */
        public java.util.List<? extends com.baeldung.protobuf.AddressBookProtos.PersonOrBuilder>
        getPeopleOrBuilderList() {
            return people_;
        }

        /**
         * <code>repeated .protobuf.Person people = 1;</code>
         */
        public int getPeopleCount() {
            return people_.size();
        }

        /**
         * <code>repeated .protobuf.Person people = 1;</code>
         */
        public com.baeldung.protobuf.AddressBookProtos.Person getPeople(int index) {
            return people_.get(index);
        }

        /**
         * <code>repeated .protobuf.Person people = 1;</code>
         */
        public com.baeldung.protobuf.AddressBookProtos.PersonOrBuilder getPeopleOrBuilder(
                int index) {
            return people_.get(index);
        }

        private byte memoizedIsInitialized = -1;

        public final boolean isInitialized() {
            byte isInitialized = memoizedIsInitialized;
            if (isInitialized == 1) return true;
            if (isInitialized == 0) return false;

            for (int i = 0; i < getPeopleCount(); i++) {
                if (!getPeople(i).isInitialized()) {
                    memoizedIsInitialized = 0;
                    return false;
                }
            }
            memoizedIsInitialized = 1;
            return true;
        }

        public void writeTo(com.google.protobuf.CodedOutputStream output)
                throws java.io.IOException {
            for (int i = 0; i < people_.size(); i++) {
                output.writeMessage(1, people_.get(i));
            }
            unknownFields.writeTo(output);
        }

        public int getSerializedSize() {
            int size = memoizedSize;
            if (size != -1) return size;

            size = 0;
            for (int i = 0; i < people_.size(); i++) {
                size += com.google.protobuf.CodedOutputStream
                        .computeMessageSize(1, people_.get(i));
            }
            size += unknownFields.getSerializedSize();
            memoizedSize = size;
            return size;
        }

        private static final long serialVersionUID = 0L;

        @java.lang.Override
        public boolean equals(final java.lang.Object obj) {
            if (obj == this) {
                return true;
            }
            if (!(obj instanceof com.baeldung.protobuf.AddressBookProtos.AddressBook)) {
                return super.equals(obj);
            }
            com.baeldung.protobuf.AddressBookProtos.AddressBook other = (com.baeldung.protobuf.AddressBookProtos.AddressBook) obj;

            boolean result = true;
            result = result && getPeopleList()
                    .equals(other.getPeopleList());
            result = result && unknownFields.equals(other.unknownFields);
            return result;
        }

        @java.lang.Override
        public int hashCode() {
            if (memoizedHashCode != 0) {
                return memoizedHashCode;
            }
            int hash = 41;
            hash = (19 * hash) + getDescriptorForType().hashCode();
            if (getPeopleCount() > 0) {
                hash = (37 * hash) + PEOPLE_FIELD_NUMBER;
                hash = (53 * hash) + getPeopleList().hashCode();
            }
            hash = (29 * hash) + unknownFields.hashCode();
            memoizedHashCode = hash;
            return hash;
        }

        public static com.baeldung.protobuf.AddressBookProtos.AddressBook parseFrom(
                com.google.protobuf.ByteString data)
                throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data);
        }

        public static com.baeldung.protobuf.AddressBookProtos.AddressBook parseFrom(
                com.google.protobuf.ByteString data,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data, extensionRegistry);
        }

        public static com.baeldung.protobuf.AddressBookProtos.AddressBook parseFrom(byte[] data)
                throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data);
        }

        public static com.baeldung.protobuf.AddressBookProtos.AddressBook parseFrom(
                byte[] data,
                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data, extensionRegistry);
        }

        public static com.baeldung.protobuf.AddressBookProtos.AddressBook parseFrom(java.io.InputStream input)
                throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3
                    .parseWithIOException(PARSER, input);
        }

        public static com.baeldung.protobuf.AddressBookProtos.AddressBook 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.baeldung.protobuf.AddressBookProtos.AddressBook parseDelimitedFrom(java.io.InputStream input)
                throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3
                    .parseDelimitedWithIOException(PARSER, input);
        }

        public static com.baeldung.protobuf.AddressBookProtos.AddressBook 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.baeldung.protobuf.AddressBookProtos.AddressBook parseFrom(
                com.google.protobuf.CodedInputStream input)
                throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3
                    .parseWithIOException(PARSER, input);
        }

        public static com.baeldung.protobuf.AddressBookProtos.AddressBook 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.baeldung.protobuf.AddressBookProtos.AddressBook 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 protobuf.AddressBook}
         */
        public static final class Builder extends
                com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
                // @@protoc_insertion_point(builder_implements:protobuf.AddressBook)
                com.baeldung.protobuf.AddressBookProtos.AddressBookOrBuilder {
            public static final com.google.protobuf.Descriptors.Descriptor
            getDescriptor() {
                return com.baeldung.protobuf.AddressBookProtos.internal_static_protobuf_AddressBook_descriptor;
            }

            protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internalGetFieldAccessorTable() {
                return com.baeldung.protobuf.AddressBookProtos.internal_static_protobuf_AddressBook_fieldAccessorTable
                        .ensureFieldAccessorsInitialized(
                                com.baeldung.protobuf.AddressBookProtos.AddressBook.class, com.baeldung.protobuf.AddressBookProtos.AddressBook.Builder.class);
            }

            // Construct using com.baeldung.protobuf.AddressBookProtos.AddressBook.newBuilder()
            private Builder() {
                maybeForceBuilderInitialization();
            }

            private Builder(
                    com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                super(parent);
                maybeForceBuilderInitialization();
            }

            private void maybeForceBuilderInitialization() {
                if (com.google.protobuf.GeneratedMessageV3
                        .alwaysUseFieldBuilders) {
                    getPeopleFieldBuilder();
                }
            }

            public Builder clear() {
                super.clear();
                if (peopleBuilder_ == null) {
                    people_ = java.util.Collections.emptyList();
                    bitField0_ = (bitField0_ & ~0x00000001);
                } else {
                    peopleBuilder_.clear();
                }
                return this;
            }

            public com.google.protobuf.Descriptors.Descriptor
            getDescriptorForType() {
                return com.baeldung.protobuf.AddressBookProtos.internal_static_protobuf_AddressBook_descriptor;
            }

            public com.baeldung.protobuf.AddressBookProtos.AddressBook getDefaultInstanceForType() {
                return com.baeldung.protobuf.AddressBookProtos.AddressBook.getDefaultInstance();
            }

            public com.baeldung.protobuf.AddressBookProtos.AddressBook build() {
                com.baeldung.protobuf.AddressBookProtos.AddressBook result = buildPartial();
                if (!result.isInitialized()) {
                    throw newUninitializedMessageException(result);
                }
                return result;
            }

            public com.baeldung.protobuf.AddressBookProtos.AddressBook buildPartial() {
                com.baeldung.protobuf.AddressBookProtos.AddressBook result = new com.baeldung.protobuf.AddressBookProtos.AddressBook(this);
                int from_bitField0_ = bitField0_;
                if (peopleBuilder_ == null) {
                    if (((bitField0_ & 0x00000001) == 0x00000001)) {
                        people_ = java.util.Collections.unmodifiableList(people_);
                        bitField0_ = (bitField0_ & ~0x00000001);
                    }
                    result.people_ = people_;
                } else {
                    result.people_ = peopleBuilder_.build();
                }
                onBuilt();
                return result;
            }

            public Builder clone() {
                return (Builder) super.clone();
            }

            public Builder setField(
                    com.google.protobuf.Descriptors.FieldDescriptor field,
                    Object value) {
                return (Builder) super.setField(field, value);
            }

            public Builder clearField(
                    com.google.protobuf.Descriptors.FieldDescriptor field) {
                return (Builder) super.clearField(field);
            }

            public Builder clearOneof(
                    com.google.protobuf.Descriptors.OneofDescriptor oneof) {
                return (Builder) super.clearOneof(oneof);
            }

            public Builder setRepeatedField(
                    com.google.protobuf.Descriptors.FieldDescriptor field,
                    int index, Object value) {
                return (Builder) super.setRepeatedField(field, index, value);
            }

            public Builder addRepeatedField(
                    com.google.protobuf.Descriptors.FieldDescriptor field,
                    Object value) {
                return (Builder) super.addRepeatedField(field, value);
            }

            public Builder mergeFrom(com.google.protobuf.Message other) {
                if (other instanceof com.baeldung.protobuf.AddressBookProtos.AddressBook) {
                    return mergeFrom((com.baeldung.protobuf.AddressBookProtos.AddressBook) other);
                } else {
                    super.mergeFrom(other);
                    return this;
                }
            }

            public Builder mergeFrom(com.baeldung.protobuf.AddressBookProtos.AddressBook other) {
                if (other == com.baeldung.protobuf.AddressBookProtos.AddressBook.getDefaultInstance()) return this;
                if (peopleBuilder_ == null) {
                    if (!other.people_.isEmpty()) {
                        if (people_.isEmpty()) {
                            people_ = other.people_;
                            bitField0_ = (bitField0_ & ~0x00000001);
                        } else {
                            ensurePeopleIsMutable();
                            people_.addAll(other.people_);
                        }
                        onChanged();
                    }
                } else {
                    if (!other.people_.isEmpty()) {
                        if (peopleBuilder_.isEmpty()) {
                            peopleBuilder_.dispose();
                            peopleBuilder_ = null;
                            people_ = other.people_;
                            bitField0_ = (bitField0_ & ~0x00000001);
                            peopleBuilder_ =
                                    com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                                            getPeopleFieldBuilder() : null;
                        } else {
                            peopleBuilder_.addAllMessages(other.people_);
                        }
                    }
                }
                this.mergeUnknownFields(other.unknownFields);
                onChanged();
                return this;
            }

            public final boolean isInitialized() {
                for (int i = 0; i < getPeopleCount(); i++) {
                    if (!getPeople(i).isInitialized()) {
                        return false;
                    }
                }
                return true;
            }

            public Builder mergeFrom(
                    com.google.protobuf.CodedInputStream input,
                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                    throws java.io.IOException {
                com.baeldung.protobuf.AddressBookProtos.AddressBook parsedMessage = null;
                try {
                    parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
                } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                    parsedMessage = (com.baeldung.protobuf.AddressBookProtos.AddressBook) e.getUnfinishedMessage();
                    throw e.unwrapIOException();
                } finally {
                    if (parsedMessage != null) {
                        mergeFrom(parsedMessage);
                    }
                }
                return this;
            }

            private int bitField0_;

            private java.util.List<com.baeldung.protobuf.AddressBookProtos.Person> people_ =
                    java.util.Collections.emptyList();

            private void ensurePeopleIsMutable() {
                if (!((bitField0_ & 0x00000001) == 0x00000001)) {
                    people_ = new java.util.ArrayList<com.baeldung.protobuf.AddressBookProtos.Person>(people_);
                    bitField0_ |= 0x00000001;
                }
            }

            private com.google.protobuf.RepeatedFieldBuilderV3<
                    com.baeldung.protobuf.AddressBookProtos.Person, com.baeldung.protobuf.AddressBookProtos.Person.Builder, com.baeldung.protobuf.AddressBookProtos.PersonOrBuilder> peopleBuilder_;

            /**
             * <code>repeated .protobuf.Person people = 1;</code>
             */
            public java.util.List<com.baeldung.protobuf.AddressBookProtos.Person> getPeopleList() {
                if (peopleBuilder_ == null) {
                    return java.util.Collections.unmodifiableList(people_);
                } else {
                    return peopleBuilder_.getMessageList();
                }
            }

            /**
             * <code>repeated .protobuf.Person people = 1;</code>
             */
            public int getPeopleCount() {
                if (peopleBuilder_ == null) {
                    return people_.size();
                } else {
                    return peopleBuilder_.getCount();
                }
            }

            /**
             * <code>repeated .protobuf.Person people = 1;</code>
             */
            public com.baeldung.protobuf.AddressBookProtos.Person getPeople(int index) {
                if (peopleBuilder_ == null) {
                    return people_.get(index);
                } else {
                    return peopleBuilder_.getMessage(index);
                }
            }

            /**
             * <code>repeated .protobuf.Person people = 1;</code>
             */
            public Builder setPeople(
                    int index, com.baeldung.protobuf.AddressBookProtos.Person value) {
                if (peopleBuilder_ == null) {
                    if (value == null) {
                        throw new NullPointerException();
                    }
                    ensurePeopleIsMutable();
                    people_.set(index, value);
                    onChanged();
                } else {
                    peopleBuilder_.setMessage(index, value);
                }
                return this;
            }

            /**
             * <code>repeated .protobuf.Person people = 1;</code>
             */
            public Builder setPeople(
                    int index, com.baeldung.protobuf.AddressBookProtos.Person.Builder builderForValue) {
                if (peopleBuilder_ == null) {
                    ensurePeopleIsMutable();
                    people_.set(index, builderForValue.build());
                    onChanged();
                } else {
                    peopleBuilder_.setMessage(index, builderForValue.build());
                }
                return this;
            }

            /**
             * <code>repeated .protobuf.Person people = 1;</code>
             */
            public Builder addPeople(com.baeldung.protobuf.AddressBookProtos.Person value) {
                if (peopleBuilder_ == null) {
                    if (value == null) {
                        throw new NullPointerException();
                    }
                    ensurePeopleIsMutable();
                    people_.add(value);
                    onChanged();
                } else {
                    peopleBuilder_.addMessage(value);
                }
                return this;
            }

            /**
             * <code>repeated .protobuf.Person people = 1;</code>
             */
            public Builder addPeople(
                    int index, com.baeldung.protobuf.AddressBookProtos.Person value) {
                if (peopleBuilder_ == null) {
                    if (value == null) {
                        throw new NullPointerException();
                    }
                    ensurePeopleIsMutable();
                    people_.add(index, value);
                    onChanged();
                } else {
                    peopleBuilder_.addMessage(index, value);
                }
                return this;
            }

            /**
             * <code>repeated .protobuf.Person people = 1;</code>
             */
            public Builder addPeople(
                    com.baeldung.protobuf.AddressBookProtos.Person.Builder builderForValue) {
                if (peopleBuilder_ == null) {
                    ensurePeopleIsMutable();
                    people_.add(builderForValue.build());
                    onChanged();
                } else {
                    peopleBuilder_.addMessage(builderForValue.build());
                }
                return this;
            }

            /**
             * <code>repeated .protobuf.Person people = 1;</code>
             */
            public Builder addPeople(
                    int index, com.baeldung.protobuf.AddressBookProtos.Person.Builder builderForValue) {
                if (peopleBuilder_ == null) {
                    ensurePeopleIsMutable();
                    people_.add(index, builderForValue.build());
                    onChanged();
                } else {
                    peopleBuilder_.addMessage(index, builderForValue.build());
                }
                return this;
            }

            /**
             * <code>repeated .protobuf.Person people = 1;</code>
             */
            public Builder addAllPeople(
                    java.lang.Iterable<? extends com.baeldung.protobuf.AddressBookProtos.Person> values) {
                if (peopleBuilder_ == null) {
                    ensurePeopleIsMutable();
                    com.google.protobuf.AbstractMessageLite.Builder.addAll(
                            values, people_);
                    onChanged();
                } else {
                    peopleBuilder_.addAllMessages(values);
                }
                return this;
            }

            /**
             * <code>repeated .protobuf.Person people = 1;</code>
             */
            public Builder clearPeople() {
                if (peopleBuilder_ == null) {
                    people_ = java.util.Collections.emptyList();
                    bitField0_ = (bitField0_ & ~0x00000001);
                    onChanged();
                } else {
                    peopleBuilder_.clear();
                }
                return this;
            }

            /**
             * <code>repeated .protobuf.Person people = 1;</code>
             */
            public Builder removePeople(int index) {
                if (peopleBuilder_ == null) {
                    ensurePeopleIsMutable();
                    people_.remove(index);
                    onChanged();
                } else {
                    peopleBuilder_.remove(index);
                }
                return this;
            }

            /**
             * <code>repeated .protobuf.Person people = 1;</code>
             */
            public com.baeldung.protobuf.AddressBookProtos.Person.Builder getPeopleBuilder(
                    int index) {
                return getPeopleFieldBuilder().getBuilder(index);
            }

            /**
             * <code>repeated .protobuf.Person people = 1;</code>
             */
            public com.baeldung.protobuf.AddressBookProtos.PersonOrBuilder getPeopleOrBuilder(
                    int index) {
                if (peopleBuilder_ == null) {
                    return people_.get(index);
                } else {
                    return peopleBuilder_.getMessageOrBuilder(index);
                }
            }

            /**
             * <code>repeated .protobuf.Person people = 1;</code>
             */
            public java.util.List<? extends com.baeldung.protobuf.AddressBookProtos.PersonOrBuilder>
            getPeopleOrBuilderList() {
                if (peopleBuilder_ != null) {
                    return peopleBuilder_.getMessageOrBuilderList();
                } else {
                    return java.util.Collections.unmodifiableList(people_);
                }
            }

            /**
             * <code>repeated .protobuf.Person people = 1;</code>
             */
            public com.baeldung.protobuf.AddressBookProtos.Person.Builder addPeopleBuilder() {
                return getPeopleFieldBuilder().addBuilder(
                        com.baeldung.protobuf.AddressBookProtos.Person.getDefaultInstance());
            }

            /**
             * <code>repeated .protobuf.Person people = 1;</code>
             */
            public com.baeldung.protobuf.AddressBookProtos.Person.Builder addPeopleBuilder(
                    int index) {
                return getPeopleFieldBuilder().addBuilder(
                        index, com.baeldung.protobuf.AddressBookProtos.Person.getDefaultInstance());
            }

            /**
             * <code>repeated .protobuf.Person people = 1;</code>
             */
            public java.util.List<com.baeldung.protobuf.AddressBookProtos.Person.Builder>
            getPeopleBuilderList() {
                return getPeopleFieldBuilder().getBuilderList();
            }

            private com.google.protobuf.RepeatedFieldBuilderV3<
                    com.baeldung.protobuf.AddressBookProtos.Person, com.baeldung.protobuf.AddressBookProtos.Person.Builder, com.baeldung.protobuf.AddressBookProtos.PersonOrBuilder>
            getPeopleFieldBuilder() {
                if (peopleBuilder_ == null) {
                    peopleBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
                            com.baeldung.protobuf.AddressBookProtos.Person, com.baeldung.protobuf.AddressBookProtos.Person.Builder, com.baeldung.protobuf.AddressBookProtos.PersonOrBuilder>(
                            people_,
                            ((bitField0_ & 0x00000001) == 0x00000001),
                            getParentForChildren(),
                            isClean());
                    people_ = null;
                }
                return peopleBuilder_;
            }

            public final Builder setUnknownFields(
                    final com.google.protobuf.UnknownFieldSet unknownFields) {
                return super.setUnknownFields(unknownFields);
            }

            public final Builder mergeUnknownFields(
                    final com.google.protobuf.UnknownFieldSet unknownFields) {
                return super.mergeUnknownFields(unknownFields);
            }


            // @@protoc_insertion_point(builder_scope:protobuf.AddressBook)
        }

        // @@protoc_insertion_point(class_scope:protobuf.AddressBook)
        private static final com.baeldung.protobuf.AddressBookProtos.AddressBook DEFAULT_INSTANCE;

        static {
            DEFAULT_INSTANCE = new com.baeldung.protobuf.AddressBookProtos.AddressBook();
        }

        public static com.baeldung.protobuf.AddressBookProtos.AddressBook getDefaultInstance() {
            return DEFAULT_INSTANCE;
        }

        @java.lang.Deprecated
        public static final com.google.protobuf.Parser<AddressBook>
                PARSER = new com.google.protobuf.AbstractParser<AddressBook>() {
            public AddressBook parsePartialFrom(
                    com.google.protobuf.CodedInputStream input,
                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                    throws com.google.protobuf.InvalidProtocolBufferException {
                return new AddressBook(input, extensionRegistry);
            }
        };

        public static com.google.protobuf.Parser<AddressBook> parser() {
            return PARSER;
        }

        @java.lang.Override
        public com.google.protobuf.Parser<AddressBook> getParserForType() {
            return PARSER;
        }

        public com.baeldung.protobuf.AddressBookProtos.AddressBook getDefaultInstanceForType() {
            return DEFAULT_INSTANCE;
        }

    }

    private static final com.google.protobuf.Descriptors.Descriptor
            internal_static_protobuf_Person_descriptor;
    private static final
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internal_static_protobuf_Person_fieldAccessorTable;
    private static final com.google.protobuf.Descriptors.Descriptor
            internal_static_protobuf_AddressBook_descriptor;
    private static final
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            internal_static_protobuf_AddressBook_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\020routeguide.proto\022\010protobuf\"B\n\006Person\022\014" +
                        "\n\004name\030\001 \002(\t\022\n\n\002id\030\002 \002(\005\022\r\n\005email\030\003 \001(\t\022" +
                        "\017\n\007numbers\030\004 \003(\t\"/\n\013AddressBook\022 \n\006peopl" +
                        "e\030\001 \003(\0132\020.protobuf.PersonB*\n\025com.baeldun" +
                        "g.protobufB\021AddressBookProtos"
        };
        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_protobuf_Person_descriptor =
                getDescriptor().getMessageTypes().get(0);
        internal_static_protobuf_Person_fieldAccessorTable = new
                com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                internal_static_protobuf_Person_descriptor,
                new java.lang.String[]{"Name", "Id", "Email", "Numbers",});
        internal_static_protobuf_AddressBook_descriptor =
                getDescriptor().getMessageTypes().get(1);
        internal_static_protobuf_AddressBook_fieldAccessorTable = new
                com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                internal_static_protobuf_AddressBook_descriptor,
                new java.lang.String[]{"People",});
    }

// @@protoc_insertion_point(outer_class_scope)
}