All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.hadoop.ha.proto.ZKFCProtocolProtos Maven / Gradle / Ivy

There is a newer version: 3.2.0-9
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: ZKFCProtocol.proto

package org.apache.hadoop.ha.proto;

public final class ZKFCProtocolProtos {
  private ZKFCProtocolProtos() {}
  public static void registerAllExtensions(
      io.prestosql.hadoop.$internal.com.google.protobuf.ExtensionRegistry registry) {
  }
  public interface CedeActiveRequestProtoOrBuilder
      extends io.prestosql.hadoop.$internal.com.google.protobuf.MessageOrBuilder {

    // required uint32 millisToCede = 1;
    /**
     * required uint32 millisToCede = 1;
     */
    boolean hasMillisToCede();
    /**
     * required uint32 millisToCede = 1;
     */
    int getMillisToCede();
  }
  /**
   * Protobuf type {@code hadoop.common.CedeActiveRequestProto}
   */
  public static final class CedeActiveRequestProto extends
      io.prestosql.hadoop.$internal.com.google.protobuf.GeneratedMessage
      implements CedeActiveRequestProtoOrBuilder {
    // Use CedeActiveRequestProto.newBuilder() to construct.
    private CedeActiveRequestProto(io.prestosql.hadoop.$internal.com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private CedeActiveRequestProto(boolean noInit) { this.unknownFields = io.prestosql.hadoop.$internal.com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

    private static final CedeActiveRequestProto defaultInstance;
    public static CedeActiveRequestProto getDefaultInstance() {
      return defaultInstance;
    }

    public CedeActiveRequestProto getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final io.prestosql.hadoop.$internal.com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final io.prestosql.hadoop.$internal.com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private CedeActiveRequestProto(
        io.prestosql.hadoop.$internal.com.google.protobuf.CodedInputStream input,
        io.prestosql.hadoop.$internal.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws io.prestosql.hadoop.$internal.com.google.protobuf.InvalidProtocolBufferException {
      initFields();
      int mutable_bitField0_ = 0;
      io.prestosql.hadoop.$internal.com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          io.prestosql.hadoop.$internal.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 8: {
              bitField0_ |= 0x00000001;
              millisToCede_ = input.readUInt32();
              break;
            }
          }
        }
      } catch (io.prestosql.hadoop.$internal.com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new io.prestosql.hadoop.$internal.com.google.protobuf.InvalidProtocolBufferException(
            e.getMessage()).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final io.prestosql.hadoop.$internal.com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.apache.hadoop.ha.proto.ZKFCProtocolProtos.internal_static_hadoop_common_CedeActiveRequestProto_descriptor;
    }

    protected io.prestosql.hadoop.$internal.com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.apache.hadoop.ha.proto.ZKFCProtocolProtos.internal_static_hadoop_common_CedeActiveRequestProto_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveRequestProto.class, org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveRequestProto.Builder.class);
    }

    public static io.prestosql.hadoop.$internal.com.google.protobuf.Parser PARSER =
        new io.prestosql.hadoop.$internal.com.google.protobuf.AbstractParser() {
      public CedeActiveRequestProto parsePartialFrom(
          io.prestosql.hadoop.$internal.com.google.protobuf.CodedInputStream input,
          io.prestosql.hadoop.$internal.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws io.prestosql.hadoop.$internal.com.google.protobuf.InvalidProtocolBufferException {
        return new CedeActiveRequestProto(input, extensionRegistry);
      }
    };

    @java.lang.Override
    public io.prestosql.hadoop.$internal.com.google.protobuf.Parser getParserForType() {
      return PARSER;
    }

    private int bitField0_;
    // required uint32 millisToCede = 1;
    public static final int MILLISTOCEDE_FIELD_NUMBER = 1;
    private int millisToCede_;
    /**
     * required uint32 millisToCede = 1;
     */
    public boolean hasMillisToCede() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * required uint32 millisToCede = 1;
     */
    public int getMillisToCede() {
      return millisToCede_;
    }

    private void initFields() {
      millisToCede_ = 0;
    }
    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized != -1) return isInitialized == 1;

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

    public void writeTo(io.prestosql.hadoop.$internal.com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        output.writeUInt32(1, millisToCede_);
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        size += io.prestosql.hadoop.$internal.com.google.protobuf.CodedOutputStream
          .computeUInt32Size(1, millisToCede_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSerializedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    @java.lang.Override
    protected java.lang.Object writeReplace()
        throws java.io.ObjectStreamException {
      return super.writeReplace();
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveRequestProto)) {
        return super.equals(obj);
      }
      org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveRequestProto other = (org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveRequestProto) obj;

      boolean result = true;
      result = result && (hasMillisToCede() == other.hasMillisToCede());
      if (hasMillisToCede()) {
        result = result && (getMillisToCede()
            == other.getMillisToCede());
      }
      result = result &&
          getUnknownFields().equals(other.getUnknownFields());
      return result;
    }

    private int memoizedHashCode = 0;
    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptorForType().hashCode();
      if (hasMillisToCede()) {
        hash = (37 * hash) + MILLISTOCEDE_FIELD_NUMBER;
        hash = (53 * hash) + getMillisToCede();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveRequestProto parseFrom(
        io.prestosql.hadoop.$internal.com.google.protobuf.ByteString data)
        throws io.prestosql.hadoop.$internal.com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveRequestProto parseFrom(
        io.prestosql.hadoop.$internal.com.google.protobuf.ByteString data,
        io.prestosql.hadoop.$internal.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws io.prestosql.hadoop.$internal.com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveRequestProto parseFrom(byte[] data)
        throws io.prestosql.hadoop.$internal.com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveRequestProto parseFrom(
        byte[] data,
        io.prestosql.hadoop.$internal.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws io.prestosql.hadoop.$internal.com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveRequestProto parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveRequestProto parseFrom(
        java.io.InputStream input,
        io.prestosql.hadoop.$internal.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveRequestProto parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveRequestProto parseDelimitedFrom(
        java.io.InputStream input,
        io.prestosql.hadoop.$internal.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveRequestProto parseFrom(
        io.prestosql.hadoop.$internal.com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveRequestProto parseFrom(
        io.prestosql.hadoop.$internal.com.google.protobuf.CodedInputStream input,
        io.prestosql.hadoop.$internal.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }

    public static Builder newBuilder() { return Builder.create(); }
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder(org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveRequestProto prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }

    @java.lang.Override
    protected Builder newBuilderForType(
        io.prestosql.hadoop.$internal.com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code hadoop.common.CedeActiveRequestProto}
     */
    public static final class Builder extends
        io.prestosql.hadoop.$internal.com.google.protobuf.GeneratedMessage.Builder
       implements org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveRequestProtoOrBuilder {
      public static final io.prestosql.hadoop.$internal.com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.apache.hadoop.ha.proto.ZKFCProtocolProtos.internal_static_hadoop_common_CedeActiveRequestProto_descriptor;
      }

      protected io.prestosql.hadoop.$internal.com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.apache.hadoop.ha.proto.ZKFCProtocolProtos.internal_static_hadoop_common_CedeActiveRequestProto_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveRequestProto.class, org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveRequestProto.Builder.class);
      }

      // Construct using org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveRequestProto.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          io.prestosql.hadoop.$internal.com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (io.prestosql.hadoop.$internal.com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
        }
      }
      private static Builder create() {
        return new Builder();
      }

      public Builder clear() {
        super.clear();
        millisToCede_ = 0;
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }

      public Builder clone() {
        return create().mergeFrom(buildPartial());
      }

      public io.prestosql.hadoop.$internal.com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.apache.hadoop.ha.proto.ZKFCProtocolProtos.internal_static_hadoop_common_CedeActiveRequestProto_descriptor;
      }

      public org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveRequestProto getDefaultInstanceForType() {
        return org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveRequestProto.getDefaultInstance();
      }

      public org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveRequestProto build() {
        org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveRequestProto result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveRequestProto buildPartial() {
        org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveRequestProto result = new org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveRequestProto(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        result.millisToCede_ = millisToCede_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(io.prestosql.hadoop.$internal.com.google.protobuf.Message other) {
        if (other instanceof org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveRequestProto) {
          return mergeFrom((org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveRequestProto)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveRequestProto other) {
        if (other == org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveRequestProto.getDefaultInstance()) return this;
        if (other.hasMillisToCede()) {
          setMillisToCede(other.getMillisToCede());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }

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

      public Builder mergeFrom(
          io.prestosql.hadoop.$internal.com.google.protobuf.CodedInputStream input,
          io.prestosql.hadoop.$internal.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveRequestProto parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (io.prestosql.hadoop.$internal.com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveRequestProto) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // required uint32 millisToCede = 1;
      private int millisToCede_ ;
      /**
       * required uint32 millisToCede = 1;
       */
      public boolean hasMillisToCede() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * required uint32 millisToCede = 1;
       */
      public int getMillisToCede() {
        return millisToCede_;
      }
      /**
       * required uint32 millisToCede = 1;
       */
      public Builder setMillisToCede(int value) {
        bitField0_ |= 0x00000001;
        millisToCede_ = value;
        onChanged();
        return this;
      }
      /**
       * required uint32 millisToCede = 1;
       */
      public Builder clearMillisToCede() {
        bitField0_ = (bitField0_ & ~0x00000001);
        millisToCede_ = 0;
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:hadoop.common.CedeActiveRequestProto)
    }

    static {
      defaultInstance = new CedeActiveRequestProto(true);
      defaultInstance.initFields();
    }

    // @@protoc_insertion_point(class_scope:hadoop.common.CedeActiveRequestProto)
  }

  public interface CedeActiveResponseProtoOrBuilder
      extends io.prestosql.hadoop.$internal.com.google.protobuf.MessageOrBuilder {
  }
  /**
   * Protobuf type {@code hadoop.common.CedeActiveResponseProto}
   */
  public static final class CedeActiveResponseProto extends
      io.prestosql.hadoop.$internal.com.google.protobuf.GeneratedMessage
      implements CedeActiveResponseProtoOrBuilder {
    // Use CedeActiveResponseProto.newBuilder() to construct.
    private CedeActiveResponseProto(io.prestosql.hadoop.$internal.com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private CedeActiveResponseProto(boolean noInit) { this.unknownFields = io.prestosql.hadoop.$internal.com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

    private static final CedeActiveResponseProto defaultInstance;
    public static CedeActiveResponseProto getDefaultInstance() {
      return defaultInstance;
    }

    public CedeActiveResponseProto getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final io.prestosql.hadoop.$internal.com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final io.prestosql.hadoop.$internal.com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private CedeActiveResponseProto(
        io.prestosql.hadoop.$internal.com.google.protobuf.CodedInputStream input,
        io.prestosql.hadoop.$internal.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws io.prestosql.hadoop.$internal.com.google.protobuf.InvalidProtocolBufferException {
      initFields();
      io.prestosql.hadoop.$internal.com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          io.prestosql.hadoop.$internal.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;
            }
          }
        }
      } catch (io.prestosql.hadoop.$internal.com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new io.prestosql.hadoop.$internal.com.google.protobuf.InvalidProtocolBufferException(
            e.getMessage()).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final io.prestosql.hadoop.$internal.com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.apache.hadoop.ha.proto.ZKFCProtocolProtos.internal_static_hadoop_common_CedeActiveResponseProto_descriptor;
    }

    protected io.prestosql.hadoop.$internal.com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.apache.hadoop.ha.proto.ZKFCProtocolProtos.internal_static_hadoop_common_CedeActiveResponseProto_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveResponseProto.class, org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveResponseProto.Builder.class);
    }

    public static io.prestosql.hadoop.$internal.com.google.protobuf.Parser PARSER =
        new io.prestosql.hadoop.$internal.com.google.protobuf.AbstractParser() {
      public CedeActiveResponseProto parsePartialFrom(
          io.prestosql.hadoop.$internal.com.google.protobuf.CodedInputStream input,
          io.prestosql.hadoop.$internal.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws io.prestosql.hadoop.$internal.com.google.protobuf.InvalidProtocolBufferException {
        return new CedeActiveResponseProto(input, extensionRegistry);
      }
    };

    @java.lang.Override
    public io.prestosql.hadoop.$internal.com.google.protobuf.Parser getParserForType() {
      return PARSER;
    }

    private void initFields() {
    }
    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized != -1) return isInitialized == 1;

      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(io.prestosql.hadoop.$internal.com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      size += getUnknownFields().getSerializedSize();
      memoizedSerializedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    @java.lang.Override
    protected java.lang.Object writeReplace()
        throws java.io.ObjectStreamException {
      return super.writeReplace();
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveResponseProto)) {
        return super.equals(obj);
      }
      org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveResponseProto other = (org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveResponseProto) obj;

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

    private int memoizedHashCode = 0;
    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptorForType().hashCode();
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveResponseProto parseFrom(
        io.prestosql.hadoop.$internal.com.google.protobuf.ByteString data)
        throws io.prestosql.hadoop.$internal.com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveResponseProto parseFrom(
        io.prestosql.hadoop.$internal.com.google.protobuf.ByteString data,
        io.prestosql.hadoop.$internal.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws io.prestosql.hadoop.$internal.com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveResponseProto parseFrom(byte[] data)
        throws io.prestosql.hadoop.$internal.com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveResponseProto parseFrom(
        byte[] data,
        io.prestosql.hadoop.$internal.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws io.prestosql.hadoop.$internal.com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveResponseProto parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveResponseProto parseFrom(
        java.io.InputStream input,
        io.prestosql.hadoop.$internal.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveResponseProto parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveResponseProto parseDelimitedFrom(
        java.io.InputStream input,
        io.prestosql.hadoop.$internal.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveResponseProto parseFrom(
        io.prestosql.hadoop.$internal.com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveResponseProto parseFrom(
        io.prestosql.hadoop.$internal.com.google.protobuf.CodedInputStream input,
        io.prestosql.hadoop.$internal.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }

    public static Builder newBuilder() { return Builder.create(); }
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder(org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveResponseProto prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }

    @java.lang.Override
    protected Builder newBuilderForType(
        io.prestosql.hadoop.$internal.com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code hadoop.common.CedeActiveResponseProto}
     */
    public static final class Builder extends
        io.prestosql.hadoop.$internal.com.google.protobuf.GeneratedMessage.Builder
       implements org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveResponseProtoOrBuilder {
      public static final io.prestosql.hadoop.$internal.com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.apache.hadoop.ha.proto.ZKFCProtocolProtos.internal_static_hadoop_common_CedeActiveResponseProto_descriptor;
      }

      protected io.prestosql.hadoop.$internal.com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.apache.hadoop.ha.proto.ZKFCProtocolProtos.internal_static_hadoop_common_CedeActiveResponseProto_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveResponseProto.class, org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveResponseProto.Builder.class);
      }

      // Construct using org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveResponseProto.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          io.prestosql.hadoop.$internal.com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (io.prestosql.hadoop.$internal.com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
        }
      }
      private static Builder create() {
        return new Builder();
      }

      public Builder clear() {
        super.clear();
        return this;
      }

      public Builder clone() {
        return create().mergeFrom(buildPartial());
      }

      public io.prestosql.hadoop.$internal.com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.apache.hadoop.ha.proto.ZKFCProtocolProtos.internal_static_hadoop_common_CedeActiveResponseProto_descriptor;
      }

      public org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveResponseProto getDefaultInstanceForType() {
        return org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveResponseProto.getDefaultInstance();
      }

      public org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveResponseProto build() {
        org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveResponseProto result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveResponseProto buildPartial() {
        org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveResponseProto result = new org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveResponseProto(this);
        onBuilt();
        return result;
      }

      public Builder mergeFrom(io.prestosql.hadoop.$internal.com.google.protobuf.Message other) {
        if (other instanceof org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveResponseProto) {
          return mergeFrom((org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveResponseProto)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveResponseProto other) {
        if (other == org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveResponseProto.getDefaultInstance()) return this;
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }

      public final boolean isInitialized() {
        return true;
      }

      public Builder mergeFrom(
          io.prestosql.hadoop.$internal.com.google.protobuf.CodedInputStream input,
          io.prestosql.hadoop.$internal.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveResponseProto parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (io.prestosql.hadoop.$internal.com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveResponseProto) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      // @@protoc_insertion_point(builder_scope:hadoop.common.CedeActiveResponseProto)
    }

    static {
      defaultInstance = new CedeActiveResponseProto(true);
      defaultInstance.initFields();
    }

    // @@protoc_insertion_point(class_scope:hadoop.common.CedeActiveResponseProto)
  }

  public interface GracefulFailoverRequestProtoOrBuilder
      extends io.prestosql.hadoop.$internal.com.google.protobuf.MessageOrBuilder {
  }
  /**
   * Protobuf type {@code hadoop.common.GracefulFailoverRequestProto}
   */
  public static final class GracefulFailoverRequestProto extends
      io.prestosql.hadoop.$internal.com.google.protobuf.GeneratedMessage
      implements GracefulFailoverRequestProtoOrBuilder {
    // Use GracefulFailoverRequestProto.newBuilder() to construct.
    private GracefulFailoverRequestProto(io.prestosql.hadoop.$internal.com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private GracefulFailoverRequestProto(boolean noInit) { this.unknownFields = io.prestosql.hadoop.$internal.com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

    private static final GracefulFailoverRequestProto defaultInstance;
    public static GracefulFailoverRequestProto getDefaultInstance() {
      return defaultInstance;
    }

    public GracefulFailoverRequestProto getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final io.prestosql.hadoop.$internal.com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final io.prestosql.hadoop.$internal.com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private GracefulFailoverRequestProto(
        io.prestosql.hadoop.$internal.com.google.protobuf.CodedInputStream input,
        io.prestosql.hadoop.$internal.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws io.prestosql.hadoop.$internal.com.google.protobuf.InvalidProtocolBufferException {
      initFields();
      io.prestosql.hadoop.$internal.com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          io.prestosql.hadoop.$internal.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;
            }
          }
        }
      } catch (io.prestosql.hadoop.$internal.com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new io.prestosql.hadoop.$internal.com.google.protobuf.InvalidProtocolBufferException(
            e.getMessage()).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final io.prestosql.hadoop.$internal.com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.apache.hadoop.ha.proto.ZKFCProtocolProtos.internal_static_hadoop_common_GracefulFailoverRequestProto_descriptor;
    }

    protected io.prestosql.hadoop.$internal.com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.apache.hadoop.ha.proto.ZKFCProtocolProtos.internal_static_hadoop_common_GracefulFailoverRequestProto_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverRequestProto.class, org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverRequestProto.Builder.class);
    }

    public static io.prestosql.hadoop.$internal.com.google.protobuf.Parser PARSER =
        new io.prestosql.hadoop.$internal.com.google.protobuf.AbstractParser() {
      public GracefulFailoverRequestProto parsePartialFrom(
          io.prestosql.hadoop.$internal.com.google.protobuf.CodedInputStream input,
          io.prestosql.hadoop.$internal.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws io.prestosql.hadoop.$internal.com.google.protobuf.InvalidProtocolBufferException {
        return new GracefulFailoverRequestProto(input, extensionRegistry);
      }
    };

    @java.lang.Override
    public io.prestosql.hadoop.$internal.com.google.protobuf.Parser getParserForType() {
      return PARSER;
    }

    private void initFields() {
    }
    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized != -1) return isInitialized == 1;

      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(io.prestosql.hadoop.$internal.com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      size += getUnknownFields().getSerializedSize();
      memoizedSerializedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    @java.lang.Override
    protected java.lang.Object writeReplace()
        throws java.io.ObjectStreamException {
      return super.writeReplace();
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverRequestProto)) {
        return super.equals(obj);
      }
      org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverRequestProto other = (org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverRequestProto) obj;

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

    private int memoizedHashCode = 0;
    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptorForType().hashCode();
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverRequestProto parseFrom(
        io.prestosql.hadoop.$internal.com.google.protobuf.ByteString data)
        throws io.prestosql.hadoop.$internal.com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverRequestProto parseFrom(
        io.prestosql.hadoop.$internal.com.google.protobuf.ByteString data,
        io.prestosql.hadoop.$internal.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws io.prestosql.hadoop.$internal.com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverRequestProto parseFrom(byte[] data)
        throws io.prestosql.hadoop.$internal.com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverRequestProto parseFrom(
        byte[] data,
        io.prestosql.hadoop.$internal.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws io.prestosql.hadoop.$internal.com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverRequestProto parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverRequestProto parseFrom(
        java.io.InputStream input,
        io.prestosql.hadoop.$internal.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverRequestProto parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverRequestProto parseDelimitedFrom(
        java.io.InputStream input,
        io.prestosql.hadoop.$internal.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverRequestProto parseFrom(
        io.prestosql.hadoop.$internal.com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverRequestProto parseFrom(
        io.prestosql.hadoop.$internal.com.google.protobuf.CodedInputStream input,
        io.prestosql.hadoop.$internal.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }

    public static Builder newBuilder() { return Builder.create(); }
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder(org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverRequestProto prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }

    @java.lang.Override
    protected Builder newBuilderForType(
        io.prestosql.hadoop.$internal.com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code hadoop.common.GracefulFailoverRequestProto}
     */
    public static final class Builder extends
        io.prestosql.hadoop.$internal.com.google.protobuf.GeneratedMessage.Builder
       implements org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverRequestProtoOrBuilder {
      public static final io.prestosql.hadoop.$internal.com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.apache.hadoop.ha.proto.ZKFCProtocolProtos.internal_static_hadoop_common_GracefulFailoverRequestProto_descriptor;
      }

      protected io.prestosql.hadoop.$internal.com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.apache.hadoop.ha.proto.ZKFCProtocolProtos.internal_static_hadoop_common_GracefulFailoverRequestProto_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverRequestProto.class, org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverRequestProto.Builder.class);
      }

      // Construct using org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverRequestProto.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          io.prestosql.hadoop.$internal.com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (io.prestosql.hadoop.$internal.com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
        }
      }
      private static Builder create() {
        return new Builder();
      }

      public Builder clear() {
        super.clear();
        return this;
      }

      public Builder clone() {
        return create().mergeFrom(buildPartial());
      }

      public io.prestosql.hadoop.$internal.com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.apache.hadoop.ha.proto.ZKFCProtocolProtos.internal_static_hadoop_common_GracefulFailoverRequestProto_descriptor;
      }

      public org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverRequestProto getDefaultInstanceForType() {
        return org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverRequestProto.getDefaultInstance();
      }

      public org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverRequestProto build() {
        org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverRequestProto result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverRequestProto buildPartial() {
        org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverRequestProto result = new org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverRequestProto(this);
        onBuilt();
        return result;
      }

      public Builder mergeFrom(io.prestosql.hadoop.$internal.com.google.protobuf.Message other) {
        if (other instanceof org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverRequestProto) {
          return mergeFrom((org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverRequestProto)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverRequestProto other) {
        if (other == org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverRequestProto.getDefaultInstance()) return this;
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }

      public final boolean isInitialized() {
        return true;
      }

      public Builder mergeFrom(
          io.prestosql.hadoop.$internal.com.google.protobuf.CodedInputStream input,
          io.prestosql.hadoop.$internal.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverRequestProto parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (io.prestosql.hadoop.$internal.com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverRequestProto) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      // @@protoc_insertion_point(builder_scope:hadoop.common.GracefulFailoverRequestProto)
    }

    static {
      defaultInstance = new GracefulFailoverRequestProto(true);
      defaultInstance.initFields();
    }

    // @@protoc_insertion_point(class_scope:hadoop.common.GracefulFailoverRequestProto)
  }

  public interface GracefulFailoverResponseProtoOrBuilder
      extends io.prestosql.hadoop.$internal.com.google.protobuf.MessageOrBuilder {
  }
  /**
   * Protobuf type {@code hadoop.common.GracefulFailoverResponseProto}
   */
  public static final class GracefulFailoverResponseProto extends
      io.prestosql.hadoop.$internal.com.google.protobuf.GeneratedMessage
      implements GracefulFailoverResponseProtoOrBuilder {
    // Use GracefulFailoverResponseProto.newBuilder() to construct.
    private GracefulFailoverResponseProto(io.prestosql.hadoop.$internal.com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private GracefulFailoverResponseProto(boolean noInit) { this.unknownFields = io.prestosql.hadoop.$internal.com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

    private static final GracefulFailoverResponseProto defaultInstance;
    public static GracefulFailoverResponseProto getDefaultInstance() {
      return defaultInstance;
    }

    public GracefulFailoverResponseProto getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final io.prestosql.hadoop.$internal.com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final io.prestosql.hadoop.$internal.com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private GracefulFailoverResponseProto(
        io.prestosql.hadoop.$internal.com.google.protobuf.CodedInputStream input,
        io.prestosql.hadoop.$internal.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws io.prestosql.hadoop.$internal.com.google.protobuf.InvalidProtocolBufferException {
      initFields();
      io.prestosql.hadoop.$internal.com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          io.prestosql.hadoop.$internal.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;
            }
          }
        }
      } catch (io.prestosql.hadoop.$internal.com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new io.prestosql.hadoop.$internal.com.google.protobuf.InvalidProtocolBufferException(
            e.getMessage()).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final io.prestosql.hadoop.$internal.com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.apache.hadoop.ha.proto.ZKFCProtocolProtos.internal_static_hadoop_common_GracefulFailoverResponseProto_descriptor;
    }

    protected io.prestosql.hadoop.$internal.com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.apache.hadoop.ha.proto.ZKFCProtocolProtos.internal_static_hadoop_common_GracefulFailoverResponseProto_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverResponseProto.class, org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverResponseProto.Builder.class);
    }

    public static io.prestosql.hadoop.$internal.com.google.protobuf.Parser PARSER =
        new io.prestosql.hadoop.$internal.com.google.protobuf.AbstractParser() {
      public GracefulFailoverResponseProto parsePartialFrom(
          io.prestosql.hadoop.$internal.com.google.protobuf.CodedInputStream input,
          io.prestosql.hadoop.$internal.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws io.prestosql.hadoop.$internal.com.google.protobuf.InvalidProtocolBufferException {
        return new GracefulFailoverResponseProto(input, extensionRegistry);
      }
    };

    @java.lang.Override
    public io.prestosql.hadoop.$internal.com.google.protobuf.Parser getParserForType() {
      return PARSER;
    }

    private void initFields() {
    }
    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized != -1) return isInitialized == 1;

      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(io.prestosql.hadoop.$internal.com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      size += getUnknownFields().getSerializedSize();
      memoizedSerializedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    @java.lang.Override
    protected java.lang.Object writeReplace()
        throws java.io.ObjectStreamException {
      return super.writeReplace();
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverResponseProto)) {
        return super.equals(obj);
      }
      org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverResponseProto other = (org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverResponseProto) obj;

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

    private int memoizedHashCode = 0;
    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptorForType().hashCode();
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverResponseProto parseFrom(
        io.prestosql.hadoop.$internal.com.google.protobuf.ByteString data)
        throws io.prestosql.hadoop.$internal.com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverResponseProto parseFrom(
        io.prestosql.hadoop.$internal.com.google.protobuf.ByteString data,
        io.prestosql.hadoop.$internal.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws io.prestosql.hadoop.$internal.com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverResponseProto parseFrom(byte[] data)
        throws io.prestosql.hadoop.$internal.com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverResponseProto parseFrom(
        byte[] data,
        io.prestosql.hadoop.$internal.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws io.prestosql.hadoop.$internal.com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverResponseProto parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverResponseProto parseFrom(
        java.io.InputStream input,
        io.prestosql.hadoop.$internal.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverResponseProto parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverResponseProto parseDelimitedFrom(
        java.io.InputStream input,
        io.prestosql.hadoop.$internal.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverResponseProto parseFrom(
        io.prestosql.hadoop.$internal.com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverResponseProto parseFrom(
        io.prestosql.hadoop.$internal.com.google.protobuf.CodedInputStream input,
        io.prestosql.hadoop.$internal.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }

    public static Builder newBuilder() { return Builder.create(); }
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder(org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverResponseProto prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }

    @java.lang.Override
    protected Builder newBuilderForType(
        io.prestosql.hadoop.$internal.com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code hadoop.common.GracefulFailoverResponseProto}
     */
    public static final class Builder extends
        io.prestosql.hadoop.$internal.com.google.protobuf.GeneratedMessage.Builder
       implements org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverResponseProtoOrBuilder {
      public static final io.prestosql.hadoop.$internal.com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.apache.hadoop.ha.proto.ZKFCProtocolProtos.internal_static_hadoop_common_GracefulFailoverResponseProto_descriptor;
      }

      protected io.prestosql.hadoop.$internal.com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.apache.hadoop.ha.proto.ZKFCProtocolProtos.internal_static_hadoop_common_GracefulFailoverResponseProto_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverResponseProto.class, org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverResponseProto.Builder.class);
      }

      // Construct using org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverResponseProto.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          io.prestosql.hadoop.$internal.com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (io.prestosql.hadoop.$internal.com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
        }
      }
      private static Builder create() {
        return new Builder();
      }

      public Builder clear() {
        super.clear();
        return this;
      }

      public Builder clone() {
        return create().mergeFrom(buildPartial());
      }

      public io.prestosql.hadoop.$internal.com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.apache.hadoop.ha.proto.ZKFCProtocolProtos.internal_static_hadoop_common_GracefulFailoverResponseProto_descriptor;
      }

      public org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverResponseProto getDefaultInstanceForType() {
        return org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverResponseProto.getDefaultInstance();
      }

      public org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverResponseProto build() {
        org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverResponseProto result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverResponseProto buildPartial() {
        org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverResponseProto result = new org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverResponseProto(this);
        onBuilt();
        return result;
      }

      public Builder mergeFrom(io.prestosql.hadoop.$internal.com.google.protobuf.Message other) {
        if (other instanceof org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverResponseProto) {
          return mergeFrom((org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverResponseProto)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverResponseProto other) {
        if (other == org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverResponseProto.getDefaultInstance()) return this;
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }

      public final boolean isInitialized() {
        return true;
      }

      public Builder mergeFrom(
          io.prestosql.hadoop.$internal.com.google.protobuf.CodedInputStream input,
          io.prestosql.hadoop.$internal.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverResponseProto parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (io.prestosql.hadoop.$internal.com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverResponseProto) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      // @@protoc_insertion_point(builder_scope:hadoop.common.GracefulFailoverResponseProto)
    }

    static {
      defaultInstance = new GracefulFailoverResponseProto(true);
      defaultInstance.initFields();
    }

    // @@protoc_insertion_point(class_scope:hadoop.common.GracefulFailoverResponseProto)
  }

  /**
   * Protobuf service {@code hadoop.common.ZKFCProtocolService}
   *
   * 
   **
   * Protocol provides manual control of the ZK Failover Controllers
   * 
*/ public static abstract class ZKFCProtocolService implements io.prestosql.hadoop.$internal.com.google.protobuf.Service { protected ZKFCProtocolService() {} public interface Interface { /** * rpc cedeActive(.hadoop.common.CedeActiveRequestProto) returns (.hadoop.common.CedeActiveResponseProto); * *
       **
       * Request that the service cede its active state, and quit the election
       * for some amount of time
       * 
*/ public abstract void cedeActive( io.prestosql.hadoop.$internal.com.google.protobuf.RpcController controller, org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveRequestProto request, io.prestosql.hadoop.$internal.com.google.protobuf.RpcCallback done); /** * rpc gracefulFailover(.hadoop.common.GracefulFailoverRequestProto) returns (.hadoop.common.GracefulFailoverResponseProto); */ public abstract void gracefulFailover( io.prestosql.hadoop.$internal.com.google.protobuf.RpcController controller, org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverRequestProto request, io.prestosql.hadoop.$internal.com.google.protobuf.RpcCallback done); } public static io.prestosql.hadoop.$internal.com.google.protobuf.Service newReflectiveService( final Interface impl) { return new ZKFCProtocolService() { @java.lang.Override public void cedeActive( io.prestosql.hadoop.$internal.com.google.protobuf.RpcController controller, org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveRequestProto request, io.prestosql.hadoop.$internal.com.google.protobuf.RpcCallback done) { impl.cedeActive(controller, request, done); } @java.lang.Override public void gracefulFailover( io.prestosql.hadoop.$internal.com.google.protobuf.RpcController controller, org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverRequestProto request, io.prestosql.hadoop.$internal.com.google.protobuf.RpcCallback done) { impl.gracefulFailover(controller, request, done); } }; } public static io.prestosql.hadoop.$internal.com.google.protobuf.BlockingService newReflectiveBlockingService(final BlockingInterface impl) { return new io.prestosql.hadoop.$internal.com.google.protobuf.BlockingService() { public final io.prestosql.hadoop.$internal.com.google.protobuf.Descriptors.ServiceDescriptor getDescriptorForType() { return getDescriptor(); } public final io.prestosql.hadoop.$internal.com.google.protobuf.Message callBlockingMethod( io.prestosql.hadoop.$internal.com.google.protobuf.Descriptors.MethodDescriptor method, io.prestosql.hadoop.$internal.com.google.protobuf.RpcController controller, io.prestosql.hadoop.$internal.com.google.protobuf.Message request) throws io.prestosql.hadoop.$internal.com.google.protobuf.ServiceException { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.callBlockingMethod() given method descriptor for " + "wrong service type."); } switch(method.getIndex()) { case 0: return impl.cedeActive(controller, (org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveRequestProto)request); case 1: return impl.gracefulFailover(controller, (org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverRequestProto)request); default: throw new java.lang.AssertionError("Can't get here."); } } public final io.prestosql.hadoop.$internal.com.google.protobuf.Message getRequestPrototype( io.prestosql.hadoop.$internal.com.google.protobuf.Descriptors.MethodDescriptor method) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.getRequestPrototype() given method " + "descriptor for wrong service type."); } switch(method.getIndex()) { case 0: return org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveRequestProto.getDefaultInstance(); case 1: return org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverRequestProto.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } public final io.prestosql.hadoop.$internal.com.google.protobuf.Message getResponsePrototype( io.prestosql.hadoop.$internal.com.google.protobuf.Descriptors.MethodDescriptor method) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.getResponsePrototype() given method " + "descriptor for wrong service type."); } switch(method.getIndex()) { case 0: return org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveResponseProto.getDefaultInstance(); case 1: return org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverResponseProto.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } }; } /** * rpc cedeActive(.hadoop.common.CedeActiveRequestProto) returns (.hadoop.common.CedeActiveResponseProto); * *
     **
     * Request that the service cede its active state, and quit the election
     * for some amount of time
     * 
*/ public abstract void cedeActive( io.prestosql.hadoop.$internal.com.google.protobuf.RpcController controller, org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveRequestProto request, io.prestosql.hadoop.$internal.com.google.protobuf.RpcCallback done); /** * rpc gracefulFailover(.hadoop.common.GracefulFailoverRequestProto) returns (.hadoop.common.GracefulFailoverResponseProto); */ public abstract void gracefulFailover( io.prestosql.hadoop.$internal.com.google.protobuf.RpcController controller, org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverRequestProto request, io.prestosql.hadoop.$internal.com.google.protobuf.RpcCallback done); public static final io.prestosql.hadoop.$internal.com.google.protobuf.Descriptors.ServiceDescriptor getDescriptor() { return org.apache.hadoop.ha.proto.ZKFCProtocolProtos.getDescriptor().getServices().get(0); } public final io.prestosql.hadoop.$internal.com.google.protobuf.Descriptors.ServiceDescriptor getDescriptorForType() { return getDescriptor(); } public final void callMethod( io.prestosql.hadoop.$internal.com.google.protobuf.Descriptors.MethodDescriptor method, io.prestosql.hadoop.$internal.com.google.protobuf.RpcController controller, io.prestosql.hadoop.$internal.com.google.protobuf.Message request, io.prestosql.hadoop.$internal.com.google.protobuf.RpcCallback< io.prestosql.hadoop.$internal.com.google.protobuf.Message> done) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.callMethod() given method descriptor for wrong " + "service type."); } switch(method.getIndex()) { case 0: this.cedeActive(controller, (org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveRequestProto)request, io.prestosql.hadoop.$internal.com.google.protobuf.RpcUtil.specializeCallback( done)); return; case 1: this.gracefulFailover(controller, (org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverRequestProto)request, io.prestosql.hadoop.$internal.com.google.protobuf.RpcUtil.specializeCallback( done)); return; default: throw new java.lang.AssertionError("Can't get here."); } } public final io.prestosql.hadoop.$internal.com.google.protobuf.Message getRequestPrototype( io.prestosql.hadoop.$internal.com.google.protobuf.Descriptors.MethodDescriptor method) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.getRequestPrototype() given method " + "descriptor for wrong service type."); } switch(method.getIndex()) { case 0: return org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveRequestProto.getDefaultInstance(); case 1: return org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverRequestProto.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } public final io.prestosql.hadoop.$internal.com.google.protobuf.Message getResponsePrototype( io.prestosql.hadoop.$internal.com.google.protobuf.Descriptors.MethodDescriptor method) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.getResponsePrototype() given method " + "descriptor for wrong service type."); } switch(method.getIndex()) { case 0: return org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveResponseProto.getDefaultInstance(); case 1: return org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverResponseProto.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } public static Stub newStub( io.prestosql.hadoop.$internal.com.google.protobuf.RpcChannel channel) { return new Stub(channel); } public static final class Stub extends org.apache.hadoop.ha.proto.ZKFCProtocolProtos.ZKFCProtocolService implements Interface { private Stub(io.prestosql.hadoop.$internal.com.google.protobuf.RpcChannel channel) { this.channel = channel; } private final io.prestosql.hadoop.$internal.com.google.protobuf.RpcChannel channel; public io.prestosql.hadoop.$internal.com.google.protobuf.RpcChannel getChannel() { return channel; } public void cedeActive( io.prestosql.hadoop.$internal.com.google.protobuf.RpcController controller, org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveRequestProto request, io.prestosql.hadoop.$internal.com.google.protobuf.RpcCallback done) { channel.callMethod( getDescriptor().getMethods().get(0), controller, request, org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveResponseProto.getDefaultInstance(), io.prestosql.hadoop.$internal.com.google.protobuf.RpcUtil.generalizeCallback( done, org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveResponseProto.class, org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveResponseProto.getDefaultInstance())); } public void gracefulFailover( io.prestosql.hadoop.$internal.com.google.protobuf.RpcController controller, org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverRequestProto request, io.prestosql.hadoop.$internal.com.google.protobuf.RpcCallback done) { channel.callMethod( getDescriptor().getMethods().get(1), controller, request, org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverResponseProto.getDefaultInstance(), io.prestosql.hadoop.$internal.com.google.protobuf.RpcUtil.generalizeCallback( done, org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverResponseProto.class, org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverResponseProto.getDefaultInstance())); } } public static BlockingInterface newBlockingStub( io.prestosql.hadoop.$internal.com.google.protobuf.BlockingRpcChannel channel) { return new BlockingStub(channel); } public interface BlockingInterface { public org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveResponseProto cedeActive( io.prestosql.hadoop.$internal.com.google.protobuf.RpcController controller, org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveRequestProto request) throws io.prestosql.hadoop.$internal.com.google.protobuf.ServiceException; public org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverResponseProto gracefulFailover( io.prestosql.hadoop.$internal.com.google.protobuf.RpcController controller, org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverRequestProto request) throws io.prestosql.hadoop.$internal.com.google.protobuf.ServiceException; } private static final class BlockingStub implements BlockingInterface { private BlockingStub(io.prestosql.hadoop.$internal.com.google.protobuf.BlockingRpcChannel channel) { this.channel = channel; } private final io.prestosql.hadoop.$internal.com.google.protobuf.BlockingRpcChannel channel; public org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveResponseProto cedeActive( io.prestosql.hadoop.$internal.com.google.protobuf.RpcController controller, org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveRequestProto request) throws io.prestosql.hadoop.$internal.com.google.protobuf.ServiceException { return (org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveResponseProto) channel.callBlockingMethod( getDescriptor().getMethods().get(0), controller, request, org.apache.hadoop.ha.proto.ZKFCProtocolProtos.CedeActiveResponseProto.getDefaultInstance()); } public org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverResponseProto gracefulFailover( io.prestosql.hadoop.$internal.com.google.protobuf.RpcController controller, org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverRequestProto request) throws io.prestosql.hadoop.$internal.com.google.protobuf.ServiceException { return (org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverResponseProto) channel.callBlockingMethod( getDescriptor().getMethods().get(1), controller, request, org.apache.hadoop.ha.proto.ZKFCProtocolProtos.GracefulFailoverResponseProto.getDefaultInstance()); } } // @@protoc_insertion_point(class_scope:hadoop.common.ZKFCProtocolService) } private static io.prestosql.hadoop.$internal.com.google.protobuf.Descriptors.Descriptor internal_static_hadoop_common_CedeActiveRequestProto_descriptor; private static io.prestosql.hadoop.$internal.com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_hadoop_common_CedeActiveRequestProto_fieldAccessorTable; private static io.prestosql.hadoop.$internal.com.google.protobuf.Descriptors.Descriptor internal_static_hadoop_common_CedeActiveResponseProto_descriptor; private static io.prestosql.hadoop.$internal.com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_hadoop_common_CedeActiveResponseProto_fieldAccessorTable; private static io.prestosql.hadoop.$internal.com.google.protobuf.Descriptors.Descriptor internal_static_hadoop_common_GracefulFailoverRequestProto_descriptor; private static io.prestosql.hadoop.$internal.com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_hadoop_common_GracefulFailoverRequestProto_fieldAccessorTable; private static io.prestosql.hadoop.$internal.com.google.protobuf.Descriptors.Descriptor internal_static_hadoop_common_GracefulFailoverResponseProto_descriptor; private static io.prestosql.hadoop.$internal.com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_hadoop_common_GracefulFailoverResponseProto_fieldAccessorTable; public static io.prestosql.hadoop.$internal.com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static io.prestosql.hadoop.$internal.com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\022ZKFCProtocol.proto\022\rhadoop.common\".\n\026C" + "edeActiveRequestProto\022\024\n\014millisToCede\030\001 " + "\002(\r\"\031\n\027CedeActiveResponseProto\"\036\n\034Gracef" + "ulFailoverRequestProto\"\037\n\035GracefulFailov" + "erResponseProto2\341\001\n\023ZKFCProtocolService\022" + "[\n\ncedeActive\022%.hadoop.common.CedeActive" + "RequestProto\032&.hadoop.common.CedeActiveR" + "esponseProto\022m\n\020gracefulFailover\022+.hadoo" + "p.common.GracefulFailoverRequestProto\032,." + "hadoop.common.GracefulFailoverResponsePr", "otoB6\n\032org.apache.hadoop.ha.protoB\022ZKFCP" + "rotocolProtos\210\001\001\240\001\001" }; io.prestosql.hadoop.$internal.com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new io.prestosql.hadoop.$internal.com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { public io.prestosql.hadoop.$internal.com.google.protobuf.ExtensionRegistry assignDescriptors( io.prestosql.hadoop.$internal.com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; internal_static_hadoop_common_CedeActiveRequestProto_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_hadoop_common_CedeActiveRequestProto_fieldAccessorTable = new io.prestosql.hadoop.$internal.com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_hadoop_common_CedeActiveRequestProto_descriptor, new java.lang.String[] { "MillisToCede", }); internal_static_hadoop_common_CedeActiveResponseProto_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_hadoop_common_CedeActiveResponseProto_fieldAccessorTable = new io.prestosql.hadoop.$internal.com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_hadoop_common_CedeActiveResponseProto_descriptor, new java.lang.String[] { }); internal_static_hadoop_common_GracefulFailoverRequestProto_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_hadoop_common_GracefulFailoverRequestProto_fieldAccessorTable = new io.prestosql.hadoop.$internal.com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_hadoop_common_GracefulFailoverRequestProto_descriptor, new java.lang.String[] { }); internal_static_hadoop_common_GracefulFailoverResponseProto_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_hadoop_common_GracefulFailoverResponseProto_fieldAccessorTable = new io.prestosql.hadoop.$internal.com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_hadoop_common_GracefulFailoverResponseProto_descriptor, new java.lang.String[] { }); return null; } }; io.prestosql.hadoop.$internal.com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new io.prestosql.hadoop.$internal.com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy