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

package com.google.protobuf;

import java.util.ArrayList;
import java.util.Collection;
import java.io.InputStream;
import java.nio.ByteBuffer;
import java.io.IOException;
import java.util.Collections;
import java.util.List;

public final class Method extends GeneratedMessage implements MethodOrBuilder
{
    private static final long serialVersionUID = 0L;
    public static final int NAME_FIELD_NUMBER = 1;
    private volatile Object name_;
    public static final int REQUEST_TYPE_URL_FIELD_NUMBER = 2;
    private volatile Object requestTypeUrl_;
    public static final int REQUEST_STREAMING_FIELD_NUMBER = 3;
    private boolean requestStreaming_;
    public static final int RESPONSE_TYPE_URL_FIELD_NUMBER = 4;
    private volatile Object responseTypeUrl_;
    public static final int RESPONSE_STREAMING_FIELD_NUMBER = 5;
    private boolean responseStreaming_;
    public static final int OPTIONS_FIELD_NUMBER = 6;
    private List<Option> options_;
    public static final int SYNTAX_FIELD_NUMBER = 7;
    private int syntax_;
    public static final int EDITION_FIELD_NUMBER = 8;
    private volatile Object edition_;
    private byte memoizedIsInitialized;
    private static final Method DEFAULT_INSTANCE;
    private static final Parser<Method> PARSER;
    
    private Method(final GeneratedMessage.Builder<?> builder) {
        super(builder);
        this.name_ = "";
        this.requestTypeUrl_ = "";
        this.requestStreaming_ = false;
        this.responseTypeUrl_ = "";
        this.responseStreaming_ = false;
        this.syntax_ = 0;
        this.edition_ = "";
        this.memoizedIsInitialized = -1;
    }
    
    private Method() {
        this.name_ = "";
        this.requestTypeUrl_ = "";
        this.requestStreaming_ = false;
        this.responseTypeUrl_ = "";
        this.responseStreaming_ = false;
        this.syntax_ = 0;
        this.edition_ = "";
        this.memoizedIsInitialized = -1;
        this.name_ = "";
        this.requestTypeUrl_ = "";
        this.responseTypeUrl_ = "";
        this.options_ = Collections.emptyList();
        this.syntax_ = 0;
        this.edition_ = "";
    }
    
    public static final Descriptors.Descriptor getDescriptor() {
        return ApiProto.internal_static_google_protobuf_Method_descriptor;
    }
    
    @Override
    protected FieldAccessorTable internalGetFieldAccessorTable() {
        return ApiProto.internal_static_google_protobuf_Method_fieldAccessorTable.ensureFieldAccessorsInitialized(Method.class, Builder.class);
    }
    
    @Override
    public String getName() {
        final Object ref = this.name_;
        if (ref instanceof String) {
            return (String)ref;
        }
        final ByteString bs = (ByteString)ref;
        final String s = bs.toStringUtf8();
        return (String)(this.name_ = s);
    }
    
    @Override
    public ByteString getNameBytes() {
        final Object ref = this.name_;
        if (ref instanceof String) {
            final ByteString b = ByteString.copyFromUtf8((String)ref);
            return (ByteString)(this.name_ = b);
        }
        return (ByteString)ref;
    }
    
    @Override
    public String getRequestTypeUrl() {
        final Object ref = this.requestTypeUrl_;
        if (ref instanceof String) {
            return (String)ref;
        }
        final ByteString bs = (ByteString)ref;
        final String s = bs.toStringUtf8();
        return (String)(this.requestTypeUrl_ = s);
    }
    
    @Override
    public ByteString getRequestTypeUrlBytes() {
        final Object ref = this.requestTypeUrl_;
        if (ref instanceof String) {
            final ByteString b = ByteString.copyFromUtf8((String)ref);
            return (ByteString)(this.requestTypeUrl_ = b);
        }
        return (ByteString)ref;
    }
    
    @Override
    public boolean getRequestStreaming() {
        return this.requestStreaming_;
    }
    
    @Override
    public String getResponseTypeUrl() {
        final Object ref = this.responseTypeUrl_;
        if (ref instanceof String) {
            return (String)ref;
        }
        final ByteString bs = (ByteString)ref;
        final String s = bs.toStringUtf8();
        return (String)(this.responseTypeUrl_ = s);
    }
    
    @Override
    public ByteString getResponseTypeUrlBytes() {
        final Object ref = this.responseTypeUrl_;
        if (ref instanceof String) {
            final ByteString b = ByteString.copyFromUtf8((String)ref);
            return (ByteString)(this.responseTypeUrl_ = b);
        }
        return (ByteString)ref;
    }
    
    @Override
    public boolean getResponseStreaming() {
        return this.responseStreaming_;
    }
    
    @Override
    public List<Option> getOptionsList() {
        return this.options_;
    }
    
    @Override
    public List<? extends OptionOrBuilder> getOptionsOrBuilderList() {
        return this.options_;
    }
    
    @Override
    public int getOptionsCount() {
        return this.options_.size();
    }
    
    @Override
    public Option getOptions(final int index) {
        return this.options_.get(index);
    }
    
    @Override
    public OptionOrBuilder getOptionsOrBuilder(final int index) {
        return this.options_.get(index);
    }
    
    @Deprecated
    @Override
    public int getSyntaxValue() {
        return this.syntax_;
    }
    
    @Deprecated
    @Override
    public Syntax getSyntax() {
        final Syntax result = Syntax.forNumber(this.syntax_);
        return (result == null) ? Syntax.UNRECOGNIZED : result;
    }
    
    @Deprecated
    @Override
    public String getEdition() {
        final Object ref = this.edition_;
        if (ref instanceof String) {
            return (String)ref;
        }
        final ByteString bs = (ByteString)ref;
        final String s = bs.toStringUtf8();
        return (String)(this.edition_ = s);
    }
    
    @Deprecated
    @Override
    public ByteString getEditionBytes() {
        final Object ref = this.edition_;
        if (ref instanceof String) {
            final ByteString b = ByteString.copyFromUtf8((String)ref);
            return (ByteString)(this.edition_ = b);
        }
        return (ByteString)ref;
    }
    
    @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 {
        if (!GeneratedMessage.isStringEmpty(this.name_)) {
            GeneratedMessage.writeString(output, 1, this.name_);
        }
        if (!GeneratedMessage.isStringEmpty(this.requestTypeUrl_)) {
            GeneratedMessage.writeString(output, 2, this.requestTypeUrl_);
        }
        if (this.requestStreaming_) {
            output.writeBool(3, this.requestStreaming_);
        }
        if (!GeneratedMessage.isStringEmpty(this.responseTypeUrl_)) {
            GeneratedMessage.writeString(output, 4, this.responseTypeUrl_);
        }
        if (this.responseStreaming_) {
            output.writeBool(5, this.responseStreaming_);
        }
        for (int i = 0; i < this.options_.size(); ++i) {
            output.writeMessage(6, this.options_.get(i));
        }
        if (this.syntax_ != Syntax.SYNTAX_PROTO2.getNumber()) {
            output.writeEnum(7, this.syntax_);
        }
        if (!GeneratedMessage.isStringEmpty(this.edition_)) {
            GeneratedMessage.writeString(output, 8, this.edition_);
        }
        this.getUnknownFields().writeTo(output);
    }
    
    @Override
    public int getSerializedSize() {
        int size = this.memoizedSize;
        if (size != -1) {
            return size;
        }
        size = 0;
        if (!GeneratedMessage.isStringEmpty(this.name_)) {
            size += GeneratedMessage.computeStringSize(1, this.name_);
        }
        if (!GeneratedMessage.isStringEmpty(this.requestTypeUrl_)) {
            size += GeneratedMessage.computeStringSize(2, this.requestTypeUrl_);
        }
        if (this.requestStreaming_) {
            size += CodedOutputStream.computeBoolSize(3, this.requestStreaming_);
        }
        if (!GeneratedMessage.isStringEmpty(this.responseTypeUrl_)) {
            size += GeneratedMessage.computeStringSize(4, this.responseTypeUrl_);
        }
        if (this.responseStreaming_) {
            size += CodedOutputStream.computeBoolSize(5, this.responseStreaming_);
        }
        for (int i = 0; i < this.options_.size(); ++i) {
            size += CodedOutputStream.computeMessageSize(6, this.options_.get(i));
        }
        if (this.syntax_ != Syntax.SYNTAX_PROTO2.getNumber()) {
            size += CodedOutputStream.computeEnumSize(7, this.syntax_);
        }
        if (!GeneratedMessage.isStringEmpty(this.edition_)) {
            size += GeneratedMessage.computeStringSize(8, this.edition_);
        }
        size += this.getUnknownFields().getSerializedSize();
        return this.memoizedSize = size;
    }
    
    @Override
    public boolean equals(final Object obj) {
        if (obj == this) {
            return true;
        }
        if (!(obj instanceof Method)) {
            return super.equals(obj);
        }
        final Method other = (Method)obj;
        return this.getName().equals(other.getName()) && this.getRequestTypeUrl().equals(other.getRequestTypeUrl()) && this.getRequestStreaming() == other.getRequestStreaming() && this.getResponseTypeUrl().equals(other.getResponseTypeUrl()) && this.getResponseStreaming() == other.getResponseStreaming() && this.getOptionsList().equals(other.getOptionsList()) && this.syntax_ == other.syntax_ && this.getEdition().equals(other.getEdition()) && 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 = 37 * hash + 1;
        hash = 53 * hash + this.getName().hashCode();
        hash = 37 * hash + 2;
        hash = 53 * hash + this.getRequestTypeUrl().hashCode();
        hash = 37 * hash + 3;
        hash = 53 * hash + Internal.hashBoolean(this.getRequestStreaming());
        hash = 37 * hash + 4;
        hash = 53 * hash + this.getResponseTypeUrl().hashCode();
        hash = 37 * hash + 5;
        hash = 53 * hash + Internal.hashBoolean(this.getResponseStreaming());
        if (this.getOptionsCount() > 0) {
            hash = 37 * hash + 6;
            hash = 53 * hash + this.getOptionsList().hashCode();
        }
        hash = 37 * hash + 7;
        hash = 53 * hash + this.syntax_;
        hash = 37 * hash + 8;
        hash = 53 * hash + this.getEdition().hashCode();
        hash = 29 * hash + this.getUnknownFields().hashCode();
        return this.memoizedHashCode = hash;
    }
    
    public static Method parseFrom(final ByteBuffer data) throws InvalidProtocolBufferException {
        return Method.PARSER.parseFrom(data);
    }
    
    public static Method parseFrom(final ByteBuffer data, final ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException {
        return Method.PARSER.parseFrom(data, extensionRegistry);
    }
    
    public static Method parseFrom(final ByteString data) throws InvalidProtocolBufferException {
        return Method.PARSER.parseFrom(data);
    }
    
    public static Method parseFrom(final ByteString data, final ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException {
        return Method.PARSER.parseFrom(data, extensionRegistry);
    }
    
    public static Method parseFrom(final byte[] data) throws InvalidProtocolBufferException {
        return Method.PARSER.parseFrom(data);
    }
    
    public static Method parseFrom(final byte[] data, final ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException {
        return Method.PARSER.parseFrom(data, extensionRegistry);
    }
    
    public static Method parseFrom(final InputStream input) throws IOException {
        return GeneratedMessage.parseWithIOException(Method.PARSER, input);
    }
    
    public static Method parseFrom(final InputStream input, final ExtensionRegistryLite extensionRegistry) throws IOException {
        return GeneratedMessage.parseWithIOException(Method.PARSER, input, extensionRegistry);
    }
    
    public static Method parseDelimitedFrom(final InputStream input) throws IOException {
        return GeneratedMessage.parseDelimitedWithIOException(Method.PARSER, input);
    }
    
    public static Method parseDelimitedFrom(final InputStream input, final ExtensionRegistryLite extensionRegistry) throws IOException {
        return GeneratedMessage.parseDelimitedWithIOException(Method.PARSER, input, extensionRegistry);
    }
    
    public static Method parseFrom(final CodedInputStream input) throws IOException {
        return GeneratedMessage.parseWithIOException(Method.PARSER, input);
    }
    
    public static Method parseFrom(final CodedInputStream input, final ExtensionRegistryLite extensionRegistry) throws IOException {
        return GeneratedMessage.parseWithIOException(Method.PARSER, input, extensionRegistry);
    }
    
    @Override
    public Builder newBuilderForType() {
        return newBuilder();
    }
    
    public static Builder newBuilder() {
        return Method.DEFAULT_INSTANCE.toBuilder();
    }
    
    public static Builder newBuilder(final Method prototype) {
        return Method.DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    
    @Override
    public Builder toBuilder() {
        return (this == Method.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 Method getDefaultInstance() {
        return Method.DEFAULT_INSTANCE;
    }
    
    public static Parser<Method> parser() {
        return Method.PARSER;
    }
    
    @Override
    public Parser<Method> getParserForType() {
        return Method.PARSER;
    }
    
    @Override
    public Method getDefaultInstanceForType() {
        return Method.DEFAULT_INSTANCE;
    }
    
    static {
        RuntimeVersion.validateProtobufGencodeVersion(RuntimeVersion.RuntimeDomain.PUBLIC, 4, 33, 0, "", "Method");
        DEFAULT_INSTANCE = new Method();
        PARSER = new AbstractParser<Method>() {
            @Override
            public Method parsePartialFrom(final CodedInputStream input, final ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException {
                final Builder builder = Method.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 MethodOrBuilder
    {
        private int bitField0_;
        private Object name_;
        private Object requestTypeUrl_;
        private boolean requestStreaming_;
        private Object responseTypeUrl_;
        private boolean responseStreaming_;
        private List<Option> options_;
        private RepeatedFieldBuilder<Option, Option.Builder, OptionOrBuilder> optionsBuilder_;
        private int syntax_;
        private Object edition_;
        
        public static final Descriptors.Descriptor getDescriptor() {
            return ApiProto.internal_static_google_protobuf_Method_descriptor;
        }
        
        @Override
        protected FieldAccessorTable internalGetFieldAccessorTable() {
            return ApiProto.internal_static_google_protobuf_Method_fieldAccessorTable.ensureFieldAccessorsInitialized(Method.class, Builder.class);
        }
        
        private Builder() {
            this.name_ = "";
            this.requestTypeUrl_ = "";
            this.responseTypeUrl_ = "";
            this.options_ = Collections.emptyList();
            this.syntax_ = 0;
            this.edition_ = "";
        }
        
        private Builder(final BuilderParent parent) {
            super(parent);
            this.name_ = "";
            this.requestTypeUrl_ = "";
            this.responseTypeUrl_ = "";
            this.options_ = Collections.emptyList();
            this.syntax_ = 0;
            this.edition_ = "";
        }
        
        @Override
        public Builder clear() {
            super.clear();
            this.bitField0_ = 0;
            this.name_ = "";
            this.requestTypeUrl_ = "";
            this.requestStreaming_ = false;
            this.responseTypeUrl_ = "";
            this.responseStreaming_ = false;
            if (this.optionsBuilder_ == null) {
                this.options_ = Collections.emptyList();
            }
            else {
                this.options_ = null;
                this.optionsBuilder_.clear();
            }
            this.bitField0_ &= 0xFFFFFFDF;
            this.syntax_ = 0;
            this.edition_ = "";
            return this;
        }
        
        @Override
        public Descriptors.Descriptor getDescriptorForType() {
            return ApiProto.internal_static_google_protobuf_Method_descriptor;
        }
        
        @Override
        public Method getDefaultInstanceForType() {
            return Method.getDefaultInstance();
        }
        
        @Override
        public Method build() {
            final Method result = this.buildPartial();
            if (!result.isInitialized()) {
                throw AbstractMessage.Builder.newUninitializedMessageException(result);
            }
            return result;
        }
        
        @Override
        public Method buildPartial() {
            final Method result = new Method(this, null);
            this.buildPartialRepeatedFields(result);
            if (this.bitField0_ != 0) {
                this.buildPartial0(result);
            }
            this.onBuilt();
            return result;
        }
        
        private void buildPartialRepeatedFields(final Method result) {
            if (this.optionsBuilder_ == null) {
                if ((this.bitField0_ & 0x20) != 0x0) {
                    this.options_ = Collections.unmodifiableList((List<? extends Option>)this.options_);
                    this.bitField0_ &= 0xFFFFFFDF;
                }
                result.options_ = this.options_;
            }
            else {
                result.options_ = this.optionsBuilder_.build();
            }
        }
        
        private void buildPartial0(final Method result) {
            final int from_bitField0_ = this.bitField0_;
            if ((from_bitField0_ & 0x1) != 0x0) {
                result.name_ = this.name_;
            }
            if ((from_bitField0_ & 0x2) != 0x0) {
                result.requestTypeUrl_ = this.requestTypeUrl_;
            }
            if ((from_bitField0_ & 0x4) != 0x0) {
                result.requestStreaming_ = this.requestStreaming_;
            }
            if ((from_bitField0_ & 0x8) != 0x0) {
                result.responseTypeUrl_ = this.responseTypeUrl_;
            }
            if ((from_bitField0_ & 0x10) != 0x0) {
                result.responseStreaming_ = this.responseStreaming_;
            }
            if ((from_bitField0_ & 0x40) != 0x0) {
                result.syntax_ = this.syntax_;
            }
            if ((from_bitField0_ & 0x80) != 0x0) {
                result.edition_ = this.edition_;
            }
        }
        
        @Override
        public Builder mergeFrom(final Message other) {
            if (other instanceof Method) {
                return this.mergeFrom((Method)other);
            }
            super.mergeFrom(other);
            return this;
        }
        
        public Builder mergeFrom(final Method other) {
            if (other == Method.getDefaultInstance()) {
                return this;
            }
            if (!other.getName().isEmpty()) {
                this.name_ = other.name_;
                this.bitField0_ |= 0x1;
                this.onChanged();
            }
            if (!other.getRequestTypeUrl().isEmpty()) {
                this.requestTypeUrl_ = other.requestTypeUrl_;
                this.bitField0_ |= 0x2;
                this.onChanged();
            }
            if (other.getRequestStreaming()) {
                this.setRequestStreaming(other.getRequestStreaming());
            }
            if (!other.getResponseTypeUrl().isEmpty()) {
                this.responseTypeUrl_ = other.responseTypeUrl_;
                this.bitField0_ |= 0x8;
                this.onChanged();
            }
            if (other.getResponseStreaming()) {
                this.setResponseStreaming(other.getResponseStreaming());
            }
            if (this.optionsBuilder_ == null) {
                if (!other.options_.isEmpty()) {
                    if (this.options_.isEmpty()) {
                        this.options_ = other.options_;
                        this.bitField0_ &= 0xFFFFFFDF;
                    }
                    else {
                        this.ensureOptionsIsMutable();
                        this.options_.addAll(other.options_);
                    }
                    this.onChanged();
                }
            }
            else if (!other.options_.isEmpty()) {
                if (this.optionsBuilder_.isEmpty()) {
                    this.optionsBuilder_.dispose();
                    this.optionsBuilder_ = null;
                    this.options_ = other.options_;
                    this.bitField0_ &= 0xFFFFFFDF;
                    this.optionsBuilder_ = (GeneratedMessage.alwaysUseFieldBuilders ? this.internalGetOptionsFieldBuilder() : null);
                }
                else {
                    this.optionsBuilder_.addAllMessages(other.options_);
                }
            }
            if (other.syntax_ != 0) {
                this.setSyntaxValue(other.getSyntaxValue());
            }
            if (!other.getEdition().isEmpty()) {
                this.edition_ = other.edition_;
                this.bitField0_ |= 0x80;
                this.onChanged();
            }
            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;
                        }
                        case 10: {
                            this.name_ = input.readStringRequireUtf8();
                            this.bitField0_ |= 0x1;
                            continue;
                        }
                        case 18: {
                            this.requestTypeUrl_ = input.readStringRequireUtf8();
                            this.bitField0_ |= 0x2;
                            continue;
                        }
                        case 24: {
                            this.requestStreaming_ = input.readBool();
                            this.bitField0_ |= 0x4;
                            continue;
                        }
                        case 34: {
                            this.responseTypeUrl_ = input.readStringRequireUtf8();
                            this.bitField0_ |= 0x8;
                            continue;
                        }
                        case 40: {
                            this.responseStreaming_ = input.readBool();
                            this.bitField0_ |= 0x10;
                            continue;
                        }
                        case 50: {
                            final Option m = input.readMessage(Option.parser(), extensionRegistry);
                            if (this.optionsBuilder_ == null) {
                                this.ensureOptionsIsMutable();
                                this.options_.add(m);
                                continue;
                            }
                            this.optionsBuilder_.addMessage(m);
                            continue;
                        }
                        case 56: {
                            this.syntax_ = input.readEnum();
                            this.bitField0_ |= 0x40;
                            continue;
                        }
                        case 66: {
                            this.edition_ = input.readStringRequireUtf8();
                            this.bitField0_ |= 0x80;
                            continue;
                        }
                        default: {
                            if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                                done = true;
                                continue;
                            }
                            continue;
                        }
                    }
                }
            }
            catch (final InvalidProtocolBufferException e) {
                throw e.unwrapIOException();
            }
            finally {
                this.onChanged();
            }
            return this;
        }
        
        @Override
        public String getName() {
            final Object ref = this.name_;
            if (!(ref instanceof String)) {
                final ByteString bs = (ByteString)ref;
                final String s = bs.toStringUtf8();
                return (String)(this.name_ = s);
            }
            return (String)ref;
        }
        
        @Override
        public ByteString getNameBytes() {
            final Object ref = this.name_;
            if (ref instanceof String) {
                final ByteString b = ByteString.copyFromUtf8((String)ref);
                return (ByteString)(this.name_ = b);
            }
            return (ByteString)ref;
        }
        
        public Builder setName(final String value) {
            if (value == null) {
                throw new NullPointerException();
            }
            this.name_ = value;
            this.bitField0_ |= 0x1;
            this.onChanged();
            return this;
        }
        
        public Builder clearName() {
            this.name_ = Method.getDefaultInstance().getName();
            this.bitField0_ &= 0xFFFFFFFE;
            this.onChanged();
            return this;
        }
        
        public Builder setNameBytes(final ByteString value) {
            if (value == null) {
                throw new NullPointerException();
            }
            AbstractMessageLite.checkByteStringIsUtf8(value);
            this.name_ = value;
            this.bitField0_ |= 0x1;
            this.onChanged();
            return this;
        }
        
        @Override
        public String getRequestTypeUrl() {
            final Object ref = this.requestTypeUrl_;
            if (!(ref instanceof String)) {
                final ByteString bs = (ByteString)ref;
                final String s = bs.toStringUtf8();
                return (String)(this.requestTypeUrl_ = s);
            }
            return (String)ref;
        }
        
        @Override
        public ByteString getRequestTypeUrlBytes() {
            final Object ref = this.requestTypeUrl_;
            if (ref instanceof String) {
                final ByteString b = ByteString.copyFromUtf8((String)ref);
                return (ByteString)(this.requestTypeUrl_ = b);
            }
            return (ByteString)ref;
        }
        
        public Builder setRequestTypeUrl(final String value) {
            if (value == null) {
                throw new NullPointerException();
            }
            this.requestTypeUrl_ = value;
            this.bitField0_ |= 0x2;
            this.onChanged();
            return this;
        }
        
        public Builder clearRequestTypeUrl() {
            this.requestTypeUrl_ = Method.getDefaultInstance().getRequestTypeUrl();
            this.bitField0_ &= 0xFFFFFFFD;
            this.onChanged();
            return this;
        }
        
        public Builder setRequestTypeUrlBytes(final ByteString value) {
            if (value == null) {
                throw new NullPointerException();
            }
            AbstractMessageLite.checkByteStringIsUtf8(value);
            this.requestTypeUrl_ = value;
            this.bitField0_ |= 0x2;
            this.onChanged();
            return this;
        }
        
        @Override
        public boolean getRequestStreaming() {
            return this.requestStreaming_;
        }
        
        public Builder setRequestStreaming(final boolean value) {
            this.requestStreaming_ = value;
            this.bitField0_ |= 0x4;
            this.onChanged();
            return this;
        }
        
        public Builder clearRequestStreaming() {
            this.bitField0_ &= 0xFFFFFFFB;
            this.requestStreaming_ = false;
            this.onChanged();
            return this;
        }
        
        @Override
        public String getResponseTypeUrl() {
            final Object ref = this.responseTypeUrl_;
            if (!(ref instanceof String)) {
                final ByteString bs = (ByteString)ref;
                final String s = bs.toStringUtf8();
                return (String)(this.responseTypeUrl_ = s);
            }
            return (String)ref;
        }
        
        @Override
        public ByteString getResponseTypeUrlBytes() {
            final Object ref = this.responseTypeUrl_;
            if (ref instanceof String) {
                final ByteString b = ByteString.copyFromUtf8((String)ref);
                return (ByteString)(this.responseTypeUrl_ = b);
            }
            return (ByteString)ref;
        }
        
        public Builder setResponseTypeUrl(final String value) {
            if (value == null) {
                throw new NullPointerException();
            }
            this.responseTypeUrl_ = value;
            this.bitField0_ |= 0x8;
            this.onChanged();
            return this;
        }
        
        public Builder clearResponseTypeUrl() {
            this.responseTypeUrl_ = Method.getDefaultInstance().getResponseTypeUrl();
            this.bitField0_ &= 0xFFFFFFF7;
            this.onChanged();
            return this;
        }
        
        public Builder setResponseTypeUrlBytes(final ByteString value) {
            if (value == null) {
                throw new NullPointerException();
            }
            AbstractMessageLite.checkByteStringIsUtf8(value);
            this.responseTypeUrl_ = value;
            this.bitField0_ |= 0x8;
            this.onChanged();
            return this;
        }
        
        @Override
        public boolean getResponseStreaming() {
            return this.responseStreaming_;
        }
        
        public Builder setResponseStreaming(final boolean value) {
            this.responseStreaming_ = value;
            this.bitField0_ |= 0x10;
            this.onChanged();
            return this;
        }
        
        public Builder clearResponseStreaming() {
            this.bitField0_ &= 0xFFFFFFEF;
            this.responseStreaming_ = false;
            this.onChanged();
            return this;
        }
        
        private void ensureOptionsIsMutable() {
            if ((this.bitField0_ & 0x20) == 0x0) {
                this.options_ = new ArrayList<Option>(this.options_);
                this.bitField0_ |= 0x20;
            }
        }
        
        @Override
        public List<Option> getOptionsList() {
            if (this.optionsBuilder_ == null) {
                return Collections.unmodifiableList((List<? extends Option>)this.options_);
            }
            return this.optionsBuilder_.getMessageList();
        }
        
        @Override
        public int getOptionsCount() {
            if (this.optionsBuilder_ == null) {
                return this.options_.size();
            }
            return this.optionsBuilder_.getCount();
        }
        
        @Override
        public Option getOptions(final int index) {
            if (this.optionsBuilder_ == null) {
                return this.options_.get(index);
            }
            return this.optionsBuilder_.getMessage(index);
        }
        
        public Builder setOptions(final int index, final Option value) {
            if (this.optionsBuilder_ == null) {
                if (value == null) {
                    throw new NullPointerException();
                }
                this.ensureOptionsIsMutable();
                this.options_.set(index, value);
                this.onChanged();
            }
            else {
                this.optionsBuilder_.setMessage(index, value);
            }
            return this;
        }
        
        public Builder setOptions(final int index, final Option.Builder builderForValue) {
            if (this.optionsBuilder_ == null) {
                this.ensureOptionsIsMutable();
                this.options_.set(index, builderForValue.build());
                this.onChanged();
            }
            else {
                this.optionsBuilder_.setMessage(index, builderForValue.build());
            }
            return this;
        }
        
        public Builder addOptions(final Option value) {
            if (this.optionsBuilder_ == null) {
                if (value == null) {
                    throw new NullPointerException();
                }
                this.ensureOptionsIsMutable();
                this.options_.add(value);
                this.onChanged();
            }
            else {
                this.optionsBuilder_.addMessage(value);
            }
            return this;
        }
        
        public Builder addOptions(final int index, final Option value) {
            if (this.optionsBuilder_ == null) {
                if (value == null) {
                    throw new NullPointerException();
                }
                this.ensureOptionsIsMutable();
                this.options_.add(index, value);
                this.onChanged();
            }
            else {
                this.optionsBuilder_.addMessage(index, value);
            }
            return this;
        }
        
        public Builder addOptions(final Option.Builder builderForValue) {
            if (this.optionsBuilder_ == null) {
                this.ensureOptionsIsMutable();
                this.options_.add(builderForValue.build());
                this.onChanged();
            }
            else {
                this.optionsBuilder_.addMessage(builderForValue.build());
            }
            return this;
        }
        
        public Builder addOptions(final int index, final Option.Builder builderForValue) {
            if (this.optionsBuilder_ == null) {
                this.ensureOptionsIsMutable();
                this.options_.add(index, builderForValue.build());
                this.onChanged();
            }
            else {
                this.optionsBuilder_.addMessage(index, builderForValue.build());
            }
            return this;
        }
        
        public Builder addAllOptions(final Iterable<? extends Option> values) {
            if (this.optionsBuilder_ == null) {
                this.ensureOptionsIsMutable();
                AbstractMessageLite.Builder.addAll(values, this.options_);
                this.onChanged();
            }
            else {
                this.optionsBuilder_.addAllMessages(values);
            }
            return this;
        }
        
        public Builder clearOptions() {
            if (this.optionsBuilder_ == null) {
                this.options_ = Collections.emptyList();
                this.bitField0_ &= 0xFFFFFFDF;
                this.onChanged();
            }
            else {
                this.optionsBuilder_.clear();
            }
            return this;
        }
        
        public Builder removeOptions(final int index) {
            if (this.optionsBuilder_ == null) {
                this.ensureOptionsIsMutable();
                this.options_.remove(index);
                this.onChanged();
            }
            else {
                this.optionsBuilder_.remove(index);
            }
            return this;
        }
        
        public Option.Builder getOptionsBuilder(final int index) {
            return this.internalGetOptionsFieldBuilder().getBuilder(index);
        }
        
        @Override
        public OptionOrBuilder getOptionsOrBuilder(final int index) {
            if (this.optionsBuilder_ == null) {
                return this.options_.get(index);
            }
            return this.optionsBuilder_.getMessageOrBuilder(index);
        }
        
        @Override
        public List<? extends OptionOrBuilder> getOptionsOrBuilderList() {
            if (this.optionsBuilder_ != null) {
                return this.optionsBuilder_.getMessageOrBuilderList();
            }
            return Collections.unmodifiableList((List<? extends OptionOrBuilder>)this.options_);
        }
        
        public Option.Builder addOptionsBuilder() {
            return this.internalGetOptionsFieldBuilder().addBuilder(Option.getDefaultInstance());
        }
        
        public Option.Builder addOptionsBuilder(final int index) {
            return this.internalGetOptionsFieldBuilder().addBuilder(index, Option.getDefaultInstance());
        }
        
        public List<Option.Builder> getOptionsBuilderList() {
            return this.internalGetOptionsFieldBuilder().getBuilderList();
        }
        
        private RepeatedFieldBuilder<Option, Option.Builder, OptionOrBuilder> internalGetOptionsFieldBuilder() {
            if (this.optionsBuilder_ == null) {
                this.optionsBuilder_ = new RepeatedFieldBuilder<Option, Option.Builder, OptionOrBuilder>(this.options_, (this.bitField0_ & 0x20) != 0x0, this.getParentForChildren(), this.isClean());
                this.options_ = null;
            }
            return this.optionsBuilder_;
        }
        
        @Deprecated
        @Override
        public int getSyntaxValue() {
            return this.syntax_;
        }
        
        @Deprecated
        public Builder setSyntaxValue(final int value) {
            this.syntax_ = value;
            this.bitField0_ |= 0x40;
            this.onChanged();
            return this;
        }
        
        @Deprecated
        @Override
        public Syntax getSyntax() {
            final Syntax result = Syntax.forNumber(this.syntax_);
            return (result == null) ? Syntax.UNRECOGNIZED : result;
        }
        
        @Deprecated
        public Builder setSyntax(final Syntax value) {
            if (value == null) {
                throw new NullPointerException();
            }
            this.bitField0_ |= 0x40;
            this.syntax_ = value.getNumber();
            this.onChanged();
            return this;
        }
        
        @Deprecated
        public Builder clearSyntax() {
            this.bitField0_ &= 0xFFFFFFBF;
            this.syntax_ = 0;
            this.onChanged();
            return this;
        }
        
        @Deprecated
        @Override
        public String getEdition() {
            final Object ref = this.edition_;
            if (!(ref instanceof String)) {
                final ByteString bs = (ByteString)ref;
                final String s = bs.toStringUtf8();
                return (String)(this.edition_ = s);
            }
            return (String)ref;
        }
        
        @Deprecated
        @Override
        public ByteString getEditionBytes() {
            final Object ref = this.edition_;
            if (ref instanceof String) {
                final ByteString b = ByteString.copyFromUtf8((String)ref);
                return (ByteString)(this.edition_ = b);
            }
            return (ByteString)ref;
        }
        
        @Deprecated
        public Builder setEdition(final String value) {
            if (value == null) {
                throw new NullPointerException();
            }
            this.edition_ = value;
            this.bitField0_ |= 0x80;
            this.onChanged();
            return this;
        }
        
        @Deprecated
        public Builder clearEdition() {
            this.edition_ = Method.getDefaultInstance().getEdition();
            this.bitField0_ &= 0xFFFFFF7F;
            this.onChanged();
            return this;
        }
        
        @Deprecated
        public Builder setEditionBytes(final ByteString value) {
            if (value == null) {
                throw new NullPointerException();
            }
            AbstractMessageLite.checkByteStringIsUtf8(value);
            this.edition_ = value;
            this.bitField0_ |= 0x80;
            this.onChanged();
            return this;
        }
    }
}
