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

org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos Maven / Gradle / Ivy

There is a newer version: 3.4.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: GenericRefreshProtocol.proto

package org.apache.hadoop.ipc.proto;

public final class GenericRefreshProtocolProtos {
  private GenericRefreshProtocolProtos() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
  }
  public interface GenericRefreshRequestProtoOrBuilder
      extends com.google.protobuf.MessageOrBuilder {

    // optional string identifier = 1;
    /**
     * optional string identifier = 1;
     */
    boolean hasIdentifier();
    /**
     * optional string identifier = 1;
     */
    java.lang.String getIdentifier();
    /**
     * optional string identifier = 1;
     */
    com.google.protobuf.ByteString
        getIdentifierBytes();

    // repeated string args = 2;
    /**
     * repeated string args = 2;
     */
    java.util.List
    getArgsList();
    /**
     * repeated string args = 2;
     */
    int getArgsCount();
    /**
     * repeated string args = 2;
     */
    java.lang.String getArgs(int index);
    /**
     * repeated string args = 2;
     */
    com.google.protobuf.ByteString
        getArgsBytes(int index);
  }
  /**
   * Protobuf type {@code hadoop.common.GenericRefreshRequestProto}
   *
   * 
   **
   *  Refresh request.
   * 
*/ public static final class GenericRefreshRequestProto extends com.google.protobuf.GeneratedMessage implements GenericRefreshRequestProtoOrBuilder { // Use GenericRefreshRequestProto.newBuilder() to construct. private GenericRefreshRequestProto(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private GenericRefreshRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final GenericRefreshRequestProto defaultInstance; public static GenericRefreshRequestProto getDefaultInstance() { return defaultInstance; } public GenericRefreshRequestProto getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GenericRefreshRequestProto( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; identifier_ = input.readBytes(); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { args_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } args_.add(input.readBytes()); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { args_ = new com.google.protobuf.UnmodifiableLazyStringList(args_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.internal_static_hadoop_common_GenericRefreshRequestProto_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.internal_static_hadoop_common_GenericRefreshRequestProto_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto.class, org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GenericRefreshRequestProto parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GenericRefreshRequestProto(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional string identifier = 1; public static final int IDENTIFIER_FIELD_NUMBER = 1; private java.lang.Object identifier_; /** * optional string identifier = 1; */ public boolean hasIdentifier() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string identifier = 1; */ public java.lang.String getIdentifier() { java.lang.Object ref = identifier_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { identifier_ = s; } return s; } } /** * optional string identifier = 1; */ public com.google.protobuf.ByteString getIdentifierBytes() { java.lang.Object ref = identifier_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); identifier_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // repeated string args = 2; public static final int ARGS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList args_; /** * repeated string args = 2; */ public java.util.List getArgsList() { return args_; } /** * repeated string args = 2; */ public int getArgsCount() { return args_.size(); } /** * repeated string args = 2; */ public java.lang.String getArgs(int index) { return args_.get(index); } /** * repeated string args = 2; */ public com.google.protobuf.ByteString getArgsBytes(int index) { return args_.getByteString(index); } private void initFields() { identifier_ = ""; args_ = com.google.protobuf.LazyStringArrayList.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getIdentifierBytes()); } for (int i = 0; i < args_.size(); i++) { output.writeBytes(2, args_.getByteString(i)); } 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 += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getIdentifierBytes()); } { int dataSize = 0; for (int i = 0; i < args_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(args_.getByteString(i)); } size += dataSize; size += 1 * getArgsList().size(); } 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.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto)) { return super.equals(obj); } org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto other = (org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto) obj; boolean result = true; result = result && (hasIdentifier() == other.hasIdentifier()); if (hasIdentifier()) { result = result && getIdentifier() .equals(other.getIdentifier()); } result = result && getArgsList() .equals(other.getArgsList()); 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 (hasIdentifier()) { hash = (37 * hash) + IDENTIFIER_FIELD_NUMBER; hash = (53 * hash) + getIdentifier().hashCode(); } if (getArgsCount() > 0) { hash = (37 * hash) + ARGS_FIELD_NUMBER; hash = (53 * hash) + getArgsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto parseFrom( com.google.protobuf.CodedInputStream input, 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.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code hadoop.common.GenericRefreshRequestProto} * *
     **
     *  Refresh request.
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProtoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.internal_static_hadoop_common_GenericRefreshRequestProto_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.internal_static_hadoop_common_GenericRefreshRequestProto_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto.class, org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto.Builder.class); } // Construct using org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); identifier_ = ""; bitField0_ = (bitField0_ & ~0x00000001); args_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.internal_static_hadoop_common_GenericRefreshRequestProto_descriptor; } public org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto getDefaultInstanceForType() { return org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto.getDefaultInstance(); } public org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto build() { org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto buildPartial() { org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto result = new org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.identifier_ = identifier_; if (((bitField0_ & 0x00000002) == 0x00000002)) { args_ = new com.google.protobuf.UnmodifiableLazyStringList( args_); bitField0_ = (bitField0_ & ~0x00000002); } result.args_ = args_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto) { return mergeFrom((org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto other) { if (other == org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto.getDefaultInstance()) return this; if (other.hasIdentifier()) { bitField0_ |= 0x00000001; identifier_ = other.identifier_; onChanged(); } if (!other.args_.isEmpty()) { if (args_.isEmpty()) { args_ = other.args_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureArgsIsMutable(); args_.addAll(other.args_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional string identifier = 1; private java.lang.Object identifier_ = ""; /** * optional string identifier = 1; */ public boolean hasIdentifier() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string identifier = 1; */ public java.lang.String getIdentifier() { java.lang.Object ref = identifier_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); identifier_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string identifier = 1; */ public com.google.protobuf.ByteString getIdentifierBytes() { java.lang.Object ref = identifier_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); identifier_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string identifier = 1; */ public Builder setIdentifier( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; identifier_ = value; onChanged(); return this; } /** * optional string identifier = 1; */ public Builder clearIdentifier() { bitField0_ = (bitField0_ & ~0x00000001); identifier_ = getDefaultInstance().getIdentifier(); onChanged(); return this; } /** * optional string identifier = 1; */ public Builder setIdentifierBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; identifier_ = value; onChanged(); return this; } // repeated string args = 2; private com.google.protobuf.LazyStringList args_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureArgsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { args_ = new com.google.protobuf.LazyStringArrayList(args_); bitField0_ |= 0x00000002; } } /** * repeated string args = 2; */ public java.util.List getArgsList() { return java.util.Collections.unmodifiableList(args_); } /** * repeated string args = 2; */ public int getArgsCount() { return args_.size(); } /** * repeated string args = 2; */ public java.lang.String getArgs(int index) { return args_.get(index); } /** * repeated string args = 2; */ public com.google.protobuf.ByteString getArgsBytes(int index) { return args_.getByteString(index); } /** * repeated string args = 2; */ public Builder setArgs( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureArgsIsMutable(); args_.set(index, value); onChanged(); return this; } /** * repeated string args = 2; */ public Builder addArgs( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureArgsIsMutable(); args_.add(value); onChanged(); return this; } /** * repeated string args = 2; */ public Builder addAllArgs( java.lang.Iterable values) { ensureArgsIsMutable(); super.addAll(values, args_); onChanged(); return this; } /** * repeated string args = 2; */ public Builder clearArgs() { args_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * repeated string args = 2; */ public Builder addArgsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureArgsIsMutable(); args_.add(value); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:hadoop.common.GenericRefreshRequestProto) } static { defaultInstance = new GenericRefreshRequestProto(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:hadoop.common.GenericRefreshRequestProto) } public interface GenericRefreshResponseProtoOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional int32 exitStatus = 1; /** * optional int32 exitStatus = 1; * *
     * unix exit status to return
     * 
*/ boolean hasExitStatus(); /** * optional int32 exitStatus = 1; * *
     * unix exit status to return
     * 
*/ int getExitStatus(); // optional string userMessage = 2; /** * optional string userMessage = 2; * *
     * to be displayed to the user
     * 
*/ boolean hasUserMessage(); /** * optional string userMessage = 2; * *
     * to be displayed to the user
     * 
*/ java.lang.String getUserMessage(); /** * optional string userMessage = 2; * *
     * to be displayed to the user
     * 
*/ com.google.protobuf.ByteString getUserMessageBytes(); // optional string senderName = 3; /** * optional string senderName = 3; * *
     * which handler sent this message
     * 
*/ boolean hasSenderName(); /** * optional string senderName = 3; * *
     * which handler sent this message
     * 
*/ java.lang.String getSenderName(); /** * optional string senderName = 3; * *
     * which handler sent this message
     * 
*/ com.google.protobuf.ByteString getSenderNameBytes(); } /** * Protobuf type {@code hadoop.common.GenericRefreshResponseProto} * *
   **
   * A single response from a refresh handler.
   * 
*/ public static final class GenericRefreshResponseProto extends com.google.protobuf.GeneratedMessage implements GenericRefreshResponseProtoOrBuilder { // Use GenericRefreshResponseProto.newBuilder() to construct. private GenericRefreshResponseProto(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private GenericRefreshResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final GenericRefreshResponseProto defaultInstance; public static GenericRefreshResponseProto getDefaultInstance() { return defaultInstance; } public GenericRefreshResponseProto getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GenericRefreshResponseProto( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; exitStatus_ = input.readInt32(); break; } case 18: { bitField0_ |= 0x00000002; userMessage_ = input.readBytes(); break; } case 26: { bitField0_ |= 0x00000004; senderName_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.internal_static_hadoop_common_GenericRefreshResponseProto_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.internal_static_hadoop_common_GenericRefreshResponseProto_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto.class, org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GenericRefreshResponseProto parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GenericRefreshResponseProto(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional int32 exitStatus = 1; public static final int EXITSTATUS_FIELD_NUMBER = 1; private int exitStatus_; /** * optional int32 exitStatus = 1; * *
     * unix exit status to return
     * 
*/ public boolean hasExitStatus() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 exitStatus = 1; * *
     * unix exit status to return
     * 
*/ public int getExitStatus() { return exitStatus_; } // optional string userMessage = 2; public static final int USERMESSAGE_FIELD_NUMBER = 2; private java.lang.Object userMessage_; /** * optional string userMessage = 2; * *
     * to be displayed to the user
     * 
*/ public boolean hasUserMessage() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string userMessage = 2; * *
     * to be displayed to the user
     * 
*/ public java.lang.String getUserMessage() { java.lang.Object ref = userMessage_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { userMessage_ = s; } return s; } } /** * optional string userMessage = 2; * *
     * to be displayed to the user
     * 
*/ public com.google.protobuf.ByteString getUserMessageBytes() { java.lang.Object ref = userMessage_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); userMessage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string senderName = 3; public static final int SENDERNAME_FIELD_NUMBER = 3; private java.lang.Object senderName_; /** * optional string senderName = 3; * *
     * which handler sent this message
     * 
*/ public boolean hasSenderName() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string senderName = 3; * *
     * which handler sent this message
     * 
*/ public java.lang.String getSenderName() { java.lang.Object ref = senderName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { senderName_ = s; } return s; } } /** * optional string senderName = 3; * *
     * which handler sent this message
     * 
*/ public com.google.protobuf.ByteString getSenderNameBytes() { java.lang.Object ref = senderName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); senderName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { exitStatus_ = 0; userMessage_ = ""; senderName_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, exitStatus_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getUserMessageBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getSenderNameBytes()); } 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 += com.google.protobuf.CodedOutputStream .computeInt32Size(1, exitStatus_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getUserMessageBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getSenderNameBytes()); } 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.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto)) { return super.equals(obj); } org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto other = (org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto) obj; boolean result = true; result = result && (hasExitStatus() == other.hasExitStatus()); if (hasExitStatus()) { result = result && (getExitStatus() == other.getExitStatus()); } result = result && (hasUserMessage() == other.hasUserMessage()); if (hasUserMessage()) { result = result && getUserMessage() .equals(other.getUserMessage()); } result = result && (hasSenderName() == other.hasSenderName()); if (hasSenderName()) { result = result && getSenderName() .equals(other.getSenderName()); } 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 (hasExitStatus()) { hash = (37 * hash) + EXITSTATUS_FIELD_NUMBER; hash = (53 * hash) + getExitStatus(); } if (hasUserMessage()) { hash = (37 * hash) + USERMESSAGE_FIELD_NUMBER; hash = (53 * hash) + getUserMessage().hashCode(); } if (hasSenderName()) { hash = (37 * hash) + SENDERNAME_FIELD_NUMBER; hash = (53 * hash) + getSenderName().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto parseFrom( com.google.protobuf.CodedInputStream input, 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.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code hadoop.common.GenericRefreshResponseProto} * *
     **
     * A single response from a refresh handler.
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProtoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.internal_static_hadoop_common_GenericRefreshResponseProto_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.internal_static_hadoop_common_GenericRefreshResponseProto_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto.class, org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto.Builder.class); } // Construct using org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); exitStatus_ = 0; bitField0_ = (bitField0_ & ~0x00000001); userMessage_ = ""; bitField0_ = (bitField0_ & ~0x00000002); senderName_ = ""; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.internal_static_hadoop_common_GenericRefreshResponseProto_descriptor; } public org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto getDefaultInstanceForType() { return org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto.getDefaultInstance(); } public org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto build() { org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto buildPartial() { org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto result = new org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.exitStatus_ = exitStatus_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.userMessage_ = userMessage_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.senderName_ = senderName_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto) { return mergeFrom((org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto other) { if (other == org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto.getDefaultInstance()) return this; if (other.hasExitStatus()) { setExitStatus(other.getExitStatus()); } if (other.hasUserMessage()) { bitField0_ |= 0x00000002; userMessage_ = other.userMessage_; onChanged(); } if (other.hasSenderName()) { bitField0_ |= 0x00000004; senderName_ = other.senderName_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional int32 exitStatus = 1; private int exitStatus_ ; /** * optional int32 exitStatus = 1; * *
       * unix exit status to return
       * 
*/ public boolean hasExitStatus() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 exitStatus = 1; * *
       * unix exit status to return
       * 
*/ public int getExitStatus() { return exitStatus_; } /** * optional int32 exitStatus = 1; * *
       * unix exit status to return
       * 
*/ public Builder setExitStatus(int value) { bitField0_ |= 0x00000001; exitStatus_ = value; onChanged(); return this; } /** * optional int32 exitStatus = 1; * *
       * unix exit status to return
       * 
*/ public Builder clearExitStatus() { bitField0_ = (bitField0_ & ~0x00000001); exitStatus_ = 0; onChanged(); return this; } // optional string userMessage = 2; private java.lang.Object userMessage_ = ""; /** * optional string userMessage = 2; * *
       * to be displayed to the user
       * 
*/ public boolean hasUserMessage() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string userMessage = 2; * *
       * to be displayed to the user
       * 
*/ public java.lang.String getUserMessage() { java.lang.Object ref = userMessage_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); userMessage_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string userMessage = 2; * *
       * to be displayed to the user
       * 
*/ public com.google.protobuf.ByteString getUserMessageBytes() { java.lang.Object ref = userMessage_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); userMessage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string userMessage = 2; * *
       * to be displayed to the user
       * 
*/ public Builder setUserMessage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; userMessage_ = value; onChanged(); return this; } /** * optional string userMessage = 2; * *
       * to be displayed to the user
       * 
*/ public Builder clearUserMessage() { bitField0_ = (bitField0_ & ~0x00000002); userMessage_ = getDefaultInstance().getUserMessage(); onChanged(); return this; } /** * optional string userMessage = 2; * *
       * to be displayed to the user
       * 
*/ public Builder setUserMessageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; userMessage_ = value; onChanged(); return this; } // optional string senderName = 3; private java.lang.Object senderName_ = ""; /** * optional string senderName = 3; * *
       * which handler sent this message
       * 
*/ public boolean hasSenderName() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string senderName = 3; * *
       * which handler sent this message
       * 
*/ public java.lang.String getSenderName() { java.lang.Object ref = senderName_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); senderName_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string senderName = 3; * *
       * which handler sent this message
       * 
*/ public com.google.protobuf.ByteString getSenderNameBytes() { java.lang.Object ref = senderName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); senderName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string senderName = 3; * *
       * which handler sent this message
       * 
*/ public Builder setSenderName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; senderName_ = value; onChanged(); return this; } /** * optional string senderName = 3; * *
       * which handler sent this message
       * 
*/ public Builder clearSenderName() { bitField0_ = (bitField0_ & ~0x00000004); senderName_ = getDefaultInstance().getSenderName(); onChanged(); return this; } /** * optional string senderName = 3; * *
       * which handler sent this message
       * 
*/ public Builder setSenderNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; senderName_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:hadoop.common.GenericRefreshResponseProto) } static { defaultInstance = new GenericRefreshResponseProto(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:hadoop.common.GenericRefreshResponseProto) } public interface GenericRefreshResponseCollectionProtoOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated .hadoop.common.GenericRefreshResponseProto responses = 1; /** * repeated .hadoop.common.GenericRefreshResponseProto responses = 1; */ java.util.List getResponsesList(); /** * repeated .hadoop.common.GenericRefreshResponseProto responses = 1; */ org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto getResponses(int index); /** * repeated .hadoop.common.GenericRefreshResponseProto responses = 1; */ int getResponsesCount(); /** * repeated .hadoop.common.GenericRefreshResponseProto responses = 1; */ java.util.List getResponsesOrBuilderList(); /** * repeated .hadoop.common.GenericRefreshResponseProto responses = 1; */ org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProtoOrBuilder getResponsesOrBuilder( int index); } /** * Protobuf type {@code hadoop.common.GenericRefreshResponseCollectionProto} * *
   **
   * Collection of responses from zero or more handlers.
   * 
*/ public static final class GenericRefreshResponseCollectionProto extends com.google.protobuf.GeneratedMessage implements GenericRefreshResponseCollectionProtoOrBuilder { // Use GenericRefreshResponseCollectionProto.newBuilder() to construct. private GenericRefreshResponseCollectionProto(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private GenericRefreshResponseCollectionProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final GenericRefreshResponseCollectionProto defaultInstance; public static GenericRefreshResponseCollectionProto getDefaultInstance() { return defaultInstance; } public GenericRefreshResponseCollectionProto getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GenericRefreshResponseCollectionProto( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { responses_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } responses_.add(input.readMessage(org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { responses_ = java.util.Collections.unmodifiableList(responses_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.internal_static_hadoop_common_GenericRefreshResponseCollectionProto_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.internal_static_hadoop_common_GenericRefreshResponseCollectionProto_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto.class, org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GenericRefreshResponseCollectionProto parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GenericRefreshResponseCollectionProto(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } // repeated .hadoop.common.GenericRefreshResponseProto responses = 1; public static final int RESPONSES_FIELD_NUMBER = 1; private java.util.List responses_; /** * repeated .hadoop.common.GenericRefreshResponseProto responses = 1; */ public java.util.List getResponsesList() { return responses_; } /** * repeated .hadoop.common.GenericRefreshResponseProto responses = 1; */ public java.util.List getResponsesOrBuilderList() { return responses_; } /** * repeated .hadoop.common.GenericRefreshResponseProto responses = 1; */ public int getResponsesCount() { return responses_.size(); } /** * repeated .hadoop.common.GenericRefreshResponseProto responses = 1; */ public org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto getResponses(int index) { return responses_.get(index); } /** * repeated .hadoop.common.GenericRefreshResponseProto responses = 1; */ public org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProtoOrBuilder getResponsesOrBuilder( int index) { return responses_.get(index); } private void initFields() { responses_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < responses_.size(); i++) { output.writeMessage(1, responses_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; for (int i = 0; i < responses_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, responses_.get(i)); } 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.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto)) { return super.equals(obj); } org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto other = (org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto) obj; boolean result = true; result = result && getResponsesList() .equals(other.getResponsesList()); 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 (getResponsesCount() > 0) { hash = (37 * hash) + RESPONSES_FIELD_NUMBER; hash = (53 * hash) + getResponsesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto parseFrom( com.google.protobuf.CodedInputStream input, 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.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code hadoop.common.GenericRefreshResponseCollectionProto} * *
     **
     * Collection of responses from zero or more handlers.
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProtoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.internal_static_hadoop_common_GenericRefreshResponseCollectionProto_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.internal_static_hadoop_common_GenericRefreshResponseCollectionProto_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto.class, org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto.Builder.class); } // Construct using org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getResponsesFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (responsesBuilder_ == null) { responses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { responsesBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.internal_static_hadoop_common_GenericRefreshResponseCollectionProto_descriptor; } public org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto getDefaultInstanceForType() { return org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto.getDefaultInstance(); } public org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto build() { org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto buildPartial() { org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto result = new org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto(this); int from_bitField0_ = bitField0_; if (responsesBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { responses_ = java.util.Collections.unmodifiableList(responses_); bitField0_ = (bitField0_ & ~0x00000001); } result.responses_ = responses_; } else { result.responses_ = responsesBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto) { return mergeFrom((org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto other) { if (other == org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto.getDefaultInstance()) return this; if (responsesBuilder_ == null) { if (!other.responses_.isEmpty()) { if (responses_.isEmpty()) { responses_ = other.responses_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureResponsesIsMutable(); responses_.addAll(other.responses_); } onChanged(); } } else { if (!other.responses_.isEmpty()) { if (responsesBuilder_.isEmpty()) { responsesBuilder_.dispose(); responsesBuilder_ = null; responses_ = other.responses_; bitField0_ = (bitField0_ & ~0x00000001); responsesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getResponsesFieldBuilder() : null; } else { responsesBuilder_.addAllMessages(other.responses_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // repeated .hadoop.common.GenericRefreshResponseProto responses = 1; private java.util.List responses_ = java.util.Collections.emptyList(); private void ensureResponsesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { responses_ = new java.util.ArrayList(responses_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto, org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto.Builder, org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProtoOrBuilder> responsesBuilder_; /** * repeated .hadoop.common.GenericRefreshResponseProto responses = 1; */ public java.util.List getResponsesList() { if (responsesBuilder_ == null) { return java.util.Collections.unmodifiableList(responses_); } else { return responsesBuilder_.getMessageList(); } } /** * repeated .hadoop.common.GenericRefreshResponseProto responses = 1; */ public int getResponsesCount() { if (responsesBuilder_ == null) { return responses_.size(); } else { return responsesBuilder_.getCount(); } } /** * repeated .hadoop.common.GenericRefreshResponseProto responses = 1; */ public org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto getResponses(int index) { if (responsesBuilder_ == null) { return responses_.get(index); } else { return responsesBuilder_.getMessage(index); } } /** * repeated .hadoop.common.GenericRefreshResponseProto responses = 1; */ public Builder setResponses( int index, org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto value) { if (responsesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResponsesIsMutable(); responses_.set(index, value); onChanged(); } else { responsesBuilder_.setMessage(index, value); } return this; } /** * repeated .hadoop.common.GenericRefreshResponseProto responses = 1; */ public Builder setResponses( int index, org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto.Builder builderForValue) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); responses_.set(index, builderForValue.build()); onChanged(); } else { responsesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .hadoop.common.GenericRefreshResponseProto responses = 1; */ public Builder addResponses(org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto value) { if (responsesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResponsesIsMutable(); responses_.add(value); onChanged(); } else { responsesBuilder_.addMessage(value); } return this; } /** * repeated .hadoop.common.GenericRefreshResponseProto responses = 1; */ public Builder addResponses( int index, org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto value) { if (responsesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResponsesIsMutable(); responses_.add(index, value); onChanged(); } else { responsesBuilder_.addMessage(index, value); } return this; } /** * repeated .hadoop.common.GenericRefreshResponseProto responses = 1; */ public Builder addResponses( org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto.Builder builderForValue) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); responses_.add(builderForValue.build()); onChanged(); } else { responsesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .hadoop.common.GenericRefreshResponseProto responses = 1; */ public Builder addResponses( int index, org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto.Builder builderForValue) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); responses_.add(index, builderForValue.build()); onChanged(); } else { responsesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .hadoop.common.GenericRefreshResponseProto responses = 1; */ public Builder addAllResponses( java.lang.Iterable values) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); super.addAll(values, responses_); onChanged(); } else { responsesBuilder_.addAllMessages(values); } return this; } /** * repeated .hadoop.common.GenericRefreshResponseProto responses = 1; */ public Builder clearResponses() { if (responsesBuilder_ == null) { responses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { responsesBuilder_.clear(); } return this; } /** * repeated .hadoop.common.GenericRefreshResponseProto responses = 1; */ public Builder removeResponses(int index) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); responses_.remove(index); onChanged(); } else { responsesBuilder_.remove(index); } return this; } /** * repeated .hadoop.common.GenericRefreshResponseProto responses = 1; */ public org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto.Builder getResponsesBuilder( int index) { return getResponsesFieldBuilder().getBuilder(index); } /** * repeated .hadoop.common.GenericRefreshResponseProto responses = 1; */ public org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProtoOrBuilder getResponsesOrBuilder( int index) { if (responsesBuilder_ == null) { return responses_.get(index); } else { return responsesBuilder_.getMessageOrBuilder(index); } } /** * repeated .hadoop.common.GenericRefreshResponseProto responses = 1; */ public java.util.List getResponsesOrBuilderList() { if (responsesBuilder_ != null) { return responsesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(responses_); } } /** * repeated .hadoop.common.GenericRefreshResponseProto responses = 1; */ public org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto.Builder addResponsesBuilder() { return getResponsesFieldBuilder().addBuilder( org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto.getDefaultInstance()); } /** * repeated .hadoop.common.GenericRefreshResponseProto responses = 1; */ public org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto.Builder addResponsesBuilder( int index) { return getResponsesFieldBuilder().addBuilder( index, org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto.getDefaultInstance()); } /** * repeated .hadoop.common.GenericRefreshResponseProto responses = 1; */ public java.util.List getResponsesBuilderList() { return getResponsesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto, org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto.Builder, org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProtoOrBuilder> getResponsesFieldBuilder() { if (responsesBuilder_ == null) { responsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto, org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProto.Builder, org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseProtoOrBuilder>( responses_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); responses_ = null; } return responsesBuilder_; } // @@protoc_insertion_point(builder_scope:hadoop.common.GenericRefreshResponseCollectionProto) } static { defaultInstance = new GenericRefreshResponseCollectionProto(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:hadoop.common.GenericRefreshResponseCollectionProto) } /** * Protobuf service {@code hadoop.common.GenericRefreshProtocolService} * *
   **
   * Protocol which is used to refresh a user-specified feature.
   * 
*/ public static abstract class GenericRefreshProtocolService implements com.google.protobuf.Service { protected GenericRefreshProtocolService() {} public interface Interface { /** * rpc refresh(.hadoop.common.GenericRefreshRequestProto) returns (.hadoop.common.GenericRefreshResponseCollectionProto); */ public abstract void refresh( com.google.protobuf.RpcController controller, org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto request, com.google.protobuf.RpcCallback done); } public static com.google.protobuf.Service newReflectiveService( final Interface impl) { return new GenericRefreshProtocolService() { @java.lang.Override public void refresh( com.google.protobuf.RpcController controller, org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto request, com.google.protobuf.RpcCallback done) { impl.refresh(controller, request, done); } }; } public static com.google.protobuf.BlockingService newReflectiveBlockingService(final BlockingInterface impl) { return new com.google.protobuf.BlockingService() { public final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptorForType() { return getDescriptor(); } public final com.google.protobuf.Message callBlockingMethod( com.google.protobuf.Descriptors.MethodDescriptor method, com.google.protobuf.RpcController controller, com.google.protobuf.Message request) throws 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.refresh(controller, (org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto)request); default: throw new java.lang.AssertionError("Can't get here."); } } public final com.google.protobuf.Message getRequestPrototype( 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.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } public final com.google.protobuf.Message getResponsePrototype( 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.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } }; } /** * rpc refresh(.hadoop.common.GenericRefreshRequestProto) returns (.hadoop.common.GenericRefreshResponseCollectionProto); */ public abstract void refresh( com.google.protobuf.RpcController controller, org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto request, com.google.protobuf.RpcCallback done); public static final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptor() { return org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.getDescriptor().getServices().get(0); } public final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptorForType() { return getDescriptor(); } public final void callMethod( com.google.protobuf.Descriptors.MethodDescriptor method, com.google.protobuf.RpcController controller, com.google.protobuf.Message request, com.google.protobuf.RpcCallback< 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.refresh(controller, (org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto)request, com.google.protobuf.RpcUtil.specializeCallback( done)); return; default: throw new java.lang.AssertionError("Can't get here."); } } public final com.google.protobuf.Message getRequestPrototype( 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.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } public final com.google.protobuf.Message getResponsePrototype( 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.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } public static Stub newStub( com.google.protobuf.RpcChannel channel) { return new Stub(channel); } public static final class Stub extends org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshProtocolService implements Interface { private Stub(com.google.protobuf.RpcChannel channel) { this.channel = channel; } private final com.google.protobuf.RpcChannel channel; public com.google.protobuf.RpcChannel getChannel() { return channel; } public void refresh( com.google.protobuf.RpcController controller, org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto request, com.google.protobuf.RpcCallback done) { channel.callMethod( getDescriptor().getMethods().get(0), controller, request, org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto.getDefaultInstance(), com.google.protobuf.RpcUtil.generalizeCallback( done, org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto.class, org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto.getDefaultInstance())); } } public static BlockingInterface newBlockingStub( com.google.protobuf.BlockingRpcChannel channel) { return new BlockingStub(channel); } public interface BlockingInterface { public org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto refresh( com.google.protobuf.RpcController controller, org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto request) throws com.google.protobuf.ServiceException; } private static final class BlockingStub implements BlockingInterface { private BlockingStub(com.google.protobuf.BlockingRpcChannel channel) { this.channel = channel; } private final com.google.protobuf.BlockingRpcChannel channel; public org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto refresh( com.google.protobuf.RpcController controller, org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshRequestProto request) throws com.google.protobuf.ServiceException { return (org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto) channel.callBlockingMethod( getDescriptor().getMethods().get(0), controller, request, org.apache.hadoop.ipc.proto.GenericRefreshProtocolProtos.GenericRefreshResponseCollectionProto.getDefaultInstance()); } } // @@protoc_insertion_point(class_scope:hadoop.common.GenericRefreshProtocolService) } private static com.google.protobuf.Descriptors.Descriptor internal_static_hadoop_common_GenericRefreshRequestProto_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_hadoop_common_GenericRefreshRequestProto_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_hadoop_common_GenericRefreshResponseProto_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_hadoop_common_GenericRefreshResponseProto_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_hadoop_common_GenericRefreshResponseCollectionProto_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_hadoop_common_GenericRefreshResponseCollectionProto_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\034GenericRefreshProtocol.proto\022\rhadoop.c" + "ommon\">\n\032GenericRefreshRequestProto\022\022\n\ni" + "dentifier\030\001 \001(\t\022\014\n\004args\030\002 \003(\t\"Z\n\033Generic" + "RefreshResponseProto\022\022\n\nexitStatus\030\001 \001(\005" + "\022\023\n\013userMessage\030\002 \001(\t\022\022\n\nsenderName\030\003 \001(" + "\t\"f\n%GenericRefreshResponseCollectionPro" + "to\022=\n\tresponses\030\001 \003(\0132*.hadoop.common.Ge" + "nericRefreshResponseProto2\213\001\n\035GenericRef" + "reshProtocolService\022j\n\007refresh\022).hadoop." + "common.GenericRefreshRequestProto\0324.hado", "op.common.GenericRefreshResponseCollecti" + "onProtoBA\n\033org.apache.hadoop.ipc.protoB\034" + "GenericRefreshProtocolProtos\210\001\001\240\001\001" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; internal_static_hadoop_common_GenericRefreshRequestProto_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_hadoop_common_GenericRefreshRequestProto_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_hadoop_common_GenericRefreshRequestProto_descriptor, new java.lang.String[] { "Identifier", "Args", }); internal_static_hadoop_common_GenericRefreshResponseProto_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_hadoop_common_GenericRefreshResponseProto_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_hadoop_common_GenericRefreshResponseProto_descriptor, new java.lang.String[] { "ExitStatus", "UserMessage", "SenderName", }); internal_static_hadoop_common_GenericRefreshResponseCollectionProto_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_hadoop_common_GenericRefreshResponseCollectionProto_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_hadoop_common_GenericRefreshResponseCollectionProto_descriptor, new java.lang.String[] { "Responses", }); return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy