// 
// Decompiled by Procyon v0.6.0
// 

package com.google.protobuf;

import java.io.InputStream;
import java.nio.ByteBuffer;
import java.io.IOException;

public final class Empty extends GeneratedMessage implements EmptyOrBuilder
{
    private static final long serialVersionUID = 0L;
    private byte memoizedIsInitialized;
    private static final Empty DEFAULT_INSTANCE;
    private static final Parser<Empty> PARSER;
    
    private Empty(final GeneratedMessage.Builder<?> builder) {
        super(builder);
        this.memoizedIsInitialized = -1;
    }
    
    private Empty() {
        this.memoizedIsInitialized = -1;
    }
    
    public static final Descriptors.Descriptor getDescriptor() {
        return EmptyProto.internal_static_google_protobuf_Empty_descriptor;
    }
    
    @Override
    protected FieldAccessorTable internalGetFieldAccessorTable() {
        return EmptyProto.internal_static_google_protobuf_Empty_fieldAccessorTable.ensureFieldAccessorsInitialized(Empty.class, Builder.class);
    }
    
    @Override
    public final boolean isInitialized() {
        final byte isInitialized = this.memoizedIsInitialized;
        if (isInitialized == 1) {
            return true;
        }
        if (isInitialized == 0) {
            return false;
        }
        this.memoizedIsInitialized = 1;
        return true;
    }
    
    @Override
    public void writeTo(final CodedOutputStream output) throws IOException {
        this.getUnknownFields().writeTo(output);
    }
    
    @Override
    public int getSerializedSize() {
        int size = this.memoizedSize;
        if (size != -1) {
            return size;
        }
        size = 0;
        size += this.getUnknownFields().getSerializedSize();
        return this.memoizedSize = size;
    }
    
    @Override
    public boolean equals(final Object obj) {
        if (obj == this) {
            return true;
        }
        if (!(obj instanceof Empty)) {
            return super.equals(obj);
        }
        final Empty other = (Empty)obj;
        return this.getUnknownFields().equals(other.getUnknownFields());
    }
    
    @Override
    public int hashCode() {
        if (this.memoizedHashCode != 0) {
            return this.memoizedHashCode;
        }
        int hash = 41;
        hash = 19 * hash + getDescriptor().hashCode();
        hash = 29 * hash + this.getUnknownFields().hashCode();
        return this.memoizedHashCode = hash;
    }
    
    public static Empty parseFrom(final ByteBuffer data) throws InvalidProtocolBufferException {
        return Empty.PARSER.parseFrom(data);
    }
    
    public static Empty parseFrom(final ByteBuffer data, final ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException {
        return Empty.PARSER.parseFrom(data, extensionRegistry);
    }
    
    public static Empty parseFrom(final ByteString data) throws InvalidProtocolBufferException {
        return Empty.PARSER.parseFrom(data);
    }
    
    public static Empty parseFrom(final ByteString data, final ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException {
        return Empty.PARSER.parseFrom(data, extensionRegistry);
    }
    
    public static Empty parseFrom(final byte[] data) throws InvalidProtocolBufferException {
        return Empty.PARSER.parseFrom(data);
    }
    
    public static Empty parseFrom(final byte[] data, final ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException {
        return Empty.PARSER.parseFrom(data, extensionRegistry);
    }
    
    public static Empty parseFrom(final InputStream input) throws IOException {
        return GeneratedMessage.parseWithIOException(Empty.PARSER, input);
    }
    
    public static Empty parseFrom(final InputStream input, final ExtensionRegistryLite extensionRegistry) throws IOException {
        return GeneratedMessage.parseWithIOException(Empty.PARSER, input, extensionRegistry);
    }
    
    public static Empty parseDelimitedFrom(final InputStream input) throws IOException {
        return GeneratedMessage.parseDelimitedWithIOException(Empty.PARSER, input);
    }
    
    public static Empty parseDelimitedFrom(final InputStream input, final ExtensionRegistryLite extensionRegistry) throws IOException {
        return GeneratedMessage.parseDelimitedWithIOException(Empty.PARSER, input, extensionRegistry);
    }
    
    public static Empty parseFrom(final CodedInputStream input) throws IOException {
        return GeneratedMessage.parseWithIOException(Empty.PARSER, input);
    }
    
    public static Empty parseFrom(final CodedInputStream input, final ExtensionRegistryLite extensionRegistry) throws IOException {
        return GeneratedMessage.parseWithIOException(Empty.PARSER, input, extensionRegistry);
    }
    
    @Override
    public Builder newBuilderForType() {
        return newBuilder();
    }
    
    public static Builder newBuilder() {
        return Empty.DEFAULT_INSTANCE.toBuilder();
    }
    
    public static Builder newBuilder(final Empty prototype) {
        return Empty.DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    
    @Override
    public Builder toBuilder() {
        return (this == Empty.DEFAULT_INSTANCE) ? new Builder() : new Builder().mergeFrom(this);
    }
    
    @Override
    protected Builder newBuilderForType(final BuilderParent parent) {
        final Builder builder = new Builder(parent);
        return builder;
    }
    
    public static Empty getDefaultInstance() {
        return Empty.DEFAULT_INSTANCE;
    }
    
    public static Parser<Empty> parser() {
        return Empty.PARSER;
    }
    
    @Override
    public Parser<Empty> getParserForType() {
        return Empty.PARSER;
    }
    
    @Override
    public Empty getDefaultInstanceForType() {
        return Empty.DEFAULT_INSTANCE;
    }
    
    static {
        RuntimeVersion.validateProtobufGencodeVersion(RuntimeVersion.RuntimeDomain.PUBLIC, 4, 33, 0, "", "Empty");
        DEFAULT_INSTANCE = new Empty();
        PARSER = new AbstractParser<Empty>() {
            @Override
            public Empty parsePartialFrom(final CodedInputStream input, final ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException {
                final Builder builder = Empty.newBuilder();
                try {
                    builder.mergeFrom(input, extensionRegistry);
                }
                catch (final InvalidProtocolBufferException e) {
                    throw e.setUnfinishedMessage(builder.buildPartial());
                }
                catch (final UninitializedMessageException e2) {
                    throw e2.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
                }
                catch (final IOException e3) {
                    throw new InvalidProtocolBufferException(e3).setUnfinishedMessage(builder.buildPartial());
                }
                return builder.buildPartial();
            }
        };
    }
    
    public static final class Builder extends GeneratedMessage.Builder<Builder> implements EmptyOrBuilder
    {
        public static final Descriptors.Descriptor getDescriptor() {
            return EmptyProto.internal_static_google_protobuf_Empty_descriptor;
        }
        
        @Override
        protected FieldAccessorTable internalGetFieldAccessorTable() {
            return EmptyProto.internal_static_google_protobuf_Empty_fieldAccessorTable.ensureFieldAccessorsInitialized(Empty.class, Builder.class);
        }
        
        private Builder() {
        }
        
        private Builder(final BuilderParent parent) {
            super(parent);
        }
        
        @Override
        public Builder clear() {
            super.clear();
            return this;
        }
        
        @Override
        public Descriptors.Descriptor getDescriptorForType() {
            return EmptyProto.internal_static_google_protobuf_Empty_descriptor;
        }
        
        @Override
        public Empty getDefaultInstanceForType() {
            return Empty.getDefaultInstance();
        }
        
        @Override
        public Empty build() {
            final Empty result = this.buildPartial();
            if (!result.isInitialized()) {
                throw AbstractMessage.Builder.newUninitializedMessageException(result);
            }
            return result;
        }
        
        @Override
        public Empty buildPartial() {
            final Empty result = new Empty(this, null);
            this.onBuilt();
            return result;
        }
        
        @Override
        public Builder mergeFrom(final Message other) {
            if (other instanceof Empty) {
                return this.mergeFrom((Empty)other);
            }
            super.mergeFrom(other);
            return this;
        }
        
        public Builder mergeFrom(final Empty other) {
            if (other == Empty.getDefaultInstance()) {
                return this;
            }
            this.mergeUnknownFields(other.getUnknownFields());
            this.onChanged();
            return this;
        }
        
        @Override
        public final boolean isInitialized() {
            return true;
        }
        
        @Override
        public Builder mergeFrom(final CodedInputStream input, final ExtensionRegistryLite extensionRegistry) throws IOException {
            if (extensionRegistry == null) {
                throw new NullPointerException();
            }
            try {
                boolean done = false;
                while (!done) {
                    final int tag = input.readTag();
                    switch (tag) {
                        case 0: {
                            done = true;
                            continue;
                        }
                        default: {
                            if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                                done = true;
                                continue;
                            }
                            continue;
                        }
                    }
                }
            }
            catch (final InvalidProtocolBufferException e) {
                throw e.unwrapIOException();
            }
            finally {
                this.onChanged();
            }
            return this;
        }
    }
}
