diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-slider/hadoop-yarn-slider-core/pom.xml b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-slider/hadoop-yarn-slider-core/pom.xml index 10cf6b16286..7453d1244ed 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-slider/hadoop-yarn-slider-core/pom.xml +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-slider/hadoop-yarn-slider-core/pom.xml @@ -36,6 +36,33 @@ + + org.apache.hadoop + hadoop-maven-plugins + + + compile-protoc + + protoc + + + ${protobuf.version} + ${protoc.path} + + ${basedir}/src/main/proto + + + ${basedir}/src/main/proto + + SliderClusterMessages.proto + SliderClusterProtocol.proto + + + + + + + org.apache.maven.plugins maven-jar-plugin @@ -85,9 +112,6 @@ **/*.json src/main/resources/webapps/slideram/.keep - - src/main/java/org/apache/slider/api/proto/Messages.java - src/main/java/org/apache/slider/api/proto/SliderClusterAPI.java @@ -362,41 +386,6 @@ - - compile-protobuf - - - - org.apache.hadoop - hadoop-maven-plugins - - - compile-protoc - generate-sources - - protoc - - - ${protobuf.version} - protoc - - ${basedir}/src/main/proto - - - ${basedir}/src/main/proto - - SliderClusterMessages.proto - SliderClusterProtocol.proto - - - ${basedir}/src/main/java - - - - - - - diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-slider/hadoop-yarn-slider-core/src/main/java/org/apache/slider/api/proto/Messages.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-slider/hadoop-yarn-slider-core/src/main/java/org/apache/slider/api/proto/Messages.java deleted file mode 100644 index 373d64d35b3..00000000000 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-slider/hadoop-yarn-slider-core/src/main/java/org/apache/slider/api/proto/Messages.java +++ /dev/null @@ -1,34473 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SliderClusterMessages.proto - -package org.apache.slider.api.proto; - -public final class Messages { - private Messages() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public interface RoleInstanceStateOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // required string name = 1; - /** - * required string name = 1; - */ - boolean hasName(); - /** - * required string name = 1; - */ - java.lang.String getName(); - /** - * required string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - // optional string role = 2; - /** - * optional string role = 2; - */ - boolean hasRole(); - /** - * optional string role = 2; - */ - java.lang.String getRole(); - /** - * optional string role = 2; - */ - com.google.protobuf.ByteString - getRoleBytes(); - - // required uint32 state = 4; - /** - * required uint32 state = 4; - */ - boolean hasState(); - /** - * required uint32 state = 4; - */ - int getState(); - - // required uint32 exitCode = 5; - /** - * required uint32 exitCode = 5; - */ - boolean hasExitCode(); - /** - * required uint32 exitCode = 5; - */ - int getExitCode(); - - // optional string command = 6; - /** - * optional string command = 6; - */ - boolean hasCommand(); - /** - * optional string command = 6; - */ - java.lang.String getCommand(); - /** - * optional string command = 6; - */ - com.google.protobuf.ByteString - getCommandBytes(); - - // optional string diagnostics = 7; - /** - * optional string diagnostics = 7; - */ - boolean hasDiagnostics(); - /** - * optional string diagnostics = 7; - */ - java.lang.String getDiagnostics(); - /** - * optional string diagnostics = 7; - */ - com.google.protobuf.ByteString - getDiagnosticsBytes(); - - // repeated string output = 8; - /** - * repeated string output = 8; - */ - java.util.List - getOutputList(); - /** - * repeated string output = 8; - */ - int getOutputCount(); - /** - * repeated string output = 8; - */ - java.lang.String getOutput(int index); - /** - * repeated string output = 8; - */ - com.google.protobuf.ByteString - getOutputBytes(int index); - - // repeated string environment = 9; - /** - * repeated string environment = 9; - */ - java.util.List - getEnvironmentList(); - /** - * repeated string environment = 9; - */ - int getEnvironmentCount(); - /** - * repeated string environment = 9; - */ - java.lang.String getEnvironment(int index); - /** - * repeated string environment = 9; - */ - com.google.protobuf.ByteString - getEnvironmentBytes(int index); - - // required uint32 roleId = 10; - /** - * required uint32 roleId = 10; - */ - boolean hasRoleId(); - /** - * required uint32 roleId = 10; - */ - int getRoleId(); - - // required bool released = 11; - /** - * required bool released = 11; - */ - boolean hasReleased(); - /** - * required bool released = 11; - */ - boolean getReleased(); - - // required int64 createTime = 12; - /** - * required int64 createTime = 12; - */ - boolean hasCreateTime(); - /** - * required int64 createTime = 12; - */ - long getCreateTime(); - - // required int64 startTime = 13; - /** - * required int64 startTime = 13; - */ - boolean hasStartTime(); - /** - * required int64 startTime = 13; - */ - long getStartTime(); - - // required string host = 14; - /** - * required string host = 14; - */ - boolean hasHost(); - /** - * required string host = 14; - */ - java.lang.String getHost(); - /** - * required string host = 14; - */ - com.google.protobuf.ByteString - getHostBytes(); - - // required string hostURL = 15; - /** - * required string hostURL = 15; - */ - boolean hasHostURL(); - /** - * required string hostURL = 15; - */ - java.lang.String getHostURL(); - /** - * required string hostURL = 15; - */ - com.google.protobuf.ByteString - getHostURLBytes(); - - // optional string appVersion = 16; - /** - * optional string appVersion = 16; - */ - boolean hasAppVersion(); - /** - * optional string appVersion = 16; - */ - java.lang.String getAppVersion(); - /** - * optional string appVersion = 16; - */ - com.google.protobuf.ByteString - getAppVersionBytes(); - } - /** - * Protobuf type {@code org.apache.slider.api.RoleInstanceState} - */ - public static final class RoleInstanceState extends - com.google.protobuf.GeneratedMessage - implements RoleInstanceStateOrBuilder { - // Use RoleInstanceState.newBuilder() to construct. - private RoleInstanceState(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private RoleInstanceState(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final RoleInstanceState defaultInstance; - public static RoleInstanceState getDefaultInstance() { - return defaultInstance; - } - - public RoleInstanceState getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RoleInstanceState( - 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; - name_ = input.readBytes(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - role_ = input.readBytes(); - break; - } - case 32: { - bitField0_ |= 0x00000004; - state_ = input.readUInt32(); - break; - } - case 40: { - bitField0_ |= 0x00000008; - exitCode_ = input.readUInt32(); - break; - } - case 50: { - bitField0_ |= 0x00000010; - command_ = input.readBytes(); - break; - } - case 58: { - bitField0_ |= 0x00000020; - diagnostics_ = input.readBytes(); - break; - } - case 66: { - if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { - output_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000040; - } - output_.add(input.readBytes()); - break; - } - case 74: { - if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { - environment_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000080; - } - environment_.add(input.readBytes()); - break; - } - case 80: { - bitField0_ |= 0x00000040; - roleId_ = input.readUInt32(); - break; - } - case 88: { - bitField0_ |= 0x00000080; - released_ = input.readBool(); - break; - } - case 96: { - bitField0_ |= 0x00000100; - createTime_ = input.readInt64(); - break; - } - case 104: { - bitField0_ |= 0x00000200; - startTime_ = input.readInt64(); - break; - } - case 114: { - bitField0_ |= 0x00000400; - host_ = input.readBytes(); - break; - } - case 122: { - bitField0_ |= 0x00000800; - hostURL_ = input.readBytes(); - break; - } - case 130: { - bitField0_ |= 0x00001000; - appVersion_ = 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_ & 0x00000040) == 0x00000040)) { - output_ = new com.google.protobuf.UnmodifiableLazyStringList(output_); - } - if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { - environment_ = new com.google.protobuf.UnmodifiableLazyStringList(environment_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_RoleInstanceState_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_RoleInstanceState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.RoleInstanceState.class, org.apache.slider.api.proto.Messages.RoleInstanceState.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public RoleInstanceState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RoleInstanceState(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // required string name = 1; - public static final int NAME_FIELD_NUMBER = 1; - private java.lang.Object name_; - /** - * required string name = 1; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } - } - /** - * required string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string role = 2; - public static final int ROLE_FIELD_NUMBER = 2; - private java.lang.Object role_; - /** - * optional string role = 2; - */ - public boolean hasRole() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string role = 2; - */ - public java.lang.String getRole() { - java.lang.Object ref = role_; - 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()) { - role_ = s; - } - return s; - } - } - /** - * optional string role = 2; - */ - public com.google.protobuf.ByteString - getRoleBytes() { - java.lang.Object ref = role_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - role_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // required uint32 state = 4; - public static final int STATE_FIELD_NUMBER = 4; - private int state_; - /** - * required uint32 state = 4; - */ - public boolean hasState() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * required uint32 state = 4; - */ - public int getState() { - return state_; - } - - // required uint32 exitCode = 5; - public static final int EXITCODE_FIELD_NUMBER = 5; - private int exitCode_; - /** - * required uint32 exitCode = 5; - */ - public boolean hasExitCode() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * required uint32 exitCode = 5; - */ - public int getExitCode() { - return exitCode_; - } - - // optional string command = 6; - public static final int COMMAND_FIELD_NUMBER = 6; - private java.lang.Object command_; - /** - * optional string command = 6; - */ - public boolean hasCommand() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional string command = 6; - */ - public java.lang.String getCommand() { - java.lang.Object ref = command_; - 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()) { - command_ = s; - } - return s; - } - } - /** - * optional string command = 6; - */ - public com.google.protobuf.ByteString - getCommandBytes() { - java.lang.Object ref = command_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - command_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string diagnostics = 7; - public static final int DIAGNOSTICS_FIELD_NUMBER = 7; - private java.lang.Object diagnostics_; - /** - * optional string diagnostics = 7; - */ - public boolean hasDiagnostics() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional string diagnostics = 7; - */ - public java.lang.String getDiagnostics() { - java.lang.Object ref = diagnostics_; - 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()) { - diagnostics_ = s; - } - return s; - } - } - /** - * optional string diagnostics = 7; - */ - public com.google.protobuf.ByteString - getDiagnosticsBytes() { - java.lang.Object ref = diagnostics_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - diagnostics_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // repeated string output = 8; - public static final int OUTPUT_FIELD_NUMBER = 8; - private com.google.protobuf.LazyStringList output_; - /** - * repeated string output = 8; - */ - public java.util.List - getOutputList() { - return output_; - } - /** - * repeated string output = 8; - */ - public int getOutputCount() { - return output_.size(); - } - /** - * repeated string output = 8; - */ - public java.lang.String getOutput(int index) { - return output_.get(index); - } - /** - * repeated string output = 8; - */ - public com.google.protobuf.ByteString - getOutputBytes(int index) { - return output_.getByteString(index); - } - - // repeated string environment = 9; - public static final int ENVIRONMENT_FIELD_NUMBER = 9; - private com.google.protobuf.LazyStringList environment_; - /** - * repeated string environment = 9; - */ - public java.util.List - getEnvironmentList() { - return environment_; - } - /** - * repeated string environment = 9; - */ - public int getEnvironmentCount() { - return environment_.size(); - } - /** - * repeated string environment = 9; - */ - public java.lang.String getEnvironment(int index) { - return environment_.get(index); - } - /** - * repeated string environment = 9; - */ - public com.google.protobuf.ByteString - getEnvironmentBytes(int index) { - return environment_.getByteString(index); - } - - // required uint32 roleId = 10; - public static final int ROLEID_FIELD_NUMBER = 10; - private int roleId_; - /** - * required uint32 roleId = 10; - */ - public boolean hasRoleId() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * required uint32 roleId = 10; - */ - public int getRoleId() { - return roleId_; - } - - // required bool released = 11; - public static final int RELEASED_FIELD_NUMBER = 11; - private boolean released_; - /** - * required bool released = 11; - */ - public boolean hasReleased() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - /** - * required bool released = 11; - */ - public boolean getReleased() { - return released_; - } - - // required int64 createTime = 12; - public static final int CREATETIME_FIELD_NUMBER = 12; - private long createTime_; - /** - * required int64 createTime = 12; - */ - public boolean hasCreateTime() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } - /** - * required int64 createTime = 12; - */ - public long getCreateTime() { - return createTime_; - } - - // required int64 startTime = 13; - public static final int STARTTIME_FIELD_NUMBER = 13; - private long startTime_; - /** - * required int64 startTime = 13; - */ - public boolean hasStartTime() { - return ((bitField0_ & 0x00000200) == 0x00000200); - } - /** - * required int64 startTime = 13; - */ - public long getStartTime() { - return startTime_; - } - - // required string host = 14; - public static final int HOST_FIELD_NUMBER = 14; - private java.lang.Object host_; - /** - * required string host = 14; - */ - public boolean hasHost() { - return ((bitField0_ & 0x00000400) == 0x00000400); - } - /** - * required string host = 14; - */ - public java.lang.String getHost() { - java.lang.Object ref = host_; - 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()) { - host_ = s; - } - return s; - } - } - /** - * required string host = 14; - */ - public com.google.protobuf.ByteString - getHostBytes() { - java.lang.Object ref = host_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - host_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // required string hostURL = 15; - public static final int HOSTURL_FIELD_NUMBER = 15; - private java.lang.Object hostURL_; - /** - * required string hostURL = 15; - */ - public boolean hasHostURL() { - return ((bitField0_ & 0x00000800) == 0x00000800); - } - /** - * required string hostURL = 15; - */ - public java.lang.String getHostURL() { - java.lang.Object ref = hostURL_; - 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()) { - hostURL_ = s; - } - return s; - } - } - /** - * required string hostURL = 15; - */ - public com.google.protobuf.ByteString - getHostURLBytes() { - java.lang.Object ref = hostURL_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - hostURL_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string appVersion = 16; - public static final int APPVERSION_FIELD_NUMBER = 16; - private java.lang.Object appVersion_; - /** - * optional string appVersion = 16; - */ - public boolean hasAppVersion() { - return ((bitField0_ & 0x00001000) == 0x00001000); - } - /** - * optional string appVersion = 16; - */ - public java.lang.String getAppVersion() { - java.lang.Object ref = appVersion_; - 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()) { - appVersion_ = s; - } - return s; - } - } - /** - * optional string appVersion = 16; - */ - public com.google.protobuf.ByteString - getAppVersionBytes() { - java.lang.Object ref = appVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - appVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private void initFields() { - name_ = ""; - role_ = ""; - state_ = 0; - exitCode_ = 0; - command_ = ""; - diagnostics_ = ""; - output_ = com.google.protobuf.LazyStringArrayList.EMPTY; - environment_ = com.google.protobuf.LazyStringArrayList.EMPTY; - roleId_ = 0; - released_ = false; - createTime_ = 0L; - startTime_ = 0L; - host_ = ""; - hostURL_ = ""; - appVersion_ = ""; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (!hasName()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasState()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasExitCode()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasRoleId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasReleased()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasCreateTime()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasStartTime()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasHost()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasHostURL()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getNameBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getRoleBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeUInt32(4, state_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeUInt32(5, exitCode_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(6, getCommandBytes()); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBytes(7, getDiagnosticsBytes()); - } - for (int i = 0; i < output_.size(); i++) { - output.writeBytes(8, output_.getByteString(i)); - } - for (int i = 0; i < environment_.size(); i++) { - output.writeBytes(9, environment_.getByteString(i)); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeUInt32(10, roleId_); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeBool(11, released_); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - output.writeInt64(12, createTime_); - } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - output.writeInt64(13, startTime_); - } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - output.writeBytes(14, getHostBytes()); - } - if (((bitField0_ & 0x00000800) == 0x00000800)) { - output.writeBytes(15, getHostURLBytes()); - } - if (((bitField0_ & 0x00001000) == 0x00001000)) { - output.writeBytes(16, getAppVersionBytes()); - } - 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, getNameBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getRoleBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, state_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(5, exitCode_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, getCommandBytes()); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, getDiagnosticsBytes()); - } - { - int dataSize = 0; - for (int i = 0; i < output_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(output_.getByteString(i)); - } - size += dataSize; - size += 1 * getOutputList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < environment_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(environment_.getByteString(i)); - } - size += dataSize; - size += 1 * getEnvironmentList().size(); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(10, roleId_); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(11, released_); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(12, createTime_); - } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(13, startTime_); - } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(14, getHostBytes()); - } - if (((bitField0_ & 0x00000800) == 0x00000800)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(15, getHostURLBytes()); - } - if (((bitField0_ & 0x00001000) == 0x00001000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(16, getAppVersionBytes()); - } - 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.slider.api.proto.Messages.RoleInstanceState)) { - return super.equals(obj); - } - org.apache.slider.api.proto.Messages.RoleInstanceState other = (org.apache.slider.api.proto.Messages.RoleInstanceState) obj; - - boolean result = true; - result = result && (hasName() == other.hasName()); - if (hasName()) { - result = result && getName() - .equals(other.getName()); - } - result = result && (hasRole() == other.hasRole()); - if (hasRole()) { - result = result && getRole() - .equals(other.getRole()); - } - result = result && (hasState() == other.hasState()); - if (hasState()) { - result = result && (getState() - == other.getState()); - } - result = result && (hasExitCode() == other.hasExitCode()); - if (hasExitCode()) { - result = result && (getExitCode() - == other.getExitCode()); - } - result = result && (hasCommand() == other.hasCommand()); - if (hasCommand()) { - result = result && getCommand() - .equals(other.getCommand()); - } - result = result && (hasDiagnostics() == other.hasDiagnostics()); - if (hasDiagnostics()) { - result = result && getDiagnostics() - .equals(other.getDiagnostics()); - } - result = result && getOutputList() - .equals(other.getOutputList()); - result = result && getEnvironmentList() - .equals(other.getEnvironmentList()); - result = result && (hasRoleId() == other.hasRoleId()); - if (hasRoleId()) { - result = result && (getRoleId() - == other.getRoleId()); - } - result = result && (hasReleased() == other.hasReleased()); - if (hasReleased()) { - result = result && (getReleased() - == other.getReleased()); - } - result = result && (hasCreateTime() == other.hasCreateTime()); - if (hasCreateTime()) { - result = result && (getCreateTime() - == other.getCreateTime()); - } - result = result && (hasStartTime() == other.hasStartTime()); - if (hasStartTime()) { - result = result && (getStartTime() - == other.getStartTime()); - } - result = result && (hasHost() == other.hasHost()); - if (hasHost()) { - result = result && getHost() - .equals(other.getHost()); - } - result = result && (hasHostURL() == other.hasHostURL()); - if (hasHostURL()) { - result = result && getHostURL() - .equals(other.getHostURL()); - } - result = result && (hasAppVersion() == other.hasAppVersion()); - if (hasAppVersion()) { - result = result && getAppVersion() - .equals(other.getAppVersion()); - } - 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 (hasName()) { - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - } - if (hasRole()) { - hash = (37 * hash) + ROLE_FIELD_NUMBER; - hash = (53 * hash) + getRole().hashCode(); - } - if (hasState()) { - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + getState(); - } - if (hasExitCode()) { - hash = (37 * hash) + EXITCODE_FIELD_NUMBER; - hash = (53 * hash) + getExitCode(); - } - if (hasCommand()) { - hash = (37 * hash) + COMMAND_FIELD_NUMBER; - hash = (53 * hash) + getCommand().hashCode(); - } - if (hasDiagnostics()) { - hash = (37 * hash) + DIAGNOSTICS_FIELD_NUMBER; - hash = (53 * hash) + getDiagnostics().hashCode(); - } - if (getOutputCount() > 0) { - hash = (37 * hash) + OUTPUT_FIELD_NUMBER; - hash = (53 * hash) + getOutputList().hashCode(); - } - if (getEnvironmentCount() > 0) { - hash = (37 * hash) + ENVIRONMENT_FIELD_NUMBER; - hash = (53 * hash) + getEnvironmentList().hashCode(); - } - if (hasRoleId()) { - hash = (37 * hash) + ROLEID_FIELD_NUMBER; - hash = (53 * hash) + getRoleId(); - } - if (hasReleased()) { - hash = (37 * hash) + RELEASED_FIELD_NUMBER; - hash = (53 * hash) + hashBoolean(getReleased()); - } - if (hasCreateTime()) { - hash = (37 * hash) + CREATETIME_FIELD_NUMBER; - hash = (53 * hash) + hashLong(getCreateTime()); - } - if (hasStartTime()) { - hash = (37 * hash) + STARTTIME_FIELD_NUMBER; - hash = (53 * hash) + hashLong(getStartTime()); - } - if (hasHost()) { - hash = (37 * hash) + HOST_FIELD_NUMBER; - hash = (53 * hash) + getHost().hashCode(); - } - if (hasHostURL()) { - hash = (37 * hash) + HOSTURL_FIELD_NUMBER; - hash = (53 * hash) + getHostURL().hashCode(); - } - if (hasAppVersion()) { - hash = (37 * hash) + APPVERSION_FIELD_NUMBER; - hash = (53 * hash) + getAppVersion().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.apache.slider.api.proto.Messages.RoleInstanceState parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.RoleInstanceState 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.slider.api.proto.Messages.RoleInstanceState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.RoleInstanceState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.RoleInstanceState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.RoleInstanceState parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.RoleInstanceState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.apache.slider.api.proto.Messages.RoleInstanceState parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.RoleInstanceState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.RoleInstanceState 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.slider.api.proto.Messages.RoleInstanceState 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 org.apache.slider.api.RoleInstanceState} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.apache.slider.api.proto.Messages.RoleInstanceStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_RoleInstanceState_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_RoleInstanceState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.RoleInstanceState.class, org.apache.slider.api.proto.Messages.RoleInstanceState.Builder.class); - } - - // Construct using org.apache.slider.api.proto.Messages.RoleInstanceState.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(); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - role_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - state_ = 0; - bitField0_ = (bitField0_ & ~0x00000004); - exitCode_ = 0; - bitField0_ = (bitField0_ & ~0x00000008); - command_ = ""; - bitField0_ = (bitField0_ & ~0x00000010); - diagnostics_ = ""; - bitField0_ = (bitField0_ & ~0x00000020); - output_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000040); - environment_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000080); - roleId_ = 0; - bitField0_ = (bitField0_ & ~0x00000100); - released_ = false; - bitField0_ = (bitField0_ & ~0x00000200); - createTime_ = 0L; - bitField0_ = (bitField0_ & ~0x00000400); - startTime_ = 0L; - bitField0_ = (bitField0_ & ~0x00000800); - host_ = ""; - bitField0_ = (bitField0_ & ~0x00001000); - hostURL_ = ""; - bitField0_ = (bitField0_ & ~0x00002000); - appVersion_ = ""; - bitField0_ = (bitField0_ & ~0x00004000); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_RoleInstanceState_descriptor; - } - - public org.apache.slider.api.proto.Messages.RoleInstanceState getDefaultInstanceForType() { - return org.apache.slider.api.proto.Messages.RoleInstanceState.getDefaultInstance(); - } - - public org.apache.slider.api.proto.Messages.RoleInstanceState build() { - org.apache.slider.api.proto.Messages.RoleInstanceState result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.apache.slider.api.proto.Messages.RoleInstanceState buildPartial() { - org.apache.slider.api.proto.Messages.RoleInstanceState result = new org.apache.slider.api.proto.Messages.RoleInstanceState(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.name_ = name_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.role_ = role_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.state_ = state_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.exitCode_ = exitCode_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.command_ = command_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - result.diagnostics_ = diagnostics_; - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output_ = new com.google.protobuf.UnmodifiableLazyStringList( - output_); - bitField0_ = (bitField0_ & ~0x00000040); - } - result.output_ = output_; - if (((bitField0_ & 0x00000080) == 0x00000080)) { - environment_ = new com.google.protobuf.UnmodifiableLazyStringList( - environment_); - bitField0_ = (bitField0_ & ~0x00000080); - } - result.environment_ = environment_; - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { - to_bitField0_ |= 0x00000040; - } - result.roleId_ = roleId_; - if (((from_bitField0_ & 0x00000200) == 0x00000200)) { - to_bitField0_ |= 0x00000080; - } - result.released_ = released_; - if (((from_bitField0_ & 0x00000400) == 0x00000400)) { - to_bitField0_ |= 0x00000100; - } - result.createTime_ = createTime_; - if (((from_bitField0_ & 0x00000800) == 0x00000800)) { - to_bitField0_ |= 0x00000200; - } - result.startTime_ = startTime_; - if (((from_bitField0_ & 0x00001000) == 0x00001000)) { - to_bitField0_ |= 0x00000400; - } - result.host_ = host_; - if (((from_bitField0_ & 0x00002000) == 0x00002000)) { - to_bitField0_ |= 0x00000800; - } - result.hostURL_ = hostURL_; - if (((from_bitField0_ & 0x00004000) == 0x00004000)) { - to_bitField0_ |= 0x00001000; - } - result.appVersion_ = appVersion_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.slider.api.proto.Messages.RoleInstanceState) { - return mergeFrom((org.apache.slider.api.proto.Messages.RoleInstanceState)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.apache.slider.api.proto.Messages.RoleInstanceState other) { - if (other == org.apache.slider.api.proto.Messages.RoleInstanceState.getDefaultInstance()) return this; - if (other.hasName()) { - bitField0_ |= 0x00000001; - name_ = other.name_; - onChanged(); - } - if (other.hasRole()) { - bitField0_ |= 0x00000002; - role_ = other.role_; - onChanged(); - } - if (other.hasState()) { - setState(other.getState()); - } - if (other.hasExitCode()) { - setExitCode(other.getExitCode()); - } - if (other.hasCommand()) { - bitField0_ |= 0x00000010; - command_ = other.command_; - onChanged(); - } - if (other.hasDiagnostics()) { - bitField0_ |= 0x00000020; - diagnostics_ = other.diagnostics_; - onChanged(); - } - if (!other.output_.isEmpty()) { - if (output_.isEmpty()) { - output_ = other.output_; - bitField0_ = (bitField0_ & ~0x00000040); - } else { - ensureOutputIsMutable(); - output_.addAll(other.output_); - } - onChanged(); - } - if (!other.environment_.isEmpty()) { - if (environment_.isEmpty()) { - environment_ = other.environment_; - bitField0_ = (bitField0_ & ~0x00000080); - } else { - ensureEnvironmentIsMutable(); - environment_.addAll(other.environment_); - } - onChanged(); - } - if (other.hasRoleId()) { - setRoleId(other.getRoleId()); - } - if (other.hasReleased()) { - setReleased(other.getReleased()); - } - if (other.hasCreateTime()) { - setCreateTime(other.getCreateTime()); - } - if (other.hasStartTime()) { - setStartTime(other.getStartTime()); - } - if (other.hasHost()) { - bitField0_ |= 0x00001000; - host_ = other.host_; - onChanged(); - } - if (other.hasHostURL()) { - bitField0_ |= 0x00002000; - hostURL_ = other.hostURL_; - onChanged(); - } - if (other.hasAppVersion()) { - bitField0_ |= 0x00004000; - appVersion_ = other.appVersion_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasName()) { - - return false; - } - if (!hasState()) { - - return false; - } - if (!hasExitCode()) { - - return false; - } - if (!hasRoleId()) { - - return false; - } - if (!hasReleased()) { - - return false; - } - if (!hasCreateTime()) { - - return false; - } - if (!hasStartTime()) { - - return false; - } - if (!hasHost()) { - - return false; - } - if (!hasHostURL()) { - - return false; - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.apache.slider.api.proto.Messages.RoleInstanceState parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.slider.api.proto.Messages.RoleInstanceState) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // required string name = 1; - private java.lang.Object name_ = ""; - /** - * required string name = 1; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = value; - onChanged(); - return this; - } - /** - * required string name = 1; - */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000001); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * required string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = value; - onChanged(); - return this; - } - - // optional string role = 2; - private java.lang.Object role_ = ""; - /** - * optional string role = 2; - */ - public boolean hasRole() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string role = 2; - */ - public java.lang.String getRole() { - java.lang.Object ref = role_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - role_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string role = 2; - */ - public com.google.protobuf.ByteString - getRoleBytes() { - java.lang.Object ref = role_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - role_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string role = 2; - */ - public Builder setRole( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - role_ = value; - onChanged(); - return this; - } - /** - * optional string role = 2; - */ - public Builder clearRole() { - bitField0_ = (bitField0_ & ~0x00000002); - role_ = getDefaultInstance().getRole(); - onChanged(); - return this; - } - /** - * optional string role = 2; - */ - public Builder setRoleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - role_ = value; - onChanged(); - return this; - } - - // required uint32 state = 4; - private int state_ ; - /** - * required uint32 state = 4; - */ - public boolean hasState() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * required uint32 state = 4; - */ - public int getState() { - return state_; - } - /** - * required uint32 state = 4; - */ - public Builder setState(int value) { - bitField0_ |= 0x00000004; - state_ = value; - onChanged(); - return this; - } - /** - * required uint32 state = 4; - */ - public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000004); - state_ = 0; - onChanged(); - return this; - } - - // required uint32 exitCode = 5; - private int exitCode_ ; - /** - * required uint32 exitCode = 5; - */ - public boolean hasExitCode() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * required uint32 exitCode = 5; - */ - public int getExitCode() { - return exitCode_; - } - /** - * required uint32 exitCode = 5; - */ - public Builder setExitCode(int value) { - bitField0_ |= 0x00000008; - exitCode_ = value; - onChanged(); - return this; - } - /** - * required uint32 exitCode = 5; - */ - public Builder clearExitCode() { - bitField0_ = (bitField0_ & ~0x00000008); - exitCode_ = 0; - onChanged(); - return this; - } - - // optional string command = 6; - private java.lang.Object command_ = ""; - /** - * optional string command = 6; - */ - public boolean hasCommand() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional string command = 6; - */ - public java.lang.String getCommand() { - java.lang.Object ref = command_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - command_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string command = 6; - */ - public com.google.protobuf.ByteString - getCommandBytes() { - java.lang.Object ref = command_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - command_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string command = 6; - */ - public Builder setCommand( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - command_ = value; - onChanged(); - return this; - } - /** - * optional string command = 6; - */ - public Builder clearCommand() { - bitField0_ = (bitField0_ & ~0x00000010); - command_ = getDefaultInstance().getCommand(); - onChanged(); - return this; - } - /** - * optional string command = 6; - */ - public Builder setCommandBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - command_ = value; - onChanged(); - return this; - } - - // optional string diagnostics = 7; - private java.lang.Object diagnostics_ = ""; - /** - * optional string diagnostics = 7; - */ - public boolean hasDiagnostics() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional string diagnostics = 7; - */ - public java.lang.String getDiagnostics() { - java.lang.Object ref = diagnostics_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - diagnostics_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string diagnostics = 7; - */ - public com.google.protobuf.ByteString - getDiagnosticsBytes() { - java.lang.Object ref = diagnostics_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - diagnostics_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string diagnostics = 7; - */ - public Builder setDiagnostics( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - diagnostics_ = value; - onChanged(); - return this; - } - /** - * optional string diagnostics = 7; - */ - public Builder clearDiagnostics() { - bitField0_ = (bitField0_ & ~0x00000020); - diagnostics_ = getDefaultInstance().getDiagnostics(); - onChanged(); - return this; - } - /** - * optional string diagnostics = 7; - */ - public Builder setDiagnosticsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - diagnostics_ = value; - onChanged(); - return this; - } - - // repeated string output = 8; - private com.google.protobuf.LazyStringList output_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureOutputIsMutable() { - if (!((bitField0_ & 0x00000040) == 0x00000040)) { - output_ = new com.google.protobuf.LazyStringArrayList(output_); - bitField0_ |= 0x00000040; - } - } - /** - * repeated string output = 8; - */ - public java.util.List - getOutputList() { - return java.util.Collections.unmodifiableList(output_); - } - /** - * repeated string output = 8; - */ - public int getOutputCount() { - return output_.size(); - } - /** - * repeated string output = 8; - */ - public java.lang.String getOutput(int index) { - return output_.get(index); - } - /** - * repeated string output = 8; - */ - public com.google.protobuf.ByteString - getOutputBytes(int index) { - return output_.getByteString(index); - } - /** - * repeated string output = 8; - */ - public Builder setOutput( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutputIsMutable(); - output_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string output = 8; - */ - public Builder addOutput( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutputIsMutable(); - output_.add(value); - onChanged(); - return this; - } - /** - * repeated string output = 8; - */ - public Builder addAllOutput( - java.lang.Iterable values) { - ensureOutputIsMutable(); - super.addAll(values, output_); - onChanged(); - return this; - } - /** - * repeated string output = 8; - */ - public Builder clearOutput() { - output_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - return this; - } - /** - * repeated string output = 8; - */ - public Builder addOutputBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutputIsMutable(); - output_.add(value); - onChanged(); - return this; - } - - // repeated string environment = 9; - private com.google.protobuf.LazyStringList environment_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureEnvironmentIsMutable() { - if (!((bitField0_ & 0x00000080) == 0x00000080)) { - environment_ = new com.google.protobuf.LazyStringArrayList(environment_); - bitField0_ |= 0x00000080; - } - } - /** - * repeated string environment = 9; - */ - public java.util.List - getEnvironmentList() { - return java.util.Collections.unmodifiableList(environment_); - } - /** - * repeated string environment = 9; - */ - public int getEnvironmentCount() { - return environment_.size(); - } - /** - * repeated string environment = 9; - */ - public java.lang.String getEnvironment(int index) { - return environment_.get(index); - } - /** - * repeated string environment = 9; - */ - public com.google.protobuf.ByteString - getEnvironmentBytes(int index) { - return environment_.getByteString(index); - } - /** - * repeated string environment = 9; - */ - public Builder setEnvironment( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureEnvironmentIsMutable(); - environment_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string environment = 9; - */ - public Builder addEnvironment( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureEnvironmentIsMutable(); - environment_.add(value); - onChanged(); - return this; - } - /** - * repeated string environment = 9; - */ - public Builder addAllEnvironment( - java.lang.Iterable values) { - ensureEnvironmentIsMutable(); - super.addAll(values, environment_); - onChanged(); - return this; - } - /** - * repeated string environment = 9; - */ - public Builder clearEnvironment() { - environment_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - return this; - } - /** - * repeated string environment = 9; - */ - public Builder addEnvironmentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureEnvironmentIsMutable(); - environment_.add(value); - onChanged(); - return this; - } - - // required uint32 roleId = 10; - private int roleId_ ; - /** - * required uint32 roleId = 10; - */ - public boolean hasRoleId() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } - /** - * required uint32 roleId = 10; - */ - public int getRoleId() { - return roleId_; - } - /** - * required uint32 roleId = 10; - */ - public Builder setRoleId(int value) { - bitField0_ |= 0x00000100; - roleId_ = value; - onChanged(); - return this; - } - /** - * required uint32 roleId = 10; - */ - public Builder clearRoleId() { - bitField0_ = (bitField0_ & ~0x00000100); - roleId_ = 0; - onChanged(); - return this; - } - - // required bool released = 11; - private boolean released_ ; - /** - * required bool released = 11; - */ - public boolean hasReleased() { - return ((bitField0_ & 0x00000200) == 0x00000200); - } - /** - * required bool released = 11; - */ - public boolean getReleased() { - return released_; - } - /** - * required bool released = 11; - */ - public Builder setReleased(boolean value) { - bitField0_ |= 0x00000200; - released_ = value; - onChanged(); - return this; - } - /** - * required bool released = 11; - */ - public Builder clearReleased() { - bitField0_ = (bitField0_ & ~0x00000200); - released_ = false; - onChanged(); - return this; - } - - // required int64 createTime = 12; - private long createTime_ ; - /** - * required int64 createTime = 12; - */ - public boolean hasCreateTime() { - return ((bitField0_ & 0x00000400) == 0x00000400); - } - /** - * required int64 createTime = 12; - */ - public long getCreateTime() { - return createTime_; - } - /** - * required int64 createTime = 12; - */ - public Builder setCreateTime(long value) { - bitField0_ |= 0x00000400; - createTime_ = value; - onChanged(); - return this; - } - /** - * required int64 createTime = 12; - */ - public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000400); - createTime_ = 0L; - onChanged(); - return this; - } - - // required int64 startTime = 13; - private long startTime_ ; - /** - * required int64 startTime = 13; - */ - public boolean hasStartTime() { - return ((bitField0_ & 0x00000800) == 0x00000800); - } - /** - * required int64 startTime = 13; - */ - public long getStartTime() { - return startTime_; - } - /** - * required int64 startTime = 13; - */ - public Builder setStartTime(long value) { - bitField0_ |= 0x00000800; - startTime_ = value; - onChanged(); - return this; - } - /** - * required int64 startTime = 13; - */ - public Builder clearStartTime() { - bitField0_ = (bitField0_ & ~0x00000800); - startTime_ = 0L; - onChanged(); - return this; - } - - // required string host = 14; - private java.lang.Object host_ = ""; - /** - * required string host = 14; - */ - public boolean hasHost() { - return ((bitField0_ & 0x00001000) == 0x00001000); - } - /** - * required string host = 14; - */ - public java.lang.String getHost() { - java.lang.Object ref = host_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - host_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string host = 14; - */ - public com.google.protobuf.ByteString - getHostBytes() { - java.lang.Object ref = host_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - host_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string host = 14; - */ - public Builder setHost( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00001000; - host_ = value; - onChanged(); - return this; - } - /** - * required string host = 14; - */ - public Builder clearHost() { - bitField0_ = (bitField0_ & ~0x00001000); - host_ = getDefaultInstance().getHost(); - onChanged(); - return this; - } - /** - * required string host = 14; - */ - public Builder setHostBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00001000; - host_ = value; - onChanged(); - return this; - } - - // required string hostURL = 15; - private java.lang.Object hostURL_ = ""; - /** - * required string hostURL = 15; - */ - public boolean hasHostURL() { - return ((bitField0_ & 0x00002000) == 0x00002000); - } - /** - * required string hostURL = 15; - */ - public java.lang.String getHostURL() { - java.lang.Object ref = hostURL_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - hostURL_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string hostURL = 15; - */ - public com.google.protobuf.ByteString - getHostURLBytes() { - java.lang.Object ref = hostURL_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - hostURL_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string hostURL = 15; - */ - public Builder setHostURL( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00002000; - hostURL_ = value; - onChanged(); - return this; - } - /** - * required string hostURL = 15; - */ - public Builder clearHostURL() { - bitField0_ = (bitField0_ & ~0x00002000); - hostURL_ = getDefaultInstance().getHostURL(); - onChanged(); - return this; - } - /** - * required string hostURL = 15; - */ - public Builder setHostURLBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00002000; - hostURL_ = value; - onChanged(); - return this; - } - - // optional string appVersion = 16; - private java.lang.Object appVersion_ = ""; - /** - * optional string appVersion = 16; - */ - public boolean hasAppVersion() { - return ((bitField0_ & 0x00004000) == 0x00004000); - } - /** - * optional string appVersion = 16; - */ - public java.lang.String getAppVersion() { - java.lang.Object ref = appVersion_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - appVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string appVersion = 16; - */ - public com.google.protobuf.ByteString - getAppVersionBytes() { - java.lang.Object ref = appVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - appVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string appVersion = 16; - */ - public Builder setAppVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00004000; - appVersion_ = value; - onChanged(); - return this; - } - /** - * optional string appVersion = 16; - */ - public Builder clearAppVersion() { - bitField0_ = (bitField0_ & ~0x00004000); - appVersion_ = getDefaultInstance().getAppVersion(); - onChanged(); - return this; - } - /** - * optional string appVersion = 16; - */ - public Builder setAppVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00004000; - appVersion_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:org.apache.slider.api.RoleInstanceState) - } - - static { - defaultInstance = new RoleInstanceState(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.apache.slider.api.RoleInstanceState) - } - - public interface StopClusterRequestProtoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // required string message = 1; - /** - * required string message = 1; - * - *
-     **
-     *message to include
-     * 
- */ - boolean hasMessage(); - /** - * required string message = 1; - * - *
-     **
-     *message to include
-     * 
- */ - java.lang.String getMessage(); - /** - * required string message = 1; - * - *
-     **
-     *message to include
-     * 
- */ - com.google.protobuf.ByteString - getMessageBytes(); - } - /** - * Protobuf type {@code org.apache.slider.api.StopClusterRequestProto} - * - *
-   **
-   * stop the cluster
-   * 
- */ - public static final class StopClusterRequestProto extends - com.google.protobuf.GeneratedMessage - implements StopClusterRequestProtoOrBuilder { - // Use StopClusterRequestProto.newBuilder() to construct. - private StopClusterRequestProto(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private StopClusterRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final StopClusterRequestProto defaultInstance; - public static StopClusterRequestProto getDefaultInstance() { - return defaultInstance; - } - - public StopClusterRequestProto getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private StopClusterRequestProto( - 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; - message_ = 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.slider.api.proto.Messages.internal_static_org_apache_slider_api_StopClusterRequestProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_StopClusterRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.StopClusterRequestProto.class, org.apache.slider.api.proto.Messages.StopClusterRequestProto.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public StopClusterRequestProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StopClusterRequestProto(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // required string message = 1; - public static final int MESSAGE_FIELD_NUMBER = 1; - private java.lang.Object message_; - /** - * required string message = 1; - * - *
-     **
-     *message to include
-     * 
- */ - public boolean hasMessage() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string message = 1; - * - *
-     **
-     *message to include
-     * 
- */ - public java.lang.String getMessage() { - java.lang.Object ref = message_; - 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()) { - message_ = s; - } - return s; - } - } - /** - * required string message = 1; - * - *
-     **
-     *message to include
-     * 
- */ - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private void initFields() { - message_ = ""; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (!hasMessage()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getMessageBytes()); - } - 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, getMessageBytes()); - } - 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.slider.api.proto.Messages.StopClusterRequestProto)) { - return super.equals(obj); - } - org.apache.slider.api.proto.Messages.StopClusterRequestProto other = (org.apache.slider.api.proto.Messages.StopClusterRequestProto) obj; - - boolean result = true; - result = result && (hasMessage() == other.hasMessage()); - if (hasMessage()) { - result = result && getMessage() - .equals(other.getMessage()); - } - 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 (hasMessage()) { - hash = (37 * hash) + MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getMessage().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.apache.slider.api.proto.Messages.StopClusterRequestProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.StopClusterRequestProto 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.slider.api.proto.Messages.StopClusterRequestProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.StopClusterRequestProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.StopClusterRequestProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.StopClusterRequestProto parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.StopClusterRequestProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.apache.slider.api.proto.Messages.StopClusterRequestProto parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.StopClusterRequestProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.StopClusterRequestProto 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.slider.api.proto.Messages.StopClusterRequestProto 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 org.apache.slider.api.StopClusterRequestProto} - * - *
-     **
-     * stop the cluster
-     * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.apache.slider.api.proto.Messages.StopClusterRequestProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_StopClusterRequestProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_StopClusterRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.StopClusterRequestProto.class, org.apache.slider.api.proto.Messages.StopClusterRequestProto.Builder.class); - } - - // Construct using org.apache.slider.api.proto.Messages.StopClusterRequestProto.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(); - message_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_StopClusterRequestProto_descriptor; - } - - public org.apache.slider.api.proto.Messages.StopClusterRequestProto getDefaultInstanceForType() { - return org.apache.slider.api.proto.Messages.StopClusterRequestProto.getDefaultInstance(); - } - - public org.apache.slider.api.proto.Messages.StopClusterRequestProto build() { - org.apache.slider.api.proto.Messages.StopClusterRequestProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.apache.slider.api.proto.Messages.StopClusterRequestProto buildPartial() { - org.apache.slider.api.proto.Messages.StopClusterRequestProto result = new org.apache.slider.api.proto.Messages.StopClusterRequestProto(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.message_ = message_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.slider.api.proto.Messages.StopClusterRequestProto) { - return mergeFrom((org.apache.slider.api.proto.Messages.StopClusterRequestProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.apache.slider.api.proto.Messages.StopClusterRequestProto other) { - if (other == org.apache.slider.api.proto.Messages.StopClusterRequestProto.getDefaultInstance()) return this; - if (other.hasMessage()) { - bitField0_ |= 0x00000001; - message_ = other.message_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasMessage()) { - - return false; - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.apache.slider.api.proto.Messages.StopClusterRequestProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.slider.api.proto.Messages.StopClusterRequestProto) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // required string message = 1; - private java.lang.Object message_ = ""; - /** - * required string message = 1; - * - *
-       **
-       *message to include
-       * 
- */ - public boolean hasMessage() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string message = 1; - * - *
-       **
-       *message to include
-       * 
- */ - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - message_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string message = 1; - * - *
-       **
-       *message to include
-       * 
- */ - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string message = 1; - * - *
-       **
-       *message to include
-       * 
- */ - public Builder setMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - message_ = value; - onChanged(); - return this; - } - /** - * required string message = 1; - * - *
-       **
-       *message to include
-       * 
- */ - public Builder clearMessage() { - bitField0_ = (bitField0_ & ~0x00000001); - message_ = getDefaultInstance().getMessage(); - onChanged(); - return this; - } - /** - * required string message = 1; - * - *
-       **
-       *message to include
-       * 
- */ - public Builder setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - message_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:org.apache.slider.api.StopClusterRequestProto) - } - - static { - defaultInstance = new StopClusterRequestProto(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.apache.slider.api.StopClusterRequestProto) - } - - public interface StopClusterResponseProtoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code org.apache.slider.api.StopClusterResponseProto} - * - *
-   **
-   * stop the cluster
-   * 
- */ - public static final class StopClusterResponseProto extends - com.google.protobuf.GeneratedMessage - implements StopClusterResponseProtoOrBuilder { - // Use StopClusterResponseProto.newBuilder() to construct. - private StopClusterResponseProto(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private StopClusterResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final StopClusterResponseProto defaultInstance; - public static StopClusterResponseProto getDefaultInstance() { - return defaultInstance; - } - - public StopClusterResponseProto getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private StopClusterResponseProto( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - 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; - } - } - } - } 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.slider.api.proto.Messages.internal_static_org_apache_slider_api_StopClusterResponseProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_StopClusterResponseProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.StopClusterResponseProto.class, org.apache.slider.api.proto.Messages.StopClusterResponseProto.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public StopClusterResponseProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StopClusterResponseProto(input, extensionRegistry); - } - }; - - @java.lang.Override - public 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(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.slider.api.proto.Messages.StopClusterResponseProto)) { - return super.equals(obj); - } - org.apache.slider.api.proto.Messages.StopClusterResponseProto other = (org.apache.slider.api.proto.Messages.StopClusterResponseProto) 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.slider.api.proto.Messages.StopClusterResponseProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.StopClusterResponseProto 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.slider.api.proto.Messages.StopClusterResponseProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.StopClusterResponseProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.StopClusterResponseProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.StopClusterResponseProto parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.StopClusterResponseProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.apache.slider.api.proto.Messages.StopClusterResponseProto parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.StopClusterResponseProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.StopClusterResponseProto 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.slider.api.proto.Messages.StopClusterResponseProto 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 org.apache.slider.api.StopClusterResponseProto} - * - *
-     **
-     * stop the cluster
-     * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.apache.slider.api.proto.Messages.StopClusterResponseProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_StopClusterResponseProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_StopClusterResponseProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.StopClusterResponseProto.class, org.apache.slider.api.proto.Messages.StopClusterResponseProto.Builder.class); - } - - // Construct using org.apache.slider.api.proto.Messages.StopClusterResponseProto.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(); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_StopClusterResponseProto_descriptor; - } - - public org.apache.slider.api.proto.Messages.StopClusterResponseProto getDefaultInstanceForType() { - return org.apache.slider.api.proto.Messages.StopClusterResponseProto.getDefaultInstance(); - } - - public org.apache.slider.api.proto.Messages.StopClusterResponseProto build() { - org.apache.slider.api.proto.Messages.StopClusterResponseProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.apache.slider.api.proto.Messages.StopClusterResponseProto buildPartial() { - org.apache.slider.api.proto.Messages.StopClusterResponseProto result = new org.apache.slider.api.proto.Messages.StopClusterResponseProto(this); - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.slider.api.proto.Messages.StopClusterResponseProto) { - return mergeFrom((org.apache.slider.api.proto.Messages.StopClusterResponseProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.apache.slider.api.proto.Messages.StopClusterResponseProto other) { - if (other == org.apache.slider.api.proto.Messages.StopClusterResponseProto.getDefaultInstance()) return this; - 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.slider.api.proto.Messages.StopClusterResponseProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.slider.api.proto.Messages.StopClusterResponseProto) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - // @@protoc_insertion_point(builder_scope:org.apache.slider.api.StopClusterResponseProto) - } - - static { - defaultInstance = new StopClusterResponseProto(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.apache.slider.api.StopClusterResponseProto) - } - - public interface UpgradeContainersRequestProtoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // required string message = 1; - /** - * required string message = 1; - * - *
-     **
-     *message to include
-     * 
- */ - boolean hasMessage(); - /** - * required string message = 1; - * - *
-     **
-     *message to include
-     * 
- */ - java.lang.String getMessage(); - /** - * required string message = 1; - * - *
-     **
-     *message to include
-     * 
- */ - com.google.protobuf.ByteString - getMessageBytes(); - - // repeated string container = 2; - /** - * repeated string container = 2; - */ - java.util.List - getContainerList(); - /** - * repeated string container = 2; - */ - int getContainerCount(); - /** - * repeated string container = 2; - */ - java.lang.String getContainer(int index); - /** - * repeated string container = 2; - */ - com.google.protobuf.ByteString - getContainerBytes(int index); - - // repeated string component = 3; - /** - * repeated string component = 3; - */ - java.util.List - getComponentList(); - /** - * repeated string component = 3; - */ - int getComponentCount(); - /** - * repeated string component = 3; - */ - java.lang.String getComponent(int index); - /** - * repeated string component = 3; - */ - com.google.protobuf.ByteString - getComponentBytes(int index); - } - /** - * Protobuf type {@code org.apache.slider.api.UpgradeContainersRequestProto} - * - *
-   **
-   * upgrade the containers
-   * 
- */ - public static final class UpgradeContainersRequestProto extends - com.google.protobuf.GeneratedMessage - implements UpgradeContainersRequestProtoOrBuilder { - // Use UpgradeContainersRequestProto.newBuilder() to construct. - private UpgradeContainersRequestProto(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private UpgradeContainersRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final UpgradeContainersRequestProto defaultInstance; - public static UpgradeContainersRequestProto getDefaultInstance() { - return defaultInstance; - } - - public UpgradeContainersRequestProto getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private UpgradeContainersRequestProto( - 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; - message_ = input.readBytes(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - container_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - container_.add(input.readBytes()); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - component_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - component_.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)) { - container_ = new com.google.protobuf.UnmodifiableLazyStringList(container_); - } - if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - component_ = new com.google.protobuf.UnmodifiableLazyStringList(component_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_UpgradeContainersRequestProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_UpgradeContainersRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto.class, org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public UpgradeContainersRequestProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpgradeContainersRequestProto(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // required string message = 1; - public static final int MESSAGE_FIELD_NUMBER = 1; - private java.lang.Object message_; - /** - * required string message = 1; - * - *
-     **
-     *message to include
-     * 
- */ - public boolean hasMessage() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string message = 1; - * - *
-     **
-     *message to include
-     * 
- */ - public java.lang.String getMessage() { - java.lang.Object ref = message_; - 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()) { - message_ = s; - } - return s; - } - } - /** - * required string message = 1; - * - *
-     **
-     *message to include
-     * 
- */ - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // repeated string container = 2; - public static final int CONTAINER_FIELD_NUMBER = 2; - private com.google.protobuf.LazyStringList container_; - /** - * repeated string container = 2; - */ - public java.util.List - getContainerList() { - return container_; - } - /** - * repeated string container = 2; - */ - public int getContainerCount() { - return container_.size(); - } - /** - * repeated string container = 2; - */ - public java.lang.String getContainer(int index) { - return container_.get(index); - } - /** - * repeated string container = 2; - */ - public com.google.protobuf.ByteString - getContainerBytes(int index) { - return container_.getByteString(index); - } - - // repeated string component = 3; - public static final int COMPONENT_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList component_; - /** - * repeated string component = 3; - */ - public java.util.List - getComponentList() { - return component_; - } - /** - * repeated string component = 3; - */ - public int getComponentCount() { - return component_.size(); - } - /** - * repeated string component = 3; - */ - public java.lang.String getComponent(int index) { - return component_.get(index); - } - /** - * repeated string component = 3; - */ - public com.google.protobuf.ByteString - getComponentBytes(int index) { - return component_.getByteString(index); - } - - private void initFields() { - message_ = ""; - container_ = com.google.protobuf.LazyStringArrayList.EMPTY; - component_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (!hasMessage()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getMessageBytes()); - } - for (int i = 0; i < container_.size(); i++) { - output.writeBytes(2, container_.getByteString(i)); - } - for (int i = 0; i < component_.size(); i++) { - output.writeBytes(3, component_.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, getMessageBytes()); - } - { - int dataSize = 0; - for (int i = 0; i < container_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(container_.getByteString(i)); - } - size += dataSize; - size += 1 * getContainerList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < component_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(component_.getByteString(i)); - } - size += dataSize; - size += 1 * getComponentList().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.slider.api.proto.Messages.UpgradeContainersRequestProto)) { - return super.equals(obj); - } - org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto other = (org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto) obj; - - boolean result = true; - result = result && (hasMessage() == other.hasMessage()); - if (hasMessage()) { - result = result && getMessage() - .equals(other.getMessage()); - } - result = result && getContainerList() - .equals(other.getContainerList()); - result = result && getComponentList() - .equals(other.getComponentList()); - 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 (hasMessage()) { - hash = (37 * hash) + MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getMessage().hashCode(); - } - if (getContainerCount() > 0) { - hash = (37 * hash) + CONTAINER_FIELD_NUMBER; - hash = (53 * hash) + getContainerList().hashCode(); - } - if (getComponentCount() > 0) { - hash = (37 * hash) + COMPONENT_FIELD_NUMBER; - hash = (53 * hash) + getComponentList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto 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.slider.api.proto.Messages.UpgradeContainersRequestProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto 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.slider.api.proto.Messages.UpgradeContainersRequestProto 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 org.apache.slider.api.UpgradeContainersRequestProto} - * - *
-     **
-     * upgrade the containers
-     * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.apache.slider.api.proto.Messages.UpgradeContainersRequestProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_UpgradeContainersRequestProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_UpgradeContainersRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto.class, org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto.Builder.class); - } - - // Construct using org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto.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(); - message_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - container_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - component_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_UpgradeContainersRequestProto_descriptor; - } - - public org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto getDefaultInstanceForType() { - return org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto.getDefaultInstance(); - } - - public org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto build() { - org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto buildPartial() { - org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto result = new org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.message_ = message_; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - container_ = new com.google.protobuf.UnmodifiableLazyStringList( - container_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.container_ = container_; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - component_ = new com.google.protobuf.UnmodifiableLazyStringList( - component_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.component_ = component_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto) { - return mergeFrom((org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto other) { - if (other == org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto.getDefaultInstance()) return this; - if (other.hasMessage()) { - bitField0_ |= 0x00000001; - message_ = other.message_; - onChanged(); - } - if (!other.container_.isEmpty()) { - if (container_.isEmpty()) { - container_ = other.container_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureContainerIsMutable(); - container_.addAll(other.container_); - } - onChanged(); - } - if (!other.component_.isEmpty()) { - if (component_.isEmpty()) { - component_ = other.component_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureComponentIsMutable(); - component_.addAll(other.component_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasMessage()) { - - return false; - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // required string message = 1; - private java.lang.Object message_ = ""; - /** - * required string message = 1; - * - *
-       **
-       *message to include
-       * 
- */ - public boolean hasMessage() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string message = 1; - * - *
-       **
-       *message to include
-       * 
- */ - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - message_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string message = 1; - * - *
-       **
-       *message to include
-       * 
- */ - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string message = 1; - * - *
-       **
-       *message to include
-       * 
- */ - public Builder setMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - message_ = value; - onChanged(); - return this; - } - /** - * required string message = 1; - * - *
-       **
-       *message to include
-       * 
- */ - public Builder clearMessage() { - bitField0_ = (bitField0_ & ~0x00000001); - message_ = getDefaultInstance().getMessage(); - onChanged(); - return this; - } - /** - * required string message = 1; - * - *
-       **
-       *message to include
-       * 
- */ - public Builder setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - message_ = value; - onChanged(); - return this; - } - - // repeated string container = 2; - private com.google.protobuf.LazyStringList container_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureContainerIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - container_ = new com.google.protobuf.LazyStringArrayList(container_); - bitField0_ |= 0x00000002; - } - } - /** - * repeated string container = 2; - */ - public java.util.List - getContainerList() { - return java.util.Collections.unmodifiableList(container_); - } - /** - * repeated string container = 2; - */ - public int getContainerCount() { - return container_.size(); - } - /** - * repeated string container = 2; - */ - public java.lang.String getContainer(int index) { - return container_.get(index); - } - /** - * repeated string container = 2; - */ - public com.google.protobuf.ByteString - getContainerBytes(int index) { - return container_.getByteString(index); - } - /** - * repeated string container = 2; - */ - public Builder setContainer( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureContainerIsMutable(); - container_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string container = 2; - */ - public Builder addContainer( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureContainerIsMutable(); - container_.add(value); - onChanged(); - return this; - } - /** - * repeated string container = 2; - */ - public Builder addAllContainer( - java.lang.Iterable values) { - ensureContainerIsMutable(); - super.addAll(values, container_); - onChanged(); - return this; - } - /** - * repeated string container = 2; - */ - public Builder clearContainer() { - container_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * repeated string container = 2; - */ - public Builder addContainerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureContainerIsMutable(); - container_.add(value); - onChanged(); - return this; - } - - // repeated string component = 3; - private com.google.protobuf.LazyStringList component_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureComponentIsMutable() { - if (!((bitField0_ & 0x00000004) == 0x00000004)) { - component_ = new com.google.protobuf.LazyStringArrayList(component_); - bitField0_ |= 0x00000004; - } - } - /** - * repeated string component = 3; - */ - public java.util.List - getComponentList() { - return java.util.Collections.unmodifiableList(component_); - } - /** - * repeated string component = 3; - */ - public int getComponentCount() { - return component_.size(); - } - /** - * repeated string component = 3; - */ - public java.lang.String getComponent(int index) { - return component_.get(index); - } - /** - * repeated string component = 3; - */ - public com.google.protobuf.ByteString - getComponentBytes(int index) { - return component_.getByteString(index); - } - /** - * repeated string component = 3; - */ - public Builder setComponent( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureComponentIsMutable(); - component_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string component = 3; - */ - public Builder addComponent( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureComponentIsMutable(); - component_.add(value); - onChanged(); - return this; - } - /** - * repeated string component = 3; - */ - public Builder addAllComponent( - java.lang.Iterable values) { - ensureComponentIsMutable(); - super.addAll(values, component_); - onChanged(); - return this; - } - /** - * repeated string component = 3; - */ - public Builder clearComponent() { - component_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * repeated string component = 3; - */ - public Builder addComponentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureComponentIsMutable(); - component_.add(value); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:org.apache.slider.api.UpgradeContainersRequestProto) - } - - static { - defaultInstance = new UpgradeContainersRequestProto(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.apache.slider.api.UpgradeContainersRequestProto) - } - - public interface UpgradeContainersResponseProtoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code org.apache.slider.api.UpgradeContainersResponseProto} - * - *
-   **
-   * upgrade the containers
-   * 
- */ - public static final class UpgradeContainersResponseProto extends - com.google.protobuf.GeneratedMessage - implements UpgradeContainersResponseProtoOrBuilder { - // Use UpgradeContainersResponseProto.newBuilder() to construct. - private UpgradeContainersResponseProto(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private UpgradeContainersResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final UpgradeContainersResponseProto defaultInstance; - public static UpgradeContainersResponseProto getDefaultInstance() { - return defaultInstance; - } - - public UpgradeContainersResponseProto getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private UpgradeContainersResponseProto( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - 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; - } - } - } - } 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.slider.api.proto.Messages.internal_static_org_apache_slider_api_UpgradeContainersResponseProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_UpgradeContainersResponseProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto.class, org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public UpgradeContainersResponseProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpgradeContainersResponseProto(input, extensionRegistry); - } - }; - - @java.lang.Override - public 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(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.slider.api.proto.Messages.UpgradeContainersResponseProto)) { - return super.equals(obj); - } - org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto other = (org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto) 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.slider.api.proto.Messages.UpgradeContainersResponseProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto 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.slider.api.proto.Messages.UpgradeContainersResponseProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto 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.slider.api.proto.Messages.UpgradeContainersResponseProto 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 org.apache.slider.api.UpgradeContainersResponseProto} - * - *
-     **
-     * upgrade the containers
-     * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.apache.slider.api.proto.Messages.UpgradeContainersResponseProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_UpgradeContainersResponseProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_UpgradeContainersResponseProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto.class, org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto.Builder.class); - } - - // Construct using org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto.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(); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_UpgradeContainersResponseProto_descriptor; - } - - public org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto getDefaultInstanceForType() { - return org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto.getDefaultInstance(); - } - - public org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto build() { - org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto buildPartial() { - org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto result = new org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto(this); - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto) { - return mergeFrom((org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto other) { - if (other == org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto.getDefaultInstance()) return this; - 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.slider.api.proto.Messages.UpgradeContainersResponseProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - // @@protoc_insertion_point(builder_scope:org.apache.slider.api.UpgradeContainersResponseProto) - } - - static { - defaultInstance = new UpgradeContainersResponseProto(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.apache.slider.api.UpgradeContainersResponseProto) - } - - public interface FlexClusterRequestProtoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // required string clusterSpec = 1; - /** - * required string clusterSpec = 1; - */ - boolean hasClusterSpec(); - /** - * required string clusterSpec = 1; - */ - java.lang.String getClusterSpec(); - /** - * required string clusterSpec = 1; - */ - com.google.protobuf.ByteString - getClusterSpecBytes(); - } - /** - * Protobuf type {@code org.apache.slider.api.FlexClusterRequestProto} - * - *
-   **
-   * flex the cluster
-   * 
- */ - public static final class FlexClusterRequestProto extends - com.google.protobuf.GeneratedMessage - implements FlexClusterRequestProtoOrBuilder { - // Use FlexClusterRequestProto.newBuilder() to construct. - private FlexClusterRequestProto(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private FlexClusterRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final FlexClusterRequestProto defaultInstance; - public static FlexClusterRequestProto getDefaultInstance() { - return defaultInstance; - } - - public FlexClusterRequestProto getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private FlexClusterRequestProto( - 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; - clusterSpec_ = 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.slider.api.proto.Messages.internal_static_org_apache_slider_api_FlexClusterRequestProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_FlexClusterRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.FlexClusterRequestProto.class, org.apache.slider.api.proto.Messages.FlexClusterRequestProto.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public FlexClusterRequestProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FlexClusterRequestProto(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // required string clusterSpec = 1; - public static final int CLUSTERSPEC_FIELD_NUMBER = 1; - private java.lang.Object clusterSpec_; - /** - * required string clusterSpec = 1; - */ - public boolean hasClusterSpec() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string clusterSpec = 1; - */ - public java.lang.String getClusterSpec() { - java.lang.Object ref = clusterSpec_; - 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()) { - clusterSpec_ = s; - } - return s; - } - } - /** - * required string clusterSpec = 1; - */ - public com.google.protobuf.ByteString - getClusterSpecBytes() { - java.lang.Object ref = clusterSpec_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterSpec_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private void initFields() { - clusterSpec_ = ""; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (!hasClusterSpec()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getClusterSpecBytes()); - } - 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, getClusterSpecBytes()); - } - 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.slider.api.proto.Messages.FlexClusterRequestProto)) { - return super.equals(obj); - } - org.apache.slider.api.proto.Messages.FlexClusterRequestProto other = (org.apache.slider.api.proto.Messages.FlexClusterRequestProto) obj; - - boolean result = true; - result = result && (hasClusterSpec() == other.hasClusterSpec()); - if (hasClusterSpec()) { - result = result && getClusterSpec() - .equals(other.getClusterSpec()); - } - 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 (hasClusterSpec()) { - hash = (37 * hash) + CLUSTERSPEC_FIELD_NUMBER; - hash = (53 * hash) + getClusterSpec().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.apache.slider.api.proto.Messages.FlexClusterRequestProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.FlexClusterRequestProto 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.slider.api.proto.Messages.FlexClusterRequestProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.FlexClusterRequestProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.FlexClusterRequestProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.FlexClusterRequestProto parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.FlexClusterRequestProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.apache.slider.api.proto.Messages.FlexClusterRequestProto parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.FlexClusterRequestProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.FlexClusterRequestProto 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.slider.api.proto.Messages.FlexClusterRequestProto 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 org.apache.slider.api.FlexClusterRequestProto} - * - *
-     **
-     * flex the cluster
-     * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.apache.slider.api.proto.Messages.FlexClusterRequestProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_FlexClusterRequestProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_FlexClusterRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.FlexClusterRequestProto.class, org.apache.slider.api.proto.Messages.FlexClusterRequestProto.Builder.class); - } - - // Construct using org.apache.slider.api.proto.Messages.FlexClusterRequestProto.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(); - clusterSpec_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_FlexClusterRequestProto_descriptor; - } - - public org.apache.slider.api.proto.Messages.FlexClusterRequestProto getDefaultInstanceForType() { - return org.apache.slider.api.proto.Messages.FlexClusterRequestProto.getDefaultInstance(); - } - - public org.apache.slider.api.proto.Messages.FlexClusterRequestProto build() { - org.apache.slider.api.proto.Messages.FlexClusterRequestProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.apache.slider.api.proto.Messages.FlexClusterRequestProto buildPartial() { - org.apache.slider.api.proto.Messages.FlexClusterRequestProto result = new org.apache.slider.api.proto.Messages.FlexClusterRequestProto(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.clusterSpec_ = clusterSpec_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.slider.api.proto.Messages.FlexClusterRequestProto) { - return mergeFrom((org.apache.slider.api.proto.Messages.FlexClusterRequestProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.apache.slider.api.proto.Messages.FlexClusterRequestProto other) { - if (other == org.apache.slider.api.proto.Messages.FlexClusterRequestProto.getDefaultInstance()) return this; - if (other.hasClusterSpec()) { - bitField0_ |= 0x00000001; - clusterSpec_ = other.clusterSpec_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasClusterSpec()) { - - return false; - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.apache.slider.api.proto.Messages.FlexClusterRequestProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.slider.api.proto.Messages.FlexClusterRequestProto) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // required string clusterSpec = 1; - private java.lang.Object clusterSpec_ = ""; - /** - * required string clusterSpec = 1; - */ - public boolean hasClusterSpec() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string clusterSpec = 1; - */ - public java.lang.String getClusterSpec() { - java.lang.Object ref = clusterSpec_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - clusterSpec_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string clusterSpec = 1; - */ - public com.google.protobuf.ByteString - getClusterSpecBytes() { - java.lang.Object ref = clusterSpec_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterSpec_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string clusterSpec = 1; - */ - public Builder setClusterSpec( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - clusterSpec_ = value; - onChanged(); - return this; - } - /** - * required string clusterSpec = 1; - */ - public Builder clearClusterSpec() { - bitField0_ = (bitField0_ & ~0x00000001); - clusterSpec_ = getDefaultInstance().getClusterSpec(); - onChanged(); - return this; - } - /** - * required string clusterSpec = 1; - */ - public Builder setClusterSpecBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - clusterSpec_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:org.apache.slider.api.FlexClusterRequestProto) - } - - static { - defaultInstance = new FlexClusterRequestProto(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.apache.slider.api.FlexClusterRequestProto) - } - - public interface FlexClusterResponseProtoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // required bool response = 1; - /** - * required bool response = 1; - */ - boolean hasResponse(); - /** - * required bool response = 1; - */ - boolean getResponse(); - } - /** - * Protobuf type {@code org.apache.slider.api.FlexClusterResponseProto} - * - *
-   **
-   * flex the cluster
-   * 
- */ - public static final class FlexClusterResponseProto extends - com.google.protobuf.GeneratedMessage - implements FlexClusterResponseProtoOrBuilder { - // Use FlexClusterResponseProto.newBuilder() to construct. - private FlexClusterResponseProto(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private FlexClusterResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final FlexClusterResponseProto defaultInstance; - public static FlexClusterResponseProto getDefaultInstance() { - return defaultInstance; - } - - public FlexClusterResponseProto getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private FlexClusterResponseProto( - 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; - response_ = input.readBool(); - 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.slider.api.proto.Messages.internal_static_org_apache_slider_api_FlexClusterResponseProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_FlexClusterResponseProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.FlexClusterResponseProto.class, org.apache.slider.api.proto.Messages.FlexClusterResponseProto.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public FlexClusterResponseProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FlexClusterResponseProto(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // required bool response = 1; - public static final int RESPONSE_FIELD_NUMBER = 1; - private boolean response_; - /** - * required bool response = 1; - */ - public boolean hasResponse() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required bool response = 1; - */ - public boolean getResponse() { - return response_; - } - - private void initFields() { - response_ = false; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (!hasResponse()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBool(1, response_); - } - 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 - .computeBoolSize(1, response_); - } - 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.slider.api.proto.Messages.FlexClusterResponseProto)) { - return super.equals(obj); - } - org.apache.slider.api.proto.Messages.FlexClusterResponseProto other = (org.apache.slider.api.proto.Messages.FlexClusterResponseProto) obj; - - boolean result = true; - result = result && (hasResponse() == other.hasResponse()); - if (hasResponse()) { - result = result && (getResponse() - == other.getResponse()); - } - 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 (hasResponse()) { - hash = (37 * hash) + RESPONSE_FIELD_NUMBER; - hash = (53 * hash) + hashBoolean(getResponse()); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.apache.slider.api.proto.Messages.FlexClusterResponseProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.FlexClusterResponseProto 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.slider.api.proto.Messages.FlexClusterResponseProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.FlexClusterResponseProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.FlexClusterResponseProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.FlexClusterResponseProto parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.FlexClusterResponseProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.apache.slider.api.proto.Messages.FlexClusterResponseProto parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.FlexClusterResponseProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.FlexClusterResponseProto 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.slider.api.proto.Messages.FlexClusterResponseProto 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 org.apache.slider.api.FlexClusterResponseProto} - * - *
-     **
-     * flex the cluster
-     * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.apache.slider.api.proto.Messages.FlexClusterResponseProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_FlexClusterResponseProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_FlexClusterResponseProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.FlexClusterResponseProto.class, org.apache.slider.api.proto.Messages.FlexClusterResponseProto.Builder.class); - } - - // Construct using org.apache.slider.api.proto.Messages.FlexClusterResponseProto.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(); - response_ = false; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_FlexClusterResponseProto_descriptor; - } - - public org.apache.slider.api.proto.Messages.FlexClusterResponseProto getDefaultInstanceForType() { - return org.apache.slider.api.proto.Messages.FlexClusterResponseProto.getDefaultInstance(); - } - - public org.apache.slider.api.proto.Messages.FlexClusterResponseProto build() { - org.apache.slider.api.proto.Messages.FlexClusterResponseProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.apache.slider.api.proto.Messages.FlexClusterResponseProto buildPartial() { - org.apache.slider.api.proto.Messages.FlexClusterResponseProto result = new org.apache.slider.api.proto.Messages.FlexClusterResponseProto(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.response_ = response_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.slider.api.proto.Messages.FlexClusterResponseProto) { - return mergeFrom((org.apache.slider.api.proto.Messages.FlexClusterResponseProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.apache.slider.api.proto.Messages.FlexClusterResponseProto other) { - if (other == org.apache.slider.api.proto.Messages.FlexClusterResponseProto.getDefaultInstance()) return this; - if (other.hasResponse()) { - setResponse(other.getResponse()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasResponse()) { - - return false; - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.apache.slider.api.proto.Messages.FlexClusterResponseProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.slider.api.proto.Messages.FlexClusterResponseProto) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // required bool response = 1; - private boolean response_ ; - /** - * required bool response = 1; - */ - public boolean hasResponse() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required bool response = 1; - */ - public boolean getResponse() { - return response_; - } - /** - * required bool response = 1; - */ - public Builder setResponse(boolean value) { - bitField0_ |= 0x00000001; - response_ = value; - onChanged(); - return this; - } - /** - * required bool response = 1; - */ - public Builder clearResponse() { - bitField0_ = (bitField0_ & ~0x00000001); - response_ = false; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:org.apache.slider.api.FlexClusterResponseProto) - } - - static { - defaultInstance = new FlexClusterResponseProto(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.apache.slider.api.FlexClusterResponseProto) - } - - public interface GetJSONClusterStatusRequestProtoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code org.apache.slider.api.GetJSONClusterStatusRequestProto} - * - *
-   **
-   * void request
-   * 
- */ - public static final class GetJSONClusterStatusRequestProto extends - com.google.protobuf.GeneratedMessage - implements GetJSONClusterStatusRequestProtoOrBuilder { - // Use GetJSONClusterStatusRequestProto.newBuilder() to construct. - private GetJSONClusterStatusRequestProto(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private GetJSONClusterStatusRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final GetJSONClusterStatusRequestProto defaultInstance; - public static GetJSONClusterStatusRequestProto getDefaultInstance() { - return defaultInstance; - } - - public GetJSONClusterStatusRequestProto getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetJSONClusterStatusRequestProto( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - 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; - } - } - } - } 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.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetJSONClusterStatusRequestProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetJSONClusterStatusRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto.class, org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GetJSONClusterStatusRequestProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetJSONClusterStatusRequestProto(input, extensionRegistry); - } - }; - - @java.lang.Override - public 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(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.slider.api.proto.Messages.GetJSONClusterStatusRequestProto)) { - return super.equals(obj); - } - org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto other = (org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto) 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.slider.api.proto.Messages.GetJSONClusterStatusRequestProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto 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.slider.api.proto.Messages.GetJSONClusterStatusRequestProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto 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.slider.api.proto.Messages.GetJSONClusterStatusRequestProto 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 org.apache.slider.api.GetJSONClusterStatusRequestProto} - * - *
-     **
-     * void request
-     * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetJSONClusterStatusRequestProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetJSONClusterStatusRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto.class, org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto.Builder.class); - } - - // Construct using org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto.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(); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetJSONClusterStatusRequestProto_descriptor; - } - - public org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto getDefaultInstanceForType() { - return org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto.getDefaultInstance(); - } - - public org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto build() { - org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto buildPartial() { - org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto result = new org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto(this); - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto) { - return mergeFrom((org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto other) { - if (other == org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto.getDefaultInstance()) return this; - 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.slider.api.proto.Messages.GetJSONClusterStatusRequestProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetJSONClusterStatusRequestProto) - } - - static { - defaultInstance = new GetJSONClusterStatusRequestProto(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetJSONClusterStatusRequestProto) - } - - public interface GetJSONClusterStatusResponseProtoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // required string clusterSpec = 1; - /** - * required string clusterSpec = 1; - */ - boolean hasClusterSpec(); - /** - * required string clusterSpec = 1; - */ - java.lang.String getClusterSpec(); - /** - * required string clusterSpec = 1; - */ - com.google.protobuf.ByteString - getClusterSpecBytes(); - } - /** - * Protobuf type {@code org.apache.slider.api.GetJSONClusterStatusResponseProto} - * - *
-   **
-   * response
-   * 
- */ - public static final class GetJSONClusterStatusResponseProto extends - com.google.protobuf.GeneratedMessage - implements GetJSONClusterStatusResponseProtoOrBuilder { - // Use GetJSONClusterStatusResponseProto.newBuilder() to construct. - private GetJSONClusterStatusResponseProto(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private GetJSONClusterStatusResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final GetJSONClusterStatusResponseProto defaultInstance; - public static GetJSONClusterStatusResponseProto getDefaultInstance() { - return defaultInstance; - } - - public GetJSONClusterStatusResponseProto getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetJSONClusterStatusResponseProto( - 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; - clusterSpec_ = 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.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetJSONClusterStatusResponseProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetJSONClusterStatusResponseProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto.class, org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GetJSONClusterStatusResponseProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetJSONClusterStatusResponseProto(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // required string clusterSpec = 1; - public static final int CLUSTERSPEC_FIELD_NUMBER = 1; - private java.lang.Object clusterSpec_; - /** - * required string clusterSpec = 1; - */ - public boolean hasClusterSpec() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string clusterSpec = 1; - */ - public java.lang.String getClusterSpec() { - java.lang.Object ref = clusterSpec_; - 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()) { - clusterSpec_ = s; - } - return s; - } - } - /** - * required string clusterSpec = 1; - */ - public com.google.protobuf.ByteString - getClusterSpecBytes() { - java.lang.Object ref = clusterSpec_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterSpec_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private void initFields() { - clusterSpec_ = ""; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (!hasClusterSpec()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getClusterSpecBytes()); - } - 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, getClusterSpecBytes()); - } - 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.slider.api.proto.Messages.GetJSONClusterStatusResponseProto)) { - return super.equals(obj); - } - org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto other = (org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto) obj; - - boolean result = true; - result = result && (hasClusterSpec() == other.hasClusterSpec()); - if (hasClusterSpec()) { - result = result && getClusterSpec() - .equals(other.getClusterSpec()); - } - 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 (hasClusterSpec()) { - hash = (37 * hash) + CLUSTERSPEC_FIELD_NUMBER; - hash = (53 * hash) + getClusterSpec().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto 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.slider.api.proto.Messages.GetJSONClusterStatusResponseProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto 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.slider.api.proto.Messages.GetJSONClusterStatusResponseProto 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 org.apache.slider.api.GetJSONClusterStatusResponseProto} - * - *
-     **
-     * response
-     * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetJSONClusterStatusResponseProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetJSONClusterStatusResponseProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto.class, org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto.Builder.class); - } - - // Construct using org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto.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(); - clusterSpec_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetJSONClusterStatusResponseProto_descriptor; - } - - public org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto getDefaultInstanceForType() { - return org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto.getDefaultInstance(); - } - - public org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto build() { - org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto buildPartial() { - org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto result = new org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.clusterSpec_ = clusterSpec_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto) { - return mergeFrom((org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto other) { - if (other == org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto.getDefaultInstance()) return this; - if (other.hasClusterSpec()) { - bitField0_ |= 0x00000001; - clusterSpec_ = other.clusterSpec_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasClusterSpec()) { - - return false; - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // required string clusterSpec = 1; - private java.lang.Object clusterSpec_ = ""; - /** - * required string clusterSpec = 1; - */ - public boolean hasClusterSpec() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string clusterSpec = 1; - */ - public java.lang.String getClusterSpec() { - java.lang.Object ref = clusterSpec_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - clusterSpec_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string clusterSpec = 1; - */ - public com.google.protobuf.ByteString - getClusterSpecBytes() { - java.lang.Object ref = clusterSpec_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterSpec_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string clusterSpec = 1; - */ - public Builder setClusterSpec( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - clusterSpec_ = value; - onChanged(); - return this; - } - /** - * required string clusterSpec = 1; - */ - public Builder clearClusterSpec() { - bitField0_ = (bitField0_ & ~0x00000001); - clusterSpec_ = getDefaultInstance().getClusterSpec(); - onChanged(); - return this; - } - /** - * required string clusterSpec = 1; - */ - public Builder setClusterSpecBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - clusterSpec_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetJSONClusterStatusResponseProto) - } - - static { - defaultInstance = new GetJSONClusterStatusResponseProto(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetJSONClusterStatusResponseProto) - } - - public interface ListNodeUUIDsByRoleRequestProtoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // required string role = 1; - /** - * required string role = 1; - */ - boolean hasRole(); - /** - * required string role = 1; - */ - java.lang.String getRole(); - /** - * required string role = 1; - */ - com.google.protobuf.ByteString - getRoleBytes(); - } - /** - * Protobuf type {@code org.apache.slider.api.ListNodeUUIDsByRoleRequestProto} - * - *
-   **
-   * list the nodes in a role
-   * 
- */ - public static final class ListNodeUUIDsByRoleRequestProto extends - com.google.protobuf.GeneratedMessage - implements ListNodeUUIDsByRoleRequestProtoOrBuilder { - // Use ListNodeUUIDsByRoleRequestProto.newBuilder() to construct. - private ListNodeUUIDsByRoleRequestProto(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private ListNodeUUIDsByRoleRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final ListNodeUUIDsByRoleRequestProto defaultInstance; - public static ListNodeUUIDsByRoleRequestProto getDefaultInstance() { - return defaultInstance; - } - - public ListNodeUUIDsByRoleRequestProto getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ListNodeUUIDsByRoleRequestProto( - 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; - role_ = 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.slider.api.proto.Messages.internal_static_org_apache_slider_api_ListNodeUUIDsByRoleRequestProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_ListNodeUUIDsByRoleRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto.class, org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ListNodeUUIDsByRoleRequestProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListNodeUUIDsByRoleRequestProto(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // required string role = 1; - public static final int ROLE_FIELD_NUMBER = 1; - private java.lang.Object role_; - /** - * required string role = 1; - */ - public boolean hasRole() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string role = 1; - */ - public java.lang.String getRole() { - java.lang.Object ref = role_; - 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()) { - role_ = s; - } - return s; - } - } - /** - * required string role = 1; - */ - public com.google.protobuf.ByteString - getRoleBytes() { - java.lang.Object ref = role_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - role_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private void initFields() { - role_ = ""; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (!hasRole()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getRoleBytes()); - } - 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, getRoleBytes()); - } - 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.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto)) { - return super.equals(obj); - } - org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto other = (org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto) obj; - - boolean result = true; - result = result && (hasRole() == other.hasRole()); - if (hasRole()) { - result = result && getRole() - .equals(other.getRole()); - } - 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 (hasRole()) { - hash = (37 * hash) + ROLE_FIELD_NUMBER; - hash = (53 * hash) + getRole().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto 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.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto 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.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto 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 org.apache.slider.api.ListNodeUUIDsByRoleRequestProto} - * - *
-     **
-     * list the nodes in a role
-     * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_ListNodeUUIDsByRoleRequestProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_ListNodeUUIDsByRoleRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto.class, org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto.Builder.class); - } - - // Construct using org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto.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(); - role_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_ListNodeUUIDsByRoleRequestProto_descriptor; - } - - public org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto getDefaultInstanceForType() { - return org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto.getDefaultInstance(); - } - - public org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto build() { - org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto buildPartial() { - org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto result = new org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.role_ = role_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto) { - return mergeFrom((org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto other) { - if (other == org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto.getDefaultInstance()) return this; - if (other.hasRole()) { - bitField0_ |= 0x00000001; - role_ = other.role_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasRole()) { - - return false; - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // required string role = 1; - private java.lang.Object role_ = ""; - /** - * required string role = 1; - */ - public boolean hasRole() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string role = 1; - */ - public java.lang.String getRole() { - java.lang.Object ref = role_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - role_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string role = 1; - */ - public com.google.protobuf.ByteString - getRoleBytes() { - java.lang.Object ref = role_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - role_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string role = 1; - */ - public Builder setRole( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - role_ = value; - onChanged(); - return this; - } - /** - * required string role = 1; - */ - public Builder clearRole() { - bitField0_ = (bitField0_ & ~0x00000001); - role_ = getDefaultInstance().getRole(); - onChanged(); - return this; - } - /** - * required string role = 1; - */ - public Builder setRoleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - role_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:org.apache.slider.api.ListNodeUUIDsByRoleRequestProto) - } - - static { - defaultInstance = new ListNodeUUIDsByRoleRequestProto(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.apache.slider.api.ListNodeUUIDsByRoleRequestProto) - } - - public interface ListNodeUUIDsByRoleResponseProtoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // repeated string uuid = 1; - /** - * repeated string uuid = 1; - */ - java.util.List - getUuidList(); - /** - * repeated string uuid = 1; - */ - int getUuidCount(); - /** - * repeated string uuid = 1; - */ - java.lang.String getUuid(int index); - /** - * repeated string uuid = 1; - */ - com.google.protobuf.ByteString - getUuidBytes(int index); - } - /** - * Protobuf type {@code org.apache.slider.api.ListNodeUUIDsByRoleResponseProto} - * - *
-   **
-   * list the nodes in a role
-   * 
- */ - public static final class ListNodeUUIDsByRoleResponseProto extends - com.google.protobuf.GeneratedMessage - implements ListNodeUUIDsByRoleResponseProtoOrBuilder { - // Use ListNodeUUIDsByRoleResponseProto.newBuilder() to construct. - private ListNodeUUIDsByRoleResponseProto(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private ListNodeUUIDsByRoleResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final ListNodeUUIDsByRoleResponseProto defaultInstance; - public static ListNodeUUIDsByRoleResponseProto getDefaultInstance() { - return defaultInstance; - } - - public ListNodeUUIDsByRoleResponseProto getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ListNodeUUIDsByRoleResponseProto( - 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)) { - uuid_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - uuid_.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_ & 0x00000001) == 0x00000001)) { - uuid_ = new com.google.protobuf.UnmodifiableLazyStringList(uuid_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_ListNodeUUIDsByRoleResponseProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_ListNodeUUIDsByRoleResponseProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto.class, org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ListNodeUUIDsByRoleResponseProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListNodeUUIDsByRoleResponseProto(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - // repeated string uuid = 1; - public static final int UUID_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList uuid_; - /** - * repeated string uuid = 1; - */ - public java.util.List - getUuidList() { - return uuid_; - } - /** - * repeated string uuid = 1; - */ - public int getUuidCount() { - return uuid_.size(); - } - /** - * repeated string uuid = 1; - */ - public java.lang.String getUuid(int index) { - return uuid_.get(index); - } - /** - * repeated string uuid = 1; - */ - public com.google.protobuf.ByteString - getUuidBytes(int index) { - return uuid_.getByteString(index); - } - - private void initFields() { - uuid_ = 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(); - for (int i = 0; i < uuid_.size(); i++) { - output.writeBytes(1, uuid_.getByteString(i)); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < uuid_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(uuid_.getByteString(i)); - } - size += dataSize; - size += 1 * getUuidList().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.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto)) { - return super.equals(obj); - } - org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto other = (org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto) obj; - - boolean result = true; - result = result && getUuidList() - .equals(other.getUuidList()); - 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 (getUuidCount() > 0) { - hash = (37 * hash) + UUID_FIELD_NUMBER; - hash = (53 * hash) + getUuidList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto 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.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto 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.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto 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 org.apache.slider.api.ListNodeUUIDsByRoleResponseProto} - * - *
-     **
-     * list the nodes in a role
-     * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_ListNodeUUIDsByRoleResponseProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_ListNodeUUIDsByRoleResponseProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto.class, org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto.Builder.class); - } - - // Construct using org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto.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(); - uuid_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_ListNodeUUIDsByRoleResponseProto_descriptor; - } - - public org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto getDefaultInstanceForType() { - return org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto.getDefaultInstance(); - } - - public org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto build() { - org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto buildPartial() { - org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto result = new org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - uuid_ = new com.google.protobuf.UnmodifiableLazyStringList( - uuid_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.uuid_ = uuid_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto) { - return mergeFrom((org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto other) { - if (other == org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto.getDefaultInstance()) return this; - if (!other.uuid_.isEmpty()) { - if (uuid_.isEmpty()) { - uuid_ = other.uuid_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureUuidIsMutable(); - uuid_.addAll(other.uuid_); - } - 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.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // repeated string uuid = 1; - private com.google.protobuf.LazyStringList uuid_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureUuidIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - uuid_ = new com.google.protobuf.LazyStringArrayList(uuid_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string uuid = 1; - */ - public java.util.List - getUuidList() { - return java.util.Collections.unmodifiableList(uuid_); - } - /** - * repeated string uuid = 1; - */ - public int getUuidCount() { - return uuid_.size(); - } - /** - * repeated string uuid = 1; - */ - public java.lang.String getUuid(int index) { - return uuid_.get(index); - } - /** - * repeated string uuid = 1; - */ - public com.google.protobuf.ByteString - getUuidBytes(int index) { - return uuid_.getByteString(index); - } - /** - * repeated string uuid = 1; - */ - public Builder setUuid( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUuidIsMutable(); - uuid_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string uuid = 1; - */ - public Builder addUuid( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUuidIsMutable(); - uuid_.add(value); - onChanged(); - return this; - } - /** - * repeated string uuid = 1; - */ - public Builder addAllUuid( - java.lang.Iterable values) { - ensureUuidIsMutable(); - super.addAll(values, uuid_); - onChanged(); - return this; - } - /** - * repeated string uuid = 1; - */ - public Builder clearUuid() { - uuid_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string uuid = 1; - */ - public Builder addUuidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUuidIsMutable(); - uuid_.add(value); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:org.apache.slider.api.ListNodeUUIDsByRoleResponseProto) - } - - static { - defaultInstance = new ListNodeUUIDsByRoleResponseProto(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.apache.slider.api.ListNodeUUIDsByRoleResponseProto) - } - - public interface GetNodeRequestProtoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // required string uuid = 1; - /** - * required string uuid = 1; - */ - boolean hasUuid(); - /** - * required string uuid = 1; - */ - java.lang.String getUuid(); - /** - * required string uuid = 1; - */ - com.google.protobuf.ByteString - getUuidBytes(); - } - /** - * Protobuf type {@code org.apache.slider.api.GetNodeRequestProto} - * - *
-   **
-   * get a node
-   * 
- */ - public static final class GetNodeRequestProto extends - com.google.protobuf.GeneratedMessage - implements GetNodeRequestProtoOrBuilder { - // Use GetNodeRequestProto.newBuilder() to construct. - private GetNodeRequestProto(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private GetNodeRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final GetNodeRequestProto defaultInstance; - public static GetNodeRequestProto getDefaultInstance() { - return defaultInstance; - } - - public GetNodeRequestProto getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetNodeRequestProto( - 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; - uuid_ = 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.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetNodeRequestProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetNodeRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetNodeRequestProto.class, org.apache.slider.api.proto.Messages.GetNodeRequestProto.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GetNodeRequestProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetNodeRequestProto(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // required string uuid = 1; - public static final int UUID_FIELD_NUMBER = 1; - private java.lang.Object uuid_; - /** - * required string uuid = 1; - */ - public boolean hasUuid() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string uuid = 1; - */ - public java.lang.String getUuid() { - java.lang.Object ref = uuid_; - 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()) { - uuid_ = s; - } - return s; - } - } - /** - * required string uuid = 1; - */ - public com.google.protobuf.ByteString - getUuidBytes() { - java.lang.Object ref = uuid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uuid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private void initFields() { - uuid_ = ""; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (!hasUuid()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getUuidBytes()); - } - 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, getUuidBytes()); - } - 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.slider.api.proto.Messages.GetNodeRequestProto)) { - return super.equals(obj); - } - org.apache.slider.api.proto.Messages.GetNodeRequestProto other = (org.apache.slider.api.proto.Messages.GetNodeRequestProto) obj; - - boolean result = true; - result = result && (hasUuid() == other.hasUuid()); - if (hasUuid()) { - result = result && getUuid() - .equals(other.getUuid()); - } - 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 (hasUuid()) { - hash = (37 * hash) + UUID_FIELD_NUMBER; - hash = (53 * hash) + getUuid().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.apache.slider.api.proto.Messages.GetNodeRequestProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetNodeRequestProto 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.slider.api.proto.Messages.GetNodeRequestProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetNodeRequestProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetNodeRequestProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetNodeRequestProto parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetNodeRequestProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetNodeRequestProto parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetNodeRequestProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetNodeRequestProto 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.slider.api.proto.Messages.GetNodeRequestProto 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 org.apache.slider.api.GetNodeRequestProto} - * - *
-     **
-     * get a node
-     * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.apache.slider.api.proto.Messages.GetNodeRequestProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetNodeRequestProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetNodeRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetNodeRequestProto.class, org.apache.slider.api.proto.Messages.GetNodeRequestProto.Builder.class); - } - - // Construct using org.apache.slider.api.proto.Messages.GetNodeRequestProto.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(); - uuid_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetNodeRequestProto_descriptor; - } - - public org.apache.slider.api.proto.Messages.GetNodeRequestProto getDefaultInstanceForType() { - return org.apache.slider.api.proto.Messages.GetNodeRequestProto.getDefaultInstance(); - } - - public org.apache.slider.api.proto.Messages.GetNodeRequestProto build() { - org.apache.slider.api.proto.Messages.GetNodeRequestProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.apache.slider.api.proto.Messages.GetNodeRequestProto buildPartial() { - org.apache.slider.api.proto.Messages.GetNodeRequestProto result = new org.apache.slider.api.proto.Messages.GetNodeRequestProto(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.uuid_ = uuid_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.slider.api.proto.Messages.GetNodeRequestProto) { - return mergeFrom((org.apache.slider.api.proto.Messages.GetNodeRequestProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetNodeRequestProto other) { - if (other == org.apache.slider.api.proto.Messages.GetNodeRequestProto.getDefaultInstance()) return this; - if (other.hasUuid()) { - bitField0_ |= 0x00000001; - uuid_ = other.uuid_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasUuid()) { - - return false; - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.apache.slider.api.proto.Messages.GetNodeRequestProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.slider.api.proto.Messages.GetNodeRequestProto) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // required string uuid = 1; - private java.lang.Object uuid_ = ""; - /** - * required string uuid = 1; - */ - public boolean hasUuid() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string uuid = 1; - */ - public java.lang.String getUuid() { - java.lang.Object ref = uuid_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - uuid_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string uuid = 1; - */ - public com.google.protobuf.ByteString - getUuidBytes() { - java.lang.Object ref = uuid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uuid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string uuid = 1; - */ - public Builder setUuid( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - uuid_ = value; - onChanged(); - return this; - } - /** - * required string uuid = 1; - */ - public Builder clearUuid() { - bitField0_ = (bitField0_ & ~0x00000001); - uuid_ = getDefaultInstance().getUuid(); - onChanged(); - return this; - } - /** - * required string uuid = 1; - */ - public Builder setUuidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - uuid_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetNodeRequestProto) - } - - static { - defaultInstance = new GetNodeRequestProto(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetNodeRequestProto) - } - - public interface GetNodeResponseProtoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // required .org.apache.slider.api.RoleInstanceState clusterNode = 1; - /** - * required .org.apache.slider.api.RoleInstanceState clusterNode = 1; - */ - boolean hasClusterNode(); - /** - * required .org.apache.slider.api.RoleInstanceState clusterNode = 1; - */ - org.apache.slider.api.proto.Messages.RoleInstanceState getClusterNode(); - /** - * required .org.apache.slider.api.RoleInstanceState clusterNode = 1; - */ - org.apache.slider.api.proto.Messages.RoleInstanceStateOrBuilder getClusterNodeOrBuilder(); - } - /** - * Protobuf type {@code org.apache.slider.api.GetNodeResponseProto} - * - *
-   **
-   * response on a node
-   * 
- */ - public static final class GetNodeResponseProto extends - com.google.protobuf.GeneratedMessage - implements GetNodeResponseProtoOrBuilder { - // Use GetNodeResponseProto.newBuilder() to construct. - private GetNodeResponseProto(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private GetNodeResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final GetNodeResponseProto defaultInstance; - public static GetNodeResponseProto getDefaultInstance() { - return defaultInstance; - } - - public GetNodeResponseProto getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetNodeResponseProto( - 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: { - org.apache.slider.api.proto.Messages.RoleInstanceState.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = clusterNode_.toBuilder(); - } - clusterNode_ = input.readMessage(org.apache.slider.api.proto.Messages.RoleInstanceState.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(clusterNode_); - clusterNode_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - 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.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetNodeResponseProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetNodeResponseProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetNodeResponseProto.class, org.apache.slider.api.proto.Messages.GetNodeResponseProto.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GetNodeResponseProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetNodeResponseProto(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // required .org.apache.slider.api.RoleInstanceState clusterNode = 1; - public static final int CLUSTERNODE_FIELD_NUMBER = 1; - private org.apache.slider.api.proto.Messages.RoleInstanceState clusterNode_; - /** - * required .org.apache.slider.api.RoleInstanceState clusterNode = 1; - */ - public boolean hasClusterNode() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required .org.apache.slider.api.RoleInstanceState clusterNode = 1; - */ - public org.apache.slider.api.proto.Messages.RoleInstanceState getClusterNode() { - return clusterNode_; - } - /** - * required .org.apache.slider.api.RoleInstanceState clusterNode = 1; - */ - public org.apache.slider.api.proto.Messages.RoleInstanceStateOrBuilder getClusterNodeOrBuilder() { - return clusterNode_; - } - - private void initFields() { - clusterNode_ = org.apache.slider.api.proto.Messages.RoleInstanceState.getDefaultInstance(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (!hasClusterNode()) { - memoizedIsInitialized = 0; - return false; - } - if (!getClusterNode().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, clusterNode_); - } - 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 - .computeMessageSize(1, clusterNode_); - } - 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.slider.api.proto.Messages.GetNodeResponseProto)) { - return super.equals(obj); - } - org.apache.slider.api.proto.Messages.GetNodeResponseProto other = (org.apache.slider.api.proto.Messages.GetNodeResponseProto) obj; - - boolean result = true; - result = result && (hasClusterNode() == other.hasClusterNode()); - if (hasClusterNode()) { - result = result && getClusterNode() - .equals(other.getClusterNode()); - } - 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 (hasClusterNode()) { - hash = (37 * hash) + CLUSTERNODE_FIELD_NUMBER; - hash = (53 * hash) + getClusterNode().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.apache.slider.api.proto.Messages.GetNodeResponseProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetNodeResponseProto 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.slider.api.proto.Messages.GetNodeResponseProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetNodeResponseProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetNodeResponseProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetNodeResponseProto parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetNodeResponseProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetNodeResponseProto parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetNodeResponseProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetNodeResponseProto 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.slider.api.proto.Messages.GetNodeResponseProto 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 org.apache.slider.api.GetNodeResponseProto} - * - *
-     **
-     * response on a node
-     * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.apache.slider.api.proto.Messages.GetNodeResponseProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetNodeResponseProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetNodeResponseProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetNodeResponseProto.class, org.apache.slider.api.proto.Messages.GetNodeResponseProto.Builder.class); - } - - // Construct using org.apache.slider.api.proto.Messages.GetNodeResponseProto.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getClusterNodeFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - if (clusterNodeBuilder_ == null) { - clusterNode_ = org.apache.slider.api.proto.Messages.RoleInstanceState.getDefaultInstance(); - } else { - clusterNodeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetNodeResponseProto_descriptor; - } - - public org.apache.slider.api.proto.Messages.GetNodeResponseProto getDefaultInstanceForType() { - return org.apache.slider.api.proto.Messages.GetNodeResponseProto.getDefaultInstance(); - } - - public org.apache.slider.api.proto.Messages.GetNodeResponseProto build() { - org.apache.slider.api.proto.Messages.GetNodeResponseProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.apache.slider.api.proto.Messages.GetNodeResponseProto buildPartial() { - org.apache.slider.api.proto.Messages.GetNodeResponseProto result = new org.apache.slider.api.proto.Messages.GetNodeResponseProto(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (clusterNodeBuilder_ == null) { - result.clusterNode_ = clusterNode_; - } else { - result.clusterNode_ = clusterNodeBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.slider.api.proto.Messages.GetNodeResponseProto) { - return mergeFrom((org.apache.slider.api.proto.Messages.GetNodeResponseProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetNodeResponseProto other) { - if (other == org.apache.slider.api.proto.Messages.GetNodeResponseProto.getDefaultInstance()) return this; - if (other.hasClusterNode()) { - mergeClusterNode(other.getClusterNode()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasClusterNode()) { - - return false; - } - if (!getClusterNode().isInitialized()) { - - return false; - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.apache.slider.api.proto.Messages.GetNodeResponseProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.slider.api.proto.Messages.GetNodeResponseProto) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // required .org.apache.slider.api.RoleInstanceState clusterNode = 1; - private org.apache.slider.api.proto.Messages.RoleInstanceState clusterNode_ = org.apache.slider.api.proto.Messages.RoleInstanceState.getDefaultInstance(); - private com.google.protobuf.SingleFieldBuilder< - org.apache.slider.api.proto.Messages.RoleInstanceState, org.apache.slider.api.proto.Messages.RoleInstanceState.Builder, org.apache.slider.api.proto.Messages.RoleInstanceStateOrBuilder> clusterNodeBuilder_; - /** - * required .org.apache.slider.api.RoleInstanceState clusterNode = 1; - */ - public boolean hasClusterNode() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required .org.apache.slider.api.RoleInstanceState clusterNode = 1; - */ - public org.apache.slider.api.proto.Messages.RoleInstanceState getClusterNode() { - if (clusterNodeBuilder_ == null) { - return clusterNode_; - } else { - return clusterNodeBuilder_.getMessage(); - } - } - /** - * required .org.apache.slider.api.RoleInstanceState clusterNode = 1; - */ - public Builder setClusterNode(org.apache.slider.api.proto.Messages.RoleInstanceState value) { - if (clusterNodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - clusterNode_ = value; - onChanged(); - } else { - clusterNodeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * required .org.apache.slider.api.RoleInstanceState clusterNode = 1; - */ - public Builder setClusterNode( - org.apache.slider.api.proto.Messages.RoleInstanceState.Builder builderForValue) { - if (clusterNodeBuilder_ == null) { - clusterNode_ = builderForValue.build(); - onChanged(); - } else { - clusterNodeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * required .org.apache.slider.api.RoleInstanceState clusterNode = 1; - */ - public Builder mergeClusterNode(org.apache.slider.api.proto.Messages.RoleInstanceState value) { - if (clusterNodeBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - clusterNode_ != org.apache.slider.api.proto.Messages.RoleInstanceState.getDefaultInstance()) { - clusterNode_ = - org.apache.slider.api.proto.Messages.RoleInstanceState.newBuilder(clusterNode_).mergeFrom(value).buildPartial(); - } else { - clusterNode_ = value; - } - onChanged(); - } else { - clusterNodeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * required .org.apache.slider.api.RoleInstanceState clusterNode = 1; - */ - public Builder clearClusterNode() { - if (clusterNodeBuilder_ == null) { - clusterNode_ = org.apache.slider.api.proto.Messages.RoleInstanceState.getDefaultInstance(); - onChanged(); - } else { - clusterNodeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - /** - * required .org.apache.slider.api.RoleInstanceState clusterNode = 1; - */ - public org.apache.slider.api.proto.Messages.RoleInstanceState.Builder getClusterNodeBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getClusterNodeFieldBuilder().getBuilder(); - } - /** - * required .org.apache.slider.api.RoleInstanceState clusterNode = 1; - */ - public org.apache.slider.api.proto.Messages.RoleInstanceStateOrBuilder getClusterNodeOrBuilder() { - if (clusterNodeBuilder_ != null) { - return clusterNodeBuilder_.getMessageOrBuilder(); - } else { - return clusterNode_; - } - } - /** - * required .org.apache.slider.api.RoleInstanceState clusterNode = 1; - */ - private com.google.protobuf.SingleFieldBuilder< - org.apache.slider.api.proto.Messages.RoleInstanceState, org.apache.slider.api.proto.Messages.RoleInstanceState.Builder, org.apache.slider.api.proto.Messages.RoleInstanceStateOrBuilder> - getClusterNodeFieldBuilder() { - if (clusterNodeBuilder_ == null) { - clusterNodeBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.apache.slider.api.proto.Messages.RoleInstanceState, org.apache.slider.api.proto.Messages.RoleInstanceState.Builder, org.apache.slider.api.proto.Messages.RoleInstanceStateOrBuilder>( - clusterNode_, - getParentForChildren(), - isClean()); - clusterNode_ = null; - } - return clusterNodeBuilder_; - } - - // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetNodeResponseProto) - } - - static { - defaultInstance = new GetNodeResponseProto(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetNodeResponseProto) - } - - public interface GetClusterNodesRequestProtoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // repeated string uuid = 1; - /** - * repeated string uuid = 1; - */ - java.util.List - getUuidList(); - /** - * repeated string uuid = 1; - */ - int getUuidCount(); - /** - * repeated string uuid = 1; - */ - java.lang.String getUuid(int index); - /** - * repeated string uuid = 1; - */ - com.google.protobuf.ByteString - getUuidBytes(int index); - } - /** - * Protobuf type {@code org.apache.slider.api.GetClusterNodesRequestProto} - * - *
-   **
-   * list the nodes for the UUDs
-   * 
- */ - public static final class GetClusterNodesRequestProto extends - com.google.protobuf.GeneratedMessage - implements GetClusterNodesRequestProtoOrBuilder { - // Use GetClusterNodesRequestProto.newBuilder() to construct. - private GetClusterNodesRequestProto(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private GetClusterNodesRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final GetClusterNodesRequestProto defaultInstance; - public static GetClusterNodesRequestProto getDefaultInstance() { - return defaultInstance; - } - - public GetClusterNodesRequestProto getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetClusterNodesRequestProto( - 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)) { - uuid_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - uuid_.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_ & 0x00000001) == 0x00000001)) { - uuid_ = new com.google.protobuf.UnmodifiableLazyStringList(uuid_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetClusterNodesRequestProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetClusterNodesRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto.class, org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GetClusterNodesRequestProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetClusterNodesRequestProto(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - // repeated string uuid = 1; - public static final int UUID_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList uuid_; - /** - * repeated string uuid = 1; - */ - public java.util.List - getUuidList() { - return uuid_; - } - /** - * repeated string uuid = 1; - */ - public int getUuidCount() { - return uuid_.size(); - } - /** - * repeated string uuid = 1; - */ - public java.lang.String getUuid(int index) { - return uuid_.get(index); - } - /** - * repeated string uuid = 1; - */ - public com.google.protobuf.ByteString - getUuidBytes(int index) { - return uuid_.getByteString(index); - } - - private void initFields() { - uuid_ = 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(); - for (int i = 0; i < uuid_.size(); i++) { - output.writeBytes(1, uuid_.getByteString(i)); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < uuid_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(uuid_.getByteString(i)); - } - size += dataSize; - size += 1 * getUuidList().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.slider.api.proto.Messages.GetClusterNodesRequestProto)) { - return super.equals(obj); - } - org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto other = (org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto) obj; - - boolean result = true; - result = result && getUuidList() - .equals(other.getUuidList()); - 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 (getUuidCount() > 0) { - hash = (37 * hash) + UUID_FIELD_NUMBER; - hash = (53 * hash) + getUuidList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto 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.slider.api.proto.Messages.GetClusterNodesRequestProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto 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.slider.api.proto.Messages.GetClusterNodesRequestProto 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 org.apache.slider.api.GetClusterNodesRequestProto} - * - *
-     **
-     * list the nodes for the UUDs
-     * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.apache.slider.api.proto.Messages.GetClusterNodesRequestProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetClusterNodesRequestProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetClusterNodesRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto.class, org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto.Builder.class); - } - - // Construct using org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto.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(); - uuid_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetClusterNodesRequestProto_descriptor; - } - - public org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto getDefaultInstanceForType() { - return org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto.getDefaultInstance(); - } - - public org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto build() { - org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto buildPartial() { - org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto result = new org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - uuid_ = new com.google.protobuf.UnmodifiableLazyStringList( - uuid_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.uuid_ = uuid_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto) { - return mergeFrom((org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto other) { - if (other == org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto.getDefaultInstance()) return this; - if (!other.uuid_.isEmpty()) { - if (uuid_.isEmpty()) { - uuid_ = other.uuid_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureUuidIsMutable(); - uuid_.addAll(other.uuid_); - } - 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.slider.api.proto.Messages.GetClusterNodesRequestProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // repeated string uuid = 1; - private com.google.protobuf.LazyStringList uuid_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureUuidIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - uuid_ = new com.google.protobuf.LazyStringArrayList(uuid_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string uuid = 1; - */ - public java.util.List - getUuidList() { - return java.util.Collections.unmodifiableList(uuid_); - } - /** - * repeated string uuid = 1; - */ - public int getUuidCount() { - return uuid_.size(); - } - /** - * repeated string uuid = 1; - */ - public java.lang.String getUuid(int index) { - return uuid_.get(index); - } - /** - * repeated string uuid = 1; - */ - public com.google.protobuf.ByteString - getUuidBytes(int index) { - return uuid_.getByteString(index); - } - /** - * repeated string uuid = 1; - */ - public Builder setUuid( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUuidIsMutable(); - uuid_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string uuid = 1; - */ - public Builder addUuid( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUuidIsMutable(); - uuid_.add(value); - onChanged(); - return this; - } - /** - * repeated string uuid = 1; - */ - public Builder addAllUuid( - java.lang.Iterable values) { - ensureUuidIsMutable(); - super.addAll(values, uuid_); - onChanged(); - return this; - } - /** - * repeated string uuid = 1; - */ - public Builder clearUuid() { - uuid_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string uuid = 1; - */ - public Builder addUuidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUuidIsMutable(); - uuid_.add(value); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetClusterNodesRequestProto) - } - - static { - defaultInstance = new GetClusterNodesRequestProto(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetClusterNodesRequestProto) - } - - public interface GetClusterNodesResponseProtoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1; - /** - * repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1; - */ - java.util.List - getClusterNodeList(); - /** - * repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1; - */ - org.apache.slider.api.proto.Messages.RoleInstanceState getClusterNode(int index); - /** - * repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1; - */ - int getClusterNodeCount(); - /** - * repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1; - */ - java.util.List - getClusterNodeOrBuilderList(); - /** - * repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1; - */ - org.apache.slider.api.proto.Messages.RoleInstanceStateOrBuilder getClusterNodeOrBuilder( - int index); - } - /** - * Protobuf type {@code org.apache.slider.api.GetClusterNodesResponseProto} - * - *
-   **
-   * list the nodes in a role
-   * 
- */ - public static final class GetClusterNodesResponseProto extends - com.google.protobuf.GeneratedMessage - implements GetClusterNodesResponseProtoOrBuilder { - // Use GetClusterNodesResponseProto.newBuilder() to construct. - private GetClusterNodesResponseProto(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private GetClusterNodesResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final GetClusterNodesResponseProto defaultInstance; - public static GetClusterNodesResponseProto getDefaultInstance() { - return defaultInstance; - } - - public GetClusterNodesResponseProto getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetClusterNodesResponseProto( - 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)) { - clusterNode_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - clusterNode_.add(input.readMessage(org.apache.slider.api.proto.Messages.RoleInstanceState.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)) { - clusterNode_ = java.util.Collections.unmodifiableList(clusterNode_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetClusterNodesResponseProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetClusterNodesResponseProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto.class, org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GetClusterNodesResponseProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetClusterNodesResponseProto(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - // repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1; - public static final int CLUSTERNODE_FIELD_NUMBER = 1; - private java.util.List clusterNode_; - /** - * repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1; - */ - public java.util.List getClusterNodeList() { - return clusterNode_; - } - /** - * repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1; - */ - public java.util.List - getClusterNodeOrBuilderList() { - return clusterNode_; - } - /** - * repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1; - */ - public int getClusterNodeCount() { - return clusterNode_.size(); - } - /** - * repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1; - */ - public org.apache.slider.api.proto.Messages.RoleInstanceState getClusterNode(int index) { - return clusterNode_.get(index); - } - /** - * repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1; - */ - public org.apache.slider.api.proto.Messages.RoleInstanceStateOrBuilder getClusterNodeOrBuilder( - int index) { - return clusterNode_.get(index); - } - - private void initFields() { - clusterNode_ = java.util.Collections.emptyList(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - for (int i = 0; i < getClusterNodeCount(); i++) { - if (!getClusterNode(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - for (int i = 0; i < clusterNode_.size(); i++) { - output.writeMessage(1, clusterNode_.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 < clusterNode_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, clusterNode_.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.slider.api.proto.Messages.GetClusterNodesResponseProto)) { - return super.equals(obj); - } - org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto other = (org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto) obj; - - boolean result = true; - result = result && getClusterNodeList() - .equals(other.getClusterNodeList()); - 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 (getClusterNodeCount() > 0) { - hash = (37 * hash) + CLUSTERNODE_FIELD_NUMBER; - hash = (53 * hash) + getClusterNodeList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto 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.slider.api.proto.Messages.GetClusterNodesResponseProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto 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.slider.api.proto.Messages.GetClusterNodesResponseProto 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 org.apache.slider.api.GetClusterNodesResponseProto} - * - *
-     **
-     * list the nodes in a role
-     * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.apache.slider.api.proto.Messages.GetClusterNodesResponseProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetClusterNodesResponseProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetClusterNodesResponseProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto.class, org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto.Builder.class); - } - - // Construct using org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getClusterNodeFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - if (clusterNodeBuilder_ == null) { - clusterNode_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - clusterNodeBuilder_.clear(); - } - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetClusterNodesResponseProto_descriptor; - } - - public org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto getDefaultInstanceForType() { - return org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto.getDefaultInstance(); - } - - public org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto build() { - org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto buildPartial() { - org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto result = new org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto(this); - int from_bitField0_ = bitField0_; - if (clusterNodeBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - clusterNode_ = java.util.Collections.unmodifiableList(clusterNode_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.clusterNode_ = clusterNode_; - } else { - result.clusterNode_ = clusterNodeBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto) { - return mergeFrom((org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto other) { - if (other == org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto.getDefaultInstance()) return this; - if (clusterNodeBuilder_ == null) { - if (!other.clusterNode_.isEmpty()) { - if (clusterNode_.isEmpty()) { - clusterNode_ = other.clusterNode_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureClusterNodeIsMutable(); - clusterNode_.addAll(other.clusterNode_); - } - onChanged(); - } - } else { - if (!other.clusterNode_.isEmpty()) { - if (clusterNodeBuilder_.isEmpty()) { - clusterNodeBuilder_.dispose(); - clusterNodeBuilder_ = null; - clusterNode_ = other.clusterNode_; - bitField0_ = (bitField0_ & ~0x00000001); - clusterNodeBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getClusterNodeFieldBuilder() : null; - } else { - clusterNodeBuilder_.addAllMessages(other.clusterNode_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - for (int i = 0; i < getClusterNodeCount(); i++) { - if (!getClusterNode(i).isInitialized()) { - - return false; - } - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1; - private java.util.List clusterNode_ = - java.util.Collections.emptyList(); - private void ensureClusterNodeIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - clusterNode_ = new java.util.ArrayList(clusterNode_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.apache.slider.api.proto.Messages.RoleInstanceState, org.apache.slider.api.proto.Messages.RoleInstanceState.Builder, org.apache.slider.api.proto.Messages.RoleInstanceStateOrBuilder> clusterNodeBuilder_; - - /** - * repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1; - */ - public java.util.List getClusterNodeList() { - if (clusterNodeBuilder_ == null) { - return java.util.Collections.unmodifiableList(clusterNode_); - } else { - return clusterNodeBuilder_.getMessageList(); - } - } - /** - * repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1; - */ - public int getClusterNodeCount() { - if (clusterNodeBuilder_ == null) { - return clusterNode_.size(); - } else { - return clusterNodeBuilder_.getCount(); - } - } - /** - * repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1; - */ - public org.apache.slider.api.proto.Messages.RoleInstanceState getClusterNode(int index) { - if (clusterNodeBuilder_ == null) { - return clusterNode_.get(index); - } else { - return clusterNodeBuilder_.getMessage(index); - } - } - /** - * repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1; - */ - public Builder setClusterNode( - int index, org.apache.slider.api.proto.Messages.RoleInstanceState value) { - if (clusterNodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureClusterNodeIsMutable(); - clusterNode_.set(index, value); - onChanged(); - } else { - clusterNodeBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1; - */ - public Builder setClusterNode( - int index, org.apache.slider.api.proto.Messages.RoleInstanceState.Builder builderForValue) { - if (clusterNodeBuilder_ == null) { - ensureClusterNodeIsMutable(); - clusterNode_.set(index, builderForValue.build()); - onChanged(); - } else { - clusterNodeBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1; - */ - public Builder addClusterNode(org.apache.slider.api.proto.Messages.RoleInstanceState value) { - if (clusterNodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureClusterNodeIsMutable(); - clusterNode_.add(value); - onChanged(); - } else { - clusterNodeBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1; - */ - public Builder addClusterNode( - int index, org.apache.slider.api.proto.Messages.RoleInstanceState value) { - if (clusterNodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureClusterNodeIsMutable(); - clusterNode_.add(index, value); - onChanged(); - } else { - clusterNodeBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1; - */ - public Builder addClusterNode( - org.apache.slider.api.proto.Messages.RoleInstanceState.Builder builderForValue) { - if (clusterNodeBuilder_ == null) { - ensureClusterNodeIsMutable(); - clusterNode_.add(builderForValue.build()); - onChanged(); - } else { - clusterNodeBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1; - */ - public Builder addClusterNode( - int index, org.apache.slider.api.proto.Messages.RoleInstanceState.Builder builderForValue) { - if (clusterNodeBuilder_ == null) { - ensureClusterNodeIsMutable(); - clusterNode_.add(index, builderForValue.build()); - onChanged(); - } else { - clusterNodeBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1; - */ - public Builder addAllClusterNode( - java.lang.Iterable values) { - if (clusterNodeBuilder_ == null) { - ensureClusterNodeIsMutable(); - super.addAll(values, clusterNode_); - onChanged(); - } else { - clusterNodeBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1; - */ - public Builder clearClusterNode() { - if (clusterNodeBuilder_ == null) { - clusterNode_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - clusterNodeBuilder_.clear(); - } - return this; - } - /** - * repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1; - */ - public Builder removeClusterNode(int index) { - if (clusterNodeBuilder_ == null) { - ensureClusterNodeIsMutable(); - clusterNode_.remove(index); - onChanged(); - } else { - clusterNodeBuilder_.remove(index); - } - return this; - } - /** - * repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1; - */ - public org.apache.slider.api.proto.Messages.RoleInstanceState.Builder getClusterNodeBuilder( - int index) { - return getClusterNodeFieldBuilder().getBuilder(index); - } - /** - * repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1; - */ - public org.apache.slider.api.proto.Messages.RoleInstanceStateOrBuilder getClusterNodeOrBuilder( - int index) { - if (clusterNodeBuilder_ == null) { - return clusterNode_.get(index); } else { - return clusterNodeBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1; - */ - public java.util.List - getClusterNodeOrBuilderList() { - if (clusterNodeBuilder_ != null) { - return clusterNodeBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(clusterNode_); - } - } - /** - * repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1; - */ - public org.apache.slider.api.proto.Messages.RoleInstanceState.Builder addClusterNodeBuilder() { - return getClusterNodeFieldBuilder().addBuilder( - org.apache.slider.api.proto.Messages.RoleInstanceState.getDefaultInstance()); - } - /** - * repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1; - */ - public org.apache.slider.api.proto.Messages.RoleInstanceState.Builder addClusterNodeBuilder( - int index) { - return getClusterNodeFieldBuilder().addBuilder( - index, org.apache.slider.api.proto.Messages.RoleInstanceState.getDefaultInstance()); - } - /** - * repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1; - */ - public java.util.List - getClusterNodeBuilderList() { - return getClusterNodeFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.apache.slider.api.proto.Messages.RoleInstanceState, org.apache.slider.api.proto.Messages.RoleInstanceState.Builder, org.apache.slider.api.proto.Messages.RoleInstanceStateOrBuilder> - getClusterNodeFieldBuilder() { - if (clusterNodeBuilder_ == null) { - clusterNodeBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.apache.slider.api.proto.Messages.RoleInstanceState, org.apache.slider.api.proto.Messages.RoleInstanceState.Builder, org.apache.slider.api.proto.Messages.RoleInstanceStateOrBuilder>( - clusterNode_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - clusterNode_ = null; - } - return clusterNodeBuilder_; - } - - // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetClusterNodesResponseProto) - } - - static { - defaultInstance = new GetClusterNodesResponseProto(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetClusterNodesResponseProto) - } - - public interface EchoRequestProtoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // required string text = 1; - /** - * required string text = 1; - */ - boolean hasText(); - /** - * required string text = 1; - */ - java.lang.String getText(); - /** - * required string text = 1; - */ - com.google.protobuf.ByteString - getTextBytes(); - } - /** - * Protobuf type {@code org.apache.slider.api.EchoRequestProto} - * - *
-   **
-   * Echo
-   * 
- */ - public static final class EchoRequestProto extends - com.google.protobuf.GeneratedMessage - implements EchoRequestProtoOrBuilder { - // Use EchoRequestProto.newBuilder() to construct. - private EchoRequestProto(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private EchoRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final EchoRequestProto defaultInstance; - public static EchoRequestProto getDefaultInstance() { - return defaultInstance; - } - - public EchoRequestProto getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EchoRequestProto( - 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; - text_ = 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.slider.api.proto.Messages.internal_static_org_apache_slider_api_EchoRequestProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_EchoRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.EchoRequestProto.class, org.apache.slider.api.proto.Messages.EchoRequestProto.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public EchoRequestProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EchoRequestProto(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // required string text = 1; - public static final int TEXT_FIELD_NUMBER = 1; - private java.lang.Object text_; - /** - * required string text = 1; - */ - public boolean hasText() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string text = 1; - */ - public java.lang.String getText() { - java.lang.Object ref = text_; - 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()) { - text_ = s; - } - return s; - } - } - /** - * required string text = 1; - */ - public com.google.protobuf.ByteString - getTextBytes() { - java.lang.Object ref = text_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - text_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private void initFields() { - text_ = ""; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (!hasText()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getTextBytes()); - } - 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, getTextBytes()); - } - 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.slider.api.proto.Messages.EchoRequestProto)) { - return super.equals(obj); - } - org.apache.slider.api.proto.Messages.EchoRequestProto other = (org.apache.slider.api.proto.Messages.EchoRequestProto) obj; - - boolean result = true; - result = result && (hasText() == other.hasText()); - if (hasText()) { - result = result && getText() - .equals(other.getText()); - } - 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 (hasText()) { - hash = (37 * hash) + TEXT_FIELD_NUMBER; - hash = (53 * hash) + getText().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.apache.slider.api.proto.Messages.EchoRequestProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.EchoRequestProto 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.slider.api.proto.Messages.EchoRequestProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.EchoRequestProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.EchoRequestProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.EchoRequestProto parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.EchoRequestProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.apache.slider.api.proto.Messages.EchoRequestProto parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.EchoRequestProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.EchoRequestProto 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.slider.api.proto.Messages.EchoRequestProto 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 org.apache.slider.api.EchoRequestProto} - * - *
-     **
-     * Echo
-     * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.apache.slider.api.proto.Messages.EchoRequestProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_EchoRequestProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_EchoRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.EchoRequestProto.class, org.apache.slider.api.proto.Messages.EchoRequestProto.Builder.class); - } - - // Construct using org.apache.slider.api.proto.Messages.EchoRequestProto.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(); - text_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_EchoRequestProto_descriptor; - } - - public org.apache.slider.api.proto.Messages.EchoRequestProto getDefaultInstanceForType() { - return org.apache.slider.api.proto.Messages.EchoRequestProto.getDefaultInstance(); - } - - public org.apache.slider.api.proto.Messages.EchoRequestProto build() { - org.apache.slider.api.proto.Messages.EchoRequestProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.apache.slider.api.proto.Messages.EchoRequestProto buildPartial() { - org.apache.slider.api.proto.Messages.EchoRequestProto result = new org.apache.slider.api.proto.Messages.EchoRequestProto(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.text_ = text_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.slider.api.proto.Messages.EchoRequestProto) { - return mergeFrom((org.apache.slider.api.proto.Messages.EchoRequestProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.apache.slider.api.proto.Messages.EchoRequestProto other) { - if (other == org.apache.slider.api.proto.Messages.EchoRequestProto.getDefaultInstance()) return this; - if (other.hasText()) { - bitField0_ |= 0x00000001; - text_ = other.text_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasText()) { - - return false; - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.apache.slider.api.proto.Messages.EchoRequestProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.slider.api.proto.Messages.EchoRequestProto) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // required string text = 1; - private java.lang.Object text_ = ""; - /** - * required string text = 1; - */ - public boolean hasText() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string text = 1; - */ - public java.lang.String getText() { - java.lang.Object ref = text_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - text_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string text = 1; - */ - public com.google.protobuf.ByteString - getTextBytes() { - java.lang.Object ref = text_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - text_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string text = 1; - */ - public Builder setText( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - text_ = value; - onChanged(); - return this; - } - /** - * required string text = 1; - */ - public Builder clearText() { - bitField0_ = (bitField0_ & ~0x00000001); - text_ = getDefaultInstance().getText(); - onChanged(); - return this; - } - /** - * required string text = 1; - */ - public Builder setTextBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - text_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:org.apache.slider.api.EchoRequestProto) - } - - static { - defaultInstance = new EchoRequestProto(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.apache.slider.api.EchoRequestProto) - } - - public interface EchoResponseProtoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // required string text = 1; - /** - * required string text = 1; - */ - boolean hasText(); - /** - * required string text = 1; - */ - java.lang.String getText(); - /** - * required string text = 1; - */ - com.google.protobuf.ByteString - getTextBytes(); - } - /** - * Protobuf type {@code org.apache.slider.api.EchoResponseProto} - * - *
-   **
-   * Echo reply
-   * 
- */ - public static final class EchoResponseProto extends - com.google.protobuf.GeneratedMessage - implements EchoResponseProtoOrBuilder { - // Use EchoResponseProto.newBuilder() to construct. - private EchoResponseProto(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private EchoResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final EchoResponseProto defaultInstance; - public static EchoResponseProto getDefaultInstance() { - return defaultInstance; - } - - public EchoResponseProto getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EchoResponseProto( - 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; - text_ = 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.slider.api.proto.Messages.internal_static_org_apache_slider_api_EchoResponseProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_EchoResponseProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.EchoResponseProto.class, org.apache.slider.api.proto.Messages.EchoResponseProto.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public EchoResponseProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EchoResponseProto(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // required string text = 1; - public static final int TEXT_FIELD_NUMBER = 1; - private java.lang.Object text_; - /** - * required string text = 1; - */ - public boolean hasText() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string text = 1; - */ - public java.lang.String getText() { - java.lang.Object ref = text_; - 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()) { - text_ = s; - } - return s; - } - } - /** - * required string text = 1; - */ - public com.google.protobuf.ByteString - getTextBytes() { - java.lang.Object ref = text_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - text_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private void initFields() { - text_ = ""; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (!hasText()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getTextBytes()); - } - 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, getTextBytes()); - } - 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.slider.api.proto.Messages.EchoResponseProto)) { - return super.equals(obj); - } - org.apache.slider.api.proto.Messages.EchoResponseProto other = (org.apache.slider.api.proto.Messages.EchoResponseProto) obj; - - boolean result = true; - result = result && (hasText() == other.hasText()); - if (hasText()) { - result = result && getText() - .equals(other.getText()); - } - 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 (hasText()) { - hash = (37 * hash) + TEXT_FIELD_NUMBER; - hash = (53 * hash) + getText().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.apache.slider.api.proto.Messages.EchoResponseProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.EchoResponseProto 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.slider.api.proto.Messages.EchoResponseProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.EchoResponseProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.EchoResponseProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.EchoResponseProto parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.EchoResponseProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.apache.slider.api.proto.Messages.EchoResponseProto parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.EchoResponseProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.EchoResponseProto 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.slider.api.proto.Messages.EchoResponseProto 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 org.apache.slider.api.EchoResponseProto} - * - *
-     **
-     * Echo reply
-     * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.apache.slider.api.proto.Messages.EchoResponseProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_EchoResponseProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_EchoResponseProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.EchoResponseProto.class, org.apache.slider.api.proto.Messages.EchoResponseProto.Builder.class); - } - - // Construct using org.apache.slider.api.proto.Messages.EchoResponseProto.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(); - text_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_EchoResponseProto_descriptor; - } - - public org.apache.slider.api.proto.Messages.EchoResponseProto getDefaultInstanceForType() { - return org.apache.slider.api.proto.Messages.EchoResponseProto.getDefaultInstance(); - } - - public org.apache.slider.api.proto.Messages.EchoResponseProto build() { - org.apache.slider.api.proto.Messages.EchoResponseProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.apache.slider.api.proto.Messages.EchoResponseProto buildPartial() { - org.apache.slider.api.proto.Messages.EchoResponseProto result = new org.apache.slider.api.proto.Messages.EchoResponseProto(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.text_ = text_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.slider.api.proto.Messages.EchoResponseProto) { - return mergeFrom((org.apache.slider.api.proto.Messages.EchoResponseProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.apache.slider.api.proto.Messages.EchoResponseProto other) { - if (other == org.apache.slider.api.proto.Messages.EchoResponseProto.getDefaultInstance()) return this; - if (other.hasText()) { - bitField0_ |= 0x00000001; - text_ = other.text_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasText()) { - - return false; - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.apache.slider.api.proto.Messages.EchoResponseProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.slider.api.proto.Messages.EchoResponseProto) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // required string text = 1; - private java.lang.Object text_ = ""; - /** - * required string text = 1; - */ - public boolean hasText() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string text = 1; - */ - public java.lang.String getText() { - java.lang.Object ref = text_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - text_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string text = 1; - */ - public com.google.protobuf.ByteString - getTextBytes() { - java.lang.Object ref = text_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - text_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string text = 1; - */ - public Builder setText( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - text_ = value; - onChanged(); - return this; - } - /** - * required string text = 1; - */ - public Builder clearText() { - bitField0_ = (bitField0_ & ~0x00000001); - text_ = getDefaultInstance().getText(); - onChanged(); - return this; - } - /** - * required string text = 1; - */ - public Builder setTextBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - text_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:org.apache.slider.api.EchoResponseProto) - } - - static { - defaultInstance = new EchoResponseProto(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.apache.slider.api.EchoResponseProto) - } - - public interface KillContainerRequestProtoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // required string id = 1; - /** - * required string id = 1; - */ - boolean hasId(); - /** - * required string id = 1; - */ - java.lang.String getId(); - /** - * required string id = 1; - */ - com.google.protobuf.ByteString - getIdBytes(); - } - /** - * Protobuf type {@code org.apache.slider.api.KillContainerRequestProto} - * - *
-   **
-   * Kill a container
-   * 
- */ - public static final class KillContainerRequestProto extends - com.google.protobuf.GeneratedMessage - implements KillContainerRequestProtoOrBuilder { - // Use KillContainerRequestProto.newBuilder() to construct. - private KillContainerRequestProto(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private KillContainerRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final KillContainerRequestProto defaultInstance; - public static KillContainerRequestProto getDefaultInstance() { - return defaultInstance; - } - - public KillContainerRequestProto getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private KillContainerRequestProto( - 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; - id_ = 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.slider.api.proto.Messages.internal_static_org_apache_slider_api_KillContainerRequestProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_KillContainerRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.KillContainerRequestProto.class, org.apache.slider.api.proto.Messages.KillContainerRequestProto.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public KillContainerRequestProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KillContainerRequestProto(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // required string id = 1; - public static final int ID_FIELD_NUMBER = 1; - private java.lang.Object id_; - /** - * required string id = 1; - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string id = 1; - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - 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()) { - id_ = s; - } - return s; - } - } - /** - * required string id = 1; - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private void initFields() { - id_ = ""; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (!hasId()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getIdBytes()); - } - 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, getIdBytes()); - } - 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.slider.api.proto.Messages.KillContainerRequestProto)) { - return super.equals(obj); - } - org.apache.slider.api.proto.Messages.KillContainerRequestProto other = (org.apache.slider.api.proto.Messages.KillContainerRequestProto) obj; - - boolean result = true; - result = result && (hasId() == other.hasId()); - if (hasId()) { - result = result && getId() - .equals(other.getId()); - } - 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 (hasId()) { - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.apache.slider.api.proto.Messages.KillContainerRequestProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.KillContainerRequestProto 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.slider.api.proto.Messages.KillContainerRequestProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.KillContainerRequestProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.KillContainerRequestProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.KillContainerRequestProto parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.KillContainerRequestProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.apache.slider.api.proto.Messages.KillContainerRequestProto parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.KillContainerRequestProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.KillContainerRequestProto 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.slider.api.proto.Messages.KillContainerRequestProto 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 org.apache.slider.api.KillContainerRequestProto} - * - *
-     **
-     * Kill a container
-     * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.apache.slider.api.proto.Messages.KillContainerRequestProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_KillContainerRequestProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_KillContainerRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.KillContainerRequestProto.class, org.apache.slider.api.proto.Messages.KillContainerRequestProto.Builder.class); - } - - // Construct using org.apache.slider.api.proto.Messages.KillContainerRequestProto.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(); - id_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_KillContainerRequestProto_descriptor; - } - - public org.apache.slider.api.proto.Messages.KillContainerRequestProto getDefaultInstanceForType() { - return org.apache.slider.api.proto.Messages.KillContainerRequestProto.getDefaultInstance(); - } - - public org.apache.slider.api.proto.Messages.KillContainerRequestProto build() { - org.apache.slider.api.proto.Messages.KillContainerRequestProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.apache.slider.api.proto.Messages.KillContainerRequestProto buildPartial() { - org.apache.slider.api.proto.Messages.KillContainerRequestProto result = new org.apache.slider.api.proto.Messages.KillContainerRequestProto(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.id_ = id_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.slider.api.proto.Messages.KillContainerRequestProto) { - return mergeFrom((org.apache.slider.api.proto.Messages.KillContainerRequestProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.apache.slider.api.proto.Messages.KillContainerRequestProto other) { - if (other == org.apache.slider.api.proto.Messages.KillContainerRequestProto.getDefaultInstance()) return this; - if (other.hasId()) { - bitField0_ |= 0x00000001; - id_ = other.id_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasId()) { - - return false; - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.apache.slider.api.proto.Messages.KillContainerRequestProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.slider.api.proto.Messages.KillContainerRequestProto) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // required string id = 1; - private java.lang.Object id_ = ""; - /** - * required string id = 1; - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string id = 1; - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string id = 1; - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string id = 1; - */ - public Builder setId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - id_ = value; - onChanged(); - return this; - } - /** - * required string id = 1; - */ - public Builder clearId() { - bitField0_ = (bitField0_ & ~0x00000001); - id_ = getDefaultInstance().getId(); - onChanged(); - return this; - } - /** - * required string id = 1; - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - id_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:org.apache.slider.api.KillContainerRequestProto) - } - - static { - defaultInstance = new KillContainerRequestProto(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.apache.slider.api.KillContainerRequestProto) - } - - public interface KillContainerResponseProtoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // required bool success = 1; - /** - * required bool success = 1; - */ - boolean hasSuccess(); - /** - * required bool success = 1; - */ - boolean getSuccess(); - } - /** - * Protobuf type {@code org.apache.slider.api.KillContainerResponseProto} - * - *
-   **
-   * Kill reply
-   * 
- */ - public static final class KillContainerResponseProto extends - com.google.protobuf.GeneratedMessage - implements KillContainerResponseProtoOrBuilder { - // Use KillContainerResponseProto.newBuilder() to construct. - private KillContainerResponseProto(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private KillContainerResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final KillContainerResponseProto defaultInstance; - public static KillContainerResponseProto getDefaultInstance() { - return defaultInstance; - } - - public KillContainerResponseProto getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private KillContainerResponseProto( - 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; - success_ = input.readBool(); - 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.slider.api.proto.Messages.internal_static_org_apache_slider_api_KillContainerResponseProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_KillContainerResponseProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.KillContainerResponseProto.class, org.apache.slider.api.proto.Messages.KillContainerResponseProto.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public KillContainerResponseProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KillContainerResponseProto(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // required bool success = 1; - public static final int SUCCESS_FIELD_NUMBER = 1; - private boolean success_; - /** - * required bool success = 1; - */ - public boolean hasSuccess() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required bool success = 1; - */ - public boolean getSuccess() { - return success_; - } - - private void initFields() { - success_ = false; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (!hasSuccess()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBool(1, success_); - } - 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 - .computeBoolSize(1, success_); - } - 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.slider.api.proto.Messages.KillContainerResponseProto)) { - return super.equals(obj); - } - org.apache.slider.api.proto.Messages.KillContainerResponseProto other = (org.apache.slider.api.proto.Messages.KillContainerResponseProto) obj; - - boolean result = true; - result = result && (hasSuccess() == other.hasSuccess()); - if (hasSuccess()) { - result = result && (getSuccess() - == other.getSuccess()); - } - 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 (hasSuccess()) { - hash = (37 * hash) + SUCCESS_FIELD_NUMBER; - hash = (53 * hash) + hashBoolean(getSuccess()); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.apache.slider.api.proto.Messages.KillContainerResponseProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.KillContainerResponseProto 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.slider.api.proto.Messages.KillContainerResponseProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.KillContainerResponseProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.KillContainerResponseProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.KillContainerResponseProto parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.KillContainerResponseProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.apache.slider.api.proto.Messages.KillContainerResponseProto parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.KillContainerResponseProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.KillContainerResponseProto 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.slider.api.proto.Messages.KillContainerResponseProto 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 org.apache.slider.api.KillContainerResponseProto} - * - *
-     **
-     * Kill reply
-     * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.apache.slider.api.proto.Messages.KillContainerResponseProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_KillContainerResponseProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_KillContainerResponseProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.KillContainerResponseProto.class, org.apache.slider.api.proto.Messages.KillContainerResponseProto.Builder.class); - } - - // Construct using org.apache.slider.api.proto.Messages.KillContainerResponseProto.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(); - success_ = false; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_KillContainerResponseProto_descriptor; - } - - public org.apache.slider.api.proto.Messages.KillContainerResponseProto getDefaultInstanceForType() { - return org.apache.slider.api.proto.Messages.KillContainerResponseProto.getDefaultInstance(); - } - - public org.apache.slider.api.proto.Messages.KillContainerResponseProto build() { - org.apache.slider.api.proto.Messages.KillContainerResponseProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.apache.slider.api.proto.Messages.KillContainerResponseProto buildPartial() { - org.apache.slider.api.proto.Messages.KillContainerResponseProto result = new org.apache.slider.api.proto.Messages.KillContainerResponseProto(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.success_ = success_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.slider.api.proto.Messages.KillContainerResponseProto) { - return mergeFrom((org.apache.slider.api.proto.Messages.KillContainerResponseProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.apache.slider.api.proto.Messages.KillContainerResponseProto other) { - if (other == org.apache.slider.api.proto.Messages.KillContainerResponseProto.getDefaultInstance()) return this; - if (other.hasSuccess()) { - setSuccess(other.getSuccess()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasSuccess()) { - - return false; - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.apache.slider.api.proto.Messages.KillContainerResponseProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.slider.api.proto.Messages.KillContainerResponseProto) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // required bool success = 1; - private boolean success_ ; - /** - * required bool success = 1; - */ - public boolean hasSuccess() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required bool success = 1; - */ - public boolean getSuccess() { - return success_; - } - /** - * required bool success = 1; - */ - public Builder setSuccess(boolean value) { - bitField0_ |= 0x00000001; - success_ = value; - onChanged(); - return this; - } - /** - * required bool success = 1; - */ - public Builder clearSuccess() { - bitField0_ = (bitField0_ & ~0x00000001); - success_ = false; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:org.apache.slider.api.KillContainerResponseProto) - } - - static { - defaultInstance = new KillContainerResponseProto(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.apache.slider.api.KillContainerResponseProto) - } - - public interface AMSuicideRequestProtoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // required string text = 1; - /** - * required string text = 1; - */ - boolean hasText(); - /** - * required string text = 1; - */ - java.lang.String getText(); - /** - * required string text = 1; - */ - com.google.protobuf.ByteString - getTextBytes(); - - // required int32 signal = 2; - /** - * required int32 signal = 2; - */ - boolean hasSignal(); - /** - * required int32 signal = 2; - */ - int getSignal(); - - // required int32 delay = 3; - /** - * required int32 delay = 3; - */ - boolean hasDelay(); - /** - * required int32 delay = 3; - */ - int getDelay(); - } - /** - * Protobuf type {@code org.apache.slider.api.AMSuicideRequestProto} - * - *
-   **
-   * AM suicide
-   * 
- */ - public static final class AMSuicideRequestProto extends - com.google.protobuf.GeneratedMessage - implements AMSuicideRequestProtoOrBuilder { - // Use AMSuicideRequestProto.newBuilder() to construct. - private AMSuicideRequestProto(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private AMSuicideRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final AMSuicideRequestProto defaultInstance; - public static AMSuicideRequestProto getDefaultInstance() { - return defaultInstance; - } - - public AMSuicideRequestProto getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AMSuicideRequestProto( - 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; - text_ = input.readBytes(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - signal_ = input.readInt32(); - break; - } - case 24: { - bitField0_ |= 0x00000004; - delay_ = input.readInt32(); - 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.slider.api.proto.Messages.internal_static_org_apache_slider_api_AMSuicideRequestProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_AMSuicideRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.AMSuicideRequestProto.class, org.apache.slider.api.proto.Messages.AMSuicideRequestProto.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public AMSuicideRequestProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AMSuicideRequestProto(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // required string text = 1; - public static final int TEXT_FIELD_NUMBER = 1; - private java.lang.Object text_; - /** - * required string text = 1; - */ - public boolean hasText() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string text = 1; - */ - public java.lang.String getText() { - java.lang.Object ref = text_; - 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()) { - text_ = s; - } - return s; - } - } - /** - * required string text = 1; - */ - public com.google.protobuf.ByteString - getTextBytes() { - java.lang.Object ref = text_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - text_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // required int32 signal = 2; - public static final int SIGNAL_FIELD_NUMBER = 2; - private int signal_; - /** - * required int32 signal = 2; - */ - public boolean hasSignal() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required int32 signal = 2; - */ - public int getSignal() { - return signal_; - } - - // required int32 delay = 3; - public static final int DELAY_FIELD_NUMBER = 3; - private int delay_; - /** - * required int32 delay = 3; - */ - public boolean hasDelay() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * required int32 delay = 3; - */ - public int getDelay() { - return delay_; - } - - private void initFields() { - text_ = ""; - signal_ = 0; - delay_ = 0; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (!hasText()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasSignal()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasDelay()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getTextBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeInt32(2, signal_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeInt32(3, delay_); - } - 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, getTextBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, signal_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, delay_); - } - 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.slider.api.proto.Messages.AMSuicideRequestProto)) { - return super.equals(obj); - } - org.apache.slider.api.proto.Messages.AMSuicideRequestProto other = (org.apache.slider.api.proto.Messages.AMSuicideRequestProto) obj; - - boolean result = true; - result = result && (hasText() == other.hasText()); - if (hasText()) { - result = result && getText() - .equals(other.getText()); - } - result = result && (hasSignal() == other.hasSignal()); - if (hasSignal()) { - result = result && (getSignal() - == other.getSignal()); - } - result = result && (hasDelay() == other.hasDelay()); - if (hasDelay()) { - result = result && (getDelay() - == other.getDelay()); - } - 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 (hasText()) { - hash = (37 * hash) + TEXT_FIELD_NUMBER; - hash = (53 * hash) + getText().hashCode(); - } - if (hasSignal()) { - hash = (37 * hash) + SIGNAL_FIELD_NUMBER; - hash = (53 * hash) + getSignal(); - } - if (hasDelay()) { - hash = (37 * hash) + DELAY_FIELD_NUMBER; - hash = (53 * hash) + getDelay(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.apache.slider.api.proto.Messages.AMSuicideRequestProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.AMSuicideRequestProto 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.slider.api.proto.Messages.AMSuicideRequestProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.AMSuicideRequestProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.AMSuicideRequestProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.AMSuicideRequestProto parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.AMSuicideRequestProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.apache.slider.api.proto.Messages.AMSuicideRequestProto parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.AMSuicideRequestProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.AMSuicideRequestProto 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.slider.api.proto.Messages.AMSuicideRequestProto 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 org.apache.slider.api.AMSuicideRequestProto} - * - *
-     **
-     * AM suicide
-     * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.apache.slider.api.proto.Messages.AMSuicideRequestProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_AMSuicideRequestProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_AMSuicideRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.AMSuicideRequestProto.class, org.apache.slider.api.proto.Messages.AMSuicideRequestProto.Builder.class); - } - - // Construct using org.apache.slider.api.proto.Messages.AMSuicideRequestProto.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(); - text_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - signal_ = 0; - bitField0_ = (bitField0_ & ~0x00000002); - delay_ = 0; - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_AMSuicideRequestProto_descriptor; - } - - public org.apache.slider.api.proto.Messages.AMSuicideRequestProto getDefaultInstanceForType() { - return org.apache.slider.api.proto.Messages.AMSuicideRequestProto.getDefaultInstance(); - } - - public org.apache.slider.api.proto.Messages.AMSuicideRequestProto build() { - org.apache.slider.api.proto.Messages.AMSuicideRequestProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.apache.slider.api.proto.Messages.AMSuicideRequestProto buildPartial() { - org.apache.slider.api.proto.Messages.AMSuicideRequestProto result = new org.apache.slider.api.proto.Messages.AMSuicideRequestProto(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.text_ = text_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.signal_ = signal_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.delay_ = delay_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.slider.api.proto.Messages.AMSuicideRequestProto) { - return mergeFrom((org.apache.slider.api.proto.Messages.AMSuicideRequestProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.apache.slider.api.proto.Messages.AMSuicideRequestProto other) { - if (other == org.apache.slider.api.proto.Messages.AMSuicideRequestProto.getDefaultInstance()) return this; - if (other.hasText()) { - bitField0_ |= 0x00000001; - text_ = other.text_; - onChanged(); - } - if (other.hasSignal()) { - setSignal(other.getSignal()); - } - if (other.hasDelay()) { - setDelay(other.getDelay()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasText()) { - - return false; - } - if (!hasSignal()) { - - return false; - } - if (!hasDelay()) { - - return false; - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.apache.slider.api.proto.Messages.AMSuicideRequestProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.slider.api.proto.Messages.AMSuicideRequestProto) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // required string text = 1; - private java.lang.Object text_ = ""; - /** - * required string text = 1; - */ - public boolean hasText() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string text = 1; - */ - public java.lang.String getText() { - java.lang.Object ref = text_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - text_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string text = 1; - */ - public com.google.protobuf.ByteString - getTextBytes() { - java.lang.Object ref = text_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - text_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string text = 1; - */ - public Builder setText( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - text_ = value; - onChanged(); - return this; - } - /** - * required string text = 1; - */ - public Builder clearText() { - bitField0_ = (bitField0_ & ~0x00000001); - text_ = getDefaultInstance().getText(); - onChanged(); - return this; - } - /** - * required string text = 1; - */ - public Builder setTextBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - text_ = value; - onChanged(); - return this; - } - - // required int32 signal = 2; - private int signal_ ; - /** - * required int32 signal = 2; - */ - public boolean hasSignal() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required int32 signal = 2; - */ - public int getSignal() { - return signal_; - } - /** - * required int32 signal = 2; - */ - public Builder setSignal(int value) { - bitField0_ |= 0x00000002; - signal_ = value; - onChanged(); - return this; - } - /** - * required int32 signal = 2; - */ - public Builder clearSignal() { - bitField0_ = (bitField0_ & ~0x00000002); - signal_ = 0; - onChanged(); - return this; - } - - // required int32 delay = 3; - private int delay_ ; - /** - * required int32 delay = 3; - */ - public boolean hasDelay() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * required int32 delay = 3; - */ - public int getDelay() { - return delay_; - } - /** - * required int32 delay = 3; - */ - public Builder setDelay(int value) { - bitField0_ |= 0x00000004; - delay_ = value; - onChanged(); - return this; - } - /** - * required int32 delay = 3; - */ - public Builder clearDelay() { - bitField0_ = (bitField0_ & ~0x00000004); - delay_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:org.apache.slider.api.AMSuicideRequestProto) - } - - static { - defaultInstance = new AMSuicideRequestProto(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.apache.slider.api.AMSuicideRequestProto) - } - - public interface AMSuicideResponseProtoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code org.apache.slider.api.AMSuicideResponseProto} - * - *
-   **
-   * AM suicide reply. For this to be returned implies
-   * a failure of the AM to kill itself
-   * 
- */ - public static final class AMSuicideResponseProto extends - com.google.protobuf.GeneratedMessage - implements AMSuicideResponseProtoOrBuilder { - // Use AMSuicideResponseProto.newBuilder() to construct. - private AMSuicideResponseProto(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private AMSuicideResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final AMSuicideResponseProto defaultInstance; - public static AMSuicideResponseProto getDefaultInstance() { - return defaultInstance; - } - - public AMSuicideResponseProto getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AMSuicideResponseProto( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - 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; - } - } - } - } 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.slider.api.proto.Messages.internal_static_org_apache_slider_api_AMSuicideResponseProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_AMSuicideResponseProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.AMSuicideResponseProto.class, org.apache.slider.api.proto.Messages.AMSuicideResponseProto.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public AMSuicideResponseProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AMSuicideResponseProto(input, extensionRegistry); - } - }; - - @java.lang.Override - public 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(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.slider.api.proto.Messages.AMSuicideResponseProto)) { - return super.equals(obj); - } - org.apache.slider.api.proto.Messages.AMSuicideResponseProto other = (org.apache.slider.api.proto.Messages.AMSuicideResponseProto) 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.slider.api.proto.Messages.AMSuicideResponseProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.AMSuicideResponseProto 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.slider.api.proto.Messages.AMSuicideResponseProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.AMSuicideResponseProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.AMSuicideResponseProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.AMSuicideResponseProto parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.AMSuicideResponseProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.apache.slider.api.proto.Messages.AMSuicideResponseProto parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.AMSuicideResponseProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.AMSuicideResponseProto 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.slider.api.proto.Messages.AMSuicideResponseProto 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 org.apache.slider.api.AMSuicideResponseProto} - * - *
-     **
-     * AM suicide reply. For this to be returned implies
-     * a failure of the AM to kill itself
-     * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.apache.slider.api.proto.Messages.AMSuicideResponseProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_AMSuicideResponseProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_AMSuicideResponseProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.AMSuicideResponseProto.class, org.apache.slider.api.proto.Messages.AMSuicideResponseProto.Builder.class); - } - - // Construct using org.apache.slider.api.proto.Messages.AMSuicideResponseProto.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(); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_AMSuicideResponseProto_descriptor; - } - - public org.apache.slider.api.proto.Messages.AMSuicideResponseProto getDefaultInstanceForType() { - return org.apache.slider.api.proto.Messages.AMSuicideResponseProto.getDefaultInstance(); - } - - public org.apache.slider.api.proto.Messages.AMSuicideResponseProto build() { - org.apache.slider.api.proto.Messages.AMSuicideResponseProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.apache.slider.api.proto.Messages.AMSuicideResponseProto buildPartial() { - org.apache.slider.api.proto.Messages.AMSuicideResponseProto result = new org.apache.slider.api.proto.Messages.AMSuicideResponseProto(this); - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.slider.api.proto.Messages.AMSuicideResponseProto) { - return mergeFrom((org.apache.slider.api.proto.Messages.AMSuicideResponseProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.apache.slider.api.proto.Messages.AMSuicideResponseProto other) { - if (other == org.apache.slider.api.proto.Messages.AMSuicideResponseProto.getDefaultInstance()) return this; - 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.slider.api.proto.Messages.AMSuicideResponseProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.slider.api.proto.Messages.AMSuicideResponseProto) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - // @@protoc_insertion_point(builder_scope:org.apache.slider.api.AMSuicideResponseProto) - } - - static { - defaultInstance = new AMSuicideResponseProto(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.apache.slider.api.AMSuicideResponseProto) - } - - public interface GetInstanceDefinitionRequestProtoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code org.apache.slider.api.GetInstanceDefinitionRequestProto} - * - *
-   **
-   * Ask for the instance definition details
-   * 
- */ - public static final class GetInstanceDefinitionRequestProto extends - com.google.protobuf.GeneratedMessage - implements GetInstanceDefinitionRequestProtoOrBuilder { - // Use GetInstanceDefinitionRequestProto.newBuilder() to construct. - private GetInstanceDefinitionRequestProto(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private GetInstanceDefinitionRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final GetInstanceDefinitionRequestProto defaultInstance; - public static GetInstanceDefinitionRequestProto getDefaultInstance() { - return defaultInstance; - } - - public GetInstanceDefinitionRequestProto getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetInstanceDefinitionRequestProto( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - 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; - } - } - } - } 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.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetInstanceDefinitionRequestProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetInstanceDefinitionRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto.class, org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GetInstanceDefinitionRequestProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetInstanceDefinitionRequestProto(input, extensionRegistry); - } - }; - - @java.lang.Override - public 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(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.slider.api.proto.Messages.GetInstanceDefinitionRequestProto)) { - return super.equals(obj); - } - org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto other = (org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto) 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.slider.api.proto.Messages.GetInstanceDefinitionRequestProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto 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.slider.api.proto.Messages.GetInstanceDefinitionRequestProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto 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.slider.api.proto.Messages.GetInstanceDefinitionRequestProto 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 org.apache.slider.api.GetInstanceDefinitionRequestProto} - * - *
-     **
-     * Ask for the instance definition details
-     * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetInstanceDefinitionRequestProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetInstanceDefinitionRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto.class, org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto.Builder.class); - } - - // Construct using org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto.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(); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetInstanceDefinitionRequestProto_descriptor; - } - - public org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto getDefaultInstanceForType() { - return org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto.getDefaultInstance(); - } - - public org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto build() { - org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto buildPartial() { - org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto result = new org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto(this); - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto) { - return mergeFrom((org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto other) { - if (other == org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto.getDefaultInstance()) return this; - 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.slider.api.proto.Messages.GetInstanceDefinitionRequestProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetInstanceDefinitionRequestProto) - } - - static { - defaultInstance = new GetInstanceDefinitionRequestProto(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetInstanceDefinitionRequestProto) - } - - public interface GetInstanceDefinitionResponseProtoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // required string internal = 1; - /** - * required string internal = 1; - */ - boolean hasInternal(); - /** - * required string internal = 1; - */ - java.lang.String getInternal(); - /** - * required string internal = 1; - */ - com.google.protobuf.ByteString - getInternalBytes(); - - // required string resources = 2; - /** - * required string resources = 2; - */ - boolean hasResources(); - /** - * required string resources = 2; - */ - java.lang.String getResources(); - /** - * required string resources = 2; - */ - com.google.protobuf.ByteString - getResourcesBytes(); - - // required string application = 3; - /** - * required string application = 3; - */ - boolean hasApplication(); - /** - * required string application = 3; - */ - java.lang.String getApplication(); - /** - * required string application = 3; - */ - com.google.protobuf.ByteString - getApplicationBytes(); - } - /** - * Protobuf type {@code org.apache.slider.api.GetInstanceDefinitionResponseProto} - * - *
-   **
-   * Get the definition back as three separate JSON strings
-   * 
- */ - public static final class GetInstanceDefinitionResponseProto extends - com.google.protobuf.GeneratedMessage - implements GetInstanceDefinitionResponseProtoOrBuilder { - // Use GetInstanceDefinitionResponseProto.newBuilder() to construct. - private GetInstanceDefinitionResponseProto(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private GetInstanceDefinitionResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final GetInstanceDefinitionResponseProto defaultInstance; - public static GetInstanceDefinitionResponseProto getDefaultInstance() { - return defaultInstance; - } - - public GetInstanceDefinitionResponseProto getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetInstanceDefinitionResponseProto( - 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; - internal_ = input.readBytes(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - resources_ = input.readBytes(); - break; - } - case 26: { - bitField0_ |= 0x00000004; - application_ = 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.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetInstanceDefinitionResponseProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetInstanceDefinitionResponseProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto.class, org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GetInstanceDefinitionResponseProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetInstanceDefinitionResponseProto(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // required string internal = 1; - public static final int INTERNAL_FIELD_NUMBER = 1; - private java.lang.Object internal_; - /** - * required string internal = 1; - */ - public boolean hasInternal() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string internal = 1; - */ - public java.lang.String getInternal() { - java.lang.Object ref = internal_; - 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()) { - internal_ = s; - } - return s; - } - } - /** - * required string internal = 1; - */ - public com.google.protobuf.ByteString - getInternalBytes() { - java.lang.Object ref = internal_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - internal_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // required string resources = 2; - public static final int RESOURCES_FIELD_NUMBER = 2; - private java.lang.Object resources_; - /** - * required string resources = 2; - */ - public boolean hasResources() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required string resources = 2; - */ - public java.lang.String getResources() { - java.lang.Object ref = resources_; - 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()) { - resources_ = s; - } - return s; - } - } - /** - * required string resources = 2; - */ - public com.google.protobuf.ByteString - getResourcesBytes() { - java.lang.Object ref = resources_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - resources_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // required string application = 3; - public static final int APPLICATION_FIELD_NUMBER = 3; - private java.lang.Object application_; - /** - * required string application = 3; - */ - public boolean hasApplication() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * required string application = 3; - */ - public java.lang.String getApplication() { - java.lang.Object ref = application_; - 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()) { - application_ = s; - } - return s; - } - } - /** - * required string application = 3; - */ - public com.google.protobuf.ByteString - getApplicationBytes() { - java.lang.Object ref = application_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - application_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private void initFields() { - internal_ = ""; - resources_ = ""; - application_ = ""; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (!hasInternal()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasResources()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasApplication()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getInternalBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getResourcesBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getApplicationBytes()); - } - 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, getInternalBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getResourcesBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getApplicationBytes()); - } - 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.slider.api.proto.Messages.GetInstanceDefinitionResponseProto)) { - return super.equals(obj); - } - org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto other = (org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto) obj; - - boolean result = true; - result = result && (hasInternal() == other.hasInternal()); - if (hasInternal()) { - result = result && getInternal() - .equals(other.getInternal()); - } - result = result && (hasResources() == other.hasResources()); - if (hasResources()) { - result = result && getResources() - .equals(other.getResources()); - } - result = result && (hasApplication() == other.hasApplication()); - if (hasApplication()) { - result = result && getApplication() - .equals(other.getApplication()); - } - 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 (hasInternal()) { - hash = (37 * hash) + INTERNAL_FIELD_NUMBER; - hash = (53 * hash) + getInternal().hashCode(); - } - if (hasResources()) { - hash = (37 * hash) + RESOURCES_FIELD_NUMBER; - hash = (53 * hash) + getResources().hashCode(); - } - if (hasApplication()) { - hash = (37 * hash) + APPLICATION_FIELD_NUMBER; - hash = (53 * hash) + getApplication().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto 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.slider.api.proto.Messages.GetInstanceDefinitionResponseProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto 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.slider.api.proto.Messages.GetInstanceDefinitionResponseProto 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 org.apache.slider.api.GetInstanceDefinitionResponseProto} - * - *
-     **
-     * Get the definition back as three separate JSON strings
-     * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetInstanceDefinitionResponseProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetInstanceDefinitionResponseProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto.class, org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto.Builder.class); - } - - // Construct using org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto.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(); - internal_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - resources_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - application_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetInstanceDefinitionResponseProto_descriptor; - } - - public org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto getDefaultInstanceForType() { - return org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto.getDefaultInstance(); - } - - public org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto build() { - org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto buildPartial() { - org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto result = new org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.internal_ = internal_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.resources_ = resources_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.application_ = application_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto) { - return mergeFrom((org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto other) { - if (other == org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto.getDefaultInstance()) return this; - if (other.hasInternal()) { - bitField0_ |= 0x00000001; - internal_ = other.internal_; - onChanged(); - } - if (other.hasResources()) { - bitField0_ |= 0x00000002; - resources_ = other.resources_; - onChanged(); - } - if (other.hasApplication()) { - bitField0_ |= 0x00000004; - application_ = other.application_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasInternal()) { - - return false; - } - if (!hasResources()) { - - return false; - } - if (!hasApplication()) { - - return false; - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // required string internal = 1; - private java.lang.Object internal_ = ""; - /** - * required string internal = 1; - */ - public boolean hasInternal() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string internal = 1; - */ - public java.lang.String getInternal() { - java.lang.Object ref = internal_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - internal_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string internal = 1; - */ - public com.google.protobuf.ByteString - getInternalBytes() { - java.lang.Object ref = internal_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - internal_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string internal = 1; - */ - public Builder setInternal( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - internal_ = value; - onChanged(); - return this; - } - /** - * required string internal = 1; - */ - public Builder clearInternal() { - bitField0_ = (bitField0_ & ~0x00000001); - internal_ = getDefaultInstance().getInternal(); - onChanged(); - return this; - } - /** - * required string internal = 1; - */ - public Builder setInternalBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - internal_ = value; - onChanged(); - return this; - } - - // required string resources = 2; - private java.lang.Object resources_ = ""; - /** - * required string resources = 2; - */ - public boolean hasResources() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required string resources = 2; - */ - public java.lang.String getResources() { - java.lang.Object ref = resources_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - resources_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string resources = 2; - */ - public com.google.protobuf.ByteString - getResourcesBytes() { - java.lang.Object ref = resources_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - resources_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string resources = 2; - */ - public Builder setResources( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - resources_ = value; - onChanged(); - return this; - } - /** - * required string resources = 2; - */ - public Builder clearResources() { - bitField0_ = (bitField0_ & ~0x00000002); - resources_ = getDefaultInstance().getResources(); - onChanged(); - return this; - } - /** - * required string resources = 2; - */ - public Builder setResourcesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - resources_ = value; - onChanged(); - return this; - } - - // required string application = 3; - private java.lang.Object application_ = ""; - /** - * required string application = 3; - */ - public boolean hasApplication() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * required string application = 3; - */ - public java.lang.String getApplication() { - java.lang.Object ref = application_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - application_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string application = 3; - */ - public com.google.protobuf.ByteString - getApplicationBytes() { - java.lang.Object ref = application_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - application_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string application = 3; - */ - public Builder setApplication( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - application_ = value; - onChanged(); - return this; - } - /** - * required string application = 3; - */ - public Builder clearApplication() { - bitField0_ = (bitField0_ & ~0x00000004); - application_ = getDefaultInstance().getApplication(); - onChanged(); - return this; - } - /** - * required string application = 3; - */ - public Builder setApplicationBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - application_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetInstanceDefinitionResponseProto) - } - - static { - defaultInstance = new GetInstanceDefinitionResponseProto(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetInstanceDefinitionResponseProto) - } - - public interface ApplicationLivenessInformationProtoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional bool allRequestsSatisfied = 1; - /** - * optional bool allRequestsSatisfied = 1; - */ - boolean hasAllRequestsSatisfied(); - /** - * optional bool allRequestsSatisfied = 1; - */ - boolean getAllRequestsSatisfied(); - - // optional int32 requestsOutstanding = 2; - /** - * optional int32 requestsOutstanding = 2; - */ - boolean hasRequestsOutstanding(); - /** - * optional int32 requestsOutstanding = 2; - */ - int getRequestsOutstanding(); - } - /** - * Protobuf type {@code org.apache.slider.api.ApplicationLivenessInformationProto} - * - *
-   **
-   * See org.apache.slider.api.types.ApplicationLivenessInformation
-   * 
- */ - public static final class ApplicationLivenessInformationProto extends - com.google.protobuf.GeneratedMessage - implements ApplicationLivenessInformationProtoOrBuilder { - // Use ApplicationLivenessInformationProto.newBuilder() to construct. - private ApplicationLivenessInformationProto(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private ApplicationLivenessInformationProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final ApplicationLivenessInformationProto defaultInstance; - public static ApplicationLivenessInformationProto getDefaultInstance() { - return defaultInstance; - } - - public ApplicationLivenessInformationProto getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ApplicationLivenessInformationProto( - 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; - allRequestsSatisfied_ = input.readBool(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - requestsOutstanding_ = input.readInt32(); - 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.slider.api.proto.Messages.internal_static_org_apache_slider_api_ApplicationLivenessInformationProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_ApplicationLivenessInformationProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto.class, org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ApplicationLivenessInformationProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ApplicationLivenessInformationProto(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // optional bool allRequestsSatisfied = 1; - public static final int ALLREQUESTSSATISFIED_FIELD_NUMBER = 1; - private boolean allRequestsSatisfied_; - /** - * optional bool allRequestsSatisfied = 1; - */ - public boolean hasAllRequestsSatisfied() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional bool allRequestsSatisfied = 1; - */ - public boolean getAllRequestsSatisfied() { - return allRequestsSatisfied_; - } - - // optional int32 requestsOutstanding = 2; - public static final int REQUESTSOUTSTANDING_FIELD_NUMBER = 2; - private int requestsOutstanding_; - /** - * optional int32 requestsOutstanding = 2; - */ - public boolean hasRequestsOutstanding() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional int32 requestsOutstanding = 2; - */ - public int getRequestsOutstanding() { - return requestsOutstanding_; - } - - private void initFields() { - allRequestsSatisfied_ = false; - requestsOutstanding_ = 0; - } - 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.writeBool(1, allRequestsSatisfied_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeInt32(2, requestsOutstanding_); - } - 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 - .computeBoolSize(1, allRequestsSatisfied_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, requestsOutstanding_); - } - 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.slider.api.proto.Messages.ApplicationLivenessInformationProto)) { - return super.equals(obj); - } - org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto other = (org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto) obj; - - boolean result = true; - result = result && (hasAllRequestsSatisfied() == other.hasAllRequestsSatisfied()); - if (hasAllRequestsSatisfied()) { - result = result && (getAllRequestsSatisfied() - == other.getAllRequestsSatisfied()); - } - result = result && (hasRequestsOutstanding() == other.hasRequestsOutstanding()); - if (hasRequestsOutstanding()) { - result = result && (getRequestsOutstanding() - == other.getRequestsOutstanding()); - } - 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 (hasAllRequestsSatisfied()) { - hash = (37 * hash) + ALLREQUESTSSATISFIED_FIELD_NUMBER; - hash = (53 * hash) + hashBoolean(getAllRequestsSatisfied()); - } - if (hasRequestsOutstanding()) { - hash = (37 * hash) + REQUESTSOUTSTANDING_FIELD_NUMBER; - hash = (53 * hash) + getRequestsOutstanding(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto 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.slider.api.proto.Messages.ApplicationLivenessInformationProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto 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.slider.api.proto.Messages.ApplicationLivenessInformationProto 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 org.apache.slider.api.ApplicationLivenessInformationProto} - * - *
-     **
-     * See org.apache.slider.api.types.ApplicationLivenessInformation
-     * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_ApplicationLivenessInformationProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_ApplicationLivenessInformationProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto.class, org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto.Builder.class); - } - - // Construct using org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto.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(); - allRequestsSatisfied_ = false; - bitField0_ = (bitField0_ & ~0x00000001); - requestsOutstanding_ = 0; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_ApplicationLivenessInformationProto_descriptor; - } - - public org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto getDefaultInstanceForType() { - return org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto.getDefaultInstance(); - } - - public org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto build() { - org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto buildPartial() { - org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto result = new org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.allRequestsSatisfied_ = allRequestsSatisfied_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.requestsOutstanding_ = requestsOutstanding_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto) { - return mergeFrom((org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto other) { - if (other == org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto.getDefaultInstance()) return this; - if (other.hasAllRequestsSatisfied()) { - setAllRequestsSatisfied(other.getAllRequestsSatisfied()); - } - if (other.hasRequestsOutstanding()) { - setRequestsOutstanding(other.getRequestsOutstanding()); - } - 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.slider.api.proto.Messages.ApplicationLivenessInformationProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional bool allRequestsSatisfied = 1; - private boolean allRequestsSatisfied_ ; - /** - * optional bool allRequestsSatisfied = 1; - */ - public boolean hasAllRequestsSatisfied() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional bool allRequestsSatisfied = 1; - */ - public boolean getAllRequestsSatisfied() { - return allRequestsSatisfied_; - } - /** - * optional bool allRequestsSatisfied = 1; - */ - public Builder setAllRequestsSatisfied(boolean value) { - bitField0_ |= 0x00000001; - allRequestsSatisfied_ = value; - onChanged(); - return this; - } - /** - * optional bool allRequestsSatisfied = 1; - */ - public Builder clearAllRequestsSatisfied() { - bitField0_ = (bitField0_ & ~0x00000001); - allRequestsSatisfied_ = false; - onChanged(); - return this; - } - - // optional int32 requestsOutstanding = 2; - private int requestsOutstanding_ ; - /** - * optional int32 requestsOutstanding = 2; - */ - public boolean hasRequestsOutstanding() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional int32 requestsOutstanding = 2; - */ - public int getRequestsOutstanding() { - return requestsOutstanding_; - } - /** - * optional int32 requestsOutstanding = 2; - */ - public Builder setRequestsOutstanding(int value) { - bitField0_ |= 0x00000002; - requestsOutstanding_ = value; - onChanged(); - return this; - } - /** - * optional int32 requestsOutstanding = 2; - */ - public Builder clearRequestsOutstanding() { - bitField0_ = (bitField0_ & ~0x00000002); - requestsOutstanding_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:org.apache.slider.api.ApplicationLivenessInformationProto) - } - - static { - defaultInstance = new ApplicationLivenessInformationProto(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.apache.slider.api.ApplicationLivenessInformationProto) - } - - public interface ComponentInformationProtoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional string name = 1; - /** - * optional string name = 1; - */ - boolean hasName(); - /** - * optional string name = 1; - */ - java.lang.String getName(); - /** - * optional string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - // optional int32 priority = 2; - /** - * optional int32 priority = 2; - */ - boolean hasPriority(); - /** - * optional int32 priority = 2; - */ - int getPriority(); - - // optional int32 desired = 3; - /** - * optional int32 desired = 3; - */ - boolean hasDesired(); - /** - * optional int32 desired = 3; - */ - int getDesired(); - - // optional int32 actual = 4; - /** - * optional int32 actual = 4; - */ - boolean hasActual(); - /** - * optional int32 actual = 4; - */ - int getActual(); - - // optional int32 releasing = 5; - /** - * optional int32 releasing = 5; - */ - boolean hasReleasing(); - /** - * optional int32 releasing = 5; - */ - int getReleasing(); - - // optional int32 requested = 6; - /** - * optional int32 requested = 6; - */ - boolean hasRequested(); - /** - * optional int32 requested = 6; - */ - int getRequested(); - - // optional int32 failed = 7; - /** - * optional int32 failed = 7; - */ - boolean hasFailed(); - /** - * optional int32 failed = 7; - */ - int getFailed(); - - // optional int32 started = 8; - /** - * optional int32 started = 8; - */ - boolean hasStarted(); - /** - * optional int32 started = 8; - */ - int getStarted(); - - // optional int32 startFailed = 9; - /** - * optional int32 startFailed = 9; - */ - boolean hasStartFailed(); - /** - * optional int32 startFailed = 9; - */ - int getStartFailed(); - - // optional int32 completed = 10; - /** - * optional int32 completed = 10; - */ - boolean hasCompleted(); - /** - * optional int32 completed = 10; - */ - int getCompleted(); - - // optional int32 totalRequested = 11; - /** - * optional int32 totalRequested = 11; - */ - boolean hasTotalRequested(); - /** - * optional int32 totalRequested = 11; - */ - int getTotalRequested(); - - // optional string failureMessage = 12; - /** - * optional string failureMessage = 12; - */ - boolean hasFailureMessage(); - /** - * optional string failureMessage = 12; - */ - java.lang.String getFailureMessage(); - /** - * optional string failureMessage = 12; - */ - com.google.protobuf.ByteString - getFailureMessageBytes(); - - // optional int32 placementPolicy = 13; - /** - * optional int32 placementPolicy = 13; - */ - boolean hasPlacementPolicy(); - /** - * optional int32 placementPolicy = 13; - */ - int getPlacementPolicy(); - - // repeated string containers = 14; - /** - * repeated string containers = 14; - */ - java.util.List - getContainersList(); - /** - * repeated string containers = 14; - */ - int getContainersCount(); - /** - * repeated string containers = 14; - */ - java.lang.String getContainers(int index); - /** - * repeated string containers = 14; - */ - com.google.protobuf.ByteString - getContainersBytes(int index); - - // optional int32 failedRecently = 15; - /** - * optional int32 failedRecently = 15; - */ - boolean hasFailedRecently(); - /** - * optional int32 failedRecently = 15; - */ - int getFailedRecently(); - - // optional int32 nodeFailed = 16; - /** - * optional int32 nodeFailed = 16; - */ - boolean hasNodeFailed(); - /** - * optional int32 nodeFailed = 16; - */ - int getNodeFailed(); - - // optional int32 preempted = 17; - /** - * optional int32 preempted = 17; - */ - boolean hasPreempted(); - /** - * optional int32 preempted = 17; - */ - int getPreempted(); - - // optional int32 pendingAntiAffineRequestCount = 18; - /** - * optional int32 pendingAntiAffineRequestCount = 18; - */ - boolean hasPendingAntiAffineRequestCount(); - /** - * optional int32 pendingAntiAffineRequestCount = 18; - */ - int getPendingAntiAffineRequestCount(); - - // optional bool isAARequestOutstanding = 19; - /** - * optional bool isAARequestOutstanding = 19; - */ - boolean hasIsAARequestOutstanding(); - /** - * optional bool isAARequestOutstanding = 19; - */ - boolean getIsAARequestOutstanding(); - } - /** - * Protobuf type {@code org.apache.slider.api.ComponentInformationProto} - * - *
-   *
-   * see org.apache.slider.api.types.ComponentInformation
-   * 
- */ - public static final class ComponentInformationProto extends - com.google.protobuf.GeneratedMessage - implements ComponentInformationProtoOrBuilder { - // Use ComponentInformationProto.newBuilder() to construct. - private ComponentInformationProto(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private ComponentInformationProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final ComponentInformationProto defaultInstance; - public static ComponentInformationProto getDefaultInstance() { - return defaultInstance; - } - - public ComponentInformationProto getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ComponentInformationProto( - 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; - name_ = input.readBytes(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - priority_ = input.readInt32(); - break; - } - case 24: { - bitField0_ |= 0x00000004; - desired_ = input.readInt32(); - break; - } - case 32: { - bitField0_ |= 0x00000008; - actual_ = input.readInt32(); - break; - } - case 40: { - bitField0_ |= 0x00000010; - releasing_ = input.readInt32(); - break; - } - case 48: { - bitField0_ |= 0x00000020; - requested_ = input.readInt32(); - break; - } - case 56: { - bitField0_ |= 0x00000040; - failed_ = input.readInt32(); - break; - } - case 64: { - bitField0_ |= 0x00000080; - started_ = input.readInt32(); - break; - } - case 72: { - bitField0_ |= 0x00000100; - startFailed_ = input.readInt32(); - break; - } - case 80: { - bitField0_ |= 0x00000200; - completed_ = input.readInt32(); - break; - } - case 88: { - bitField0_ |= 0x00000400; - totalRequested_ = input.readInt32(); - break; - } - case 98: { - bitField0_ |= 0x00000800; - failureMessage_ = input.readBytes(); - break; - } - case 104: { - bitField0_ |= 0x00001000; - placementPolicy_ = input.readInt32(); - break; - } - case 114: { - if (!((mutable_bitField0_ & 0x00002000) == 0x00002000)) { - containers_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00002000; - } - containers_.add(input.readBytes()); - break; - } - case 120: { - bitField0_ |= 0x00002000; - failedRecently_ = input.readInt32(); - break; - } - case 128: { - bitField0_ |= 0x00004000; - nodeFailed_ = input.readInt32(); - break; - } - case 136: { - bitField0_ |= 0x00008000; - preempted_ = input.readInt32(); - break; - } - case 144: { - bitField0_ |= 0x00010000; - pendingAntiAffineRequestCount_ = input.readInt32(); - break; - } - case 152: { - bitField0_ |= 0x00020000; - isAARequestOutstanding_ = input.readBool(); - 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_ & 0x00002000) == 0x00002000)) { - containers_ = new com.google.protobuf.UnmodifiableLazyStringList(containers_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_ComponentInformationProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_ComponentInformationProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.ComponentInformationProto.class, org.apache.slider.api.proto.Messages.ComponentInformationProto.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ComponentInformationProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ComponentInformationProto(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // optional string name = 1; - public static final int NAME_FIELD_NUMBER = 1; - private java.lang.Object name_; - /** - * optional string name = 1; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } - } - /** - * optional string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional int32 priority = 2; - public static final int PRIORITY_FIELD_NUMBER = 2; - private int priority_; - /** - * optional int32 priority = 2; - */ - public boolean hasPriority() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional int32 priority = 2; - */ - public int getPriority() { - return priority_; - } - - // optional int32 desired = 3; - public static final int DESIRED_FIELD_NUMBER = 3; - private int desired_; - /** - * optional int32 desired = 3; - */ - public boolean hasDesired() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional int32 desired = 3; - */ - public int getDesired() { - return desired_; - } - - // optional int32 actual = 4; - public static final int ACTUAL_FIELD_NUMBER = 4; - private int actual_; - /** - * optional int32 actual = 4; - */ - public boolean hasActual() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional int32 actual = 4; - */ - public int getActual() { - return actual_; - } - - // optional int32 releasing = 5; - public static final int RELEASING_FIELD_NUMBER = 5; - private int releasing_; - /** - * optional int32 releasing = 5; - */ - public boolean hasReleasing() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional int32 releasing = 5; - */ - public int getReleasing() { - return releasing_; - } - - // optional int32 requested = 6; - public static final int REQUESTED_FIELD_NUMBER = 6; - private int requested_; - /** - * optional int32 requested = 6; - */ - public boolean hasRequested() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional int32 requested = 6; - */ - public int getRequested() { - return requested_; - } - - // optional int32 failed = 7; - public static final int FAILED_FIELD_NUMBER = 7; - private int failed_; - /** - * optional int32 failed = 7; - */ - public boolean hasFailed() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional int32 failed = 7; - */ - public int getFailed() { - return failed_; - } - - // optional int32 started = 8; - public static final int STARTED_FIELD_NUMBER = 8; - private int started_; - /** - * optional int32 started = 8; - */ - public boolean hasStarted() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - /** - * optional int32 started = 8; - */ - public int getStarted() { - return started_; - } - - // optional int32 startFailed = 9; - public static final int STARTFAILED_FIELD_NUMBER = 9; - private int startFailed_; - /** - * optional int32 startFailed = 9; - */ - public boolean hasStartFailed() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } - /** - * optional int32 startFailed = 9; - */ - public int getStartFailed() { - return startFailed_; - } - - // optional int32 completed = 10; - public static final int COMPLETED_FIELD_NUMBER = 10; - private int completed_; - /** - * optional int32 completed = 10; - */ - public boolean hasCompleted() { - return ((bitField0_ & 0x00000200) == 0x00000200); - } - /** - * optional int32 completed = 10; - */ - public int getCompleted() { - return completed_; - } - - // optional int32 totalRequested = 11; - public static final int TOTALREQUESTED_FIELD_NUMBER = 11; - private int totalRequested_; - /** - * optional int32 totalRequested = 11; - */ - public boolean hasTotalRequested() { - return ((bitField0_ & 0x00000400) == 0x00000400); - } - /** - * optional int32 totalRequested = 11; - */ - public int getTotalRequested() { - return totalRequested_; - } - - // optional string failureMessage = 12; - public static final int FAILUREMESSAGE_FIELD_NUMBER = 12; - private java.lang.Object failureMessage_; - /** - * optional string failureMessage = 12; - */ - public boolean hasFailureMessage() { - return ((bitField0_ & 0x00000800) == 0x00000800); - } - /** - * optional string failureMessage = 12; - */ - public java.lang.String getFailureMessage() { - java.lang.Object ref = failureMessage_; - 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()) { - failureMessage_ = s; - } - return s; - } - } - /** - * optional string failureMessage = 12; - */ - public com.google.protobuf.ByteString - getFailureMessageBytes() { - java.lang.Object ref = failureMessage_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - failureMessage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional int32 placementPolicy = 13; - public static final int PLACEMENTPOLICY_FIELD_NUMBER = 13; - private int placementPolicy_; - /** - * optional int32 placementPolicy = 13; - */ - public boolean hasPlacementPolicy() { - return ((bitField0_ & 0x00001000) == 0x00001000); - } - /** - * optional int32 placementPolicy = 13; - */ - public int getPlacementPolicy() { - return placementPolicy_; - } - - // repeated string containers = 14; - public static final int CONTAINERS_FIELD_NUMBER = 14; - private com.google.protobuf.LazyStringList containers_; - /** - * repeated string containers = 14; - */ - public java.util.List - getContainersList() { - return containers_; - } - /** - * repeated string containers = 14; - */ - public int getContainersCount() { - return containers_.size(); - } - /** - * repeated string containers = 14; - */ - public java.lang.String getContainers(int index) { - return containers_.get(index); - } - /** - * repeated string containers = 14; - */ - public com.google.protobuf.ByteString - getContainersBytes(int index) { - return containers_.getByteString(index); - } - - // optional int32 failedRecently = 15; - public static final int FAILEDRECENTLY_FIELD_NUMBER = 15; - private int failedRecently_; - /** - * optional int32 failedRecently = 15; - */ - public boolean hasFailedRecently() { - return ((bitField0_ & 0x00002000) == 0x00002000); - } - /** - * optional int32 failedRecently = 15; - */ - public int getFailedRecently() { - return failedRecently_; - } - - // optional int32 nodeFailed = 16; - public static final int NODEFAILED_FIELD_NUMBER = 16; - private int nodeFailed_; - /** - * optional int32 nodeFailed = 16; - */ - public boolean hasNodeFailed() { - return ((bitField0_ & 0x00004000) == 0x00004000); - } - /** - * optional int32 nodeFailed = 16; - */ - public int getNodeFailed() { - return nodeFailed_; - } - - // optional int32 preempted = 17; - public static final int PREEMPTED_FIELD_NUMBER = 17; - private int preempted_; - /** - * optional int32 preempted = 17; - */ - public boolean hasPreempted() { - return ((bitField0_ & 0x00008000) == 0x00008000); - } - /** - * optional int32 preempted = 17; - */ - public int getPreempted() { - return preempted_; - } - - // optional int32 pendingAntiAffineRequestCount = 18; - public static final int PENDINGANTIAFFINEREQUESTCOUNT_FIELD_NUMBER = 18; - private int pendingAntiAffineRequestCount_; - /** - * optional int32 pendingAntiAffineRequestCount = 18; - */ - public boolean hasPendingAntiAffineRequestCount() { - return ((bitField0_ & 0x00010000) == 0x00010000); - } - /** - * optional int32 pendingAntiAffineRequestCount = 18; - */ - public int getPendingAntiAffineRequestCount() { - return pendingAntiAffineRequestCount_; - } - - // optional bool isAARequestOutstanding = 19; - public static final int ISAAREQUESTOUTSTANDING_FIELD_NUMBER = 19; - private boolean isAARequestOutstanding_; - /** - * optional bool isAARequestOutstanding = 19; - */ - public boolean hasIsAARequestOutstanding() { - return ((bitField0_ & 0x00020000) == 0x00020000); - } - /** - * optional bool isAARequestOutstanding = 19; - */ - public boolean getIsAARequestOutstanding() { - return isAARequestOutstanding_; - } - - private void initFields() { - name_ = ""; - priority_ = 0; - desired_ = 0; - actual_ = 0; - releasing_ = 0; - requested_ = 0; - failed_ = 0; - started_ = 0; - startFailed_ = 0; - completed_ = 0; - totalRequested_ = 0; - failureMessage_ = ""; - placementPolicy_ = 0; - containers_ = com.google.protobuf.LazyStringArrayList.EMPTY; - failedRecently_ = 0; - nodeFailed_ = 0; - preempted_ = 0; - pendingAntiAffineRequestCount_ = 0; - isAARequestOutstanding_ = false; - } - 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, getNameBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeInt32(2, priority_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeInt32(3, desired_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeInt32(4, actual_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeInt32(5, releasing_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeInt32(6, requested_); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeInt32(7, failed_); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeInt32(8, started_); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - output.writeInt32(9, startFailed_); - } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - output.writeInt32(10, completed_); - } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - output.writeInt32(11, totalRequested_); - } - if (((bitField0_ & 0x00000800) == 0x00000800)) { - output.writeBytes(12, getFailureMessageBytes()); - } - if (((bitField0_ & 0x00001000) == 0x00001000)) { - output.writeInt32(13, placementPolicy_); - } - for (int i = 0; i < containers_.size(); i++) { - output.writeBytes(14, containers_.getByteString(i)); - } - if (((bitField0_ & 0x00002000) == 0x00002000)) { - output.writeInt32(15, failedRecently_); - } - if (((bitField0_ & 0x00004000) == 0x00004000)) { - output.writeInt32(16, nodeFailed_); - } - if (((bitField0_ & 0x00008000) == 0x00008000)) { - output.writeInt32(17, preempted_); - } - if (((bitField0_ & 0x00010000) == 0x00010000)) { - output.writeInt32(18, pendingAntiAffineRequestCount_); - } - if (((bitField0_ & 0x00020000) == 0x00020000)) { - output.writeBool(19, isAARequestOutstanding_); - } - 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, getNameBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, priority_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, desired_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, actual_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, releasing_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(6, requested_); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(7, failed_); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(8, started_); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(9, startFailed_); - } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(10, completed_); - } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(11, totalRequested_); - } - if (((bitField0_ & 0x00000800) == 0x00000800)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(12, getFailureMessageBytes()); - } - if (((bitField0_ & 0x00001000) == 0x00001000)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(13, placementPolicy_); - } - { - int dataSize = 0; - for (int i = 0; i < containers_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(containers_.getByteString(i)); - } - size += dataSize; - size += 1 * getContainersList().size(); - } - if (((bitField0_ & 0x00002000) == 0x00002000)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(15, failedRecently_); - } - if (((bitField0_ & 0x00004000) == 0x00004000)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(16, nodeFailed_); - } - if (((bitField0_ & 0x00008000) == 0x00008000)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(17, preempted_); - } - if (((bitField0_ & 0x00010000) == 0x00010000)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(18, pendingAntiAffineRequestCount_); - } - if (((bitField0_ & 0x00020000) == 0x00020000)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(19, isAARequestOutstanding_); - } - 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.slider.api.proto.Messages.ComponentInformationProto)) { - return super.equals(obj); - } - org.apache.slider.api.proto.Messages.ComponentInformationProto other = (org.apache.slider.api.proto.Messages.ComponentInformationProto) obj; - - boolean result = true; - result = result && (hasName() == other.hasName()); - if (hasName()) { - result = result && getName() - .equals(other.getName()); - } - result = result && (hasPriority() == other.hasPriority()); - if (hasPriority()) { - result = result && (getPriority() - == other.getPriority()); - } - result = result && (hasDesired() == other.hasDesired()); - if (hasDesired()) { - result = result && (getDesired() - == other.getDesired()); - } - result = result && (hasActual() == other.hasActual()); - if (hasActual()) { - result = result && (getActual() - == other.getActual()); - } - result = result && (hasReleasing() == other.hasReleasing()); - if (hasReleasing()) { - result = result && (getReleasing() - == other.getReleasing()); - } - result = result && (hasRequested() == other.hasRequested()); - if (hasRequested()) { - result = result && (getRequested() - == other.getRequested()); - } - result = result && (hasFailed() == other.hasFailed()); - if (hasFailed()) { - result = result && (getFailed() - == other.getFailed()); - } - result = result && (hasStarted() == other.hasStarted()); - if (hasStarted()) { - result = result && (getStarted() - == other.getStarted()); - } - result = result && (hasStartFailed() == other.hasStartFailed()); - if (hasStartFailed()) { - result = result && (getStartFailed() - == other.getStartFailed()); - } - result = result && (hasCompleted() == other.hasCompleted()); - if (hasCompleted()) { - result = result && (getCompleted() - == other.getCompleted()); - } - result = result && (hasTotalRequested() == other.hasTotalRequested()); - if (hasTotalRequested()) { - result = result && (getTotalRequested() - == other.getTotalRequested()); - } - result = result && (hasFailureMessage() == other.hasFailureMessage()); - if (hasFailureMessage()) { - result = result && getFailureMessage() - .equals(other.getFailureMessage()); - } - result = result && (hasPlacementPolicy() == other.hasPlacementPolicy()); - if (hasPlacementPolicy()) { - result = result && (getPlacementPolicy() - == other.getPlacementPolicy()); - } - result = result && getContainersList() - .equals(other.getContainersList()); - result = result && (hasFailedRecently() == other.hasFailedRecently()); - if (hasFailedRecently()) { - result = result && (getFailedRecently() - == other.getFailedRecently()); - } - result = result && (hasNodeFailed() == other.hasNodeFailed()); - if (hasNodeFailed()) { - result = result && (getNodeFailed() - == other.getNodeFailed()); - } - result = result && (hasPreempted() == other.hasPreempted()); - if (hasPreempted()) { - result = result && (getPreempted() - == other.getPreempted()); - } - result = result && (hasPendingAntiAffineRequestCount() == other.hasPendingAntiAffineRequestCount()); - if (hasPendingAntiAffineRequestCount()) { - result = result && (getPendingAntiAffineRequestCount() - == other.getPendingAntiAffineRequestCount()); - } - result = result && (hasIsAARequestOutstanding() == other.hasIsAARequestOutstanding()); - if (hasIsAARequestOutstanding()) { - result = result && (getIsAARequestOutstanding() - == other.getIsAARequestOutstanding()); - } - 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 (hasName()) { - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - } - if (hasPriority()) { - hash = (37 * hash) + PRIORITY_FIELD_NUMBER; - hash = (53 * hash) + getPriority(); - } - if (hasDesired()) { - hash = (37 * hash) + DESIRED_FIELD_NUMBER; - hash = (53 * hash) + getDesired(); - } - if (hasActual()) { - hash = (37 * hash) + ACTUAL_FIELD_NUMBER; - hash = (53 * hash) + getActual(); - } - if (hasReleasing()) { - hash = (37 * hash) + RELEASING_FIELD_NUMBER; - hash = (53 * hash) + getReleasing(); - } - if (hasRequested()) { - hash = (37 * hash) + REQUESTED_FIELD_NUMBER; - hash = (53 * hash) + getRequested(); - } - if (hasFailed()) { - hash = (37 * hash) + FAILED_FIELD_NUMBER; - hash = (53 * hash) + getFailed(); - } - if (hasStarted()) { - hash = (37 * hash) + STARTED_FIELD_NUMBER; - hash = (53 * hash) + getStarted(); - } - if (hasStartFailed()) { - hash = (37 * hash) + STARTFAILED_FIELD_NUMBER; - hash = (53 * hash) + getStartFailed(); - } - if (hasCompleted()) { - hash = (37 * hash) + COMPLETED_FIELD_NUMBER; - hash = (53 * hash) + getCompleted(); - } - if (hasTotalRequested()) { - hash = (37 * hash) + TOTALREQUESTED_FIELD_NUMBER; - hash = (53 * hash) + getTotalRequested(); - } - if (hasFailureMessage()) { - hash = (37 * hash) + FAILUREMESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getFailureMessage().hashCode(); - } - if (hasPlacementPolicy()) { - hash = (37 * hash) + PLACEMENTPOLICY_FIELD_NUMBER; - hash = (53 * hash) + getPlacementPolicy(); - } - if (getContainersCount() > 0) { - hash = (37 * hash) + CONTAINERS_FIELD_NUMBER; - hash = (53 * hash) + getContainersList().hashCode(); - } - if (hasFailedRecently()) { - hash = (37 * hash) + FAILEDRECENTLY_FIELD_NUMBER; - hash = (53 * hash) + getFailedRecently(); - } - if (hasNodeFailed()) { - hash = (37 * hash) + NODEFAILED_FIELD_NUMBER; - hash = (53 * hash) + getNodeFailed(); - } - if (hasPreempted()) { - hash = (37 * hash) + PREEMPTED_FIELD_NUMBER; - hash = (53 * hash) + getPreempted(); - } - if (hasPendingAntiAffineRequestCount()) { - hash = (37 * hash) + PENDINGANTIAFFINEREQUESTCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getPendingAntiAffineRequestCount(); - } - if (hasIsAARequestOutstanding()) { - hash = (37 * hash) + ISAAREQUESTOUTSTANDING_FIELD_NUMBER; - hash = (53 * hash) + hashBoolean(getIsAARequestOutstanding()); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.apache.slider.api.proto.Messages.ComponentInformationProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.ComponentInformationProto 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.slider.api.proto.Messages.ComponentInformationProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.ComponentInformationProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.ComponentInformationProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.ComponentInformationProto parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.ComponentInformationProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.apache.slider.api.proto.Messages.ComponentInformationProto parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.ComponentInformationProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.ComponentInformationProto 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.slider.api.proto.Messages.ComponentInformationProto 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 org.apache.slider.api.ComponentInformationProto} - * - *
-     *
-     * see org.apache.slider.api.types.ComponentInformation
-     * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.apache.slider.api.proto.Messages.ComponentInformationProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_ComponentInformationProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_ComponentInformationProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.ComponentInformationProto.class, org.apache.slider.api.proto.Messages.ComponentInformationProto.Builder.class); - } - - // Construct using org.apache.slider.api.proto.Messages.ComponentInformationProto.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(); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - priority_ = 0; - bitField0_ = (bitField0_ & ~0x00000002); - desired_ = 0; - bitField0_ = (bitField0_ & ~0x00000004); - actual_ = 0; - bitField0_ = (bitField0_ & ~0x00000008); - releasing_ = 0; - bitField0_ = (bitField0_ & ~0x00000010); - requested_ = 0; - bitField0_ = (bitField0_ & ~0x00000020); - failed_ = 0; - bitField0_ = (bitField0_ & ~0x00000040); - started_ = 0; - bitField0_ = (bitField0_ & ~0x00000080); - startFailed_ = 0; - bitField0_ = (bitField0_ & ~0x00000100); - completed_ = 0; - bitField0_ = (bitField0_ & ~0x00000200); - totalRequested_ = 0; - bitField0_ = (bitField0_ & ~0x00000400); - failureMessage_ = ""; - bitField0_ = (bitField0_ & ~0x00000800); - placementPolicy_ = 0; - bitField0_ = (bitField0_ & ~0x00001000); - containers_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00002000); - failedRecently_ = 0; - bitField0_ = (bitField0_ & ~0x00004000); - nodeFailed_ = 0; - bitField0_ = (bitField0_ & ~0x00008000); - preempted_ = 0; - bitField0_ = (bitField0_ & ~0x00010000); - pendingAntiAffineRequestCount_ = 0; - bitField0_ = (bitField0_ & ~0x00020000); - isAARequestOutstanding_ = false; - bitField0_ = (bitField0_ & ~0x00040000); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_ComponentInformationProto_descriptor; - } - - public org.apache.slider.api.proto.Messages.ComponentInformationProto getDefaultInstanceForType() { - return org.apache.slider.api.proto.Messages.ComponentInformationProto.getDefaultInstance(); - } - - public org.apache.slider.api.proto.Messages.ComponentInformationProto build() { - org.apache.slider.api.proto.Messages.ComponentInformationProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.apache.slider.api.proto.Messages.ComponentInformationProto buildPartial() { - org.apache.slider.api.proto.Messages.ComponentInformationProto result = new org.apache.slider.api.proto.Messages.ComponentInformationProto(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.name_ = name_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.priority_ = priority_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.desired_ = desired_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.actual_ = actual_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.releasing_ = releasing_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - result.requested_ = requested_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000040; - } - result.failed_ = failed_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { - to_bitField0_ |= 0x00000080; - } - result.started_ = started_; - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { - to_bitField0_ |= 0x00000100; - } - result.startFailed_ = startFailed_; - if (((from_bitField0_ & 0x00000200) == 0x00000200)) { - to_bitField0_ |= 0x00000200; - } - result.completed_ = completed_; - if (((from_bitField0_ & 0x00000400) == 0x00000400)) { - to_bitField0_ |= 0x00000400; - } - result.totalRequested_ = totalRequested_; - if (((from_bitField0_ & 0x00000800) == 0x00000800)) { - to_bitField0_ |= 0x00000800; - } - result.failureMessage_ = failureMessage_; - if (((from_bitField0_ & 0x00001000) == 0x00001000)) { - to_bitField0_ |= 0x00001000; - } - result.placementPolicy_ = placementPolicy_; - if (((bitField0_ & 0x00002000) == 0x00002000)) { - containers_ = new com.google.protobuf.UnmodifiableLazyStringList( - containers_); - bitField0_ = (bitField0_ & ~0x00002000); - } - result.containers_ = containers_; - if (((from_bitField0_ & 0x00004000) == 0x00004000)) { - to_bitField0_ |= 0x00002000; - } - result.failedRecently_ = failedRecently_; - if (((from_bitField0_ & 0x00008000) == 0x00008000)) { - to_bitField0_ |= 0x00004000; - } - result.nodeFailed_ = nodeFailed_; - if (((from_bitField0_ & 0x00010000) == 0x00010000)) { - to_bitField0_ |= 0x00008000; - } - result.preempted_ = preempted_; - if (((from_bitField0_ & 0x00020000) == 0x00020000)) { - to_bitField0_ |= 0x00010000; - } - result.pendingAntiAffineRequestCount_ = pendingAntiAffineRequestCount_; - if (((from_bitField0_ & 0x00040000) == 0x00040000)) { - to_bitField0_ |= 0x00020000; - } - result.isAARequestOutstanding_ = isAARequestOutstanding_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.slider.api.proto.Messages.ComponentInformationProto) { - return mergeFrom((org.apache.slider.api.proto.Messages.ComponentInformationProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.apache.slider.api.proto.Messages.ComponentInformationProto other) { - if (other == org.apache.slider.api.proto.Messages.ComponentInformationProto.getDefaultInstance()) return this; - if (other.hasName()) { - bitField0_ |= 0x00000001; - name_ = other.name_; - onChanged(); - } - if (other.hasPriority()) { - setPriority(other.getPriority()); - } - if (other.hasDesired()) { - setDesired(other.getDesired()); - } - if (other.hasActual()) { - setActual(other.getActual()); - } - if (other.hasReleasing()) { - setReleasing(other.getReleasing()); - } - if (other.hasRequested()) { - setRequested(other.getRequested()); - } - if (other.hasFailed()) { - setFailed(other.getFailed()); - } - if (other.hasStarted()) { - setStarted(other.getStarted()); - } - if (other.hasStartFailed()) { - setStartFailed(other.getStartFailed()); - } - if (other.hasCompleted()) { - setCompleted(other.getCompleted()); - } - if (other.hasTotalRequested()) { - setTotalRequested(other.getTotalRequested()); - } - if (other.hasFailureMessage()) { - bitField0_ |= 0x00000800; - failureMessage_ = other.failureMessage_; - onChanged(); - } - if (other.hasPlacementPolicy()) { - setPlacementPolicy(other.getPlacementPolicy()); - } - if (!other.containers_.isEmpty()) { - if (containers_.isEmpty()) { - containers_ = other.containers_; - bitField0_ = (bitField0_ & ~0x00002000); - } else { - ensureContainersIsMutable(); - containers_.addAll(other.containers_); - } - onChanged(); - } - if (other.hasFailedRecently()) { - setFailedRecently(other.getFailedRecently()); - } - if (other.hasNodeFailed()) { - setNodeFailed(other.getNodeFailed()); - } - if (other.hasPreempted()) { - setPreempted(other.getPreempted()); - } - if (other.hasPendingAntiAffineRequestCount()) { - setPendingAntiAffineRequestCount(other.getPendingAntiAffineRequestCount()); - } - if (other.hasIsAARequestOutstanding()) { - setIsAARequestOutstanding(other.getIsAARequestOutstanding()); - } - 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.slider.api.proto.Messages.ComponentInformationProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.slider.api.proto.Messages.ComponentInformationProto) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional string name = 1; - private java.lang.Object name_ = ""; - /** - * optional string name = 1; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = value; - onChanged(); - return this; - } - /** - * optional string name = 1; - */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000001); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * optional string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = value; - onChanged(); - return this; - } - - // optional int32 priority = 2; - private int priority_ ; - /** - * optional int32 priority = 2; - */ - public boolean hasPriority() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional int32 priority = 2; - */ - public int getPriority() { - return priority_; - } - /** - * optional int32 priority = 2; - */ - public Builder setPriority(int value) { - bitField0_ |= 0x00000002; - priority_ = value; - onChanged(); - return this; - } - /** - * optional int32 priority = 2; - */ - public Builder clearPriority() { - bitField0_ = (bitField0_ & ~0x00000002); - priority_ = 0; - onChanged(); - return this; - } - - // optional int32 desired = 3; - private int desired_ ; - /** - * optional int32 desired = 3; - */ - public boolean hasDesired() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional int32 desired = 3; - */ - public int getDesired() { - return desired_; - } - /** - * optional int32 desired = 3; - */ - public Builder setDesired(int value) { - bitField0_ |= 0x00000004; - desired_ = value; - onChanged(); - return this; - } - /** - * optional int32 desired = 3; - */ - public Builder clearDesired() { - bitField0_ = (bitField0_ & ~0x00000004); - desired_ = 0; - onChanged(); - return this; - } - - // optional int32 actual = 4; - private int actual_ ; - /** - * optional int32 actual = 4; - */ - public boolean hasActual() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional int32 actual = 4; - */ - public int getActual() { - return actual_; - } - /** - * optional int32 actual = 4; - */ - public Builder setActual(int value) { - bitField0_ |= 0x00000008; - actual_ = value; - onChanged(); - return this; - } - /** - * optional int32 actual = 4; - */ - public Builder clearActual() { - bitField0_ = (bitField0_ & ~0x00000008); - actual_ = 0; - onChanged(); - return this; - } - - // optional int32 releasing = 5; - private int releasing_ ; - /** - * optional int32 releasing = 5; - */ - public boolean hasReleasing() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional int32 releasing = 5; - */ - public int getReleasing() { - return releasing_; - } - /** - * optional int32 releasing = 5; - */ - public Builder setReleasing(int value) { - bitField0_ |= 0x00000010; - releasing_ = value; - onChanged(); - return this; - } - /** - * optional int32 releasing = 5; - */ - public Builder clearReleasing() { - bitField0_ = (bitField0_ & ~0x00000010); - releasing_ = 0; - onChanged(); - return this; - } - - // optional int32 requested = 6; - private int requested_ ; - /** - * optional int32 requested = 6; - */ - public boolean hasRequested() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional int32 requested = 6; - */ - public int getRequested() { - return requested_; - } - /** - * optional int32 requested = 6; - */ - public Builder setRequested(int value) { - bitField0_ |= 0x00000020; - requested_ = value; - onChanged(); - return this; - } - /** - * optional int32 requested = 6; - */ - public Builder clearRequested() { - bitField0_ = (bitField0_ & ~0x00000020); - requested_ = 0; - onChanged(); - return this; - } - - // optional int32 failed = 7; - private int failed_ ; - /** - * optional int32 failed = 7; - */ - public boolean hasFailed() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional int32 failed = 7; - */ - public int getFailed() { - return failed_; - } - /** - * optional int32 failed = 7; - */ - public Builder setFailed(int value) { - bitField0_ |= 0x00000040; - failed_ = value; - onChanged(); - return this; - } - /** - * optional int32 failed = 7; - */ - public Builder clearFailed() { - bitField0_ = (bitField0_ & ~0x00000040); - failed_ = 0; - onChanged(); - return this; - } - - // optional int32 started = 8; - private int started_ ; - /** - * optional int32 started = 8; - */ - public boolean hasStarted() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - /** - * optional int32 started = 8; - */ - public int getStarted() { - return started_; - } - /** - * optional int32 started = 8; - */ - public Builder setStarted(int value) { - bitField0_ |= 0x00000080; - started_ = value; - onChanged(); - return this; - } - /** - * optional int32 started = 8; - */ - public Builder clearStarted() { - bitField0_ = (bitField0_ & ~0x00000080); - started_ = 0; - onChanged(); - return this; - } - - // optional int32 startFailed = 9; - private int startFailed_ ; - /** - * optional int32 startFailed = 9; - */ - public boolean hasStartFailed() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } - /** - * optional int32 startFailed = 9; - */ - public int getStartFailed() { - return startFailed_; - } - /** - * optional int32 startFailed = 9; - */ - public Builder setStartFailed(int value) { - bitField0_ |= 0x00000100; - startFailed_ = value; - onChanged(); - return this; - } - /** - * optional int32 startFailed = 9; - */ - public Builder clearStartFailed() { - bitField0_ = (bitField0_ & ~0x00000100); - startFailed_ = 0; - onChanged(); - return this; - } - - // optional int32 completed = 10; - private int completed_ ; - /** - * optional int32 completed = 10; - */ - public boolean hasCompleted() { - return ((bitField0_ & 0x00000200) == 0x00000200); - } - /** - * optional int32 completed = 10; - */ - public int getCompleted() { - return completed_; - } - /** - * optional int32 completed = 10; - */ - public Builder setCompleted(int value) { - bitField0_ |= 0x00000200; - completed_ = value; - onChanged(); - return this; - } - /** - * optional int32 completed = 10; - */ - public Builder clearCompleted() { - bitField0_ = (bitField0_ & ~0x00000200); - completed_ = 0; - onChanged(); - return this; - } - - // optional int32 totalRequested = 11; - private int totalRequested_ ; - /** - * optional int32 totalRequested = 11; - */ - public boolean hasTotalRequested() { - return ((bitField0_ & 0x00000400) == 0x00000400); - } - /** - * optional int32 totalRequested = 11; - */ - public int getTotalRequested() { - return totalRequested_; - } - /** - * optional int32 totalRequested = 11; - */ - public Builder setTotalRequested(int value) { - bitField0_ |= 0x00000400; - totalRequested_ = value; - onChanged(); - return this; - } - /** - * optional int32 totalRequested = 11; - */ - public Builder clearTotalRequested() { - bitField0_ = (bitField0_ & ~0x00000400); - totalRequested_ = 0; - onChanged(); - return this; - } - - // optional string failureMessage = 12; - private java.lang.Object failureMessage_ = ""; - /** - * optional string failureMessage = 12; - */ - public boolean hasFailureMessage() { - return ((bitField0_ & 0x00000800) == 0x00000800); - } - /** - * optional string failureMessage = 12; - */ - public java.lang.String getFailureMessage() { - java.lang.Object ref = failureMessage_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - failureMessage_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string failureMessage = 12; - */ - public com.google.protobuf.ByteString - getFailureMessageBytes() { - java.lang.Object ref = failureMessage_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - failureMessage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string failureMessage = 12; - */ - public Builder setFailureMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000800; - failureMessage_ = value; - onChanged(); - return this; - } - /** - * optional string failureMessage = 12; - */ - public Builder clearFailureMessage() { - bitField0_ = (bitField0_ & ~0x00000800); - failureMessage_ = getDefaultInstance().getFailureMessage(); - onChanged(); - return this; - } - /** - * optional string failureMessage = 12; - */ - public Builder setFailureMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000800; - failureMessage_ = value; - onChanged(); - return this; - } - - // optional int32 placementPolicy = 13; - private int placementPolicy_ ; - /** - * optional int32 placementPolicy = 13; - */ - public boolean hasPlacementPolicy() { - return ((bitField0_ & 0x00001000) == 0x00001000); - } - /** - * optional int32 placementPolicy = 13; - */ - public int getPlacementPolicy() { - return placementPolicy_; - } - /** - * optional int32 placementPolicy = 13; - */ - public Builder setPlacementPolicy(int value) { - bitField0_ |= 0x00001000; - placementPolicy_ = value; - onChanged(); - return this; - } - /** - * optional int32 placementPolicy = 13; - */ - public Builder clearPlacementPolicy() { - bitField0_ = (bitField0_ & ~0x00001000); - placementPolicy_ = 0; - onChanged(); - return this; - } - - // repeated string containers = 14; - private com.google.protobuf.LazyStringList containers_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureContainersIsMutable() { - if (!((bitField0_ & 0x00002000) == 0x00002000)) { - containers_ = new com.google.protobuf.LazyStringArrayList(containers_); - bitField0_ |= 0x00002000; - } - } - /** - * repeated string containers = 14; - */ - public java.util.List - getContainersList() { - return java.util.Collections.unmodifiableList(containers_); - } - /** - * repeated string containers = 14; - */ - public int getContainersCount() { - return containers_.size(); - } - /** - * repeated string containers = 14; - */ - public java.lang.String getContainers(int index) { - return containers_.get(index); - } - /** - * repeated string containers = 14; - */ - public com.google.protobuf.ByteString - getContainersBytes(int index) { - return containers_.getByteString(index); - } - /** - * repeated string containers = 14; - */ - public Builder setContainers( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureContainersIsMutable(); - containers_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string containers = 14; - */ - public Builder addContainers( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureContainersIsMutable(); - containers_.add(value); - onChanged(); - return this; - } - /** - * repeated string containers = 14; - */ - public Builder addAllContainers( - java.lang.Iterable values) { - ensureContainersIsMutable(); - super.addAll(values, containers_); - onChanged(); - return this; - } - /** - * repeated string containers = 14; - */ - public Builder clearContainers() { - containers_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00002000); - onChanged(); - return this; - } - /** - * repeated string containers = 14; - */ - public Builder addContainersBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureContainersIsMutable(); - containers_.add(value); - onChanged(); - return this; - } - - // optional int32 failedRecently = 15; - private int failedRecently_ ; - /** - * optional int32 failedRecently = 15; - */ - public boolean hasFailedRecently() { - return ((bitField0_ & 0x00004000) == 0x00004000); - } - /** - * optional int32 failedRecently = 15; - */ - public int getFailedRecently() { - return failedRecently_; - } - /** - * optional int32 failedRecently = 15; - */ - public Builder setFailedRecently(int value) { - bitField0_ |= 0x00004000; - failedRecently_ = value; - onChanged(); - return this; - } - /** - * optional int32 failedRecently = 15; - */ - public Builder clearFailedRecently() { - bitField0_ = (bitField0_ & ~0x00004000); - failedRecently_ = 0; - onChanged(); - return this; - } - - // optional int32 nodeFailed = 16; - private int nodeFailed_ ; - /** - * optional int32 nodeFailed = 16; - */ - public boolean hasNodeFailed() { - return ((bitField0_ & 0x00008000) == 0x00008000); - } - /** - * optional int32 nodeFailed = 16; - */ - public int getNodeFailed() { - return nodeFailed_; - } - /** - * optional int32 nodeFailed = 16; - */ - public Builder setNodeFailed(int value) { - bitField0_ |= 0x00008000; - nodeFailed_ = value; - onChanged(); - return this; - } - /** - * optional int32 nodeFailed = 16; - */ - public Builder clearNodeFailed() { - bitField0_ = (bitField0_ & ~0x00008000); - nodeFailed_ = 0; - onChanged(); - return this; - } - - // optional int32 preempted = 17; - private int preempted_ ; - /** - * optional int32 preempted = 17; - */ - public boolean hasPreempted() { - return ((bitField0_ & 0x00010000) == 0x00010000); - } - /** - * optional int32 preempted = 17; - */ - public int getPreempted() { - return preempted_; - } - /** - * optional int32 preempted = 17; - */ - public Builder setPreempted(int value) { - bitField0_ |= 0x00010000; - preempted_ = value; - onChanged(); - return this; - } - /** - * optional int32 preempted = 17; - */ - public Builder clearPreempted() { - bitField0_ = (bitField0_ & ~0x00010000); - preempted_ = 0; - onChanged(); - return this; - } - - // optional int32 pendingAntiAffineRequestCount = 18; - private int pendingAntiAffineRequestCount_ ; - /** - * optional int32 pendingAntiAffineRequestCount = 18; - */ - public boolean hasPendingAntiAffineRequestCount() { - return ((bitField0_ & 0x00020000) == 0x00020000); - } - /** - * optional int32 pendingAntiAffineRequestCount = 18; - */ - public int getPendingAntiAffineRequestCount() { - return pendingAntiAffineRequestCount_; - } - /** - * optional int32 pendingAntiAffineRequestCount = 18; - */ - public Builder setPendingAntiAffineRequestCount(int value) { - bitField0_ |= 0x00020000; - pendingAntiAffineRequestCount_ = value; - onChanged(); - return this; - } - /** - * optional int32 pendingAntiAffineRequestCount = 18; - */ - public Builder clearPendingAntiAffineRequestCount() { - bitField0_ = (bitField0_ & ~0x00020000); - pendingAntiAffineRequestCount_ = 0; - onChanged(); - return this; - } - - // optional bool isAARequestOutstanding = 19; - private boolean isAARequestOutstanding_ ; - /** - * optional bool isAARequestOutstanding = 19; - */ - public boolean hasIsAARequestOutstanding() { - return ((bitField0_ & 0x00040000) == 0x00040000); - } - /** - * optional bool isAARequestOutstanding = 19; - */ - public boolean getIsAARequestOutstanding() { - return isAARequestOutstanding_; - } - /** - * optional bool isAARequestOutstanding = 19; - */ - public Builder setIsAARequestOutstanding(boolean value) { - bitField0_ |= 0x00040000; - isAARequestOutstanding_ = value; - onChanged(); - return this; - } - /** - * optional bool isAARequestOutstanding = 19; - */ - public Builder clearIsAARequestOutstanding() { - bitField0_ = (bitField0_ & ~0x00040000); - isAARequestOutstanding_ = false; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:org.apache.slider.api.ComponentInformationProto) - } - - static { - defaultInstance = new ComponentInformationProto(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.apache.slider.api.ComponentInformationProto) - } - - public interface ContainerInformationProtoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional string containerId = 1; - /** - * optional string containerId = 1; - */ - boolean hasContainerId(); - /** - * optional string containerId = 1; - */ - java.lang.String getContainerId(); - /** - * optional string containerId = 1; - */ - com.google.protobuf.ByteString - getContainerIdBytes(); - - // optional string component = 2; - /** - * optional string component = 2; - */ - boolean hasComponent(); - /** - * optional string component = 2; - */ - java.lang.String getComponent(); - /** - * optional string component = 2; - */ - com.google.protobuf.ByteString - getComponentBytes(); - - // optional bool released = 3; - /** - * optional bool released = 3; - */ - boolean hasReleased(); - /** - * optional bool released = 3; - */ - boolean getReleased(); - - // optional int32 state = 4; - /** - * optional int32 state = 4; - */ - boolean hasState(); - /** - * optional int32 state = 4; - */ - int getState(); - - // optional int32 exitCode = 5; - /** - * optional int32 exitCode = 5; - */ - boolean hasExitCode(); - /** - * optional int32 exitCode = 5; - */ - int getExitCode(); - - // optional string diagnostics = 6; - /** - * optional string diagnostics = 6; - */ - boolean hasDiagnostics(); - /** - * optional string diagnostics = 6; - */ - java.lang.String getDiagnostics(); - /** - * optional string diagnostics = 6; - */ - com.google.protobuf.ByteString - getDiagnosticsBytes(); - - // optional int64 createTime = 7; - /** - * optional int64 createTime = 7; - */ - boolean hasCreateTime(); - /** - * optional int64 createTime = 7; - */ - long getCreateTime(); - - // optional int64 startTime = 8; - /** - * optional int64 startTime = 8; - */ - boolean hasStartTime(); - /** - * optional int64 startTime = 8; - */ - long getStartTime(); - - // repeated string output = 9; - /** - * repeated string output = 9; - */ - java.util.List - getOutputList(); - /** - * repeated string output = 9; - */ - int getOutputCount(); - /** - * repeated string output = 9; - */ - java.lang.String getOutput(int index); - /** - * repeated string output = 9; - */ - com.google.protobuf.ByteString - getOutputBytes(int index); - - // optional string host = 10; - /** - * optional string host = 10; - */ - boolean hasHost(); - /** - * optional string host = 10; - */ - java.lang.String getHost(); - /** - * optional string host = 10; - */ - com.google.protobuf.ByteString - getHostBytes(); - - // optional string hostURL = 11; - /** - * optional string hostURL = 11; - */ - boolean hasHostURL(); - /** - * optional string hostURL = 11; - */ - java.lang.String getHostURL(); - /** - * optional string hostURL = 11; - */ - com.google.protobuf.ByteString - getHostURLBytes(); - - // optional string placement = 12; - /** - * optional string placement = 12; - */ - boolean hasPlacement(); - /** - * optional string placement = 12; - */ - java.lang.String getPlacement(); - /** - * optional string placement = 12; - */ - com.google.protobuf.ByteString - getPlacementBytes(); - - // optional string appVersion = 13; - /** - * optional string appVersion = 13; - */ - boolean hasAppVersion(); - /** - * optional string appVersion = 13; - */ - java.lang.String getAppVersion(); - /** - * optional string appVersion = 13; - */ - com.google.protobuf.ByteString - getAppVersionBytes(); - } - /** - * Protobuf type {@code org.apache.slider.api.ContainerInformationProto} - * - *
-   *
-   * see org.apache.slider.api.types.ContainerInformation
-   * 
- */ - public static final class ContainerInformationProto extends - com.google.protobuf.GeneratedMessage - implements ContainerInformationProtoOrBuilder { - // Use ContainerInformationProto.newBuilder() to construct. - private ContainerInformationProto(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private ContainerInformationProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final ContainerInformationProto defaultInstance; - public static ContainerInformationProto getDefaultInstance() { - return defaultInstance; - } - - public ContainerInformationProto getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ContainerInformationProto( - 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; - containerId_ = input.readBytes(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - component_ = input.readBytes(); - break; - } - case 24: { - bitField0_ |= 0x00000004; - released_ = input.readBool(); - break; - } - case 32: { - bitField0_ |= 0x00000008; - state_ = input.readInt32(); - break; - } - case 40: { - bitField0_ |= 0x00000010; - exitCode_ = input.readInt32(); - break; - } - case 50: { - bitField0_ |= 0x00000020; - diagnostics_ = input.readBytes(); - break; - } - case 56: { - bitField0_ |= 0x00000040; - createTime_ = input.readInt64(); - break; - } - case 64: { - bitField0_ |= 0x00000080; - startTime_ = input.readInt64(); - break; - } - case 74: { - if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { - output_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000100; - } - output_.add(input.readBytes()); - break; - } - case 82: { - bitField0_ |= 0x00000100; - host_ = input.readBytes(); - break; - } - case 90: { - bitField0_ |= 0x00000200; - hostURL_ = input.readBytes(); - break; - } - case 98: { - bitField0_ |= 0x00000400; - placement_ = input.readBytes(); - break; - } - case 106: { - bitField0_ |= 0x00000800; - appVersion_ = 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_ & 0x00000100) == 0x00000100)) { - output_ = new com.google.protobuf.UnmodifiableLazyStringList(output_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_ContainerInformationProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_ContainerInformationProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.ContainerInformationProto.class, org.apache.slider.api.proto.Messages.ContainerInformationProto.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ContainerInformationProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ContainerInformationProto(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // optional string containerId = 1; - public static final int CONTAINERID_FIELD_NUMBER = 1; - private java.lang.Object containerId_; - /** - * optional string containerId = 1; - */ - public boolean hasContainerId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string containerId = 1; - */ - public java.lang.String getContainerId() { - java.lang.Object ref = containerId_; - 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()) { - containerId_ = s; - } - return s; - } - } - /** - * optional string containerId = 1; - */ - public com.google.protobuf.ByteString - getContainerIdBytes() { - java.lang.Object ref = containerId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - containerId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string component = 2; - public static final int COMPONENT_FIELD_NUMBER = 2; - private java.lang.Object component_; - /** - * optional string component = 2; - */ - public boolean hasComponent() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string component = 2; - */ - public java.lang.String getComponent() { - java.lang.Object ref = component_; - 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()) { - component_ = s; - } - return s; - } - } - /** - * optional string component = 2; - */ - public com.google.protobuf.ByteString - getComponentBytes() { - java.lang.Object ref = component_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - component_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional bool released = 3; - public static final int RELEASED_FIELD_NUMBER = 3; - private boolean released_; - /** - * optional bool released = 3; - */ - public boolean hasReleased() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional bool released = 3; - */ - public boolean getReleased() { - return released_; - } - - // optional int32 state = 4; - public static final int STATE_FIELD_NUMBER = 4; - private int state_; - /** - * optional int32 state = 4; - */ - public boolean hasState() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional int32 state = 4; - */ - public int getState() { - return state_; - } - - // optional int32 exitCode = 5; - public static final int EXITCODE_FIELD_NUMBER = 5; - private int exitCode_; - /** - * optional int32 exitCode = 5; - */ - public boolean hasExitCode() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional int32 exitCode = 5; - */ - public int getExitCode() { - return exitCode_; - } - - // optional string diagnostics = 6; - public static final int DIAGNOSTICS_FIELD_NUMBER = 6; - private java.lang.Object diagnostics_; - /** - * optional string diagnostics = 6; - */ - public boolean hasDiagnostics() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional string diagnostics = 6; - */ - public java.lang.String getDiagnostics() { - java.lang.Object ref = diagnostics_; - 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()) { - diagnostics_ = s; - } - return s; - } - } - /** - * optional string diagnostics = 6; - */ - public com.google.protobuf.ByteString - getDiagnosticsBytes() { - java.lang.Object ref = diagnostics_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - diagnostics_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional int64 createTime = 7; - public static final int CREATETIME_FIELD_NUMBER = 7; - private long createTime_; - /** - * optional int64 createTime = 7; - */ - public boolean hasCreateTime() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional int64 createTime = 7; - */ - public long getCreateTime() { - return createTime_; - } - - // optional int64 startTime = 8; - public static final int STARTTIME_FIELD_NUMBER = 8; - private long startTime_; - /** - * optional int64 startTime = 8; - */ - public boolean hasStartTime() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - /** - * optional int64 startTime = 8; - */ - public long getStartTime() { - return startTime_; - } - - // repeated string output = 9; - public static final int OUTPUT_FIELD_NUMBER = 9; - private com.google.protobuf.LazyStringList output_; - /** - * repeated string output = 9; - */ - public java.util.List - getOutputList() { - return output_; - } - /** - * repeated string output = 9; - */ - public int getOutputCount() { - return output_.size(); - } - /** - * repeated string output = 9; - */ - public java.lang.String getOutput(int index) { - return output_.get(index); - } - /** - * repeated string output = 9; - */ - public com.google.protobuf.ByteString - getOutputBytes(int index) { - return output_.getByteString(index); - } - - // optional string host = 10; - public static final int HOST_FIELD_NUMBER = 10; - private java.lang.Object host_; - /** - * optional string host = 10; - */ - public boolean hasHost() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } - /** - * optional string host = 10; - */ - public java.lang.String getHost() { - java.lang.Object ref = host_; - 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()) { - host_ = s; - } - return s; - } - } - /** - * optional string host = 10; - */ - public com.google.protobuf.ByteString - getHostBytes() { - java.lang.Object ref = host_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - host_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string hostURL = 11; - public static final int HOSTURL_FIELD_NUMBER = 11; - private java.lang.Object hostURL_; - /** - * optional string hostURL = 11; - */ - public boolean hasHostURL() { - return ((bitField0_ & 0x00000200) == 0x00000200); - } - /** - * optional string hostURL = 11; - */ - public java.lang.String getHostURL() { - java.lang.Object ref = hostURL_; - 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()) { - hostURL_ = s; - } - return s; - } - } - /** - * optional string hostURL = 11; - */ - public com.google.protobuf.ByteString - getHostURLBytes() { - java.lang.Object ref = hostURL_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - hostURL_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string placement = 12; - public static final int PLACEMENT_FIELD_NUMBER = 12; - private java.lang.Object placement_; - /** - * optional string placement = 12; - */ - public boolean hasPlacement() { - return ((bitField0_ & 0x00000400) == 0x00000400); - } - /** - * optional string placement = 12; - */ - public java.lang.String getPlacement() { - java.lang.Object ref = placement_; - 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()) { - placement_ = s; - } - return s; - } - } - /** - * optional string placement = 12; - */ - public com.google.protobuf.ByteString - getPlacementBytes() { - java.lang.Object ref = placement_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - placement_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string appVersion = 13; - public static final int APPVERSION_FIELD_NUMBER = 13; - private java.lang.Object appVersion_; - /** - * optional string appVersion = 13; - */ - public boolean hasAppVersion() { - return ((bitField0_ & 0x00000800) == 0x00000800); - } - /** - * optional string appVersion = 13; - */ - public java.lang.String getAppVersion() { - java.lang.Object ref = appVersion_; - 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()) { - appVersion_ = s; - } - return s; - } - } - /** - * optional string appVersion = 13; - */ - public com.google.protobuf.ByteString - getAppVersionBytes() { - java.lang.Object ref = appVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - appVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private void initFields() { - containerId_ = ""; - component_ = ""; - released_ = false; - state_ = 0; - exitCode_ = 0; - diagnostics_ = ""; - createTime_ = 0L; - startTime_ = 0L; - output_ = com.google.protobuf.LazyStringArrayList.EMPTY; - host_ = ""; - hostURL_ = ""; - placement_ = ""; - appVersion_ = ""; - } - 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, getContainerIdBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getComponentBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBool(3, released_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeInt32(4, state_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeInt32(5, exitCode_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBytes(6, getDiagnosticsBytes()); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeInt64(7, createTime_); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeInt64(8, startTime_); - } - for (int i = 0; i < output_.size(); i++) { - output.writeBytes(9, output_.getByteString(i)); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - output.writeBytes(10, getHostBytes()); - } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - output.writeBytes(11, getHostURLBytes()); - } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - output.writeBytes(12, getPlacementBytes()); - } - if (((bitField0_ & 0x00000800) == 0x00000800)) { - output.writeBytes(13, getAppVersionBytes()); - } - 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, getContainerIdBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getComponentBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, released_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, state_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, exitCode_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, getDiagnosticsBytes()); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(7, createTime_); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(8, startTime_); - } - { - int dataSize = 0; - for (int i = 0; i < output_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(output_.getByteString(i)); - } - size += dataSize; - size += 1 * getOutputList().size(); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(10, getHostBytes()); - } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(11, getHostURLBytes()); - } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(12, getPlacementBytes()); - } - if (((bitField0_ & 0x00000800) == 0x00000800)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(13, getAppVersionBytes()); - } - 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.slider.api.proto.Messages.ContainerInformationProto)) { - return super.equals(obj); - } - org.apache.slider.api.proto.Messages.ContainerInformationProto other = (org.apache.slider.api.proto.Messages.ContainerInformationProto) obj; - - boolean result = true; - result = result && (hasContainerId() == other.hasContainerId()); - if (hasContainerId()) { - result = result && getContainerId() - .equals(other.getContainerId()); - } - result = result && (hasComponent() == other.hasComponent()); - if (hasComponent()) { - result = result && getComponent() - .equals(other.getComponent()); - } - result = result && (hasReleased() == other.hasReleased()); - if (hasReleased()) { - result = result && (getReleased() - == other.getReleased()); - } - result = result && (hasState() == other.hasState()); - if (hasState()) { - result = result && (getState() - == other.getState()); - } - result = result && (hasExitCode() == other.hasExitCode()); - if (hasExitCode()) { - result = result && (getExitCode() - == other.getExitCode()); - } - result = result && (hasDiagnostics() == other.hasDiagnostics()); - if (hasDiagnostics()) { - result = result && getDiagnostics() - .equals(other.getDiagnostics()); - } - result = result && (hasCreateTime() == other.hasCreateTime()); - if (hasCreateTime()) { - result = result && (getCreateTime() - == other.getCreateTime()); - } - result = result && (hasStartTime() == other.hasStartTime()); - if (hasStartTime()) { - result = result && (getStartTime() - == other.getStartTime()); - } - result = result && getOutputList() - .equals(other.getOutputList()); - result = result && (hasHost() == other.hasHost()); - if (hasHost()) { - result = result && getHost() - .equals(other.getHost()); - } - result = result && (hasHostURL() == other.hasHostURL()); - if (hasHostURL()) { - result = result && getHostURL() - .equals(other.getHostURL()); - } - result = result && (hasPlacement() == other.hasPlacement()); - if (hasPlacement()) { - result = result && getPlacement() - .equals(other.getPlacement()); - } - result = result && (hasAppVersion() == other.hasAppVersion()); - if (hasAppVersion()) { - result = result && getAppVersion() - .equals(other.getAppVersion()); - } - 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 (hasContainerId()) { - hash = (37 * hash) + CONTAINERID_FIELD_NUMBER; - hash = (53 * hash) + getContainerId().hashCode(); - } - if (hasComponent()) { - hash = (37 * hash) + COMPONENT_FIELD_NUMBER; - hash = (53 * hash) + getComponent().hashCode(); - } - if (hasReleased()) { - hash = (37 * hash) + RELEASED_FIELD_NUMBER; - hash = (53 * hash) + hashBoolean(getReleased()); - } - if (hasState()) { - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + getState(); - } - if (hasExitCode()) { - hash = (37 * hash) + EXITCODE_FIELD_NUMBER; - hash = (53 * hash) + getExitCode(); - } - if (hasDiagnostics()) { - hash = (37 * hash) + DIAGNOSTICS_FIELD_NUMBER; - hash = (53 * hash) + getDiagnostics().hashCode(); - } - if (hasCreateTime()) { - hash = (37 * hash) + CREATETIME_FIELD_NUMBER; - hash = (53 * hash) + hashLong(getCreateTime()); - } - if (hasStartTime()) { - hash = (37 * hash) + STARTTIME_FIELD_NUMBER; - hash = (53 * hash) + hashLong(getStartTime()); - } - if (getOutputCount() > 0) { - hash = (37 * hash) + OUTPUT_FIELD_NUMBER; - hash = (53 * hash) + getOutputList().hashCode(); - } - if (hasHost()) { - hash = (37 * hash) + HOST_FIELD_NUMBER; - hash = (53 * hash) + getHost().hashCode(); - } - if (hasHostURL()) { - hash = (37 * hash) + HOSTURL_FIELD_NUMBER; - hash = (53 * hash) + getHostURL().hashCode(); - } - if (hasPlacement()) { - hash = (37 * hash) + PLACEMENT_FIELD_NUMBER; - hash = (53 * hash) + getPlacement().hashCode(); - } - if (hasAppVersion()) { - hash = (37 * hash) + APPVERSION_FIELD_NUMBER; - hash = (53 * hash) + getAppVersion().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.apache.slider.api.proto.Messages.ContainerInformationProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.ContainerInformationProto 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.slider.api.proto.Messages.ContainerInformationProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.ContainerInformationProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.ContainerInformationProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.ContainerInformationProto parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.ContainerInformationProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.apache.slider.api.proto.Messages.ContainerInformationProto parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.ContainerInformationProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.ContainerInformationProto 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.slider.api.proto.Messages.ContainerInformationProto 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 org.apache.slider.api.ContainerInformationProto} - * - *
-     *
-     * see org.apache.slider.api.types.ContainerInformation
-     * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.apache.slider.api.proto.Messages.ContainerInformationProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_ContainerInformationProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_ContainerInformationProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.ContainerInformationProto.class, org.apache.slider.api.proto.Messages.ContainerInformationProto.Builder.class); - } - - // Construct using org.apache.slider.api.proto.Messages.ContainerInformationProto.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(); - containerId_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - component_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - released_ = false; - bitField0_ = (bitField0_ & ~0x00000004); - state_ = 0; - bitField0_ = (bitField0_ & ~0x00000008); - exitCode_ = 0; - bitField0_ = (bitField0_ & ~0x00000010); - diagnostics_ = ""; - bitField0_ = (bitField0_ & ~0x00000020); - createTime_ = 0L; - bitField0_ = (bitField0_ & ~0x00000040); - startTime_ = 0L; - bitField0_ = (bitField0_ & ~0x00000080); - output_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000100); - host_ = ""; - bitField0_ = (bitField0_ & ~0x00000200); - hostURL_ = ""; - bitField0_ = (bitField0_ & ~0x00000400); - placement_ = ""; - bitField0_ = (bitField0_ & ~0x00000800); - appVersion_ = ""; - bitField0_ = (bitField0_ & ~0x00001000); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_ContainerInformationProto_descriptor; - } - - public org.apache.slider.api.proto.Messages.ContainerInformationProto getDefaultInstanceForType() { - return org.apache.slider.api.proto.Messages.ContainerInformationProto.getDefaultInstance(); - } - - public org.apache.slider.api.proto.Messages.ContainerInformationProto build() { - org.apache.slider.api.proto.Messages.ContainerInformationProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.apache.slider.api.proto.Messages.ContainerInformationProto buildPartial() { - org.apache.slider.api.proto.Messages.ContainerInformationProto result = new org.apache.slider.api.proto.Messages.ContainerInformationProto(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.containerId_ = containerId_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.component_ = component_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.released_ = released_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.state_ = state_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.exitCode_ = exitCode_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - result.diagnostics_ = diagnostics_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000040; - } - result.createTime_ = createTime_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { - to_bitField0_ |= 0x00000080; - } - result.startTime_ = startTime_; - if (((bitField0_ & 0x00000100) == 0x00000100)) { - output_ = new com.google.protobuf.UnmodifiableLazyStringList( - output_); - bitField0_ = (bitField0_ & ~0x00000100); - } - result.output_ = output_; - if (((from_bitField0_ & 0x00000200) == 0x00000200)) { - to_bitField0_ |= 0x00000100; - } - result.host_ = host_; - if (((from_bitField0_ & 0x00000400) == 0x00000400)) { - to_bitField0_ |= 0x00000200; - } - result.hostURL_ = hostURL_; - if (((from_bitField0_ & 0x00000800) == 0x00000800)) { - to_bitField0_ |= 0x00000400; - } - result.placement_ = placement_; - if (((from_bitField0_ & 0x00001000) == 0x00001000)) { - to_bitField0_ |= 0x00000800; - } - result.appVersion_ = appVersion_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.slider.api.proto.Messages.ContainerInformationProto) { - return mergeFrom((org.apache.slider.api.proto.Messages.ContainerInformationProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.apache.slider.api.proto.Messages.ContainerInformationProto other) { - if (other == org.apache.slider.api.proto.Messages.ContainerInformationProto.getDefaultInstance()) return this; - if (other.hasContainerId()) { - bitField0_ |= 0x00000001; - containerId_ = other.containerId_; - onChanged(); - } - if (other.hasComponent()) { - bitField0_ |= 0x00000002; - component_ = other.component_; - onChanged(); - } - if (other.hasReleased()) { - setReleased(other.getReleased()); - } - if (other.hasState()) { - setState(other.getState()); - } - if (other.hasExitCode()) { - setExitCode(other.getExitCode()); - } - if (other.hasDiagnostics()) { - bitField0_ |= 0x00000020; - diagnostics_ = other.diagnostics_; - onChanged(); - } - if (other.hasCreateTime()) { - setCreateTime(other.getCreateTime()); - } - if (other.hasStartTime()) { - setStartTime(other.getStartTime()); - } - if (!other.output_.isEmpty()) { - if (output_.isEmpty()) { - output_ = other.output_; - bitField0_ = (bitField0_ & ~0x00000100); - } else { - ensureOutputIsMutable(); - output_.addAll(other.output_); - } - onChanged(); - } - if (other.hasHost()) { - bitField0_ |= 0x00000200; - host_ = other.host_; - onChanged(); - } - if (other.hasHostURL()) { - bitField0_ |= 0x00000400; - hostURL_ = other.hostURL_; - onChanged(); - } - if (other.hasPlacement()) { - bitField0_ |= 0x00000800; - placement_ = other.placement_; - onChanged(); - } - if (other.hasAppVersion()) { - bitField0_ |= 0x00001000; - appVersion_ = other.appVersion_; - 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.slider.api.proto.Messages.ContainerInformationProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.slider.api.proto.Messages.ContainerInformationProto) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional string containerId = 1; - private java.lang.Object containerId_ = ""; - /** - * optional string containerId = 1; - */ - public boolean hasContainerId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string containerId = 1; - */ - public java.lang.String getContainerId() { - java.lang.Object ref = containerId_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - containerId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string containerId = 1; - */ - public com.google.protobuf.ByteString - getContainerIdBytes() { - java.lang.Object ref = containerId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - containerId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string containerId = 1; - */ - public Builder setContainerId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - containerId_ = value; - onChanged(); - return this; - } - /** - * optional string containerId = 1; - */ - public Builder clearContainerId() { - bitField0_ = (bitField0_ & ~0x00000001); - containerId_ = getDefaultInstance().getContainerId(); - onChanged(); - return this; - } - /** - * optional string containerId = 1; - */ - public Builder setContainerIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - containerId_ = value; - onChanged(); - return this; - } - - // optional string component = 2; - private java.lang.Object component_ = ""; - /** - * optional string component = 2; - */ - public boolean hasComponent() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string component = 2; - */ - public java.lang.String getComponent() { - java.lang.Object ref = component_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - component_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string component = 2; - */ - public com.google.protobuf.ByteString - getComponentBytes() { - java.lang.Object ref = component_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - component_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string component = 2; - */ - public Builder setComponent( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - component_ = value; - onChanged(); - return this; - } - /** - * optional string component = 2; - */ - public Builder clearComponent() { - bitField0_ = (bitField0_ & ~0x00000002); - component_ = getDefaultInstance().getComponent(); - onChanged(); - return this; - } - /** - * optional string component = 2; - */ - public Builder setComponentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - component_ = value; - onChanged(); - return this; - } - - // optional bool released = 3; - private boolean released_ ; - /** - * optional bool released = 3; - */ - public boolean hasReleased() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional bool released = 3; - */ - public boolean getReleased() { - return released_; - } - /** - * optional bool released = 3; - */ - public Builder setReleased(boolean value) { - bitField0_ |= 0x00000004; - released_ = value; - onChanged(); - return this; - } - /** - * optional bool released = 3; - */ - public Builder clearReleased() { - bitField0_ = (bitField0_ & ~0x00000004); - released_ = false; - onChanged(); - return this; - } - - // optional int32 state = 4; - private int state_ ; - /** - * optional int32 state = 4; - */ - public boolean hasState() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional int32 state = 4; - */ - public int getState() { - return state_; - } - /** - * optional int32 state = 4; - */ - public Builder setState(int value) { - bitField0_ |= 0x00000008; - state_ = value; - onChanged(); - return this; - } - /** - * optional int32 state = 4; - */ - public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000008); - state_ = 0; - onChanged(); - return this; - } - - // optional int32 exitCode = 5; - private int exitCode_ ; - /** - * optional int32 exitCode = 5; - */ - public boolean hasExitCode() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional int32 exitCode = 5; - */ - public int getExitCode() { - return exitCode_; - } - /** - * optional int32 exitCode = 5; - */ - public Builder setExitCode(int value) { - bitField0_ |= 0x00000010; - exitCode_ = value; - onChanged(); - return this; - } - /** - * optional int32 exitCode = 5; - */ - public Builder clearExitCode() { - bitField0_ = (bitField0_ & ~0x00000010); - exitCode_ = 0; - onChanged(); - return this; - } - - // optional string diagnostics = 6; - private java.lang.Object diagnostics_ = ""; - /** - * optional string diagnostics = 6; - */ - public boolean hasDiagnostics() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional string diagnostics = 6; - */ - public java.lang.String getDiagnostics() { - java.lang.Object ref = diagnostics_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - diagnostics_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string diagnostics = 6; - */ - public com.google.protobuf.ByteString - getDiagnosticsBytes() { - java.lang.Object ref = diagnostics_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - diagnostics_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string diagnostics = 6; - */ - public Builder setDiagnostics( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - diagnostics_ = value; - onChanged(); - return this; - } - /** - * optional string diagnostics = 6; - */ - public Builder clearDiagnostics() { - bitField0_ = (bitField0_ & ~0x00000020); - diagnostics_ = getDefaultInstance().getDiagnostics(); - onChanged(); - return this; - } - /** - * optional string diagnostics = 6; - */ - public Builder setDiagnosticsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - diagnostics_ = value; - onChanged(); - return this; - } - - // optional int64 createTime = 7; - private long createTime_ ; - /** - * optional int64 createTime = 7; - */ - public boolean hasCreateTime() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional int64 createTime = 7; - */ - public long getCreateTime() { - return createTime_; - } - /** - * optional int64 createTime = 7; - */ - public Builder setCreateTime(long value) { - bitField0_ |= 0x00000040; - createTime_ = value; - onChanged(); - return this; - } - /** - * optional int64 createTime = 7; - */ - public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000040); - createTime_ = 0L; - onChanged(); - return this; - } - - // optional int64 startTime = 8; - private long startTime_ ; - /** - * optional int64 startTime = 8; - */ - public boolean hasStartTime() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - /** - * optional int64 startTime = 8; - */ - public long getStartTime() { - return startTime_; - } - /** - * optional int64 startTime = 8; - */ - public Builder setStartTime(long value) { - bitField0_ |= 0x00000080; - startTime_ = value; - onChanged(); - return this; - } - /** - * optional int64 startTime = 8; - */ - public Builder clearStartTime() { - bitField0_ = (bitField0_ & ~0x00000080); - startTime_ = 0L; - onChanged(); - return this; - } - - // repeated string output = 9; - private com.google.protobuf.LazyStringList output_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureOutputIsMutable() { - if (!((bitField0_ & 0x00000100) == 0x00000100)) { - output_ = new com.google.protobuf.LazyStringArrayList(output_); - bitField0_ |= 0x00000100; - } - } - /** - * repeated string output = 9; - */ - public java.util.List - getOutputList() { - return java.util.Collections.unmodifiableList(output_); - } - /** - * repeated string output = 9; - */ - public int getOutputCount() { - return output_.size(); - } - /** - * repeated string output = 9; - */ - public java.lang.String getOutput(int index) { - return output_.get(index); - } - /** - * repeated string output = 9; - */ - public com.google.protobuf.ByteString - getOutputBytes(int index) { - return output_.getByteString(index); - } - /** - * repeated string output = 9; - */ - public Builder setOutput( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutputIsMutable(); - output_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string output = 9; - */ - public Builder addOutput( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutputIsMutable(); - output_.add(value); - onChanged(); - return this; - } - /** - * repeated string output = 9; - */ - public Builder addAllOutput( - java.lang.Iterable values) { - ensureOutputIsMutable(); - super.addAll(values, output_); - onChanged(); - return this; - } - /** - * repeated string output = 9; - */ - public Builder clearOutput() { - output_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000100); - onChanged(); - return this; - } - /** - * repeated string output = 9; - */ - public Builder addOutputBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutputIsMutable(); - output_.add(value); - onChanged(); - return this; - } - - // optional string host = 10; - private java.lang.Object host_ = ""; - /** - * optional string host = 10; - */ - public boolean hasHost() { - return ((bitField0_ & 0x00000200) == 0x00000200); - } - /** - * optional string host = 10; - */ - public java.lang.String getHost() { - java.lang.Object ref = host_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - host_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string host = 10; - */ - public com.google.protobuf.ByteString - getHostBytes() { - java.lang.Object ref = host_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - host_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string host = 10; - */ - public Builder setHost( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000200; - host_ = value; - onChanged(); - return this; - } - /** - * optional string host = 10; - */ - public Builder clearHost() { - bitField0_ = (bitField0_ & ~0x00000200); - host_ = getDefaultInstance().getHost(); - onChanged(); - return this; - } - /** - * optional string host = 10; - */ - public Builder setHostBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000200; - host_ = value; - onChanged(); - return this; - } - - // optional string hostURL = 11; - private java.lang.Object hostURL_ = ""; - /** - * optional string hostURL = 11; - */ - public boolean hasHostURL() { - return ((bitField0_ & 0x00000400) == 0x00000400); - } - /** - * optional string hostURL = 11; - */ - public java.lang.String getHostURL() { - java.lang.Object ref = hostURL_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - hostURL_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string hostURL = 11; - */ - public com.google.protobuf.ByteString - getHostURLBytes() { - java.lang.Object ref = hostURL_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - hostURL_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string hostURL = 11; - */ - public Builder setHostURL( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000400; - hostURL_ = value; - onChanged(); - return this; - } - /** - * optional string hostURL = 11; - */ - public Builder clearHostURL() { - bitField0_ = (bitField0_ & ~0x00000400); - hostURL_ = getDefaultInstance().getHostURL(); - onChanged(); - return this; - } - /** - * optional string hostURL = 11; - */ - public Builder setHostURLBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000400; - hostURL_ = value; - onChanged(); - return this; - } - - // optional string placement = 12; - private java.lang.Object placement_ = ""; - /** - * optional string placement = 12; - */ - public boolean hasPlacement() { - return ((bitField0_ & 0x00000800) == 0x00000800); - } - /** - * optional string placement = 12; - */ - public java.lang.String getPlacement() { - java.lang.Object ref = placement_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - placement_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string placement = 12; - */ - public com.google.protobuf.ByteString - getPlacementBytes() { - java.lang.Object ref = placement_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - placement_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string placement = 12; - */ - public Builder setPlacement( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000800; - placement_ = value; - onChanged(); - return this; - } - /** - * optional string placement = 12; - */ - public Builder clearPlacement() { - bitField0_ = (bitField0_ & ~0x00000800); - placement_ = getDefaultInstance().getPlacement(); - onChanged(); - return this; - } - /** - * optional string placement = 12; - */ - public Builder setPlacementBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000800; - placement_ = value; - onChanged(); - return this; - } - - // optional string appVersion = 13; - private java.lang.Object appVersion_ = ""; - /** - * optional string appVersion = 13; - */ - public boolean hasAppVersion() { - return ((bitField0_ & 0x00001000) == 0x00001000); - } - /** - * optional string appVersion = 13; - */ - public java.lang.String getAppVersion() { - java.lang.Object ref = appVersion_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - appVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string appVersion = 13; - */ - public com.google.protobuf.ByteString - getAppVersionBytes() { - java.lang.Object ref = appVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - appVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string appVersion = 13; - */ - public Builder setAppVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00001000; - appVersion_ = value; - onChanged(); - return this; - } - /** - * optional string appVersion = 13; - */ - public Builder clearAppVersion() { - bitField0_ = (bitField0_ & ~0x00001000); - appVersion_ = getDefaultInstance().getAppVersion(); - onChanged(); - return this; - } - /** - * optional string appVersion = 13; - */ - public Builder setAppVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00001000; - appVersion_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:org.apache.slider.api.ContainerInformationProto) - } - - static { - defaultInstance = new ContainerInformationProto(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.apache.slider.api.ContainerInformationProto) - } - - public interface PingInformationProtoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional string text = 1; - /** - * optional string text = 1; - */ - boolean hasText(); - /** - * optional string text = 1; - */ - java.lang.String getText(); - /** - * optional string text = 1; - */ - com.google.protobuf.ByteString - getTextBytes(); - - // optional string verb = 2; - /** - * optional string verb = 2; - */ - boolean hasVerb(); - /** - * optional string verb = 2; - */ - java.lang.String getVerb(); - /** - * optional string verb = 2; - */ - com.google.protobuf.ByteString - getVerbBytes(); - - // optional string body = 3; - /** - * optional string body = 3; - */ - boolean hasBody(); - /** - * optional string body = 3; - */ - java.lang.String getBody(); - /** - * optional string body = 3; - */ - com.google.protobuf.ByteString - getBodyBytes(); - - // optional int64 time = 4; - /** - * optional int64 time = 4; - */ - boolean hasTime(); - /** - * optional int64 time = 4; - */ - long getTime(); - } - /** - * Protobuf type {@code org.apache.slider.api.PingInformationProto} - * - *
-   *
-   * see org.apache.slider.api.types.PingInformation
-   * 
- */ - public static final class PingInformationProto extends - com.google.protobuf.GeneratedMessage - implements PingInformationProtoOrBuilder { - // Use PingInformationProto.newBuilder() to construct. - private PingInformationProto(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private PingInformationProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final PingInformationProto defaultInstance; - public static PingInformationProto getDefaultInstance() { - return defaultInstance; - } - - public PingInformationProto getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PingInformationProto( - 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; - text_ = input.readBytes(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - verb_ = input.readBytes(); - break; - } - case 26: { - bitField0_ |= 0x00000004; - body_ = input.readBytes(); - break; - } - case 32: { - bitField0_ |= 0x00000008; - time_ = input.readInt64(); - 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.slider.api.proto.Messages.internal_static_org_apache_slider_api_PingInformationProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_PingInformationProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.PingInformationProto.class, org.apache.slider.api.proto.Messages.PingInformationProto.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public PingInformationProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PingInformationProto(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // optional string text = 1; - public static final int TEXT_FIELD_NUMBER = 1; - private java.lang.Object text_; - /** - * optional string text = 1; - */ - public boolean hasText() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string text = 1; - */ - public java.lang.String getText() { - java.lang.Object ref = text_; - 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()) { - text_ = s; - } - return s; - } - } - /** - * optional string text = 1; - */ - public com.google.protobuf.ByteString - getTextBytes() { - java.lang.Object ref = text_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - text_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string verb = 2; - public static final int VERB_FIELD_NUMBER = 2; - private java.lang.Object verb_; - /** - * optional string verb = 2; - */ - public boolean hasVerb() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string verb = 2; - */ - public java.lang.String getVerb() { - java.lang.Object ref = verb_; - 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()) { - verb_ = s; - } - return s; - } - } - /** - * optional string verb = 2; - */ - public com.google.protobuf.ByteString - getVerbBytes() { - java.lang.Object ref = verb_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - verb_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional string body = 3; - public static final int BODY_FIELD_NUMBER = 3; - private java.lang.Object body_; - /** - * optional string body = 3; - */ - public boolean hasBody() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string body = 3; - */ - public java.lang.String getBody() { - java.lang.Object ref = body_; - 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()) { - body_ = s; - } - return s; - } - } - /** - * optional string body = 3; - */ - public com.google.protobuf.ByteString - getBodyBytes() { - java.lang.Object ref = body_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - body_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional int64 time = 4; - public static final int TIME_FIELD_NUMBER = 4; - private long time_; - /** - * optional int64 time = 4; - */ - public boolean hasTime() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional int64 time = 4; - */ - public long getTime() { - return time_; - } - - private void initFields() { - text_ = ""; - verb_ = ""; - body_ = ""; - time_ = 0L; - } - 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, getTextBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getVerbBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getBodyBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeInt64(4, time_); - } - 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, getTextBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getVerbBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getBodyBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, time_); - } - 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.slider.api.proto.Messages.PingInformationProto)) { - return super.equals(obj); - } - org.apache.slider.api.proto.Messages.PingInformationProto other = (org.apache.slider.api.proto.Messages.PingInformationProto) obj; - - boolean result = true; - result = result && (hasText() == other.hasText()); - if (hasText()) { - result = result && getText() - .equals(other.getText()); - } - result = result && (hasVerb() == other.hasVerb()); - if (hasVerb()) { - result = result && getVerb() - .equals(other.getVerb()); - } - result = result && (hasBody() == other.hasBody()); - if (hasBody()) { - result = result && getBody() - .equals(other.getBody()); - } - result = result && (hasTime() == other.hasTime()); - if (hasTime()) { - result = result && (getTime() - == other.getTime()); - } - 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 (hasText()) { - hash = (37 * hash) + TEXT_FIELD_NUMBER; - hash = (53 * hash) + getText().hashCode(); - } - if (hasVerb()) { - hash = (37 * hash) + VERB_FIELD_NUMBER; - hash = (53 * hash) + getVerb().hashCode(); - } - if (hasBody()) { - hash = (37 * hash) + BODY_FIELD_NUMBER; - hash = (53 * hash) + getBody().hashCode(); - } - if (hasTime()) { - hash = (37 * hash) + TIME_FIELD_NUMBER; - hash = (53 * hash) + hashLong(getTime()); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.apache.slider.api.proto.Messages.PingInformationProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.PingInformationProto 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.slider.api.proto.Messages.PingInformationProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.PingInformationProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.PingInformationProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.PingInformationProto parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.PingInformationProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.apache.slider.api.proto.Messages.PingInformationProto parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.PingInformationProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.PingInformationProto 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.slider.api.proto.Messages.PingInformationProto 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 org.apache.slider.api.PingInformationProto} - * - *
-     *
-     * see org.apache.slider.api.types.PingInformation
-     * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.apache.slider.api.proto.Messages.PingInformationProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_PingInformationProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_PingInformationProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.PingInformationProto.class, org.apache.slider.api.proto.Messages.PingInformationProto.Builder.class); - } - - // Construct using org.apache.slider.api.proto.Messages.PingInformationProto.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(); - text_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - verb_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - body_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - time_ = 0L; - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_PingInformationProto_descriptor; - } - - public org.apache.slider.api.proto.Messages.PingInformationProto getDefaultInstanceForType() { - return org.apache.slider.api.proto.Messages.PingInformationProto.getDefaultInstance(); - } - - public org.apache.slider.api.proto.Messages.PingInformationProto build() { - org.apache.slider.api.proto.Messages.PingInformationProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.apache.slider.api.proto.Messages.PingInformationProto buildPartial() { - org.apache.slider.api.proto.Messages.PingInformationProto result = new org.apache.slider.api.proto.Messages.PingInformationProto(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.text_ = text_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.verb_ = verb_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.body_ = body_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.time_ = time_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.slider.api.proto.Messages.PingInformationProto) { - return mergeFrom((org.apache.slider.api.proto.Messages.PingInformationProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.apache.slider.api.proto.Messages.PingInformationProto other) { - if (other == org.apache.slider.api.proto.Messages.PingInformationProto.getDefaultInstance()) return this; - if (other.hasText()) { - bitField0_ |= 0x00000001; - text_ = other.text_; - onChanged(); - } - if (other.hasVerb()) { - bitField0_ |= 0x00000002; - verb_ = other.verb_; - onChanged(); - } - if (other.hasBody()) { - bitField0_ |= 0x00000004; - body_ = other.body_; - onChanged(); - } - if (other.hasTime()) { - setTime(other.getTime()); - } - 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.slider.api.proto.Messages.PingInformationProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.slider.api.proto.Messages.PingInformationProto) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional string text = 1; - private java.lang.Object text_ = ""; - /** - * optional string text = 1; - */ - public boolean hasText() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string text = 1; - */ - public java.lang.String getText() { - java.lang.Object ref = text_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - text_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string text = 1; - */ - public com.google.protobuf.ByteString - getTextBytes() { - java.lang.Object ref = text_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - text_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string text = 1; - */ - public Builder setText( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - text_ = value; - onChanged(); - return this; - } - /** - * optional string text = 1; - */ - public Builder clearText() { - bitField0_ = (bitField0_ & ~0x00000001); - text_ = getDefaultInstance().getText(); - onChanged(); - return this; - } - /** - * optional string text = 1; - */ - public Builder setTextBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - text_ = value; - onChanged(); - return this; - } - - // optional string verb = 2; - private java.lang.Object verb_ = ""; - /** - * optional string verb = 2; - */ - public boolean hasVerb() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string verb = 2; - */ - public java.lang.String getVerb() { - java.lang.Object ref = verb_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - verb_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string verb = 2; - */ - public com.google.protobuf.ByteString - getVerbBytes() { - java.lang.Object ref = verb_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - verb_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string verb = 2; - */ - public Builder setVerb( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - verb_ = value; - onChanged(); - return this; - } - /** - * optional string verb = 2; - */ - public Builder clearVerb() { - bitField0_ = (bitField0_ & ~0x00000002); - verb_ = getDefaultInstance().getVerb(); - onChanged(); - return this; - } - /** - * optional string verb = 2; - */ - public Builder setVerbBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - verb_ = value; - onChanged(); - return this; - } - - // optional string body = 3; - private java.lang.Object body_ = ""; - /** - * optional string body = 3; - */ - public boolean hasBody() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string body = 3; - */ - public java.lang.String getBody() { - java.lang.Object ref = body_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - body_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string body = 3; - */ - public com.google.protobuf.ByteString - getBodyBytes() { - java.lang.Object ref = body_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - body_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string body = 3; - */ - public Builder setBody( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - body_ = value; - onChanged(); - return this; - } - /** - * optional string body = 3; - */ - public Builder clearBody() { - bitField0_ = (bitField0_ & ~0x00000004); - body_ = getDefaultInstance().getBody(); - onChanged(); - return this; - } - /** - * optional string body = 3; - */ - public Builder setBodyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - body_ = value; - onChanged(); - return this; - } - - // optional int64 time = 4; - private long time_ ; - /** - * optional int64 time = 4; - */ - public boolean hasTime() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional int64 time = 4; - */ - public long getTime() { - return time_; - } - /** - * optional int64 time = 4; - */ - public Builder setTime(long value) { - bitField0_ |= 0x00000008; - time_ = value; - onChanged(); - return this; - } - /** - * optional int64 time = 4; - */ - public Builder clearTime() { - bitField0_ = (bitField0_ & ~0x00000008); - time_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:org.apache.slider.api.PingInformationProto) - } - - static { - defaultInstance = new PingInformationProto(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.apache.slider.api.PingInformationProto) - } - - public interface NodeEntryInformationProtoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // required int32 priority = 1; - /** - * required int32 priority = 1; - */ - boolean hasPriority(); - /** - * required int32 priority = 1; - */ - int getPriority(); - - // required int32 requested = 2; - /** - * required int32 requested = 2; - */ - boolean hasRequested(); - /** - * required int32 requested = 2; - */ - int getRequested(); - - // required int32 starting = 3; - /** - * required int32 starting = 3; - */ - boolean hasStarting(); - /** - * required int32 starting = 3; - */ - int getStarting(); - - // required int32 startFailed = 4; - /** - * required int32 startFailed = 4; - */ - boolean hasStartFailed(); - /** - * required int32 startFailed = 4; - */ - int getStartFailed(); - - // required int32 failed = 5; - /** - * required int32 failed = 5; - */ - boolean hasFailed(); - /** - * required int32 failed = 5; - */ - int getFailed(); - - // required int32 failedRecently = 6; - /** - * required int32 failedRecently = 6; - */ - boolean hasFailedRecently(); - /** - * required int32 failedRecently = 6; - */ - int getFailedRecently(); - - // required int32 preempted = 7; - /** - * required int32 preempted = 7; - */ - boolean hasPreempted(); - /** - * required int32 preempted = 7; - */ - int getPreempted(); - - // required int32 live = 8; - /** - * required int32 live = 8; - */ - boolean hasLive(); - /** - * required int32 live = 8; - */ - int getLive(); - - // required int32 releasing = 9; - /** - * required int32 releasing = 9; - */ - boolean hasReleasing(); - /** - * required int32 releasing = 9; - */ - int getReleasing(); - - // required int64 lastUsed = 10; - /** - * required int64 lastUsed = 10; - */ - boolean hasLastUsed(); - /** - * required int64 lastUsed = 10; - */ - long getLastUsed(); - - // required string name = 11; - /** - * required string name = 11; - */ - boolean hasName(); - /** - * required string name = 11; - */ - java.lang.String getName(); - /** - * required string name = 11; - */ - com.google.protobuf.ByteString - getNameBytes(); - } - /** - * Protobuf type {@code org.apache.slider.api.NodeEntryInformationProto} - */ - public static final class NodeEntryInformationProto extends - com.google.protobuf.GeneratedMessage - implements NodeEntryInformationProtoOrBuilder { - // Use NodeEntryInformationProto.newBuilder() to construct. - private NodeEntryInformationProto(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private NodeEntryInformationProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final NodeEntryInformationProto defaultInstance; - public static NodeEntryInformationProto getDefaultInstance() { - return defaultInstance; - } - - public NodeEntryInformationProto getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NodeEntryInformationProto( - 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; - priority_ = input.readInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - requested_ = input.readInt32(); - break; - } - case 24: { - bitField0_ |= 0x00000004; - starting_ = input.readInt32(); - break; - } - case 32: { - bitField0_ |= 0x00000008; - startFailed_ = input.readInt32(); - break; - } - case 40: { - bitField0_ |= 0x00000010; - failed_ = input.readInt32(); - break; - } - case 48: { - bitField0_ |= 0x00000020; - failedRecently_ = input.readInt32(); - break; - } - case 56: { - bitField0_ |= 0x00000040; - preempted_ = input.readInt32(); - break; - } - case 64: { - bitField0_ |= 0x00000080; - live_ = input.readInt32(); - break; - } - case 72: { - bitField0_ |= 0x00000100; - releasing_ = input.readInt32(); - break; - } - case 80: { - bitField0_ |= 0x00000200; - lastUsed_ = input.readInt64(); - break; - } - case 90: { - bitField0_ |= 0x00000400; - name_ = 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.slider.api.proto.Messages.internal_static_org_apache_slider_api_NodeEntryInformationProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_NodeEntryInformationProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.NodeEntryInformationProto.class, org.apache.slider.api.proto.Messages.NodeEntryInformationProto.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public NodeEntryInformationProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeEntryInformationProto(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // required int32 priority = 1; - public static final int PRIORITY_FIELD_NUMBER = 1; - private int priority_; - /** - * required int32 priority = 1; - */ - public boolean hasPriority() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required int32 priority = 1; - */ - public int getPriority() { - return priority_; - } - - // required int32 requested = 2; - public static final int REQUESTED_FIELD_NUMBER = 2; - private int requested_; - /** - * required int32 requested = 2; - */ - public boolean hasRequested() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required int32 requested = 2; - */ - public int getRequested() { - return requested_; - } - - // required int32 starting = 3; - public static final int STARTING_FIELD_NUMBER = 3; - private int starting_; - /** - * required int32 starting = 3; - */ - public boolean hasStarting() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * required int32 starting = 3; - */ - public int getStarting() { - return starting_; - } - - // required int32 startFailed = 4; - public static final int STARTFAILED_FIELD_NUMBER = 4; - private int startFailed_; - /** - * required int32 startFailed = 4; - */ - public boolean hasStartFailed() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * required int32 startFailed = 4; - */ - public int getStartFailed() { - return startFailed_; - } - - // required int32 failed = 5; - public static final int FAILED_FIELD_NUMBER = 5; - private int failed_; - /** - * required int32 failed = 5; - */ - public boolean hasFailed() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * required int32 failed = 5; - */ - public int getFailed() { - return failed_; - } - - // required int32 failedRecently = 6; - public static final int FAILEDRECENTLY_FIELD_NUMBER = 6; - private int failedRecently_; - /** - * required int32 failedRecently = 6; - */ - public boolean hasFailedRecently() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * required int32 failedRecently = 6; - */ - public int getFailedRecently() { - return failedRecently_; - } - - // required int32 preempted = 7; - public static final int PREEMPTED_FIELD_NUMBER = 7; - private int preempted_; - /** - * required int32 preempted = 7; - */ - public boolean hasPreempted() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * required int32 preempted = 7; - */ - public int getPreempted() { - return preempted_; - } - - // required int32 live = 8; - public static final int LIVE_FIELD_NUMBER = 8; - private int live_; - /** - * required int32 live = 8; - */ - public boolean hasLive() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - /** - * required int32 live = 8; - */ - public int getLive() { - return live_; - } - - // required int32 releasing = 9; - public static final int RELEASING_FIELD_NUMBER = 9; - private int releasing_; - /** - * required int32 releasing = 9; - */ - public boolean hasReleasing() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } - /** - * required int32 releasing = 9; - */ - public int getReleasing() { - return releasing_; - } - - // required int64 lastUsed = 10; - public static final int LASTUSED_FIELD_NUMBER = 10; - private long lastUsed_; - /** - * required int64 lastUsed = 10; - */ - public boolean hasLastUsed() { - return ((bitField0_ & 0x00000200) == 0x00000200); - } - /** - * required int64 lastUsed = 10; - */ - public long getLastUsed() { - return lastUsed_; - } - - // required string name = 11; - public static final int NAME_FIELD_NUMBER = 11; - private java.lang.Object name_; - /** - * required string name = 11; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000400) == 0x00000400); - } - /** - * required string name = 11; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } - } - /** - * required string name = 11; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private void initFields() { - priority_ = 0; - requested_ = 0; - starting_ = 0; - startFailed_ = 0; - failed_ = 0; - failedRecently_ = 0; - preempted_ = 0; - live_ = 0; - releasing_ = 0; - lastUsed_ = 0L; - name_ = ""; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (!hasPriority()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasRequested()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasStarting()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasStartFailed()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasFailed()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasFailedRecently()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasPreempted()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasLive()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasReleasing()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasLastUsed()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasName()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeInt32(1, priority_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeInt32(2, requested_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeInt32(3, starting_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeInt32(4, startFailed_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeInt32(5, failed_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeInt32(6, failedRecently_); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeInt32(7, preempted_); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeInt32(8, live_); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - output.writeInt32(9, releasing_); - } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - output.writeInt64(10, lastUsed_); - } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - output.writeBytes(11, getNameBytes()); - } - 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, priority_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, requested_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, starting_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, startFailed_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, failed_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(6, failedRecently_); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(7, preempted_); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(8, live_); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(9, releasing_); - } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(10, lastUsed_); - } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(11, getNameBytes()); - } - 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.slider.api.proto.Messages.NodeEntryInformationProto)) { - return super.equals(obj); - } - org.apache.slider.api.proto.Messages.NodeEntryInformationProto other = (org.apache.slider.api.proto.Messages.NodeEntryInformationProto) obj; - - boolean result = true; - result = result && (hasPriority() == other.hasPriority()); - if (hasPriority()) { - result = result && (getPriority() - == other.getPriority()); - } - result = result && (hasRequested() == other.hasRequested()); - if (hasRequested()) { - result = result && (getRequested() - == other.getRequested()); - } - result = result && (hasStarting() == other.hasStarting()); - if (hasStarting()) { - result = result && (getStarting() - == other.getStarting()); - } - result = result && (hasStartFailed() == other.hasStartFailed()); - if (hasStartFailed()) { - result = result && (getStartFailed() - == other.getStartFailed()); - } - result = result && (hasFailed() == other.hasFailed()); - if (hasFailed()) { - result = result && (getFailed() - == other.getFailed()); - } - result = result && (hasFailedRecently() == other.hasFailedRecently()); - if (hasFailedRecently()) { - result = result && (getFailedRecently() - == other.getFailedRecently()); - } - result = result && (hasPreempted() == other.hasPreempted()); - if (hasPreempted()) { - result = result && (getPreempted() - == other.getPreempted()); - } - result = result && (hasLive() == other.hasLive()); - if (hasLive()) { - result = result && (getLive() - == other.getLive()); - } - result = result && (hasReleasing() == other.hasReleasing()); - if (hasReleasing()) { - result = result && (getReleasing() - == other.getReleasing()); - } - result = result && (hasLastUsed() == other.hasLastUsed()); - if (hasLastUsed()) { - result = result && (getLastUsed() - == other.getLastUsed()); - } - result = result && (hasName() == other.hasName()); - if (hasName()) { - result = result && getName() - .equals(other.getName()); - } - 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 (hasPriority()) { - hash = (37 * hash) + PRIORITY_FIELD_NUMBER; - hash = (53 * hash) + getPriority(); - } - if (hasRequested()) { - hash = (37 * hash) + REQUESTED_FIELD_NUMBER; - hash = (53 * hash) + getRequested(); - } - if (hasStarting()) { - hash = (37 * hash) + STARTING_FIELD_NUMBER; - hash = (53 * hash) + getStarting(); - } - if (hasStartFailed()) { - hash = (37 * hash) + STARTFAILED_FIELD_NUMBER; - hash = (53 * hash) + getStartFailed(); - } - if (hasFailed()) { - hash = (37 * hash) + FAILED_FIELD_NUMBER; - hash = (53 * hash) + getFailed(); - } - if (hasFailedRecently()) { - hash = (37 * hash) + FAILEDRECENTLY_FIELD_NUMBER; - hash = (53 * hash) + getFailedRecently(); - } - if (hasPreempted()) { - hash = (37 * hash) + PREEMPTED_FIELD_NUMBER; - hash = (53 * hash) + getPreempted(); - } - if (hasLive()) { - hash = (37 * hash) + LIVE_FIELD_NUMBER; - hash = (53 * hash) + getLive(); - } - if (hasReleasing()) { - hash = (37 * hash) + RELEASING_FIELD_NUMBER; - hash = (53 * hash) + getReleasing(); - } - if (hasLastUsed()) { - hash = (37 * hash) + LASTUSED_FIELD_NUMBER; - hash = (53 * hash) + hashLong(getLastUsed()); - } - if (hasName()) { - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.apache.slider.api.proto.Messages.NodeEntryInformationProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.NodeEntryInformationProto 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.slider.api.proto.Messages.NodeEntryInformationProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.NodeEntryInformationProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.NodeEntryInformationProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.NodeEntryInformationProto parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.NodeEntryInformationProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.apache.slider.api.proto.Messages.NodeEntryInformationProto parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.NodeEntryInformationProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.NodeEntryInformationProto 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.slider.api.proto.Messages.NodeEntryInformationProto 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 org.apache.slider.api.NodeEntryInformationProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.apache.slider.api.proto.Messages.NodeEntryInformationProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_NodeEntryInformationProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_NodeEntryInformationProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.NodeEntryInformationProto.class, org.apache.slider.api.proto.Messages.NodeEntryInformationProto.Builder.class); - } - - // Construct using org.apache.slider.api.proto.Messages.NodeEntryInformationProto.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(); - priority_ = 0; - bitField0_ = (bitField0_ & ~0x00000001); - requested_ = 0; - bitField0_ = (bitField0_ & ~0x00000002); - starting_ = 0; - bitField0_ = (bitField0_ & ~0x00000004); - startFailed_ = 0; - bitField0_ = (bitField0_ & ~0x00000008); - failed_ = 0; - bitField0_ = (bitField0_ & ~0x00000010); - failedRecently_ = 0; - bitField0_ = (bitField0_ & ~0x00000020); - preempted_ = 0; - bitField0_ = (bitField0_ & ~0x00000040); - live_ = 0; - bitField0_ = (bitField0_ & ~0x00000080); - releasing_ = 0; - bitField0_ = (bitField0_ & ~0x00000100); - lastUsed_ = 0L; - bitField0_ = (bitField0_ & ~0x00000200); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000400); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_NodeEntryInformationProto_descriptor; - } - - public org.apache.slider.api.proto.Messages.NodeEntryInformationProto getDefaultInstanceForType() { - return org.apache.slider.api.proto.Messages.NodeEntryInformationProto.getDefaultInstance(); - } - - public org.apache.slider.api.proto.Messages.NodeEntryInformationProto build() { - org.apache.slider.api.proto.Messages.NodeEntryInformationProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.apache.slider.api.proto.Messages.NodeEntryInformationProto buildPartial() { - org.apache.slider.api.proto.Messages.NodeEntryInformationProto result = new org.apache.slider.api.proto.Messages.NodeEntryInformationProto(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.priority_ = priority_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.requested_ = requested_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.starting_ = starting_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.startFailed_ = startFailed_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.failed_ = failed_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - result.failedRecently_ = failedRecently_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000040; - } - result.preempted_ = preempted_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { - to_bitField0_ |= 0x00000080; - } - result.live_ = live_; - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { - to_bitField0_ |= 0x00000100; - } - result.releasing_ = releasing_; - if (((from_bitField0_ & 0x00000200) == 0x00000200)) { - to_bitField0_ |= 0x00000200; - } - result.lastUsed_ = lastUsed_; - if (((from_bitField0_ & 0x00000400) == 0x00000400)) { - to_bitField0_ |= 0x00000400; - } - result.name_ = name_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.slider.api.proto.Messages.NodeEntryInformationProto) { - return mergeFrom((org.apache.slider.api.proto.Messages.NodeEntryInformationProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.apache.slider.api.proto.Messages.NodeEntryInformationProto other) { - if (other == org.apache.slider.api.proto.Messages.NodeEntryInformationProto.getDefaultInstance()) return this; - if (other.hasPriority()) { - setPriority(other.getPriority()); - } - if (other.hasRequested()) { - setRequested(other.getRequested()); - } - if (other.hasStarting()) { - setStarting(other.getStarting()); - } - if (other.hasStartFailed()) { - setStartFailed(other.getStartFailed()); - } - if (other.hasFailed()) { - setFailed(other.getFailed()); - } - if (other.hasFailedRecently()) { - setFailedRecently(other.getFailedRecently()); - } - if (other.hasPreempted()) { - setPreempted(other.getPreempted()); - } - if (other.hasLive()) { - setLive(other.getLive()); - } - if (other.hasReleasing()) { - setReleasing(other.getReleasing()); - } - if (other.hasLastUsed()) { - setLastUsed(other.getLastUsed()); - } - if (other.hasName()) { - bitField0_ |= 0x00000400; - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasPriority()) { - - return false; - } - if (!hasRequested()) { - - return false; - } - if (!hasStarting()) { - - return false; - } - if (!hasStartFailed()) { - - return false; - } - if (!hasFailed()) { - - return false; - } - if (!hasFailedRecently()) { - - return false; - } - if (!hasPreempted()) { - - return false; - } - if (!hasLive()) { - - return false; - } - if (!hasReleasing()) { - - return false; - } - if (!hasLastUsed()) { - - return false; - } - if (!hasName()) { - - return false; - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.apache.slider.api.proto.Messages.NodeEntryInformationProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.slider.api.proto.Messages.NodeEntryInformationProto) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // required int32 priority = 1; - private int priority_ ; - /** - * required int32 priority = 1; - */ - public boolean hasPriority() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required int32 priority = 1; - */ - public int getPriority() { - return priority_; - } - /** - * required int32 priority = 1; - */ - public Builder setPriority(int value) { - bitField0_ |= 0x00000001; - priority_ = value; - onChanged(); - return this; - } - /** - * required int32 priority = 1; - */ - public Builder clearPriority() { - bitField0_ = (bitField0_ & ~0x00000001); - priority_ = 0; - onChanged(); - return this; - } - - // required int32 requested = 2; - private int requested_ ; - /** - * required int32 requested = 2; - */ - public boolean hasRequested() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required int32 requested = 2; - */ - public int getRequested() { - return requested_; - } - /** - * required int32 requested = 2; - */ - public Builder setRequested(int value) { - bitField0_ |= 0x00000002; - requested_ = value; - onChanged(); - return this; - } - /** - * required int32 requested = 2; - */ - public Builder clearRequested() { - bitField0_ = (bitField0_ & ~0x00000002); - requested_ = 0; - onChanged(); - return this; - } - - // required int32 starting = 3; - private int starting_ ; - /** - * required int32 starting = 3; - */ - public boolean hasStarting() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * required int32 starting = 3; - */ - public int getStarting() { - return starting_; - } - /** - * required int32 starting = 3; - */ - public Builder setStarting(int value) { - bitField0_ |= 0x00000004; - starting_ = value; - onChanged(); - return this; - } - /** - * required int32 starting = 3; - */ - public Builder clearStarting() { - bitField0_ = (bitField0_ & ~0x00000004); - starting_ = 0; - onChanged(); - return this; - } - - // required int32 startFailed = 4; - private int startFailed_ ; - /** - * required int32 startFailed = 4; - */ - public boolean hasStartFailed() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * required int32 startFailed = 4; - */ - public int getStartFailed() { - return startFailed_; - } - /** - * required int32 startFailed = 4; - */ - public Builder setStartFailed(int value) { - bitField0_ |= 0x00000008; - startFailed_ = value; - onChanged(); - return this; - } - /** - * required int32 startFailed = 4; - */ - public Builder clearStartFailed() { - bitField0_ = (bitField0_ & ~0x00000008); - startFailed_ = 0; - onChanged(); - return this; - } - - // required int32 failed = 5; - private int failed_ ; - /** - * required int32 failed = 5; - */ - public boolean hasFailed() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * required int32 failed = 5; - */ - public int getFailed() { - return failed_; - } - /** - * required int32 failed = 5; - */ - public Builder setFailed(int value) { - bitField0_ |= 0x00000010; - failed_ = value; - onChanged(); - return this; - } - /** - * required int32 failed = 5; - */ - public Builder clearFailed() { - bitField0_ = (bitField0_ & ~0x00000010); - failed_ = 0; - onChanged(); - return this; - } - - // required int32 failedRecently = 6; - private int failedRecently_ ; - /** - * required int32 failedRecently = 6; - */ - public boolean hasFailedRecently() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * required int32 failedRecently = 6; - */ - public int getFailedRecently() { - return failedRecently_; - } - /** - * required int32 failedRecently = 6; - */ - public Builder setFailedRecently(int value) { - bitField0_ |= 0x00000020; - failedRecently_ = value; - onChanged(); - return this; - } - /** - * required int32 failedRecently = 6; - */ - public Builder clearFailedRecently() { - bitField0_ = (bitField0_ & ~0x00000020); - failedRecently_ = 0; - onChanged(); - return this; - } - - // required int32 preempted = 7; - private int preempted_ ; - /** - * required int32 preempted = 7; - */ - public boolean hasPreempted() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * required int32 preempted = 7; - */ - public int getPreempted() { - return preempted_; - } - /** - * required int32 preempted = 7; - */ - public Builder setPreempted(int value) { - bitField0_ |= 0x00000040; - preempted_ = value; - onChanged(); - return this; - } - /** - * required int32 preempted = 7; - */ - public Builder clearPreempted() { - bitField0_ = (bitField0_ & ~0x00000040); - preempted_ = 0; - onChanged(); - return this; - } - - // required int32 live = 8; - private int live_ ; - /** - * required int32 live = 8; - */ - public boolean hasLive() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - /** - * required int32 live = 8; - */ - public int getLive() { - return live_; - } - /** - * required int32 live = 8; - */ - public Builder setLive(int value) { - bitField0_ |= 0x00000080; - live_ = value; - onChanged(); - return this; - } - /** - * required int32 live = 8; - */ - public Builder clearLive() { - bitField0_ = (bitField0_ & ~0x00000080); - live_ = 0; - onChanged(); - return this; - } - - // required int32 releasing = 9; - private int releasing_ ; - /** - * required int32 releasing = 9; - */ - public boolean hasReleasing() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } - /** - * required int32 releasing = 9; - */ - public int getReleasing() { - return releasing_; - } - /** - * required int32 releasing = 9; - */ - public Builder setReleasing(int value) { - bitField0_ |= 0x00000100; - releasing_ = value; - onChanged(); - return this; - } - /** - * required int32 releasing = 9; - */ - public Builder clearReleasing() { - bitField0_ = (bitField0_ & ~0x00000100); - releasing_ = 0; - onChanged(); - return this; - } - - // required int64 lastUsed = 10; - private long lastUsed_ ; - /** - * required int64 lastUsed = 10; - */ - public boolean hasLastUsed() { - return ((bitField0_ & 0x00000200) == 0x00000200); - } - /** - * required int64 lastUsed = 10; - */ - public long getLastUsed() { - return lastUsed_; - } - /** - * required int64 lastUsed = 10; - */ - public Builder setLastUsed(long value) { - bitField0_ |= 0x00000200; - lastUsed_ = value; - onChanged(); - return this; - } - /** - * required int64 lastUsed = 10; - */ - public Builder clearLastUsed() { - bitField0_ = (bitField0_ & ~0x00000200); - lastUsed_ = 0L; - onChanged(); - return this; - } - - // required string name = 11; - private java.lang.Object name_ = ""; - /** - * required string name = 11; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000400) == 0x00000400); - } - /** - * required string name = 11; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string name = 11; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string name = 11; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000400; - name_ = value; - onChanged(); - return this; - } - /** - * required string name = 11; - */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000400); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * required string name = 11; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000400; - name_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:org.apache.slider.api.NodeEntryInformationProto) - } - - static { - defaultInstance = new NodeEntryInformationProto(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.apache.slider.api.NodeEntryInformationProto) - } - - public interface NodeInformationProtoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // required string hostname = 1; - /** - * required string hostname = 1; - */ - boolean hasHostname(); - /** - * required string hostname = 1; - */ - java.lang.String getHostname(); - /** - * required string hostname = 1; - */ - com.google.protobuf.ByteString - getHostnameBytes(); - - // required string state = 2; - /** - * required string state = 2; - */ - boolean hasState(); - /** - * required string state = 2; - */ - java.lang.String getState(); - /** - * required string state = 2; - */ - com.google.protobuf.ByteString - getStateBytes(); - - // required string httpAddress = 3; - /** - * required string httpAddress = 3; - */ - boolean hasHttpAddress(); - /** - * required string httpAddress = 3; - */ - java.lang.String getHttpAddress(); - /** - * required string httpAddress = 3; - */ - com.google.protobuf.ByteString - getHttpAddressBytes(); - - // required string rackName = 4; - /** - * required string rackName = 4; - */ - boolean hasRackName(); - /** - * required string rackName = 4; - */ - java.lang.String getRackName(); - /** - * required string rackName = 4; - */ - com.google.protobuf.ByteString - getRackNameBytes(); - - // required string labels = 5; - /** - * required string labels = 5; - */ - boolean hasLabels(); - /** - * required string labels = 5; - */ - java.lang.String getLabels(); - /** - * required string labels = 5; - */ - com.google.protobuf.ByteString - getLabelsBytes(); - - // required string healthReport = 6; - /** - * required string healthReport = 6; - */ - boolean hasHealthReport(); - /** - * required string healthReport = 6; - */ - java.lang.String getHealthReport(); - /** - * required string healthReport = 6; - */ - com.google.protobuf.ByteString - getHealthReportBytes(); - - // required int64 lastUpdated = 7; - /** - * required int64 lastUpdated = 7; - */ - boolean hasLastUpdated(); - /** - * required int64 lastUpdated = 7; - */ - long getLastUpdated(); - - // repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8; - /** - * repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8; - */ - java.util.List - getEntriesList(); - /** - * repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8; - */ - org.apache.slider.api.proto.Messages.NodeEntryInformationProto getEntries(int index); - /** - * repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8; - */ - int getEntriesCount(); - /** - * repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8; - */ - java.util.List - getEntriesOrBuilderList(); - /** - * repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8; - */ - org.apache.slider.api.proto.Messages.NodeEntryInformationProtoOrBuilder getEntriesOrBuilder( - int index); - } - /** - * Protobuf type {@code org.apache.slider.api.NodeInformationProto} - */ - public static final class NodeInformationProto extends - com.google.protobuf.GeneratedMessage - implements NodeInformationProtoOrBuilder { - // Use NodeInformationProto.newBuilder() to construct. - private NodeInformationProto(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private NodeInformationProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final NodeInformationProto defaultInstance; - public static NodeInformationProto getDefaultInstance() { - return defaultInstance; - } - - public NodeInformationProto getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NodeInformationProto( - 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; - hostname_ = input.readBytes(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - state_ = input.readBytes(); - break; - } - case 26: { - bitField0_ |= 0x00000004; - httpAddress_ = input.readBytes(); - break; - } - case 34: { - bitField0_ |= 0x00000008; - rackName_ = input.readBytes(); - break; - } - case 42: { - bitField0_ |= 0x00000010; - labels_ = input.readBytes(); - break; - } - case 50: { - bitField0_ |= 0x00000020; - healthReport_ = input.readBytes(); - break; - } - case 56: { - bitField0_ |= 0x00000040; - lastUpdated_ = input.readInt64(); - break; - } - case 66: { - if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { - entries_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000080; - } - entries_.add(input.readMessage(org.apache.slider.api.proto.Messages.NodeEntryInformationProto.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_ & 0x00000080) == 0x00000080)) { - entries_ = java.util.Collections.unmodifiableList(entries_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_NodeInformationProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_NodeInformationProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.NodeInformationProto.class, org.apache.slider.api.proto.Messages.NodeInformationProto.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public NodeInformationProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeInformationProto(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // required string hostname = 1; - public static final int HOSTNAME_FIELD_NUMBER = 1; - private java.lang.Object hostname_; - /** - * required string hostname = 1; - */ - public boolean hasHostname() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string hostname = 1; - */ - public java.lang.String getHostname() { - java.lang.Object ref = hostname_; - 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()) { - hostname_ = s; - } - return s; - } - } - /** - * required string hostname = 1; - */ - public com.google.protobuf.ByteString - getHostnameBytes() { - java.lang.Object ref = hostname_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - hostname_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // required string state = 2; - public static final int STATE_FIELD_NUMBER = 2; - private java.lang.Object state_; - /** - * required string state = 2; - */ - public boolean hasState() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required string state = 2; - */ - public java.lang.String getState() { - java.lang.Object ref = state_; - 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()) { - state_ = s; - } - return s; - } - } - /** - * required string state = 2; - */ - public com.google.protobuf.ByteString - getStateBytes() { - java.lang.Object ref = state_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - state_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // required string httpAddress = 3; - public static final int HTTPADDRESS_FIELD_NUMBER = 3; - private java.lang.Object httpAddress_; - /** - * required string httpAddress = 3; - */ - public boolean hasHttpAddress() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * required string httpAddress = 3; - */ - public java.lang.String getHttpAddress() { - java.lang.Object ref = httpAddress_; - 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()) { - httpAddress_ = s; - } - return s; - } - } - /** - * required string httpAddress = 3; - */ - public com.google.protobuf.ByteString - getHttpAddressBytes() { - java.lang.Object ref = httpAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - httpAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // required string rackName = 4; - public static final int RACKNAME_FIELD_NUMBER = 4; - private java.lang.Object rackName_; - /** - * required string rackName = 4; - */ - public boolean hasRackName() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * required string rackName = 4; - */ - public java.lang.String getRackName() { - java.lang.Object ref = rackName_; - 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()) { - rackName_ = s; - } - return s; - } - } - /** - * required string rackName = 4; - */ - public com.google.protobuf.ByteString - getRackNameBytes() { - java.lang.Object ref = rackName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - rackName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // required string labels = 5; - public static final int LABELS_FIELD_NUMBER = 5; - private java.lang.Object labels_; - /** - * required string labels = 5; - */ - public boolean hasLabels() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * required string labels = 5; - */ - public java.lang.String getLabels() { - java.lang.Object ref = labels_; - 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()) { - labels_ = s; - } - return s; - } - } - /** - * required string labels = 5; - */ - public com.google.protobuf.ByteString - getLabelsBytes() { - java.lang.Object ref = labels_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - labels_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // required string healthReport = 6; - public static final int HEALTHREPORT_FIELD_NUMBER = 6; - private java.lang.Object healthReport_; - /** - * required string healthReport = 6; - */ - public boolean hasHealthReport() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * required string healthReport = 6; - */ - public java.lang.String getHealthReport() { - java.lang.Object ref = healthReport_; - 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()) { - healthReport_ = s; - } - return s; - } - } - /** - * required string healthReport = 6; - */ - public com.google.protobuf.ByteString - getHealthReportBytes() { - java.lang.Object ref = healthReport_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - healthReport_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // required int64 lastUpdated = 7; - public static final int LASTUPDATED_FIELD_NUMBER = 7; - private long lastUpdated_; - /** - * required int64 lastUpdated = 7; - */ - public boolean hasLastUpdated() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * required int64 lastUpdated = 7; - */ - public long getLastUpdated() { - return lastUpdated_; - } - - // repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8; - public static final int ENTRIES_FIELD_NUMBER = 8; - private java.util.List entries_; - /** - * repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8; - */ - public java.util.List getEntriesList() { - return entries_; - } - /** - * repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8; - */ - public java.util.List - getEntriesOrBuilderList() { - return entries_; - } - /** - * repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8; - */ - public int getEntriesCount() { - return entries_.size(); - } - /** - * repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8; - */ - public org.apache.slider.api.proto.Messages.NodeEntryInformationProto getEntries(int index) { - return entries_.get(index); - } - /** - * repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8; - */ - public org.apache.slider.api.proto.Messages.NodeEntryInformationProtoOrBuilder getEntriesOrBuilder( - int index) { - return entries_.get(index); - } - - private void initFields() { - hostname_ = ""; - state_ = ""; - httpAddress_ = ""; - rackName_ = ""; - labels_ = ""; - healthReport_ = ""; - lastUpdated_ = 0L; - entries_ = java.util.Collections.emptyList(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (!hasHostname()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasState()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasHttpAddress()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasRackName()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasLabels()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasHealthReport()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasLastUpdated()) { - memoizedIsInitialized = 0; - return false; - } - for (int i = 0; i < getEntriesCount(); i++) { - if (!getEntries(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getHostnameBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getStateBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getHttpAddressBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getRackNameBytes()); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(5, getLabelsBytes()); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBytes(6, getHealthReportBytes()); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeInt64(7, lastUpdated_); - } - for (int i = 0; i < entries_.size(); i++) { - output.writeMessage(8, entries_.get(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, getHostnameBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getStateBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getHttpAddressBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getRackNameBytes()); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, getLabelsBytes()); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, getHealthReportBytes()); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(7, lastUpdated_); - } - for (int i = 0; i < entries_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, entries_.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.slider.api.proto.Messages.NodeInformationProto)) { - return super.equals(obj); - } - org.apache.slider.api.proto.Messages.NodeInformationProto other = (org.apache.slider.api.proto.Messages.NodeInformationProto) obj; - - boolean result = true; - result = result && (hasHostname() == other.hasHostname()); - if (hasHostname()) { - result = result && getHostname() - .equals(other.getHostname()); - } - result = result && (hasState() == other.hasState()); - if (hasState()) { - result = result && getState() - .equals(other.getState()); - } - result = result && (hasHttpAddress() == other.hasHttpAddress()); - if (hasHttpAddress()) { - result = result && getHttpAddress() - .equals(other.getHttpAddress()); - } - result = result && (hasRackName() == other.hasRackName()); - if (hasRackName()) { - result = result && getRackName() - .equals(other.getRackName()); - } - result = result && (hasLabels() == other.hasLabels()); - if (hasLabels()) { - result = result && getLabels() - .equals(other.getLabels()); - } - result = result && (hasHealthReport() == other.hasHealthReport()); - if (hasHealthReport()) { - result = result && getHealthReport() - .equals(other.getHealthReport()); - } - result = result && (hasLastUpdated() == other.hasLastUpdated()); - if (hasLastUpdated()) { - result = result && (getLastUpdated() - == other.getLastUpdated()); - } - result = result && getEntriesList() - .equals(other.getEntriesList()); - 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 (hasHostname()) { - hash = (37 * hash) + HOSTNAME_FIELD_NUMBER; - hash = (53 * hash) + getHostname().hashCode(); - } - if (hasState()) { - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + getState().hashCode(); - } - if (hasHttpAddress()) { - hash = (37 * hash) + HTTPADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getHttpAddress().hashCode(); - } - if (hasRackName()) { - hash = (37 * hash) + RACKNAME_FIELD_NUMBER; - hash = (53 * hash) + getRackName().hashCode(); - } - if (hasLabels()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + getLabels().hashCode(); - } - if (hasHealthReport()) { - hash = (37 * hash) + HEALTHREPORT_FIELD_NUMBER; - hash = (53 * hash) + getHealthReport().hashCode(); - } - if (hasLastUpdated()) { - hash = (37 * hash) + LASTUPDATED_FIELD_NUMBER; - hash = (53 * hash) + hashLong(getLastUpdated()); - } - if (getEntriesCount() > 0) { - hash = (37 * hash) + ENTRIES_FIELD_NUMBER; - hash = (53 * hash) + getEntriesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.apache.slider.api.proto.Messages.NodeInformationProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.NodeInformationProto 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.slider.api.proto.Messages.NodeInformationProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.NodeInformationProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.NodeInformationProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.NodeInformationProto parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.NodeInformationProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.apache.slider.api.proto.Messages.NodeInformationProto parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.NodeInformationProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.NodeInformationProto 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.slider.api.proto.Messages.NodeInformationProto 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 org.apache.slider.api.NodeInformationProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.apache.slider.api.proto.Messages.NodeInformationProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_NodeInformationProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_NodeInformationProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.NodeInformationProto.class, org.apache.slider.api.proto.Messages.NodeInformationProto.Builder.class); - } - - // Construct using org.apache.slider.api.proto.Messages.NodeInformationProto.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getEntriesFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - hostname_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - state_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - httpAddress_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - rackName_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - labels_ = ""; - bitField0_ = (bitField0_ & ~0x00000010); - healthReport_ = ""; - bitField0_ = (bitField0_ & ~0x00000020); - lastUpdated_ = 0L; - bitField0_ = (bitField0_ & ~0x00000040); - if (entriesBuilder_ == null) { - entries_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); - } else { - entriesBuilder_.clear(); - } - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_NodeInformationProto_descriptor; - } - - public org.apache.slider.api.proto.Messages.NodeInformationProto getDefaultInstanceForType() { - return org.apache.slider.api.proto.Messages.NodeInformationProto.getDefaultInstance(); - } - - public org.apache.slider.api.proto.Messages.NodeInformationProto build() { - org.apache.slider.api.proto.Messages.NodeInformationProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.apache.slider.api.proto.Messages.NodeInformationProto buildPartial() { - org.apache.slider.api.proto.Messages.NodeInformationProto result = new org.apache.slider.api.proto.Messages.NodeInformationProto(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.hostname_ = hostname_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.state_ = state_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.httpAddress_ = httpAddress_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.rackName_ = rackName_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.labels_ = labels_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - result.healthReport_ = healthReport_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000040; - } - result.lastUpdated_ = lastUpdated_; - if (entriesBuilder_ == null) { - if (((bitField0_ & 0x00000080) == 0x00000080)) { - entries_ = java.util.Collections.unmodifiableList(entries_); - bitField0_ = (bitField0_ & ~0x00000080); - } - result.entries_ = entries_; - } else { - result.entries_ = entriesBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.slider.api.proto.Messages.NodeInformationProto) { - return mergeFrom((org.apache.slider.api.proto.Messages.NodeInformationProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.apache.slider.api.proto.Messages.NodeInformationProto other) { - if (other == org.apache.slider.api.proto.Messages.NodeInformationProto.getDefaultInstance()) return this; - if (other.hasHostname()) { - bitField0_ |= 0x00000001; - hostname_ = other.hostname_; - onChanged(); - } - if (other.hasState()) { - bitField0_ |= 0x00000002; - state_ = other.state_; - onChanged(); - } - if (other.hasHttpAddress()) { - bitField0_ |= 0x00000004; - httpAddress_ = other.httpAddress_; - onChanged(); - } - if (other.hasRackName()) { - bitField0_ |= 0x00000008; - rackName_ = other.rackName_; - onChanged(); - } - if (other.hasLabels()) { - bitField0_ |= 0x00000010; - labels_ = other.labels_; - onChanged(); - } - if (other.hasHealthReport()) { - bitField0_ |= 0x00000020; - healthReport_ = other.healthReport_; - onChanged(); - } - if (other.hasLastUpdated()) { - setLastUpdated(other.getLastUpdated()); - } - if (entriesBuilder_ == null) { - if (!other.entries_.isEmpty()) { - if (entries_.isEmpty()) { - entries_ = other.entries_; - bitField0_ = (bitField0_ & ~0x00000080); - } else { - ensureEntriesIsMutable(); - entries_.addAll(other.entries_); - } - onChanged(); - } - } else { - if (!other.entries_.isEmpty()) { - if (entriesBuilder_.isEmpty()) { - entriesBuilder_.dispose(); - entriesBuilder_ = null; - entries_ = other.entries_; - bitField0_ = (bitField0_ & ~0x00000080); - entriesBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getEntriesFieldBuilder() : null; - } else { - entriesBuilder_.addAllMessages(other.entries_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasHostname()) { - - return false; - } - if (!hasState()) { - - return false; - } - if (!hasHttpAddress()) { - - return false; - } - if (!hasRackName()) { - - return false; - } - if (!hasLabels()) { - - return false; - } - if (!hasHealthReport()) { - - return false; - } - if (!hasLastUpdated()) { - - return false; - } - for (int i = 0; i < getEntriesCount(); i++) { - if (!getEntries(i).isInitialized()) { - - return false; - } - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.apache.slider.api.proto.Messages.NodeInformationProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.slider.api.proto.Messages.NodeInformationProto) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // required string hostname = 1; - private java.lang.Object hostname_ = ""; - /** - * required string hostname = 1; - */ - public boolean hasHostname() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string hostname = 1; - */ - public java.lang.String getHostname() { - java.lang.Object ref = hostname_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - hostname_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string hostname = 1; - */ - public com.google.protobuf.ByteString - getHostnameBytes() { - java.lang.Object ref = hostname_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - hostname_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string hostname = 1; - */ - public Builder setHostname( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - hostname_ = value; - onChanged(); - return this; - } - /** - * required string hostname = 1; - */ - public Builder clearHostname() { - bitField0_ = (bitField0_ & ~0x00000001); - hostname_ = getDefaultInstance().getHostname(); - onChanged(); - return this; - } - /** - * required string hostname = 1; - */ - public Builder setHostnameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - hostname_ = value; - onChanged(); - return this; - } - - // required string state = 2; - private java.lang.Object state_ = ""; - /** - * required string state = 2; - */ - public boolean hasState() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required string state = 2; - */ - public java.lang.String getState() { - java.lang.Object ref = state_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - state_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string state = 2; - */ - public com.google.protobuf.ByteString - getStateBytes() { - java.lang.Object ref = state_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - state_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string state = 2; - */ - public Builder setState( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - state_ = value; - onChanged(); - return this; - } - /** - * required string state = 2; - */ - public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000002); - state_ = getDefaultInstance().getState(); - onChanged(); - return this; - } - /** - * required string state = 2; - */ - public Builder setStateBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - state_ = value; - onChanged(); - return this; - } - - // required string httpAddress = 3; - private java.lang.Object httpAddress_ = ""; - /** - * required string httpAddress = 3; - */ - public boolean hasHttpAddress() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * required string httpAddress = 3; - */ - public java.lang.String getHttpAddress() { - java.lang.Object ref = httpAddress_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - httpAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string httpAddress = 3; - */ - public com.google.protobuf.ByteString - getHttpAddressBytes() { - java.lang.Object ref = httpAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - httpAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string httpAddress = 3; - */ - public Builder setHttpAddress( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - httpAddress_ = value; - onChanged(); - return this; - } - /** - * required string httpAddress = 3; - */ - public Builder clearHttpAddress() { - bitField0_ = (bitField0_ & ~0x00000004); - httpAddress_ = getDefaultInstance().getHttpAddress(); - onChanged(); - return this; - } - /** - * required string httpAddress = 3; - */ - public Builder setHttpAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - httpAddress_ = value; - onChanged(); - return this; - } - - // required string rackName = 4; - private java.lang.Object rackName_ = ""; - /** - * required string rackName = 4; - */ - public boolean hasRackName() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * required string rackName = 4; - */ - public java.lang.String getRackName() { - java.lang.Object ref = rackName_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - rackName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string rackName = 4; - */ - public com.google.protobuf.ByteString - getRackNameBytes() { - java.lang.Object ref = rackName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - rackName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string rackName = 4; - */ - public Builder setRackName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - rackName_ = value; - onChanged(); - return this; - } - /** - * required string rackName = 4; - */ - public Builder clearRackName() { - bitField0_ = (bitField0_ & ~0x00000008); - rackName_ = getDefaultInstance().getRackName(); - onChanged(); - return this; - } - /** - * required string rackName = 4; - */ - public Builder setRackNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - rackName_ = value; - onChanged(); - return this; - } - - // required string labels = 5; - private java.lang.Object labels_ = ""; - /** - * required string labels = 5; - */ - public boolean hasLabels() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * required string labels = 5; - */ - public java.lang.String getLabels() { - java.lang.Object ref = labels_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - labels_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string labels = 5; - */ - public com.google.protobuf.ByteString - getLabelsBytes() { - java.lang.Object ref = labels_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - labels_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string labels = 5; - */ - public Builder setLabels( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - labels_ = value; - onChanged(); - return this; - } - /** - * required string labels = 5; - */ - public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00000010); - labels_ = getDefaultInstance().getLabels(); - onChanged(); - return this; - } - /** - * required string labels = 5; - */ - public Builder setLabelsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - labels_ = value; - onChanged(); - return this; - } - - // required string healthReport = 6; - private java.lang.Object healthReport_ = ""; - /** - * required string healthReport = 6; - */ - public boolean hasHealthReport() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * required string healthReport = 6; - */ - public java.lang.String getHealthReport() { - java.lang.Object ref = healthReport_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - healthReport_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string healthReport = 6; - */ - public com.google.protobuf.ByteString - getHealthReportBytes() { - java.lang.Object ref = healthReport_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - healthReport_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string healthReport = 6; - */ - public Builder setHealthReport( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - healthReport_ = value; - onChanged(); - return this; - } - /** - * required string healthReport = 6; - */ - public Builder clearHealthReport() { - bitField0_ = (bitField0_ & ~0x00000020); - healthReport_ = getDefaultInstance().getHealthReport(); - onChanged(); - return this; - } - /** - * required string healthReport = 6; - */ - public Builder setHealthReportBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - healthReport_ = value; - onChanged(); - return this; - } - - // required int64 lastUpdated = 7; - private long lastUpdated_ ; - /** - * required int64 lastUpdated = 7; - */ - public boolean hasLastUpdated() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * required int64 lastUpdated = 7; - */ - public long getLastUpdated() { - return lastUpdated_; - } - /** - * required int64 lastUpdated = 7; - */ - public Builder setLastUpdated(long value) { - bitField0_ |= 0x00000040; - lastUpdated_ = value; - onChanged(); - return this; - } - /** - * required int64 lastUpdated = 7; - */ - public Builder clearLastUpdated() { - bitField0_ = (bitField0_ & ~0x00000040); - lastUpdated_ = 0L; - onChanged(); - return this; - } - - // repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8; - private java.util.List entries_ = - java.util.Collections.emptyList(); - private void ensureEntriesIsMutable() { - if (!((bitField0_ & 0x00000080) == 0x00000080)) { - entries_ = new java.util.ArrayList(entries_); - bitField0_ |= 0x00000080; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.apache.slider.api.proto.Messages.NodeEntryInformationProto, org.apache.slider.api.proto.Messages.NodeEntryInformationProto.Builder, org.apache.slider.api.proto.Messages.NodeEntryInformationProtoOrBuilder> entriesBuilder_; - - /** - * repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8; - */ - public java.util.List getEntriesList() { - if (entriesBuilder_ == null) { - return java.util.Collections.unmodifiableList(entries_); - } else { - return entriesBuilder_.getMessageList(); - } - } - /** - * repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8; - */ - public int getEntriesCount() { - if (entriesBuilder_ == null) { - return entries_.size(); - } else { - return entriesBuilder_.getCount(); - } - } - /** - * repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8; - */ - public org.apache.slider.api.proto.Messages.NodeEntryInformationProto getEntries(int index) { - if (entriesBuilder_ == null) { - return entries_.get(index); - } else { - return entriesBuilder_.getMessage(index); - } - } - /** - * repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8; - */ - public Builder setEntries( - int index, org.apache.slider.api.proto.Messages.NodeEntryInformationProto value) { - if (entriesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntriesIsMutable(); - entries_.set(index, value); - onChanged(); - } else { - entriesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8; - */ - public Builder setEntries( - int index, org.apache.slider.api.proto.Messages.NodeEntryInformationProto.Builder builderForValue) { - if (entriesBuilder_ == null) { - ensureEntriesIsMutable(); - entries_.set(index, builderForValue.build()); - onChanged(); - } else { - entriesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8; - */ - public Builder addEntries(org.apache.slider.api.proto.Messages.NodeEntryInformationProto value) { - if (entriesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntriesIsMutable(); - entries_.add(value); - onChanged(); - } else { - entriesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8; - */ - public Builder addEntries( - int index, org.apache.slider.api.proto.Messages.NodeEntryInformationProto value) { - if (entriesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntriesIsMutable(); - entries_.add(index, value); - onChanged(); - } else { - entriesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8; - */ - public Builder addEntries( - org.apache.slider.api.proto.Messages.NodeEntryInformationProto.Builder builderForValue) { - if (entriesBuilder_ == null) { - ensureEntriesIsMutable(); - entries_.add(builderForValue.build()); - onChanged(); - } else { - entriesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8; - */ - public Builder addEntries( - int index, org.apache.slider.api.proto.Messages.NodeEntryInformationProto.Builder builderForValue) { - if (entriesBuilder_ == null) { - ensureEntriesIsMutable(); - entries_.add(index, builderForValue.build()); - onChanged(); - } else { - entriesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8; - */ - public Builder addAllEntries( - java.lang.Iterable values) { - if (entriesBuilder_ == null) { - ensureEntriesIsMutable(); - super.addAll(values, entries_); - onChanged(); - } else { - entriesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8; - */ - public Builder clearEntries() { - if (entriesBuilder_ == null) { - entries_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - } else { - entriesBuilder_.clear(); - } - return this; - } - /** - * repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8; - */ - public Builder removeEntries(int index) { - if (entriesBuilder_ == null) { - ensureEntriesIsMutable(); - entries_.remove(index); - onChanged(); - } else { - entriesBuilder_.remove(index); - } - return this; - } - /** - * repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8; - */ - public org.apache.slider.api.proto.Messages.NodeEntryInformationProto.Builder getEntriesBuilder( - int index) { - return getEntriesFieldBuilder().getBuilder(index); - } - /** - * repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8; - */ - public org.apache.slider.api.proto.Messages.NodeEntryInformationProtoOrBuilder getEntriesOrBuilder( - int index) { - if (entriesBuilder_ == null) { - return entries_.get(index); } else { - return entriesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8; - */ - public java.util.List - getEntriesOrBuilderList() { - if (entriesBuilder_ != null) { - return entriesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(entries_); - } - } - /** - * repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8; - */ - public org.apache.slider.api.proto.Messages.NodeEntryInformationProto.Builder addEntriesBuilder() { - return getEntriesFieldBuilder().addBuilder( - org.apache.slider.api.proto.Messages.NodeEntryInformationProto.getDefaultInstance()); - } - /** - * repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8; - */ - public org.apache.slider.api.proto.Messages.NodeEntryInformationProto.Builder addEntriesBuilder( - int index) { - return getEntriesFieldBuilder().addBuilder( - index, org.apache.slider.api.proto.Messages.NodeEntryInformationProto.getDefaultInstance()); - } - /** - * repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8; - */ - public java.util.List - getEntriesBuilderList() { - return getEntriesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.apache.slider.api.proto.Messages.NodeEntryInformationProto, org.apache.slider.api.proto.Messages.NodeEntryInformationProto.Builder, org.apache.slider.api.proto.Messages.NodeEntryInformationProtoOrBuilder> - getEntriesFieldBuilder() { - if (entriesBuilder_ == null) { - entriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.apache.slider.api.proto.Messages.NodeEntryInformationProto, org.apache.slider.api.proto.Messages.NodeEntryInformationProto.Builder, org.apache.slider.api.proto.Messages.NodeEntryInformationProtoOrBuilder>( - entries_, - ((bitField0_ & 0x00000080) == 0x00000080), - getParentForChildren(), - isClean()); - entries_ = null; - } - return entriesBuilder_; - } - - // @@protoc_insertion_point(builder_scope:org.apache.slider.api.NodeInformationProto) - } - - static { - defaultInstance = new NodeInformationProto(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.apache.slider.api.NodeInformationProto) - } - - public interface GetModelRequestProtoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code org.apache.slider.api.GetModelRequestProto} - */ - public static final class GetModelRequestProto extends - com.google.protobuf.GeneratedMessage - implements GetModelRequestProtoOrBuilder { - // Use GetModelRequestProto.newBuilder() to construct. - private GetModelRequestProto(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private GetModelRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final GetModelRequestProto defaultInstance; - public static GetModelRequestProto getDefaultInstance() { - return defaultInstance; - } - - public GetModelRequestProto getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetModelRequestProto( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - 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; - } - } - } - } 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.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelRequestProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetModelRequestProto.class, org.apache.slider.api.proto.Messages.GetModelRequestProto.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GetModelRequestProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetModelRequestProto(input, extensionRegistry); - } - }; - - @java.lang.Override - public 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(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.slider.api.proto.Messages.GetModelRequestProto)) { - return super.equals(obj); - } - org.apache.slider.api.proto.Messages.GetModelRequestProto other = (org.apache.slider.api.proto.Messages.GetModelRequestProto) 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.slider.api.proto.Messages.GetModelRequestProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetModelRequestProto 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.slider.api.proto.Messages.GetModelRequestProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetModelRequestProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetModelRequestProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetModelRequestProto parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetModelRequestProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetModelRequestProto parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetModelRequestProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetModelRequestProto 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.slider.api.proto.Messages.GetModelRequestProto 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 org.apache.slider.api.GetModelRequestProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.apache.slider.api.proto.Messages.GetModelRequestProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelRequestProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetModelRequestProto.class, org.apache.slider.api.proto.Messages.GetModelRequestProto.Builder.class); - } - - // Construct using org.apache.slider.api.proto.Messages.GetModelRequestProto.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(); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelRequestProto_descriptor; - } - - public org.apache.slider.api.proto.Messages.GetModelRequestProto getDefaultInstanceForType() { - return org.apache.slider.api.proto.Messages.GetModelRequestProto.getDefaultInstance(); - } - - public org.apache.slider.api.proto.Messages.GetModelRequestProto build() { - org.apache.slider.api.proto.Messages.GetModelRequestProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.apache.slider.api.proto.Messages.GetModelRequestProto buildPartial() { - org.apache.slider.api.proto.Messages.GetModelRequestProto result = new org.apache.slider.api.proto.Messages.GetModelRequestProto(this); - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.slider.api.proto.Messages.GetModelRequestProto) { - return mergeFrom((org.apache.slider.api.proto.Messages.GetModelRequestProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetModelRequestProto other) { - if (other == org.apache.slider.api.proto.Messages.GetModelRequestProto.getDefaultInstance()) return this; - 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.slider.api.proto.Messages.GetModelRequestProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.slider.api.proto.Messages.GetModelRequestProto) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetModelRequestProto) - } - - static { - defaultInstance = new GetModelRequestProto(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetModelRequestProto) - } - - public interface GetModelDesiredRequestProtoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code org.apache.slider.api.GetModelDesiredRequestProto} - */ - public static final class GetModelDesiredRequestProto extends - com.google.protobuf.GeneratedMessage - implements GetModelDesiredRequestProtoOrBuilder { - // Use GetModelDesiredRequestProto.newBuilder() to construct. - private GetModelDesiredRequestProto(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private GetModelDesiredRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final GetModelDesiredRequestProto defaultInstance; - public static GetModelDesiredRequestProto getDefaultInstance() { - return defaultInstance; - } - - public GetModelDesiredRequestProto getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetModelDesiredRequestProto( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - 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; - } - } - } - } 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.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelDesiredRequestProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelDesiredRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto.class, org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GetModelDesiredRequestProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetModelDesiredRequestProto(input, extensionRegistry); - } - }; - - @java.lang.Override - public 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(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.slider.api.proto.Messages.GetModelDesiredRequestProto)) { - return super.equals(obj); - } - org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto other = (org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto) 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.slider.api.proto.Messages.GetModelDesiredRequestProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto 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.slider.api.proto.Messages.GetModelDesiredRequestProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto 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.slider.api.proto.Messages.GetModelDesiredRequestProto 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 org.apache.slider.api.GetModelDesiredRequestProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.apache.slider.api.proto.Messages.GetModelDesiredRequestProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelDesiredRequestProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelDesiredRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto.class, org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto.Builder.class); - } - - // Construct using org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto.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(); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelDesiredRequestProto_descriptor; - } - - public org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto getDefaultInstanceForType() { - return org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto.getDefaultInstance(); - } - - public org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto build() { - org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto buildPartial() { - org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto result = new org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto(this); - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto) { - return mergeFrom((org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto other) { - if (other == org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto.getDefaultInstance()) return this; - 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.slider.api.proto.Messages.GetModelDesiredRequestProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetModelDesiredRequestProto) - } - - static { - defaultInstance = new GetModelDesiredRequestProto(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetModelDesiredRequestProto) - } - - public interface GetModelDesiredAppconfRequestProtoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code org.apache.slider.api.GetModelDesiredAppconfRequestProto} - */ - public static final class GetModelDesiredAppconfRequestProto extends - com.google.protobuf.GeneratedMessage - implements GetModelDesiredAppconfRequestProtoOrBuilder { - // Use GetModelDesiredAppconfRequestProto.newBuilder() to construct. - private GetModelDesiredAppconfRequestProto(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private GetModelDesiredAppconfRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final GetModelDesiredAppconfRequestProto defaultInstance; - public static GetModelDesiredAppconfRequestProto getDefaultInstance() { - return defaultInstance; - } - - public GetModelDesiredAppconfRequestProto getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetModelDesiredAppconfRequestProto( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - 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; - } - } - } - } 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.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelDesiredAppconfRequestProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelDesiredAppconfRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto.class, org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GetModelDesiredAppconfRequestProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetModelDesiredAppconfRequestProto(input, extensionRegistry); - } - }; - - @java.lang.Override - public 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(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.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto)) { - return super.equals(obj); - } - org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto other = (org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto) 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.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto 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.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto 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.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto 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 org.apache.slider.api.GetModelDesiredAppconfRequestProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelDesiredAppconfRequestProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelDesiredAppconfRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto.class, org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto.Builder.class); - } - - // Construct using org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto.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(); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelDesiredAppconfRequestProto_descriptor; - } - - public org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto getDefaultInstanceForType() { - return org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto.getDefaultInstance(); - } - - public org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto build() { - org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto buildPartial() { - org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto result = new org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto(this); - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto) { - return mergeFrom((org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto other) { - if (other == org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto.getDefaultInstance()) return this; - 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.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetModelDesiredAppconfRequestProto) - } - - static { - defaultInstance = new GetModelDesiredAppconfRequestProto(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetModelDesiredAppconfRequestProto) - } - - public interface GetModelDesiredResourcesRequestProtoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code org.apache.slider.api.GetModelDesiredResourcesRequestProto} - */ - public static final class GetModelDesiredResourcesRequestProto extends - com.google.protobuf.GeneratedMessage - implements GetModelDesiredResourcesRequestProtoOrBuilder { - // Use GetModelDesiredResourcesRequestProto.newBuilder() to construct. - private GetModelDesiredResourcesRequestProto(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private GetModelDesiredResourcesRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final GetModelDesiredResourcesRequestProto defaultInstance; - public static GetModelDesiredResourcesRequestProto getDefaultInstance() { - return defaultInstance; - } - - public GetModelDesiredResourcesRequestProto getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetModelDesiredResourcesRequestProto( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - 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; - } - } - } - } 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.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelDesiredResourcesRequestProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelDesiredResourcesRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto.class, org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GetModelDesiredResourcesRequestProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetModelDesiredResourcesRequestProto(input, extensionRegistry); - } - }; - - @java.lang.Override - public 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(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.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto)) { - return super.equals(obj); - } - org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto other = (org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto) 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.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto 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.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto 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.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto 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 org.apache.slider.api.GetModelDesiredResourcesRequestProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelDesiredResourcesRequestProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelDesiredResourcesRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto.class, org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto.Builder.class); - } - - // Construct using org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto.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(); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelDesiredResourcesRequestProto_descriptor; - } - - public org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto getDefaultInstanceForType() { - return org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto.getDefaultInstance(); - } - - public org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto build() { - org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto buildPartial() { - org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto result = new org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto(this); - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto) { - return mergeFrom((org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto other) { - if (other == org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto.getDefaultInstance()) return this; - 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.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetModelDesiredResourcesRequestProto) - } - - static { - defaultInstance = new GetModelDesiredResourcesRequestProto(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetModelDesiredResourcesRequestProto) - } - - public interface GetModelResolvedAppconfRequestProtoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code org.apache.slider.api.GetModelResolvedAppconfRequestProto} - */ - public static final class GetModelResolvedAppconfRequestProto extends - com.google.protobuf.GeneratedMessage - implements GetModelResolvedAppconfRequestProtoOrBuilder { - // Use GetModelResolvedAppconfRequestProto.newBuilder() to construct. - private GetModelResolvedAppconfRequestProto(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private GetModelResolvedAppconfRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final GetModelResolvedAppconfRequestProto defaultInstance; - public static GetModelResolvedAppconfRequestProto getDefaultInstance() { - return defaultInstance; - } - - public GetModelResolvedAppconfRequestProto getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetModelResolvedAppconfRequestProto( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - 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; - } - } - } - } 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.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelResolvedAppconfRequestProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelResolvedAppconfRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto.class, org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GetModelResolvedAppconfRequestProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetModelResolvedAppconfRequestProto(input, extensionRegistry); - } - }; - - @java.lang.Override - public 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(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.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto)) { - return super.equals(obj); - } - org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto other = (org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto) 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.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto 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.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto 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.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto 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 org.apache.slider.api.GetModelResolvedAppconfRequestProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelResolvedAppconfRequestProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelResolvedAppconfRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto.class, org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto.Builder.class); - } - - // Construct using org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto.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(); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelResolvedAppconfRequestProto_descriptor; - } - - public org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto getDefaultInstanceForType() { - return org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto.getDefaultInstance(); - } - - public org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto build() { - org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto buildPartial() { - org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto result = new org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto(this); - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto) { - return mergeFrom((org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto other) { - if (other == org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto.getDefaultInstance()) return this; - 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.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetModelResolvedAppconfRequestProto) - } - - static { - defaultInstance = new GetModelResolvedAppconfRequestProto(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetModelResolvedAppconfRequestProto) - } - - public interface GetModelResolvedResourcesRequestProtoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code org.apache.slider.api.GetModelResolvedResourcesRequestProto} - */ - public static final class GetModelResolvedResourcesRequestProto extends - com.google.protobuf.GeneratedMessage - implements GetModelResolvedResourcesRequestProtoOrBuilder { - // Use GetModelResolvedResourcesRequestProto.newBuilder() to construct. - private GetModelResolvedResourcesRequestProto(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private GetModelResolvedResourcesRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final GetModelResolvedResourcesRequestProto defaultInstance; - public static GetModelResolvedResourcesRequestProto getDefaultInstance() { - return defaultInstance; - } - - public GetModelResolvedResourcesRequestProto getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetModelResolvedResourcesRequestProto( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - 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; - } - } - } - } 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.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelResolvedResourcesRequestProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelResolvedResourcesRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto.class, org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GetModelResolvedResourcesRequestProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetModelResolvedResourcesRequestProto(input, extensionRegistry); - } - }; - - @java.lang.Override - public 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(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.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto)) { - return super.equals(obj); - } - org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto other = (org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto) 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.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto 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.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto 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.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto 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 org.apache.slider.api.GetModelResolvedResourcesRequestProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelResolvedResourcesRequestProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelResolvedResourcesRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto.class, org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto.Builder.class); - } - - // Construct using org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto.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(); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelResolvedResourcesRequestProto_descriptor; - } - - public org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto getDefaultInstanceForType() { - return org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto.getDefaultInstance(); - } - - public org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto build() { - org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto buildPartial() { - org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto result = new org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto(this); - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto) { - return mergeFrom((org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto other) { - if (other == org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto.getDefaultInstance()) return this; - 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.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetModelResolvedResourcesRequestProto) - } - - static { - defaultInstance = new GetModelResolvedResourcesRequestProto(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetModelResolvedResourcesRequestProto) - } - - public interface GetModelLiveResourcesRequestProtoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code org.apache.slider.api.GetModelLiveResourcesRequestProto} - */ - public static final class GetModelLiveResourcesRequestProto extends - com.google.protobuf.GeneratedMessage - implements GetModelLiveResourcesRequestProtoOrBuilder { - // Use GetModelLiveResourcesRequestProto.newBuilder() to construct. - private GetModelLiveResourcesRequestProto(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private GetModelLiveResourcesRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final GetModelLiveResourcesRequestProto defaultInstance; - public static GetModelLiveResourcesRequestProto getDefaultInstance() { - return defaultInstance; - } - - public GetModelLiveResourcesRequestProto getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetModelLiveResourcesRequestProto( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - 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; - } - } - } - } 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.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelLiveResourcesRequestProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelLiveResourcesRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto.class, org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GetModelLiveResourcesRequestProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetModelLiveResourcesRequestProto(input, extensionRegistry); - } - }; - - @java.lang.Override - public 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(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.slider.api.proto.Messages.GetModelLiveResourcesRequestProto)) { - return super.equals(obj); - } - org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto other = (org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto) 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.slider.api.proto.Messages.GetModelLiveResourcesRequestProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto 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.slider.api.proto.Messages.GetModelLiveResourcesRequestProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto 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.slider.api.proto.Messages.GetModelLiveResourcesRequestProto 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 org.apache.slider.api.GetModelLiveResourcesRequestProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelLiveResourcesRequestProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelLiveResourcesRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto.class, org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto.Builder.class); - } - - // Construct using org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto.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(); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelLiveResourcesRequestProto_descriptor; - } - - public org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto getDefaultInstanceForType() { - return org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto.getDefaultInstance(); - } - - public org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto build() { - org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto buildPartial() { - org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto result = new org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto(this); - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto) { - return mergeFrom((org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto other) { - if (other == org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto.getDefaultInstance()) return this; - 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.slider.api.proto.Messages.GetModelLiveResourcesRequestProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetModelLiveResourcesRequestProto) - } - - static { - defaultInstance = new GetModelLiveResourcesRequestProto(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetModelLiveResourcesRequestProto) - } - - public interface GetLiveContainersRequestProtoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code org.apache.slider.api.GetLiveContainersRequestProto} - */ - public static final class GetLiveContainersRequestProto extends - com.google.protobuf.GeneratedMessage - implements GetLiveContainersRequestProtoOrBuilder { - // Use GetLiveContainersRequestProto.newBuilder() to construct. - private GetLiveContainersRequestProto(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private GetLiveContainersRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final GetLiveContainersRequestProto defaultInstance; - public static GetLiveContainersRequestProto getDefaultInstance() { - return defaultInstance; - } - - public GetLiveContainersRequestProto getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetLiveContainersRequestProto( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - 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; - } - } - } - } 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.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveContainersRequestProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveContainersRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto.class, org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GetLiveContainersRequestProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetLiveContainersRequestProto(input, extensionRegistry); - } - }; - - @java.lang.Override - public 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(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.slider.api.proto.Messages.GetLiveContainersRequestProto)) { - return super.equals(obj); - } - org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto other = (org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto) 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.slider.api.proto.Messages.GetLiveContainersRequestProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto 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.slider.api.proto.Messages.GetLiveContainersRequestProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto 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.slider.api.proto.Messages.GetLiveContainersRequestProto 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 org.apache.slider.api.GetLiveContainersRequestProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.apache.slider.api.proto.Messages.GetLiveContainersRequestProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveContainersRequestProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveContainersRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto.class, org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto.Builder.class); - } - - // Construct using org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto.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(); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveContainersRequestProto_descriptor; - } - - public org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto getDefaultInstanceForType() { - return org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto.getDefaultInstance(); - } - - public org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto build() { - org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto buildPartial() { - org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto result = new org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto(this); - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto) { - return mergeFrom((org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto other) { - if (other == org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto.getDefaultInstance()) return this; - 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.slider.api.proto.Messages.GetLiveContainersRequestProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetLiveContainersRequestProto) - } - - static { - defaultInstance = new GetLiveContainersRequestProto(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetLiveContainersRequestProto) - } - - public interface GetLiveContainersResponseProtoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // repeated string names = 1; - /** - * repeated string names = 1; - */ - java.util.List - getNamesList(); - /** - * repeated string names = 1; - */ - int getNamesCount(); - /** - * repeated string names = 1; - */ - java.lang.String getNames(int index); - /** - * repeated string names = 1; - */ - com.google.protobuf.ByteString - getNamesBytes(int index); - - // repeated .org.apache.slider.api.ContainerInformationProto containers = 2; - /** - * repeated .org.apache.slider.api.ContainerInformationProto containers = 2; - */ - java.util.List - getContainersList(); - /** - * repeated .org.apache.slider.api.ContainerInformationProto containers = 2; - */ - org.apache.slider.api.proto.Messages.ContainerInformationProto getContainers(int index); - /** - * repeated .org.apache.slider.api.ContainerInformationProto containers = 2; - */ - int getContainersCount(); - /** - * repeated .org.apache.slider.api.ContainerInformationProto containers = 2; - */ - java.util.List - getContainersOrBuilderList(); - /** - * repeated .org.apache.slider.api.ContainerInformationProto containers = 2; - */ - org.apache.slider.api.proto.Messages.ContainerInformationProtoOrBuilder getContainersOrBuilder( - int index); - } - /** - * Protobuf type {@code org.apache.slider.api.GetLiveContainersResponseProto} - */ - public static final class GetLiveContainersResponseProto extends - com.google.protobuf.GeneratedMessage - implements GetLiveContainersResponseProtoOrBuilder { - // Use GetLiveContainersResponseProto.newBuilder() to construct. - private GetLiveContainersResponseProto(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private GetLiveContainersResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final GetLiveContainersResponseProto defaultInstance; - public static GetLiveContainersResponseProto getDefaultInstance() { - return defaultInstance; - } - - public GetLiveContainersResponseProto getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetLiveContainersResponseProto( - 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)) { - names_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - names_.add(input.readBytes()); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - containers_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - containers_.add(input.readMessage(org.apache.slider.api.proto.Messages.ContainerInformationProto.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)) { - names_ = new com.google.protobuf.UnmodifiableLazyStringList(names_); - } - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - containers_ = java.util.Collections.unmodifiableList(containers_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveContainersResponseProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveContainersResponseProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto.class, org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GetLiveContainersResponseProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetLiveContainersResponseProto(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - // repeated string names = 1; - public static final int NAMES_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList names_; - /** - * repeated string names = 1; - */ - public java.util.List - getNamesList() { - return names_; - } - /** - * repeated string names = 1; - */ - public int getNamesCount() { - return names_.size(); - } - /** - * repeated string names = 1; - */ - public java.lang.String getNames(int index) { - return names_.get(index); - } - /** - * repeated string names = 1; - */ - public com.google.protobuf.ByteString - getNamesBytes(int index) { - return names_.getByteString(index); - } - - // repeated .org.apache.slider.api.ContainerInformationProto containers = 2; - public static final int CONTAINERS_FIELD_NUMBER = 2; - private java.util.List containers_; - /** - * repeated .org.apache.slider.api.ContainerInformationProto containers = 2; - */ - public java.util.List getContainersList() { - return containers_; - } - /** - * repeated .org.apache.slider.api.ContainerInformationProto containers = 2; - */ - public java.util.List - getContainersOrBuilderList() { - return containers_; - } - /** - * repeated .org.apache.slider.api.ContainerInformationProto containers = 2; - */ - public int getContainersCount() { - return containers_.size(); - } - /** - * repeated .org.apache.slider.api.ContainerInformationProto containers = 2; - */ - public org.apache.slider.api.proto.Messages.ContainerInformationProto getContainers(int index) { - return containers_.get(index); - } - /** - * repeated .org.apache.slider.api.ContainerInformationProto containers = 2; - */ - public org.apache.slider.api.proto.Messages.ContainerInformationProtoOrBuilder getContainersOrBuilder( - int index) { - return containers_.get(index); - } - - private void initFields() { - names_ = com.google.protobuf.LazyStringArrayList.EMPTY; - containers_ = 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 < names_.size(); i++) { - output.writeBytes(1, names_.getByteString(i)); - } - for (int i = 0; i < containers_.size(); i++) { - output.writeMessage(2, containers_.get(i)); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < names_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(names_.getByteString(i)); - } - size += dataSize; - size += 1 * getNamesList().size(); - } - for (int i = 0; i < containers_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, containers_.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.slider.api.proto.Messages.GetLiveContainersResponseProto)) { - return super.equals(obj); - } - org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto other = (org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto) obj; - - boolean result = true; - result = result && getNamesList() - .equals(other.getNamesList()); - result = result && getContainersList() - .equals(other.getContainersList()); - 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 (getNamesCount() > 0) { - hash = (37 * hash) + NAMES_FIELD_NUMBER; - hash = (53 * hash) + getNamesList().hashCode(); - } - if (getContainersCount() > 0) { - hash = (37 * hash) + CONTAINERS_FIELD_NUMBER; - hash = (53 * hash) + getContainersList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto 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.slider.api.proto.Messages.GetLiveContainersResponseProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto 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.slider.api.proto.Messages.GetLiveContainersResponseProto 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 org.apache.slider.api.GetLiveContainersResponseProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.apache.slider.api.proto.Messages.GetLiveContainersResponseProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveContainersResponseProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveContainersResponseProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto.class, org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto.Builder.class); - } - - // Construct using org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getContainersFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - names_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - if (containersBuilder_ == null) { - containers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - containersBuilder_.clear(); - } - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveContainersResponseProto_descriptor; - } - - public org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto getDefaultInstanceForType() { - return org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto.getDefaultInstance(); - } - - public org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto build() { - org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto buildPartial() { - org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto result = new org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - names_ = new com.google.protobuf.UnmodifiableLazyStringList( - names_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.names_ = names_; - if (containersBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002)) { - containers_ = java.util.Collections.unmodifiableList(containers_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.containers_ = containers_; - } else { - result.containers_ = containersBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto) { - return mergeFrom((org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto other) { - if (other == org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto.getDefaultInstance()) return this; - if (!other.names_.isEmpty()) { - if (names_.isEmpty()) { - names_ = other.names_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureNamesIsMutable(); - names_.addAll(other.names_); - } - onChanged(); - } - if (containersBuilder_ == null) { - if (!other.containers_.isEmpty()) { - if (containers_.isEmpty()) { - containers_ = other.containers_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureContainersIsMutable(); - containers_.addAll(other.containers_); - } - onChanged(); - } - } else { - if (!other.containers_.isEmpty()) { - if (containersBuilder_.isEmpty()) { - containersBuilder_.dispose(); - containersBuilder_ = null; - containers_ = other.containers_; - bitField0_ = (bitField0_ & ~0x00000002); - containersBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getContainersFieldBuilder() : null; - } else { - containersBuilder_.addAllMessages(other.containers_); - } - } - } - 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.slider.api.proto.Messages.GetLiveContainersResponseProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // repeated string names = 1; - private com.google.protobuf.LazyStringList names_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureNamesIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - names_ = new com.google.protobuf.LazyStringArrayList(names_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string names = 1; - */ - public java.util.List - getNamesList() { - return java.util.Collections.unmodifiableList(names_); - } - /** - * repeated string names = 1; - */ - public int getNamesCount() { - return names_.size(); - } - /** - * repeated string names = 1; - */ - public java.lang.String getNames(int index) { - return names_.get(index); - } - /** - * repeated string names = 1; - */ - public com.google.protobuf.ByteString - getNamesBytes(int index) { - return names_.getByteString(index); - } - /** - * repeated string names = 1; - */ - public Builder setNames( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureNamesIsMutable(); - names_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string names = 1; - */ - public Builder addNames( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureNamesIsMutable(); - names_.add(value); - onChanged(); - return this; - } - /** - * repeated string names = 1; - */ - public Builder addAllNames( - java.lang.Iterable values) { - ensureNamesIsMutable(); - super.addAll(values, names_); - onChanged(); - return this; - } - /** - * repeated string names = 1; - */ - public Builder clearNames() { - names_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string names = 1; - */ - public Builder addNamesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureNamesIsMutable(); - names_.add(value); - onChanged(); - return this; - } - - // repeated .org.apache.slider.api.ContainerInformationProto containers = 2; - private java.util.List containers_ = - java.util.Collections.emptyList(); - private void ensureContainersIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - containers_ = new java.util.ArrayList(containers_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.apache.slider.api.proto.Messages.ContainerInformationProto, org.apache.slider.api.proto.Messages.ContainerInformationProto.Builder, org.apache.slider.api.proto.Messages.ContainerInformationProtoOrBuilder> containersBuilder_; - - /** - * repeated .org.apache.slider.api.ContainerInformationProto containers = 2; - */ - public java.util.List getContainersList() { - if (containersBuilder_ == null) { - return java.util.Collections.unmodifiableList(containers_); - } else { - return containersBuilder_.getMessageList(); - } - } - /** - * repeated .org.apache.slider.api.ContainerInformationProto containers = 2; - */ - public int getContainersCount() { - if (containersBuilder_ == null) { - return containers_.size(); - } else { - return containersBuilder_.getCount(); - } - } - /** - * repeated .org.apache.slider.api.ContainerInformationProto containers = 2; - */ - public org.apache.slider.api.proto.Messages.ContainerInformationProto getContainers(int index) { - if (containersBuilder_ == null) { - return containers_.get(index); - } else { - return containersBuilder_.getMessage(index); - } - } - /** - * repeated .org.apache.slider.api.ContainerInformationProto containers = 2; - */ - public Builder setContainers( - int index, org.apache.slider.api.proto.Messages.ContainerInformationProto value) { - if (containersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureContainersIsMutable(); - containers_.set(index, value); - onChanged(); - } else { - containersBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .org.apache.slider.api.ContainerInformationProto containers = 2; - */ - public Builder setContainers( - int index, org.apache.slider.api.proto.Messages.ContainerInformationProto.Builder builderForValue) { - if (containersBuilder_ == null) { - ensureContainersIsMutable(); - containers_.set(index, builderForValue.build()); - onChanged(); - } else { - containersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.apache.slider.api.ContainerInformationProto containers = 2; - */ - public Builder addContainers(org.apache.slider.api.proto.Messages.ContainerInformationProto value) { - if (containersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureContainersIsMutable(); - containers_.add(value); - onChanged(); - } else { - containersBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .org.apache.slider.api.ContainerInformationProto containers = 2; - */ - public Builder addContainers( - int index, org.apache.slider.api.proto.Messages.ContainerInformationProto value) { - if (containersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureContainersIsMutable(); - containers_.add(index, value); - onChanged(); - } else { - containersBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .org.apache.slider.api.ContainerInformationProto containers = 2; - */ - public Builder addContainers( - org.apache.slider.api.proto.Messages.ContainerInformationProto.Builder builderForValue) { - if (containersBuilder_ == null) { - ensureContainersIsMutable(); - containers_.add(builderForValue.build()); - onChanged(); - } else { - containersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .org.apache.slider.api.ContainerInformationProto containers = 2; - */ - public Builder addContainers( - int index, org.apache.slider.api.proto.Messages.ContainerInformationProto.Builder builderForValue) { - if (containersBuilder_ == null) { - ensureContainersIsMutable(); - containers_.add(index, builderForValue.build()); - onChanged(); - } else { - containersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.apache.slider.api.ContainerInformationProto containers = 2; - */ - public Builder addAllContainers( - java.lang.Iterable values) { - if (containersBuilder_ == null) { - ensureContainersIsMutable(); - super.addAll(values, containers_); - onChanged(); - } else { - containersBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .org.apache.slider.api.ContainerInformationProto containers = 2; - */ - public Builder clearContainers() { - if (containersBuilder_ == null) { - containers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - containersBuilder_.clear(); - } - return this; - } - /** - * repeated .org.apache.slider.api.ContainerInformationProto containers = 2; - */ - public Builder removeContainers(int index) { - if (containersBuilder_ == null) { - ensureContainersIsMutable(); - containers_.remove(index); - onChanged(); - } else { - containersBuilder_.remove(index); - } - return this; - } - /** - * repeated .org.apache.slider.api.ContainerInformationProto containers = 2; - */ - public org.apache.slider.api.proto.Messages.ContainerInformationProto.Builder getContainersBuilder( - int index) { - return getContainersFieldBuilder().getBuilder(index); - } - /** - * repeated .org.apache.slider.api.ContainerInformationProto containers = 2; - */ - public org.apache.slider.api.proto.Messages.ContainerInformationProtoOrBuilder getContainersOrBuilder( - int index) { - if (containersBuilder_ == null) { - return containers_.get(index); } else { - return containersBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .org.apache.slider.api.ContainerInformationProto containers = 2; - */ - public java.util.List - getContainersOrBuilderList() { - if (containersBuilder_ != null) { - return containersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(containers_); - } - } - /** - * repeated .org.apache.slider.api.ContainerInformationProto containers = 2; - */ - public org.apache.slider.api.proto.Messages.ContainerInformationProto.Builder addContainersBuilder() { - return getContainersFieldBuilder().addBuilder( - org.apache.slider.api.proto.Messages.ContainerInformationProto.getDefaultInstance()); - } - /** - * repeated .org.apache.slider.api.ContainerInformationProto containers = 2; - */ - public org.apache.slider.api.proto.Messages.ContainerInformationProto.Builder addContainersBuilder( - int index) { - return getContainersFieldBuilder().addBuilder( - index, org.apache.slider.api.proto.Messages.ContainerInformationProto.getDefaultInstance()); - } - /** - * repeated .org.apache.slider.api.ContainerInformationProto containers = 2; - */ - public java.util.List - getContainersBuilderList() { - return getContainersFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.apache.slider.api.proto.Messages.ContainerInformationProto, org.apache.slider.api.proto.Messages.ContainerInformationProto.Builder, org.apache.slider.api.proto.Messages.ContainerInformationProtoOrBuilder> - getContainersFieldBuilder() { - if (containersBuilder_ == null) { - containersBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.apache.slider.api.proto.Messages.ContainerInformationProto, org.apache.slider.api.proto.Messages.ContainerInformationProto.Builder, org.apache.slider.api.proto.Messages.ContainerInformationProtoOrBuilder>( - containers_, - ((bitField0_ & 0x00000002) == 0x00000002), - getParentForChildren(), - isClean()); - containers_ = null; - } - return containersBuilder_; - } - - // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetLiveContainersResponseProto) - } - - static { - defaultInstance = new GetLiveContainersResponseProto(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetLiveContainersResponseProto) - } - - public interface GetLiveContainerRequestProtoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // required string containerId = 1; - /** - * required string containerId = 1; - */ - boolean hasContainerId(); - /** - * required string containerId = 1; - */ - java.lang.String getContainerId(); - /** - * required string containerId = 1; - */ - com.google.protobuf.ByteString - getContainerIdBytes(); - } - /** - * Protobuf type {@code org.apache.slider.api.GetLiveContainerRequestProto} - */ - public static final class GetLiveContainerRequestProto extends - com.google.protobuf.GeneratedMessage - implements GetLiveContainerRequestProtoOrBuilder { - // Use GetLiveContainerRequestProto.newBuilder() to construct. - private GetLiveContainerRequestProto(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private GetLiveContainerRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final GetLiveContainerRequestProto defaultInstance; - public static GetLiveContainerRequestProto getDefaultInstance() { - return defaultInstance; - } - - public GetLiveContainerRequestProto getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetLiveContainerRequestProto( - 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; - containerId_ = 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.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveContainerRequestProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveContainerRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto.class, org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GetLiveContainerRequestProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetLiveContainerRequestProto(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // required string containerId = 1; - public static final int CONTAINERID_FIELD_NUMBER = 1; - private java.lang.Object containerId_; - /** - * required string containerId = 1; - */ - public boolean hasContainerId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string containerId = 1; - */ - public java.lang.String getContainerId() { - java.lang.Object ref = containerId_; - 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()) { - containerId_ = s; - } - return s; - } - } - /** - * required string containerId = 1; - */ - public com.google.protobuf.ByteString - getContainerIdBytes() { - java.lang.Object ref = containerId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - containerId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private void initFields() { - containerId_ = ""; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (!hasContainerId()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getContainerIdBytes()); - } - 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, getContainerIdBytes()); - } - 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.slider.api.proto.Messages.GetLiveContainerRequestProto)) { - return super.equals(obj); - } - org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto other = (org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto) obj; - - boolean result = true; - result = result && (hasContainerId() == other.hasContainerId()); - if (hasContainerId()) { - result = result && getContainerId() - .equals(other.getContainerId()); - } - 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 (hasContainerId()) { - hash = (37 * hash) + CONTAINERID_FIELD_NUMBER; - hash = (53 * hash) + getContainerId().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto 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.slider.api.proto.Messages.GetLiveContainerRequestProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto 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.slider.api.proto.Messages.GetLiveContainerRequestProto 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 org.apache.slider.api.GetLiveContainerRequestProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.apache.slider.api.proto.Messages.GetLiveContainerRequestProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveContainerRequestProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveContainerRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto.class, org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto.Builder.class); - } - - // Construct using org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto.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(); - containerId_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveContainerRequestProto_descriptor; - } - - public org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto getDefaultInstanceForType() { - return org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto.getDefaultInstance(); - } - - public org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto build() { - org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto buildPartial() { - org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto result = new org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.containerId_ = containerId_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto) { - return mergeFrom((org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto other) { - if (other == org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto.getDefaultInstance()) return this; - if (other.hasContainerId()) { - bitField0_ |= 0x00000001; - containerId_ = other.containerId_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasContainerId()) { - - return false; - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // required string containerId = 1; - private java.lang.Object containerId_ = ""; - /** - * required string containerId = 1; - */ - public boolean hasContainerId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string containerId = 1; - */ - public java.lang.String getContainerId() { - java.lang.Object ref = containerId_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - containerId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string containerId = 1; - */ - public com.google.protobuf.ByteString - getContainerIdBytes() { - java.lang.Object ref = containerId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - containerId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string containerId = 1; - */ - public Builder setContainerId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - containerId_ = value; - onChanged(); - return this; - } - /** - * required string containerId = 1; - */ - public Builder clearContainerId() { - bitField0_ = (bitField0_ & ~0x00000001); - containerId_ = getDefaultInstance().getContainerId(); - onChanged(); - return this; - } - /** - * required string containerId = 1; - */ - public Builder setContainerIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - containerId_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetLiveContainerRequestProto) - } - - static { - defaultInstance = new GetLiveContainerRequestProto(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetLiveContainerRequestProto) - } - - public interface GetLiveComponentsRequestProtoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code org.apache.slider.api.GetLiveComponentsRequestProto} - */ - public static final class GetLiveComponentsRequestProto extends - com.google.protobuf.GeneratedMessage - implements GetLiveComponentsRequestProtoOrBuilder { - // Use GetLiveComponentsRequestProto.newBuilder() to construct. - private GetLiveComponentsRequestProto(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private GetLiveComponentsRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final GetLiveComponentsRequestProto defaultInstance; - public static GetLiveComponentsRequestProto getDefaultInstance() { - return defaultInstance; - } - - public GetLiveComponentsRequestProto getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetLiveComponentsRequestProto( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - 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; - } - } - } - } 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.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveComponentsRequestProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveComponentsRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto.class, org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GetLiveComponentsRequestProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetLiveComponentsRequestProto(input, extensionRegistry); - } - }; - - @java.lang.Override - public 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(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.slider.api.proto.Messages.GetLiveComponentsRequestProto)) { - return super.equals(obj); - } - org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto other = (org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto) 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.slider.api.proto.Messages.GetLiveComponentsRequestProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto 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.slider.api.proto.Messages.GetLiveComponentsRequestProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto 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.slider.api.proto.Messages.GetLiveComponentsRequestProto 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 org.apache.slider.api.GetLiveComponentsRequestProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveComponentsRequestProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveComponentsRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto.class, org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto.Builder.class); - } - - // Construct using org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto.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(); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveComponentsRequestProto_descriptor; - } - - public org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto getDefaultInstanceForType() { - return org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto.getDefaultInstance(); - } - - public org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto build() { - org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto buildPartial() { - org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto result = new org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto(this); - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto) { - return mergeFrom((org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto other) { - if (other == org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto.getDefaultInstance()) return this; - 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.slider.api.proto.Messages.GetLiveComponentsRequestProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetLiveComponentsRequestProto) - } - - static { - defaultInstance = new GetLiveComponentsRequestProto(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetLiveComponentsRequestProto) - } - - public interface GetLiveComponentsResponseProtoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // repeated string names = 1; - /** - * repeated string names = 1; - */ - java.util.List - getNamesList(); - /** - * repeated string names = 1; - */ - int getNamesCount(); - /** - * repeated string names = 1; - */ - java.lang.String getNames(int index); - /** - * repeated string names = 1; - */ - com.google.protobuf.ByteString - getNamesBytes(int index); - - // repeated .org.apache.slider.api.ComponentInformationProto components = 2; - /** - * repeated .org.apache.slider.api.ComponentInformationProto components = 2; - */ - java.util.List - getComponentsList(); - /** - * repeated .org.apache.slider.api.ComponentInformationProto components = 2; - */ - org.apache.slider.api.proto.Messages.ComponentInformationProto getComponents(int index); - /** - * repeated .org.apache.slider.api.ComponentInformationProto components = 2; - */ - int getComponentsCount(); - /** - * repeated .org.apache.slider.api.ComponentInformationProto components = 2; - */ - java.util.List - getComponentsOrBuilderList(); - /** - * repeated .org.apache.slider.api.ComponentInformationProto components = 2; - */ - org.apache.slider.api.proto.Messages.ComponentInformationProtoOrBuilder getComponentsOrBuilder( - int index); - } - /** - * Protobuf type {@code org.apache.slider.api.GetLiveComponentsResponseProto} - */ - public static final class GetLiveComponentsResponseProto extends - com.google.protobuf.GeneratedMessage - implements GetLiveComponentsResponseProtoOrBuilder { - // Use GetLiveComponentsResponseProto.newBuilder() to construct. - private GetLiveComponentsResponseProto(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private GetLiveComponentsResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final GetLiveComponentsResponseProto defaultInstance; - public static GetLiveComponentsResponseProto getDefaultInstance() { - return defaultInstance; - } - - public GetLiveComponentsResponseProto getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetLiveComponentsResponseProto( - 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)) { - names_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - names_.add(input.readBytes()); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - components_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - components_.add(input.readMessage(org.apache.slider.api.proto.Messages.ComponentInformationProto.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)) { - names_ = new com.google.protobuf.UnmodifiableLazyStringList(names_); - } - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - components_ = java.util.Collections.unmodifiableList(components_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveComponentsResponseProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveComponentsResponseProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto.class, org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GetLiveComponentsResponseProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetLiveComponentsResponseProto(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - // repeated string names = 1; - public static final int NAMES_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList names_; - /** - * repeated string names = 1; - */ - public java.util.List - getNamesList() { - return names_; - } - /** - * repeated string names = 1; - */ - public int getNamesCount() { - return names_.size(); - } - /** - * repeated string names = 1; - */ - public java.lang.String getNames(int index) { - return names_.get(index); - } - /** - * repeated string names = 1; - */ - public com.google.protobuf.ByteString - getNamesBytes(int index) { - return names_.getByteString(index); - } - - // repeated .org.apache.slider.api.ComponentInformationProto components = 2; - public static final int COMPONENTS_FIELD_NUMBER = 2; - private java.util.List components_; - /** - * repeated .org.apache.slider.api.ComponentInformationProto components = 2; - */ - public java.util.List getComponentsList() { - return components_; - } - /** - * repeated .org.apache.slider.api.ComponentInformationProto components = 2; - */ - public java.util.List - getComponentsOrBuilderList() { - return components_; - } - /** - * repeated .org.apache.slider.api.ComponentInformationProto components = 2; - */ - public int getComponentsCount() { - return components_.size(); - } - /** - * repeated .org.apache.slider.api.ComponentInformationProto components = 2; - */ - public org.apache.slider.api.proto.Messages.ComponentInformationProto getComponents(int index) { - return components_.get(index); - } - /** - * repeated .org.apache.slider.api.ComponentInformationProto components = 2; - */ - public org.apache.slider.api.proto.Messages.ComponentInformationProtoOrBuilder getComponentsOrBuilder( - int index) { - return components_.get(index); - } - - private void initFields() { - names_ = com.google.protobuf.LazyStringArrayList.EMPTY; - components_ = 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 < names_.size(); i++) { - output.writeBytes(1, names_.getByteString(i)); - } - for (int i = 0; i < components_.size(); i++) { - output.writeMessage(2, components_.get(i)); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < names_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(names_.getByteString(i)); - } - size += dataSize; - size += 1 * getNamesList().size(); - } - for (int i = 0; i < components_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, components_.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.slider.api.proto.Messages.GetLiveComponentsResponseProto)) { - return super.equals(obj); - } - org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto other = (org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto) obj; - - boolean result = true; - result = result && getNamesList() - .equals(other.getNamesList()); - result = result && getComponentsList() - .equals(other.getComponentsList()); - 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 (getNamesCount() > 0) { - hash = (37 * hash) + NAMES_FIELD_NUMBER; - hash = (53 * hash) + getNamesList().hashCode(); - } - if (getComponentsCount() > 0) { - hash = (37 * hash) + COMPONENTS_FIELD_NUMBER; - hash = (53 * hash) + getComponentsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto 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.slider.api.proto.Messages.GetLiveComponentsResponseProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto 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.slider.api.proto.Messages.GetLiveComponentsResponseProto 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 org.apache.slider.api.GetLiveComponentsResponseProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveComponentsResponseProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveComponentsResponseProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto.class, org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto.Builder.class); - } - - // Construct using org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getComponentsFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - names_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - if (componentsBuilder_ == null) { - components_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - componentsBuilder_.clear(); - } - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveComponentsResponseProto_descriptor; - } - - public org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto getDefaultInstanceForType() { - return org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto.getDefaultInstance(); - } - - public org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto build() { - org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto buildPartial() { - org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto result = new org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - names_ = new com.google.protobuf.UnmodifiableLazyStringList( - names_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.names_ = names_; - if (componentsBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002)) { - components_ = java.util.Collections.unmodifiableList(components_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.components_ = components_; - } else { - result.components_ = componentsBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto) { - return mergeFrom((org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto other) { - if (other == org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto.getDefaultInstance()) return this; - if (!other.names_.isEmpty()) { - if (names_.isEmpty()) { - names_ = other.names_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureNamesIsMutable(); - names_.addAll(other.names_); - } - onChanged(); - } - if (componentsBuilder_ == null) { - if (!other.components_.isEmpty()) { - if (components_.isEmpty()) { - components_ = other.components_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureComponentsIsMutable(); - components_.addAll(other.components_); - } - onChanged(); - } - } else { - if (!other.components_.isEmpty()) { - if (componentsBuilder_.isEmpty()) { - componentsBuilder_.dispose(); - componentsBuilder_ = null; - components_ = other.components_; - bitField0_ = (bitField0_ & ~0x00000002); - componentsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getComponentsFieldBuilder() : null; - } else { - componentsBuilder_.addAllMessages(other.components_); - } - } - } - 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.slider.api.proto.Messages.GetLiveComponentsResponseProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // repeated string names = 1; - private com.google.protobuf.LazyStringList names_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureNamesIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - names_ = new com.google.protobuf.LazyStringArrayList(names_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string names = 1; - */ - public java.util.List - getNamesList() { - return java.util.Collections.unmodifiableList(names_); - } - /** - * repeated string names = 1; - */ - public int getNamesCount() { - return names_.size(); - } - /** - * repeated string names = 1; - */ - public java.lang.String getNames(int index) { - return names_.get(index); - } - /** - * repeated string names = 1; - */ - public com.google.protobuf.ByteString - getNamesBytes(int index) { - return names_.getByteString(index); - } - /** - * repeated string names = 1; - */ - public Builder setNames( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureNamesIsMutable(); - names_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string names = 1; - */ - public Builder addNames( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureNamesIsMutable(); - names_.add(value); - onChanged(); - return this; - } - /** - * repeated string names = 1; - */ - public Builder addAllNames( - java.lang.Iterable values) { - ensureNamesIsMutable(); - super.addAll(values, names_); - onChanged(); - return this; - } - /** - * repeated string names = 1; - */ - public Builder clearNames() { - names_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string names = 1; - */ - public Builder addNamesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureNamesIsMutable(); - names_.add(value); - onChanged(); - return this; - } - - // repeated .org.apache.slider.api.ComponentInformationProto components = 2; - private java.util.List components_ = - java.util.Collections.emptyList(); - private void ensureComponentsIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - components_ = new java.util.ArrayList(components_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.apache.slider.api.proto.Messages.ComponentInformationProto, org.apache.slider.api.proto.Messages.ComponentInformationProto.Builder, org.apache.slider.api.proto.Messages.ComponentInformationProtoOrBuilder> componentsBuilder_; - - /** - * repeated .org.apache.slider.api.ComponentInformationProto components = 2; - */ - public java.util.List getComponentsList() { - if (componentsBuilder_ == null) { - return java.util.Collections.unmodifiableList(components_); - } else { - return componentsBuilder_.getMessageList(); - } - } - /** - * repeated .org.apache.slider.api.ComponentInformationProto components = 2; - */ - public int getComponentsCount() { - if (componentsBuilder_ == null) { - return components_.size(); - } else { - return componentsBuilder_.getCount(); - } - } - /** - * repeated .org.apache.slider.api.ComponentInformationProto components = 2; - */ - public org.apache.slider.api.proto.Messages.ComponentInformationProto getComponents(int index) { - if (componentsBuilder_ == null) { - return components_.get(index); - } else { - return componentsBuilder_.getMessage(index); - } - } - /** - * repeated .org.apache.slider.api.ComponentInformationProto components = 2; - */ - public Builder setComponents( - int index, org.apache.slider.api.proto.Messages.ComponentInformationProto value) { - if (componentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureComponentsIsMutable(); - components_.set(index, value); - onChanged(); - } else { - componentsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .org.apache.slider.api.ComponentInformationProto components = 2; - */ - public Builder setComponents( - int index, org.apache.slider.api.proto.Messages.ComponentInformationProto.Builder builderForValue) { - if (componentsBuilder_ == null) { - ensureComponentsIsMutable(); - components_.set(index, builderForValue.build()); - onChanged(); - } else { - componentsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.apache.slider.api.ComponentInformationProto components = 2; - */ - public Builder addComponents(org.apache.slider.api.proto.Messages.ComponentInformationProto value) { - if (componentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureComponentsIsMutable(); - components_.add(value); - onChanged(); - } else { - componentsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .org.apache.slider.api.ComponentInformationProto components = 2; - */ - public Builder addComponents( - int index, org.apache.slider.api.proto.Messages.ComponentInformationProto value) { - if (componentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureComponentsIsMutable(); - components_.add(index, value); - onChanged(); - } else { - componentsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .org.apache.slider.api.ComponentInformationProto components = 2; - */ - public Builder addComponents( - org.apache.slider.api.proto.Messages.ComponentInformationProto.Builder builderForValue) { - if (componentsBuilder_ == null) { - ensureComponentsIsMutable(); - components_.add(builderForValue.build()); - onChanged(); - } else { - componentsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .org.apache.slider.api.ComponentInformationProto components = 2; - */ - public Builder addComponents( - int index, org.apache.slider.api.proto.Messages.ComponentInformationProto.Builder builderForValue) { - if (componentsBuilder_ == null) { - ensureComponentsIsMutable(); - components_.add(index, builderForValue.build()); - onChanged(); - } else { - componentsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.apache.slider.api.ComponentInformationProto components = 2; - */ - public Builder addAllComponents( - java.lang.Iterable values) { - if (componentsBuilder_ == null) { - ensureComponentsIsMutable(); - super.addAll(values, components_); - onChanged(); - } else { - componentsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .org.apache.slider.api.ComponentInformationProto components = 2; - */ - public Builder clearComponents() { - if (componentsBuilder_ == null) { - components_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - componentsBuilder_.clear(); - } - return this; - } - /** - * repeated .org.apache.slider.api.ComponentInformationProto components = 2; - */ - public Builder removeComponents(int index) { - if (componentsBuilder_ == null) { - ensureComponentsIsMutable(); - components_.remove(index); - onChanged(); - } else { - componentsBuilder_.remove(index); - } - return this; - } - /** - * repeated .org.apache.slider.api.ComponentInformationProto components = 2; - */ - public org.apache.slider.api.proto.Messages.ComponentInformationProto.Builder getComponentsBuilder( - int index) { - return getComponentsFieldBuilder().getBuilder(index); - } - /** - * repeated .org.apache.slider.api.ComponentInformationProto components = 2; - */ - public org.apache.slider.api.proto.Messages.ComponentInformationProtoOrBuilder getComponentsOrBuilder( - int index) { - if (componentsBuilder_ == null) { - return components_.get(index); } else { - return componentsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .org.apache.slider.api.ComponentInformationProto components = 2; - */ - public java.util.List - getComponentsOrBuilderList() { - if (componentsBuilder_ != null) { - return componentsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(components_); - } - } - /** - * repeated .org.apache.slider.api.ComponentInformationProto components = 2; - */ - public org.apache.slider.api.proto.Messages.ComponentInformationProto.Builder addComponentsBuilder() { - return getComponentsFieldBuilder().addBuilder( - org.apache.slider.api.proto.Messages.ComponentInformationProto.getDefaultInstance()); - } - /** - * repeated .org.apache.slider.api.ComponentInformationProto components = 2; - */ - public org.apache.slider.api.proto.Messages.ComponentInformationProto.Builder addComponentsBuilder( - int index) { - return getComponentsFieldBuilder().addBuilder( - index, org.apache.slider.api.proto.Messages.ComponentInformationProto.getDefaultInstance()); - } - /** - * repeated .org.apache.slider.api.ComponentInformationProto components = 2; - */ - public java.util.List - getComponentsBuilderList() { - return getComponentsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.apache.slider.api.proto.Messages.ComponentInformationProto, org.apache.slider.api.proto.Messages.ComponentInformationProto.Builder, org.apache.slider.api.proto.Messages.ComponentInformationProtoOrBuilder> - getComponentsFieldBuilder() { - if (componentsBuilder_ == null) { - componentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.apache.slider.api.proto.Messages.ComponentInformationProto, org.apache.slider.api.proto.Messages.ComponentInformationProto.Builder, org.apache.slider.api.proto.Messages.ComponentInformationProtoOrBuilder>( - components_, - ((bitField0_ & 0x00000002) == 0x00000002), - getParentForChildren(), - isClean()); - components_ = null; - } - return componentsBuilder_; - } - - // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetLiveComponentsResponseProto) - } - - static { - defaultInstance = new GetLiveComponentsResponseProto(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetLiveComponentsResponseProto) - } - - public interface GetLiveComponentRequestProtoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // required string name = 1; - /** - * required string name = 1; - */ - boolean hasName(); - /** - * required string name = 1; - */ - java.lang.String getName(); - /** - * required string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - } - /** - * Protobuf type {@code org.apache.slider.api.GetLiveComponentRequestProto} - */ - public static final class GetLiveComponentRequestProto extends - com.google.protobuf.GeneratedMessage - implements GetLiveComponentRequestProtoOrBuilder { - // Use GetLiveComponentRequestProto.newBuilder() to construct. - private GetLiveComponentRequestProto(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private GetLiveComponentRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final GetLiveComponentRequestProto defaultInstance; - public static GetLiveComponentRequestProto getDefaultInstance() { - return defaultInstance; - } - - public GetLiveComponentRequestProto getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetLiveComponentRequestProto( - 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; - name_ = 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.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveComponentRequestProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveComponentRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto.class, org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GetLiveComponentRequestProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetLiveComponentRequestProto(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // required string name = 1; - public static final int NAME_FIELD_NUMBER = 1; - private java.lang.Object name_; - /** - * required string name = 1; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } - } - /** - * required string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private void initFields() { - name_ = ""; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (!hasName()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getNameBytes()); - } - 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, getNameBytes()); - } - 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.slider.api.proto.Messages.GetLiveComponentRequestProto)) { - return super.equals(obj); - } - org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto other = (org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto) obj; - - boolean result = true; - result = result && (hasName() == other.hasName()); - if (hasName()) { - result = result && getName() - .equals(other.getName()); - } - 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 (hasName()) { - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto 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.slider.api.proto.Messages.GetLiveComponentRequestProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto 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.slider.api.proto.Messages.GetLiveComponentRequestProto 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 org.apache.slider.api.GetLiveComponentRequestProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.apache.slider.api.proto.Messages.GetLiveComponentRequestProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveComponentRequestProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveComponentRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto.class, org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto.Builder.class); - } - - // Construct using org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto.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(); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveComponentRequestProto_descriptor; - } - - public org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto getDefaultInstanceForType() { - return org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto.getDefaultInstance(); - } - - public org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto build() { - org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto buildPartial() { - org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto result = new org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.name_ = name_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto) { - return mergeFrom((org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto other) { - if (other == org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto.getDefaultInstance()) return this; - if (other.hasName()) { - bitField0_ |= 0x00000001; - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasName()) { - - return false; - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // required string name = 1; - private java.lang.Object name_ = ""; - /** - * required string name = 1; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = value; - onChanged(); - return this; - } - /** - * required string name = 1; - */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000001); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * required string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetLiveComponentRequestProto) - } - - static { - defaultInstance = new GetLiveComponentRequestProto(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetLiveComponentRequestProto) - } - - public interface GetApplicationLivenessRequestProtoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code org.apache.slider.api.GetApplicationLivenessRequestProto} - */ - public static final class GetApplicationLivenessRequestProto extends - com.google.protobuf.GeneratedMessage - implements GetApplicationLivenessRequestProtoOrBuilder { - // Use GetApplicationLivenessRequestProto.newBuilder() to construct. - private GetApplicationLivenessRequestProto(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private GetApplicationLivenessRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final GetApplicationLivenessRequestProto defaultInstance; - public static GetApplicationLivenessRequestProto getDefaultInstance() { - return defaultInstance; - } - - public GetApplicationLivenessRequestProto getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetApplicationLivenessRequestProto( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - 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; - } - } - } - } 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.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetApplicationLivenessRequestProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetApplicationLivenessRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto.class, org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GetApplicationLivenessRequestProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetApplicationLivenessRequestProto(input, extensionRegistry); - } - }; - - @java.lang.Override - public 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(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.slider.api.proto.Messages.GetApplicationLivenessRequestProto)) { - return super.equals(obj); - } - org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto other = (org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto) 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.slider.api.proto.Messages.GetApplicationLivenessRequestProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto 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.slider.api.proto.Messages.GetApplicationLivenessRequestProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto 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.slider.api.proto.Messages.GetApplicationLivenessRequestProto 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 org.apache.slider.api.GetApplicationLivenessRequestProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetApplicationLivenessRequestProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetApplicationLivenessRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto.class, org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto.Builder.class); - } - - // Construct using org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto.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(); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetApplicationLivenessRequestProto_descriptor; - } - - public org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto getDefaultInstanceForType() { - return org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto.getDefaultInstance(); - } - - public org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto build() { - org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto buildPartial() { - org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto result = new org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto(this); - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto) { - return mergeFrom((org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto other) { - if (other == org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto.getDefaultInstance()) return this; - 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.slider.api.proto.Messages.GetApplicationLivenessRequestProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetApplicationLivenessRequestProto) - } - - static { - defaultInstance = new GetApplicationLivenessRequestProto(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetApplicationLivenessRequestProto) - } - - public interface EmptyPayloadProtoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code org.apache.slider.api.EmptyPayloadProto} - */ - public static final class EmptyPayloadProto extends - com.google.protobuf.GeneratedMessage - implements EmptyPayloadProtoOrBuilder { - // Use EmptyPayloadProto.newBuilder() to construct. - private EmptyPayloadProto(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private EmptyPayloadProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final EmptyPayloadProto defaultInstance; - public static EmptyPayloadProto getDefaultInstance() { - return defaultInstance; - } - - public EmptyPayloadProto getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EmptyPayloadProto( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - 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; - } - } - } - } 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.slider.api.proto.Messages.internal_static_org_apache_slider_api_EmptyPayloadProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_EmptyPayloadProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.EmptyPayloadProto.class, org.apache.slider.api.proto.Messages.EmptyPayloadProto.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public EmptyPayloadProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EmptyPayloadProto(input, extensionRegistry); - } - }; - - @java.lang.Override - public 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(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.slider.api.proto.Messages.EmptyPayloadProto)) { - return super.equals(obj); - } - org.apache.slider.api.proto.Messages.EmptyPayloadProto other = (org.apache.slider.api.proto.Messages.EmptyPayloadProto) 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.slider.api.proto.Messages.EmptyPayloadProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.EmptyPayloadProto 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.slider.api.proto.Messages.EmptyPayloadProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.EmptyPayloadProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.EmptyPayloadProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.EmptyPayloadProto parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.EmptyPayloadProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.apache.slider.api.proto.Messages.EmptyPayloadProto parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.EmptyPayloadProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.EmptyPayloadProto 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.slider.api.proto.Messages.EmptyPayloadProto 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 org.apache.slider.api.EmptyPayloadProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.apache.slider.api.proto.Messages.EmptyPayloadProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_EmptyPayloadProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_EmptyPayloadProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.EmptyPayloadProto.class, org.apache.slider.api.proto.Messages.EmptyPayloadProto.Builder.class); - } - - // Construct using org.apache.slider.api.proto.Messages.EmptyPayloadProto.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(); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_EmptyPayloadProto_descriptor; - } - - public org.apache.slider.api.proto.Messages.EmptyPayloadProto getDefaultInstanceForType() { - return org.apache.slider.api.proto.Messages.EmptyPayloadProto.getDefaultInstance(); - } - - public org.apache.slider.api.proto.Messages.EmptyPayloadProto build() { - org.apache.slider.api.proto.Messages.EmptyPayloadProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.apache.slider.api.proto.Messages.EmptyPayloadProto buildPartial() { - org.apache.slider.api.proto.Messages.EmptyPayloadProto result = new org.apache.slider.api.proto.Messages.EmptyPayloadProto(this); - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.slider.api.proto.Messages.EmptyPayloadProto) { - return mergeFrom((org.apache.slider.api.proto.Messages.EmptyPayloadProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.apache.slider.api.proto.Messages.EmptyPayloadProto other) { - if (other == org.apache.slider.api.proto.Messages.EmptyPayloadProto.getDefaultInstance()) return this; - 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.slider.api.proto.Messages.EmptyPayloadProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.slider.api.proto.Messages.EmptyPayloadProto) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - // @@protoc_insertion_point(builder_scope:org.apache.slider.api.EmptyPayloadProto) - } - - static { - defaultInstance = new EmptyPayloadProto(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.apache.slider.api.EmptyPayloadProto) - } - - public interface WrappedJsonProtoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // required string json = 1; - /** - * required string json = 1; - */ - boolean hasJson(); - /** - * required string json = 1; - */ - java.lang.String getJson(); - /** - * required string json = 1; - */ - com.google.protobuf.ByteString - getJsonBytes(); - } - /** - * Protobuf type {@code org.apache.slider.api.WrappedJsonProto} - * - *
-   **
-   *Generic JSON, often containing data structures serialized as a string
-   * 
- */ - public static final class WrappedJsonProto extends - com.google.protobuf.GeneratedMessage - implements WrappedJsonProtoOrBuilder { - // Use WrappedJsonProto.newBuilder() to construct. - private WrappedJsonProto(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private WrappedJsonProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final WrappedJsonProto defaultInstance; - public static WrappedJsonProto getDefaultInstance() { - return defaultInstance; - } - - public WrappedJsonProto getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WrappedJsonProto( - 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; - json_ = 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.slider.api.proto.Messages.internal_static_org_apache_slider_api_WrappedJsonProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_WrappedJsonProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.WrappedJsonProto.class, org.apache.slider.api.proto.Messages.WrappedJsonProto.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public WrappedJsonProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WrappedJsonProto(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // required string json = 1; - public static final int JSON_FIELD_NUMBER = 1; - private java.lang.Object json_; - /** - * required string json = 1; - */ - public boolean hasJson() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string json = 1; - */ - public java.lang.String getJson() { - java.lang.Object ref = json_; - 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()) { - json_ = s; - } - return s; - } - } - /** - * required string json = 1; - */ - public com.google.protobuf.ByteString - getJsonBytes() { - java.lang.Object ref = json_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - json_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private void initFields() { - json_ = ""; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (!hasJson()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getJsonBytes()); - } - 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, getJsonBytes()); - } - 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.slider.api.proto.Messages.WrappedJsonProto)) { - return super.equals(obj); - } - org.apache.slider.api.proto.Messages.WrappedJsonProto other = (org.apache.slider.api.proto.Messages.WrappedJsonProto) obj; - - boolean result = true; - result = result && (hasJson() == other.hasJson()); - if (hasJson()) { - result = result && getJson() - .equals(other.getJson()); - } - 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 (hasJson()) { - hash = (37 * hash) + JSON_FIELD_NUMBER; - hash = (53 * hash) + getJson().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.apache.slider.api.proto.Messages.WrappedJsonProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.WrappedJsonProto 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.slider.api.proto.Messages.WrappedJsonProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.WrappedJsonProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.WrappedJsonProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.WrappedJsonProto parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.WrappedJsonProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.apache.slider.api.proto.Messages.WrappedJsonProto parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.WrappedJsonProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.WrappedJsonProto 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.slider.api.proto.Messages.WrappedJsonProto 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 org.apache.slider.api.WrappedJsonProto} - * - *
-     **
-     *Generic JSON, often containing data structures serialized as a string
-     * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.apache.slider.api.proto.Messages.WrappedJsonProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_WrappedJsonProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_WrappedJsonProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.WrappedJsonProto.class, org.apache.slider.api.proto.Messages.WrappedJsonProto.Builder.class); - } - - // Construct using org.apache.slider.api.proto.Messages.WrappedJsonProto.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(); - json_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_WrappedJsonProto_descriptor; - } - - public org.apache.slider.api.proto.Messages.WrappedJsonProto getDefaultInstanceForType() { - return org.apache.slider.api.proto.Messages.WrappedJsonProto.getDefaultInstance(); - } - - public org.apache.slider.api.proto.Messages.WrappedJsonProto build() { - org.apache.slider.api.proto.Messages.WrappedJsonProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.apache.slider.api.proto.Messages.WrappedJsonProto buildPartial() { - org.apache.slider.api.proto.Messages.WrappedJsonProto result = new org.apache.slider.api.proto.Messages.WrappedJsonProto(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.json_ = json_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.slider.api.proto.Messages.WrappedJsonProto) { - return mergeFrom((org.apache.slider.api.proto.Messages.WrappedJsonProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.apache.slider.api.proto.Messages.WrappedJsonProto other) { - if (other == org.apache.slider.api.proto.Messages.WrappedJsonProto.getDefaultInstance()) return this; - if (other.hasJson()) { - bitField0_ |= 0x00000001; - json_ = other.json_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasJson()) { - - return false; - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.apache.slider.api.proto.Messages.WrappedJsonProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.slider.api.proto.Messages.WrappedJsonProto) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // required string json = 1; - private java.lang.Object json_ = ""; - /** - * required string json = 1; - */ - public boolean hasJson() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string json = 1; - */ - public java.lang.String getJson() { - java.lang.Object ref = json_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - json_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string json = 1; - */ - public com.google.protobuf.ByteString - getJsonBytes() { - java.lang.Object ref = json_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - json_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string json = 1; - */ - public Builder setJson( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - json_ = value; - onChanged(); - return this; - } - /** - * required string json = 1; - */ - public Builder clearJson() { - bitField0_ = (bitField0_ & ~0x00000001); - json_ = getDefaultInstance().getJson(); - onChanged(); - return this; - } - /** - * required string json = 1; - */ - public Builder setJsonBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - json_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:org.apache.slider.api.WrappedJsonProto) - } - - static { - defaultInstance = new WrappedJsonProto(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.apache.slider.api.WrappedJsonProto) - } - - public interface GetCertificateStoreRequestProtoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // optional string hostname = 1; - /** - * optional string hostname = 1; - */ - boolean hasHostname(); - /** - * optional string hostname = 1; - */ - java.lang.String getHostname(); - /** - * optional string hostname = 1; - */ - com.google.protobuf.ByteString - getHostnameBytes(); - - // required string requesterId = 2; - /** - * required string requesterId = 2; - */ - boolean hasRequesterId(); - /** - * required string requesterId = 2; - */ - java.lang.String getRequesterId(); - /** - * required string requesterId = 2; - */ - com.google.protobuf.ByteString - getRequesterIdBytes(); - - // required string password = 3; - /** - * required string password = 3; - */ - boolean hasPassword(); - /** - * required string password = 3; - */ - java.lang.String getPassword(); - /** - * required string password = 3; - */ - com.google.protobuf.ByteString - getPasswordBytes(); - - // required string type = 4; - /** - * required string type = 4; - */ - boolean hasType(); - /** - * required string type = 4; - */ - java.lang.String getType(); - /** - * required string type = 4; - */ - com.google.protobuf.ByteString - getTypeBytes(); - } - /** - * Protobuf type {@code org.apache.slider.api.GetCertificateStoreRequestProto} - */ - public static final class GetCertificateStoreRequestProto extends - com.google.protobuf.GeneratedMessage - implements GetCertificateStoreRequestProtoOrBuilder { - // Use GetCertificateStoreRequestProto.newBuilder() to construct. - private GetCertificateStoreRequestProto(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private GetCertificateStoreRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final GetCertificateStoreRequestProto defaultInstance; - public static GetCertificateStoreRequestProto getDefaultInstance() { - return defaultInstance; - } - - public GetCertificateStoreRequestProto getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetCertificateStoreRequestProto( - 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; - hostname_ = input.readBytes(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - requesterId_ = input.readBytes(); - break; - } - case 26: { - bitField0_ |= 0x00000004; - password_ = input.readBytes(); - break; - } - case 34: { - bitField0_ |= 0x00000008; - type_ = 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.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetCertificateStoreRequestProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetCertificateStoreRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto.class, org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GetCertificateStoreRequestProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetCertificateStoreRequestProto(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // optional string hostname = 1; - public static final int HOSTNAME_FIELD_NUMBER = 1; - private java.lang.Object hostname_; - /** - * optional string hostname = 1; - */ - public boolean hasHostname() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string hostname = 1; - */ - public java.lang.String getHostname() { - java.lang.Object ref = hostname_; - 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()) { - hostname_ = s; - } - return s; - } - } - /** - * optional string hostname = 1; - */ - public com.google.protobuf.ByteString - getHostnameBytes() { - java.lang.Object ref = hostname_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - hostname_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // required string requesterId = 2; - public static final int REQUESTERID_FIELD_NUMBER = 2; - private java.lang.Object requesterId_; - /** - * required string requesterId = 2; - */ - public boolean hasRequesterId() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required string requesterId = 2; - */ - public java.lang.String getRequesterId() { - java.lang.Object ref = requesterId_; - 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()) { - requesterId_ = s; - } - return s; - } - } - /** - * required string requesterId = 2; - */ - public com.google.protobuf.ByteString - getRequesterIdBytes() { - java.lang.Object ref = requesterId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - requesterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // required string password = 3; - public static final int PASSWORD_FIELD_NUMBER = 3; - private java.lang.Object password_; - /** - * required string password = 3; - */ - public boolean hasPassword() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * required string password = 3; - */ - public java.lang.String getPassword() { - java.lang.Object ref = password_; - 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()) { - password_ = s; - } - return s; - } - } - /** - * required string password = 3; - */ - public com.google.protobuf.ByteString - getPasswordBytes() { - java.lang.Object ref = password_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - password_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // required string type = 4; - public static final int TYPE_FIELD_NUMBER = 4; - private java.lang.Object type_; - /** - * required string type = 4; - */ - public boolean hasType() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * required string type = 4; - */ - public java.lang.String getType() { - java.lang.Object ref = type_; - 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()) { - type_ = s; - } - return s; - } - } - /** - * required string type = 4; - */ - public com.google.protobuf.ByteString - getTypeBytes() { - java.lang.Object ref = type_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - type_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private void initFields() { - hostname_ = ""; - requesterId_ = ""; - password_ = ""; - type_ = ""; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (!hasRequesterId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasPassword()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasType()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getHostnameBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getRequesterIdBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getPasswordBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getTypeBytes()); - } - 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, getHostnameBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getRequesterIdBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getPasswordBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getTypeBytes()); - } - 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.slider.api.proto.Messages.GetCertificateStoreRequestProto)) { - return super.equals(obj); - } - org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto other = (org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto) obj; - - boolean result = true; - result = result && (hasHostname() == other.hasHostname()); - if (hasHostname()) { - result = result && getHostname() - .equals(other.getHostname()); - } - result = result && (hasRequesterId() == other.hasRequesterId()); - if (hasRequesterId()) { - result = result && getRequesterId() - .equals(other.getRequesterId()); - } - result = result && (hasPassword() == other.hasPassword()); - if (hasPassword()) { - result = result && getPassword() - .equals(other.getPassword()); - } - result = result && (hasType() == other.hasType()); - if (hasType()) { - result = result && getType() - .equals(other.getType()); - } - 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 (hasHostname()) { - hash = (37 * hash) + HOSTNAME_FIELD_NUMBER; - hash = (53 * hash) + getHostname().hashCode(); - } - if (hasRequesterId()) { - hash = (37 * hash) + REQUESTERID_FIELD_NUMBER; - hash = (53 * hash) + getRequesterId().hashCode(); - } - if (hasPassword()) { - hash = (37 * hash) + PASSWORD_FIELD_NUMBER; - hash = (53 * hash) + getPassword().hashCode(); - } - if (hasType()) { - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getType().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto 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.slider.api.proto.Messages.GetCertificateStoreRequestProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto 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.slider.api.proto.Messages.GetCertificateStoreRequestProto 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 org.apache.slider.api.GetCertificateStoreRequestProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetCertificateStoreRequestProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetCertificateStoreRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto.class, org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto.Builder.class); - } - - // Construct using org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto.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(); - hostname_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - requesterId_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - password_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - type_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetCertificateStoreRequestProto_descriptor; - } - - public org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto getDefaultInstanceForType() { - return org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto.getDefaultInstance(); - } - - public org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto build() { - org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto buildPartial() { - org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto result = new org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.hostname_ = hostname_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.requesterId_ = requesterId_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.password_ = password_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.type_ = type_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto) { - return mergeFrom((org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto other) { - if (other == org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto.getDefaultInstance()) return this; - if (other.hasHostname()) { - bitField0_ |= 0x00000001; - hostname_ = other.hostname_; - onChanged(); - } - if (other.hasRequesterId()) { - bitField0_ |= 0x00000002; - requesterId_ = other.requesterId_; - onChanged(); - } - if (other.hasPassword()) { - bitField0_ |= 0x00000004; - password_ = other.password_; - onChanged(); - } - if (other.hasType()) { - bitField0_ |= 0x00000008; - type_ = other.type_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasRequesterId()) { - - return false; - } - if (!hasPassword()) { - - return false; - } - if (!hasType()) { - - return false; - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // optional string hostname = 1; - private java.lang.Object hostname_ = ""; - /** - * optional string hostname = 1; - */ - public boolean hasHostname() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string hostname = 1; - */ - public java.lang.String getHostname() { - java.lang.Object ref = hostname_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - hostname_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string hostname = 1; - */ - public com.google.protobuf.ByteString - getHostnameBytes() { - java.lang.Object ref = hostname_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - hostname_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string hostname = 1; - */ - public Builder setHostname( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - hostname_ = value; - onChanged(); - return this; - } - /** - * optional string hostname = 1; - */ - public Builder clearHostname() { - bitField0_ = (bitField0_ & ~0x00000001); - hostname_ = getDefaultInstance().getHostname(); - onChanged(); - return this; - } - /** - * optional string hostname = 1; - */ - public Builder setHostnameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - hostname_ = value; - onChanged(); - return this; - } - - // required string requesterId = 2; - private java.lang.Object requesterId_ = ""; - /** - * required string requesterId = 2; - */ - public boolean hasRequesterId() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * required string requesterId = 2; - */ - public java.lang.String getRequesterId() { - java.lang.Object ref = requesterId_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - requesterId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string requesterId = 2; - */ - public com.google.protobuf.ByteString - getRequesterIdBytes() { - java.lang.Object ref = requesterId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - requesterId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string requesterId = 2; - */ - public Builder setRequesterId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - requesterId_ = value; - onChanged(); - return this; - } - /** - * required string requesterId = 2; - */ - public Builder clearRequesterId() { - bitField0_ = (bitField0_ & ~0x00000002); - requesterId_ = getDefaultInstance().getRequesterId(); - onChanged(); - return this; - } - /** - * required string requesterId = 2; - */ - public Builder setRequesterIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - requesterId_ = value; - onChanged(); - return this; - } - - // required string password = 3; - private java.lang.Object password_ = ""; - /** - * required string password = 3; - */ - public boolean hasPassword() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * required string password = 3; - */ - public java.lang.String getPassword() { - java.lang.Object ref = password_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - password_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string password = 3; - */ - public com.google.protobuf.ByteString - getPasswordBytes() { - java.lang.Object ref = password_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - password_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string password = 3; - */ - public Builder setPassword( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - password_ = value; - onChanged(); - return this; - } - /** - * required string password = 3; - */ - public Builder clearPassword() { - bitField0_ = (bitField0_ & ~0x00000004); - password_ = getDefaultInstance().getPassword(); - onChanged(); - return this; - } - /** - * required string password = 3; - */ - public Builder setPasswordBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - password_ = value; - onChanged(); - return this; - } - - // required string type = 4; - private java.lang.Object type_ = ""; - /** - * required string type = 4; - */ - public boolean hasType() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * required string type = 4; - */ - public java.lang.String getType() { - java.lang.Object ref = type_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - type_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string type = 4; - */ - public com.google.protobuf.ByteString - getTypeBytes() { - java.lang.Object ref = type_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - type_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string type = 4; - */ - public Builder setType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - type_ = value; - onChanged(); - return this; - } - /** - * required string type = 4; - */ - public Builder clearType() { - bitField0_ = (bitField0_ & ~0x00000008); - type_ = getDefaultInstance().getType(); - onChanged(); - return this; - } - /** - * required string type = 4; - */ - public Builder setTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - type_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetCertificateStoreRequestProto) - } - - static { - defaultInstance = new GetCertificateStoreRequestProto(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetCertificateStoreRequestProto) - } - - public interface GetCertificateStoreResponseProtoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // required bytes store = 1; - /** - * required bytes store = 1; - */ - boolean hasStore(); - /** - * required bytes store = 1; - */ - com.google.protobuf.ByteString getStore(); - } - /** - * Protobuf type {@code org.apache.slider.api.GetCertificateStoreResponseProto} - */ - public static final class GetCertificateStoreResponseProto extends - com.google.protobuf.GeneratedMessage - implements GetCertificateStoreResponseProtoOrBuilder { - // Use GetCertificateStoreResponseProto.newBuilder() to construct. - private GetCertificateStoreResponseProto(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private GetCertificateStoreResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final GetCertificateStoreResponseProto defaultInstance; - public static GetCertificateStoreResponseProto getDefaultInstance() { - return defaultInstance; - } - - public GetCertificateStoreResponseProto getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetCertificateStoreResponseProto( - 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; - store_ = 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.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetCertificateStoreResponseProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetCertificateStoreResponseProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto.class, org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GetCertificateStoreResponseProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetCertificateStoreResponseProto(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // required bytes store = 1; - public static final int STORE_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString store_; - /** - * required bytes store = 1; - */ - public boolean hasStore() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required bytes store = 1; - */ - public com.google.protobuf.ByteString getStore() { - return store_; - } - - private void initFields() { - store_ = com.google.protobuf.ByteString.EMPTY; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (!hasStore()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, store_); - } - 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, store_); - } - 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.slider.api.proto.Messages.GetCertificateStoreResponseProto)) { - return super.equals(obj); - } - org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto other = (org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto) obj; - - boolean result = true; - result = result && (hasStore() == other.hasStore()); - if (hasStore()) { - result = result && getStore() - .equals(other.getStore()); - } - 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 (hasStore()) { - hash = (37 * hash) + STORE_FIELD_NUMBER; - hash = (53 * hash) + getStore().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto 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.slider.api.proto.Messages.GetCertificateStoreResponseProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto 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.slider.api.proto.Messages.GetCertificateStoreResponseProto 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 org.apache.slider.api.GetCertificateStoreResponseProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetCertificateStoreResponseProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetCertificateStoreResponseProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto.class, org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto.Builder.class); - } - - // Construct using org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto.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(); - store_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetCertificateStoreResponseProto_descriptor; - } - - public org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto getDefaultInstanceForType() { - return org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto.getDefaultInstance(); - } - - public org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto build() { - org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto buildPartial() { - org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto result = new org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.store_ = store_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto) { - return mergeFrom((org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto other) { - if (other == org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto.getDefaultInstance()) return this; - if (other.hasStore()) { - setStore(other.getStore()); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasStore()) { - - return false; - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // required bytes store = 1; - private com.google.protobuf.ByteString store_ = com.google.protobuf.ByteString.EMPTY; - /** - * required bytes store = 1; - */ - public boolean hasStore() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required bytes store = 1; - */ - public com.google.protobuf.ByteString getStore() { - return store_; - } - /** - * required bytes store = 1; - */ - public Builder setStore(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - store_ = value; - onChanged(); - return this; - } - /** - * required bytes store = 1; - */ - public Builder clearStore() { - bitField0_ = (bitField0_ & ~0x00000001); - store_ = getDefaultInstance().getStore(); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetCertificateStoreResponseProto) - } - - static { - defaultInstance = new GetCertificateStoreResponseProto(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetCertificateStoreResponseProto) - } - - public interface GetLiveNodesRequestProtoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code org.apache.slider.api.GetLiveNodesRequestProto} - */ - public static final class GetLiveNodesRequestProto extends - com.google.protobuf.GeneratedMessage - implements GetLiveNodesRequestProtoOrBuilder { - // Use GetLiveNodesRequestProto.newBuilder() to construct. - private GetLiveNodesRequestProto(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private GetLiveNodesRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final GetLiveNodesRequestProto defaultInstance; - public static GetLiveNodesRequestProto getDefaultInstance() { - return defaultInstance; - } - - public GetLiveNodesRequestProto getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetLiveNodesRequestProto( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - 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; - } - } - } - } 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.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveNodesRequestProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveNodesRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto.class, org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GetLiveNodesRequestProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetLiveNodesRequestProto(input, extensionRegistry); - } - }; - - @java.lang.Override - public 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(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.slider.api.proto.Messages.GetLiveNodesRequestProto)) { - return super.equals(obj); - } - org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto other = (org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto) 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.slider.api.proto.Messages.GetLiveNodesRequestProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto 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.slider.api.proto.Messages.GetLiveNodesRequestProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto 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.slider.api.proto.Messages.GetLiveNodesRequestProto 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 org.apache.slider.api.GetLiveNodesRequestProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.apache.slider.api.proto.Messages.GetLiveNodesRequestProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveNodesRequestProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveNodesRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto.class, org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto.Builder.class); - } - - // Construct using org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto.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(); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveNodesRequestProto_descriptor; - } - - public org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto getDefaultInstanceForType() { - return org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto.getDefaultInstance(); - } - - public org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto build() { - org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto buildPartial() { - org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto result = new org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto(this); - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto) { - return mergeFrom((org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto other) { - if (other == org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto.getDefaultInstance()) return this; - 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.slider.api.proto.Messages.GetLiveNodesRequestProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetLiveNodesRequestProto) - } - - static { - defaultInstance = new GetLiveNodesRequestProto(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetLiveNodesRequestProto) - } - - public interface GetLiveNodesResponseProtoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // repeated .org.apache.slider.api.NodeInformationProto nodes = 1; - /** - * repeated .org.apache.slider.api.NodeInformationProto nodes = 1; - */ - java.util.List - getNodesList(); - /** - * repeated .org.apache.slider.api.NodeInformationProto nodes = 1; - */ - org.apache.slider.api.proto.Messages.NodeInformationProto getNodes(int index); - /** - * repeated .org.apache.slider.api.NodeInformationProto nodes = 1; - */ - int getNodesCount(); - /** - * repeated .org.apache.slider.api.NodeInformationProto nodes = 1; - */ - java.util.List - getNodesOrBuilderList(); - /** - * repeated .org.apache.slider.api.NodeInformationProto nodes = 1; - */ - org.apache.slider.api.proto.Messages.NodeInformationProtoOrBuilder getNodesOrBuilder( - int index); - } - /** - * Protobuf type {@code org.apache.slider.api.GetLiveNodesResponseProto} - */ - public static final class GetLiveNodesResponseProto extends - com.google.protobuf.GeneratedMessage - implements GetLiveNodesResponseProtoOrBuilder { - // Use GetLiveNodesResponseProto.newBuilder() to construct. - private GetLiveNodesResponseProto(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private GetLiveNodesResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final GetLiveNodesResponseProto defaultInstance; - public static GetLiveNodesResponseProto getDefaultInstance() { - return defaultInstance; - } - - public GetLiveNodesResponseProto getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetLiveNodesResponseProto( - 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)) { - nodes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - nodes_.add(input.readMessage(org.apache.slider.api.proto.Messages.NodeInformationProto.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)) { - nodes_ = java.util.Collections.unmodifiableList(nodes_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveNodesResponseProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveNodesResponseProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto.class, org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GetLiveNodesResponseProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetLiveNodesResponseProto(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - // repeated .org.apache.slider.api.NodeInformationProto nodes = 1; - public static final int NODES_FIELD_NUMBER = 1; - private java.util.List nodes_; - /** - * repeated .org.apache.slider.api.NodeInformationProto nodes = 1; - */ - public java.util.List getNodesList() { - return nodes_; - } - /** - * repeated .org.apache.slider.api.NodeInformationProto nodes = 1; - */ - public java.util.List - getNodesOrBuilderList() { - return nodes_; - } - /** - * repeated .org.apache.slider.api.NodeInformationProto nodes = 1; - */ - public int getNodesCount() { - return nodes_.size(); - } - /** - * repeated .org.apache.slider.api.NodeInformationProto nodes = 1; - */ - public org.apache.slider.api.proto.Messages.NodeInformationProto getNodes(int index) { - return nodes_.get(index); - } - /** - * repeated .org.apache.slider.api.NodeInformationProto nodes = 1; - */ - public org.apache.slider.api.proto.Messages.NodeInformationProtoOrBuilder getNodesOrBuilder( - int index) { - return nodes_.get(index); - } - - private void initFields() { - nodes_ = java.util.Collections.emptyList(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - for (int i = 0; i < getNodesCount(); i++) { - if (!getNodes(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - for (int i = 0; i < nodes_.size(); i++) { - output.writeMessage(1, nodes_.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 < nodes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, nodes_.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.slider.api.proto.Messages.GetLiveNodesResponseProto)) { - return super.equals(obj); - } - org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto other = (org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto) obj; - - boolean result = true; - result = result && getNodesList() - .equals(other.getNodesList()); - 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 (getNodesCount() > 0) { - hash = (37 * hash) + NODES_FIELD_NUMBER; - hash = (53 * hash) + getNodesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto 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.slider.api.proto.Messages.GetLiveNodesResponseProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto 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.slider.api.proto.Messages.GetLiveNodesResponseProto 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 org.apache.slider.api.GetLiveNodesResponseProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.apache.slider.api.proto.Messages.GetLiveNodesResponseProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveNodesResponseProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveNodesResponseProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto.class, org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto.Builder.class); - } - - // Construct using org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getNodesFieldBuilder(); - } - } - private static Builder create() { - return new Builder(); - } - - public Builder clear() { - super.clear(); - if (nodesBuilder_ == null) { - nodes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - nodesBuilder_.clear(); - } - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveNodesResponseProto_descriptor; - } - - public org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto getDefaultInstanceForType() { - return org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto.getDefaultInstance(); - } - - public org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto build() { - org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto buildPartial() { - org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto result = new org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto(this); - int from_bitField0_ = bitField0_; - if (nodesBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - nodes_ = java.util.Collections.unmodifiableList(nodes_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.nodes_ = nodes_; - } else { - result.nodes_ = nodesBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto) { - return mergeFrom((org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto other) { - if (other == org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto.getDefaultInstance()) return this; - if (nodesBuilder_ == null) { - if (!other.nodes_.isEmpty()) { - if (nodes_.isEmpty()) { - nodes_ = other.nodes_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureNodesIsMutable(); - nodes_.addAll(other.nodes_); - } - onChanged(); - } - } else { - if (!other.nodes_.isEmpty()) { - if (nodesBuilder_.isEmpty()) { - nodesBuilder_.dispose(); - nodesBuilder_ = null; - nodes_ = other.nodes_; - bitField0_ = (bitField0_ & ~0x00000001); - nodesBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getNodesFieldBuilder() : null; - } else { - nodesBuilder_.addAllMessages(other.nodes_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - for (int i = 0; i < getNodesCount(); i++) { - if (!getNodes(i).isInitialized()) { - - return false; - } - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // repeated .org.apache.slider.api.NodeInformationProto nodes = 1; - private java.util.List nodes_ = - java.util.Collections.emptyList(); - private void ensureNodesIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - nodes_ = new java.util.ArrayList(nodes_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.apache.slider.api.proto.Messages.NodeInformationProto, org.apache.slider.api.proto.Messages.NodeInformationProto.Builder, org.apache.slider.api.proto.Messages.NodeInformationProtoOrBuilder> nodesBuilder_; - - /** - * repeated .org.apache.slider.api.NodeInformationProto nodes = 1; - */ - public java.util.List getNodesList() { - if (nodesBuilder_ == null) { - return java.util.Collections.unmodifiableList(nodes_); - } else { - return nodesBuilder_.getMessageList(); - } - } - /** - * repeated .org.apache.slider.api.NodeInformationProto nodes = 1; - */ - public int getNodesCount() { - if (nodesBuilder_ == null) { - return nodes_.size(); - } else { - return nodesBuilder_.getCount(); - } - } - /** - * repeated .org.apache.slider.api.NodeInformationProto nodes = 1; - */ - public org.apache.slider.api.proto.Messages.NodeInformationProto getNodes(int index) { - if (nodesBuilder_ == null) { - return nodes_.get(index); - } else { - return nodesBuilder_.getMessage(index); - } - } - /** - * repeated .org.apache.slider.api.NodeInformationProto nodes = 1; - */ - public Builder setNodes( - int index, org.apache.slider.api.proto.Messages.NodeInformationProto value) { - if (nodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodesIsMutable(); - nodes_.set(index, value); - onChanged(); - } else { - nodesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .org.apache.slider.api.NodeInformationProto nodes = 1; - */ - public Builder setNodes( - int index, org.apache.slider.api.proto.Messages.NodeInformationProto.Builder builderForValue) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.set(index, builderForValue.build()); - onChanged(); - } else { - nodesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.apache.slider.api.NodeInformationProto nodes = 1; - */ - public Builder addNodes(org.apache.slider.api.proto.Messages.NodeInformationProto value) { - if (nodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodesIsMutable(); - nodes_.add(value); - onChanged(); - } else { - nodesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .org.apache.slider.api.NodeInformationProto nodes = 1; - */ - public Builder addNodes( - int index, org.apache.slider.api.proto.Messages.NodeInformationProto value) { - if (nodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodesIsMutable(); - nodes_.add(index, value); - onChanged(); - } else { - nodesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .org.apache.slider.api.NodeInformationProto nodes = 1; - */ - public Builder addNodes( - org.apache.slider.api.proto.Messages.NodeInformationProto.Builder builderForValue) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.add(builderForValue.build()); - onChanged(); - } else { - nodesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .org.apache.slider.api.NodeInformationProto nodes = 1; - */ - public Builder addNodes( - int index, org.apache.slider.api.proto.Messages.NodeInformationProto.Builder builderForValue) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.add(index, builderForValue.build()); - onChanged(); - } else { - nodesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.apache.slider.api.NodeInformationProto nodes = 1; - */ - public Builder addAllNodes( - java.lang.Iterable values) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - super.addAll(values, nodes_); - onChanged(); - } else { - nodesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .org.apache.slider.api.NodeInformationProto nodes = 1; - */ - public Builder clearNodes() { - if (nodesBuilder_ == null) { - nodes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - nodesBuilder_.clear(); - } - return this; - } - /** - * repeated .org.apache.slider.api.NodeInformationProto nodes = 1; - */ - public Builder removeNodes(int index) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.remove(index); - onChanged(); - } else { - nodesBuilder_.remove(index); - } - return this; - } - /** - * repeated .org.apache.slider.api.NodeInformationProto nodes = 1; - */ - public org.apache.slider.api.proto.Messages.NodeInformationProto.Builder getNodesBuilder( - int index) { - return getNodesFieldBuilder().getBuilder(index); - } - /** - * repeated .org.apache.slider.api.NodeInformationProto nodes = 1; - */ - public org.apache.slider.api.proto.Messages.NodeInformationProtoOrBuilder getNodesOrBuilder( - int index) { - if (nodesBuilder_ == null) { - return nodes_.get(index); } else { - return nodesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .org.apache.slider.api.NodeInformationProto nodes = 1; - */ - public java.util.List - getNodesOrBuilderList() { - if (nodesBuilder_ != null) { - return nodesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(nodes_); - } - } - /** - * repeated .org.apache.slider.api.NodeInformationProto nodes = 1; - */ - public org.apache.slider.api.proto.Messages.NodeInformationProto.Builder addNodesBuilder() { - return getNodesFieldBuilder().addBuilder( - org.apache.slider.api.proto.Messages.NodeInformationProto.getDefaultInstance()); - } - /** - * repeated .org.apache.slider.api.NodeInformationProto nodes = 1; - */ - public org.apache.slider.api.proto.Messages.NodeInformationProto.Builder addNodesBuilder( - int index) { - return getNodesFieldBuilder().addBuilder( - index, org.apache.slider.api.proto.Messages.NodeInformationProto.getDefaultInstance()); - } - /** - * repeated .org.apache.slider.api.NodeInformationProto nodes = 1; - */ - public java.util.List - getNodesBuilderList() { - return getNodesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.apache.slider.api.proto.Messages.NodeInformationProto, org.apache.slider.api.proto.Messages.NodeInformationProto.Builder, org.apache.slider.api.proto.Messages.NodeInformationProtoOrBuilder> - getNodesFieldBuilder() { - if (nodesBuilder_ == null) { - nodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.apache.slider.api.proto.Messages.NodeInformationProto, org.apache.slider.api.proto.Messages.NodeInformationProto.Builder, org.apache.slider.api.proto.Messages.NodeInformationProtoOrBuilder>( - nodes_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - nodes_ = null; - } - return nodesBuilder_; - } - - // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetLiveNodesResponseProto) - } - - static { - defaultInstance = new GetLiveNodesResponseProto(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetLiveNodesResponseProto) - } - - public interface GetLiveNodeRequestProtoOrBuilder - extends com.google.protobuf.MessageOrBuilder { - - // required string name = 1; - /** - * required string name = 1; - */ - boolean hasName(); - /** - * required string name = 1; - */ - java.lang.String getName(); - /** - * required string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - } - /** - * Protobuf type {@code org.apache.slider.api.GetLiveNodeRequestProto} - */ - public static final class GetLiveNodeRequestProto extends - com.google.protobuf.GeneratedMessage - implements GetLiveNodeRequestProtoOrBuilder { - // Use GetLiveNodeRequestProto.newBuilder() to construct. - private GetLiveNodeRequestProto(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private GetLiveNodeRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final GetLiveNodeRequestProto defaultInstance; - public static GetLiveNodeRequestProto getDefaultInstance() { - return defaultInstance; - } - - public GetLiveNodeRequestProto getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetLiveNodeRequestProto( - 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; - name_ = 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.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveNodeRequestProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveNodeRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto.class, org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto.Builder.class); - } - - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GetLiveNodeRequestProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetLiveNodeRequestProto(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - // required string name = 1; - public static final int NAME_FIELD_NUMBER = 1; - private java.lang.Object name_; - /** - * required string name = 1; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } - } - /** - * required string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private void initFields() { - name_ = ""; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized != -1) return isInitialized == 1; - - if (!hasName()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getNameBytes()); - } - 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, getNameBytes()); - } - 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.slider.api.proto.Messages.GetLiveNodeRequestProto)) { - return super.equals(obj); - } - org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto other = (org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto) obj; - - boolean result = true; - result = result && (hasName() == other.hasName()); - if (hasName()) { - result = result && getName() - .equals(other.getName()); - } - 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 (hasName()) { - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto 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.slider.api.proto.Messages.GetLiveNodeRequestProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto 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.slider.api.proto.Messages.GetLiveNodeRequestProto 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 org.apache.slider.api.GetLiveNodeRequestProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder - implements org.apache.slider.api.proto.Messages.GetLiveNodeRequestProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveNodeRequestProto_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveNodeRequestProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto.class, org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto.Builder.class); - } - - // Construct using org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto.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(); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveNodeRequestProto_descriptor; - } - - public org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto getDefaultInstanceForType() { - return org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto.getDefaultInstance(); - } - - public org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto build() { - org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto buildPartial() { - org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto result = new org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.name_ = name_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto) { - return mergeFrom((org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto other) { - if (other == org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto.getDefaultInstance()) return this; - if (other.hasName()) { - bitField0_ |= 0x00000001; - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - return this; - } - - public final boolean isInitialized() { - if (!hasName()) { - - return false; - } - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - // required string name = 1; - private java.lang.Object name_ = ""; - /** - * required string name = 1; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * required string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * required string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = value; - onChanged(); - return this; - } - /** - * required string name = 1; - */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000001); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * required string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetLiveNodeRequestProto) - } - - static { - defaultInstance = new GetLiveNodeRequestProto(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetLiveNodeRequestProto) - } - - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_apache_slider_api_RoleInstanceState_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_apache_slider_api_RoleInstanceState_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_apache_slider_api_StopClusterRequestProto_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_apache_slider_api_StopClusterRequestProto_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_apache_slider_api_StopClusterResponseProto_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_apache_slider_api_StopClusterResponseProto_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_apache_slider_api_UpgradeContainersRequestProto_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_apache_slider_api_UpgradeContainersRequestProto_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_apache_slider_api_UpgradeContainersResponseProto_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_apache_slider_api_UpgradeContainersResponseProto_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_apache_slider_api_FlexClusterRequestProto_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_apache_slider_api_FlexClusterRequestProto_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_apache_slider_api_FlexClusterResponseProto_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_apache_slider_api_FlexClusterResponseProto_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_apache_slider_api_GetJSONClusterStatusRequestProto_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_apache_slider_api_GetJSONClusterStatusRequestProto_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_apache_slider_api_GetJSONClusterStatusResponseProto_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_apache_slider_api_GetJSONClusterStatusResponseProto_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_apache_slider_api_ListNodeUUIDsByRoleRequestProto_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_apache_slider_api_ListNodeUUIDsByRoleRequestProto_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_apache_slider_api_ListNodeUUIDsByRoleResponseProto_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_apache_slider_api_ListNodeUUIDsByRoleResponseProto_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_apache_slider_api_GetNodeRequestProto_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_apache_slider_api_GetNodeRequestProto_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_apache_slider_api_GetNodeResponseProto_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_apache_slider_api_GetNodeResponseProto_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_apache_slider_api_GetClusterNodesRequestProto_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_apache_slider_api_GetClusterNodesRequestProto_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_apache_slider_api_GetClusterNodesResponseProto_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_apache_slider_api_GetClusterNodesResponseProto_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_apache_slider_api_EchoRequestProto_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_apache_slider_api_EchoRequestProto_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_apache_slider_api_EchoResponseProto_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_apache_slider_api_EchoResponseProto_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_apache_slider_api_KillContainerRequestProto_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_apache_slider_api_KillContainerRequestProto_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_apache_slider_api_KillContainerResponseProto_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_apache_slider_api_KillContainerResponseProto_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_apache_slider_api_AMSuicideRequestProto_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_apache_slider_api_AMSuicideRequestProto_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_apache_slider_api_AMSuicideResponseProto_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_apache_slider_api_AMSuicideResponseProto_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_apache_slider_api_GetInstanceDefinitionRequestProto_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_apache_slider_api_GetInstanceDefinitionRequestProto_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_apache_slider_api_GetInstanceDefinitionResponseProto_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_apache_slider_api_GetInstanceDefinitionResponseProto_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_apache_slider_api_ApplicationLivenessInformationProto_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_apache_slider_api_ApplicationLivenessInformationProto_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_apache_slider_api_ComponentInformationProto_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_apache_slider_api_ComponentInformationProto_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_apache_slider_api_ContainerInformationProto_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_apache_slider_api_ContainerInformationProto_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_apache_slider_api_PingInformationProto_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_apache_slider_api_PingInformationProto_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_apache_slider_api_NodeEntryInformationProto_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_apache_slider_api_NodeEntryInformationProto_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_apache_slider_api_NodeInformationProto_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_apache_slider_api_NodeInformationProto_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_apache_slider_api_GetModelRequestProto_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_apache_slider_api_GetModelRequestProto_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_apache_slider_api_GetModelDesiredRequestProto_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_apache_slider_api_GetModelDesiredRequestProto_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_apache_slider_api_GetModelDesiredAppconfRequestProto_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_apache_slider_api_GetModelDesiredAppconfRequestProto_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_apache_slider_api_GetModelDesiredResourcesRequestProto_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_apache_slider_api_GetModelDesiredResourcesRequestProto_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_apache_slider_api_GetModelResolvedAppconfRequestProto_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_apache_slider_api_GetModelResolvedAppconfRequestProto_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_apache_slider_api_GetModelResolvedResourcesRequestProto_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_apache_slider_api_GetModelResolvedResourcesRequestProto_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_apache_slider_api_GetModelLiveResourcesRequestProto_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_apache_slider_api_GetModelLiveResourcesRequestProto_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_apache_slider_api_GetLiveContainersRequestProto_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_apache_slider_api_GetLiveContainersRequestProto_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_apache_slider_api_GetLiveContainersResponseProto_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_apache_slider_api_GetLiveContainersResponseProto_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_apache_slider_api_GetLiveContainerRequestProto_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_apache_slider_api_GetLiveContainerRequestProto_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_apache_slider_api_GetLiveComponentsRequestProto_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_apache_slider_api_GetLiveComponentsRequestProto_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_apache_slider_api_GetLiveComponentsResponseProto_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_apache_slider_api_GetLiveComponentsResponseProto_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_apache_slider_api_GetLiveComponentRequestProto_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_apache_slider_api_GetLiveComponentRequestProto_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_apache_slider_api_GetApplicationLivenessRequestProto_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_apache_slider_api_GetApplicationLivenessRequestProto_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_apache_slider_api_EmptyPayloadProto_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_apache_slider_api_EmptyPayloadProto_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_apache_slider_api_WrappedJsonProto_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_apache_slider_api_WrappedJsonProto_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_apache_slider_api_GetCertificateStoreRequestProto_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_apache_slider_api_GetCertificateStoreRequestProto_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_apache_slider_api_GetCertificateStoreResponseProto_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_apache_slider_api_GetCertificateStoreResponseProto_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_apache_slider_api_GetLiveNodesRequestProto_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_apache_slider_api_GetLiveNodesRequestProto_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_apache_slider_api_GetLiveNodesResponseProto_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_apache_slider_api_GetLiveNodesResponseProto_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_apache_slider_api_GetLiveNodeRequestProto_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_apache_slider_api_GetLiveNodeRequestProto_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\033SliderClusterMessages.proto\022\025org.apach" + - "e.slider.api\"\227\002\n\021RoleInstanceState\022\014\n\004na" + - "me\030\001 \002(\t\022\014\n\004role\030\002 \001(\t\022\r\n\005state\030\004 \002(\r\022\020\n" + - "\010exitCode\030\005 \002(\r\022\017\n\007command\030\006 \001(\t\022\023\n\013diag" + - "nostics\030\007 \001(\t\022\016\n\006output\030\010 \003(\t\022\023\n\013environ" + - "ment\030\t \003(\t\022\016\n\006roleId\030\n \002(\r\022\020\n\010released\030\013" + - " \002(\010\022\022\n\ncreateTime\030\014 \002(\003\022\021\n\tstartTime\030\r " + - "\002(\003\022\014\n\004host\030\016 \002(\t\022\017\n\007hostURL\030\017 \002(\t\022\022\n\nap" + - "pVersion\030\020 \001(\t\"*\n\027StopClusterRequestProt" + - "o\022\017\n\007message\030\001 \002(\t\"\032\n\030StopClusterRespons", - "eProto\"V\n\035UpgradeContainersRequestProto\022" + - "\017\n\007message\030\001 \002(\t\022\021\n\tcontainer\030\002 \003(\t\022\021\n\tc" + - "omponent\030\003 \003(\t\" \n\036UpgradeContainersRespo" + - "nseProto\".\n\027FlexClusterRequestProto\022\023\n\013c" + - "lusterSpec\030\001 \002(\t\",\n\030FlexClusterResponseP" + - "roto\022\020\n\010response\030\001 \002(\010\"\"\n GetJSONCluster" + - "StatusRequestProto\"8\n!GetJSONClusterStat" + - "usResponseProto\022\023\n\013clusterSpec\030\001 \002(\t\"/\n\037" + - "ListNodeUUIDsByRoleRequestProto\022\014\n\004role\030" + - "\001 \002(\t\"0\n ListNodeUUIDsByRoleResponseProt", - "o\022\014\n\004uuid\030\001 \003(\t\"#\n\023GetNodeRequestProto\022\014" + - "\n\004uuid\030\001 \002(\t\"U\n\024GetNodeResponseProto\022=\n\013" + - "clusterNode\030\001 \002(\0132(.org.apache.slider.ap" + - "i.RoleInstanceState\"+\n\033GetClusterNodesRe" + - "questProto\022\014\n\004uuid\030\001 \003(\t\"]\n\034GetClusterNo" + - "desResponseProto\022=\n\013clusterNode\030\001 \003(\0132(." + - "org.apache.slider.api.RoleInstanceState\"" + - " \n\020EchoRequestProto\022\014\n\004text\030\001 \002(\t\"!\n\021Ech" + - "oResponseProto\022\014\n\004text\030\001 \002(\t\"\'\n\031KillCont" + - "ainerRequestProto\022\n\n\002id\030\001 \002(\t\"-\n\032KillCon", - "tainerResponseProto\022\017\n\007success\030\001 \002(\010\"D\n\025" + - "AMSuicideRequestProto\022\014\n\004text\030\001 \002(\t\022\016\n\006s" + - "ignal\030\002 \002(\005\022\r\n\005delay\030\003 \002(\005\"\030\n\026AMSuicideR" + - "esponseProto\"#\n!GetInstanceDefinitionReq" + - "uestProto\"^\n\"GetInstanceDefinitionRespon" + - "seProto\022\020\n\010internal\030\001 \002(\t\022\021\n\tresources\030\002" + - " \002(\t\022\023\n\013application\030\003 \002(\t\"`\n#Application" + - "LivenessInformationProto\022\034\n\024allRequestsS" + - "atisfied\030\001 \001(\010\022\033\n\023requestsOutstanding\030\002 " + - "\001(\005\"\256\003\n\031ComponentInformationProto\022\014\n\004nam", - "e\030\001 \001(\t\022\020\n\010priority\030\002 \001(\005\022\017\n\007desired\030\003 \001" + - "(\005\022\016\n\006actual\030\004 \001(\005\022\021\n\treleasing\030\005 \001(\005\022\021\n" + - "\trequested\030\006 \001(\005\022\016\n\006failed\030\007 \001(\005\022\017\n\007star" + - "ted\030\010 \001(\005\022\023\n\013startFailed\030\t \001(\005\022\021\n\tcomple" + - "ted\030\n \001(\005\022\026\n\016totalRequested\030\013 \001(\005\022\026\n\016fai" + - "lureMessage\030\014 \001(\t\022\027\n\017placementPolicy\030\r \001" + - "(\005\022\022\n\ncontainers\030\016 \003(\t\022\026\n\016failedRecently" + - "\030\017 \001(\005\022\022\n\nnodeFailed\030\020 \001(\005\022\021\n\tpreempted\030" + - "\021 \001(\005\022%\n\035pendingAntiAffineRequestCount\030\022" + - " \001(\005\022\036\n\026isAARequestOutstanding\030\023 \001(\010\"\210\002\n", - "\031ContainerInformationProto\022\023\n\013containerI" + - "d\030\001 \001(\t\022\021\n\tcomponent\030\002 \001(\t\022\020\n\010released\030\003" + - " \001(\010\022\r\n\005state\030\004 \001(\005\022\020\n\010exitCode\030\005 \001(\005\022\023\n" + - "\013diagnostics\030\006 \001(\t\022\022\n\ncreateTime\030\007 \001(\003\022\021" + - "\n\tstartTime\030\010 \001(\003\022\016\n\006output\030\t \003(\t\022\014\n\004hos" + - "t\030\n \001(\t\022\017\n\007hostURL\030\013 \001(\t\022\021\n\tplacement\030\014 " + - "\001(\t\022\022\n\nappVersion\030\r \001(\t\"N\n\024PingInformati" + - "onProto\022\014\n\004text\030\001 \001(\t\022\014\n\004verb\030\002 \001(\t\022\014\n\004b" + - "ody\030\003 \001(\t\022\014\n\004time\030\004 \001(\003\"\343\001\n\031NodeEntryInf" + - "ormationProto\022\020\n\010priority\030\001 \002(\005\022\021\n\treque", - "sted\030\002 \002(\005\022\020\n\010starting\030\003 \002(\005\022\023\n\013startFai" + - "led\030\004 \002(\005\022\016\n\006failed\030\005 \002(\005\022\026\n\016failedRecen" + - "tly\030\006 \002(\005\022\021\n\tpreempted\030\007 \002(\005\022\014\n\004live\030\010 \002" + - "(\005\022\021\n\treleasing\030\t \002(\005\022\020\n\010lastUsed\030\n \002(\003\022" + - "\014\n\004name\030\013 \002(\t\"\334\001\n\024NodeInformationProto\022\020" + - "\n\010hostname\030\001 \002(\t\022\r\n\005state\030\002 \002(\t\022\023\n\013httpA" + - "ddress\030\003 \002(\t\022\020\n\010rackName\030\004 \002(\t\022\016\n\006labels" + - "\030\005 \002(\t\022\024\n\014healthReport\030\006 \002(\t\022\023\n\013lastUpda" + - "ted\030\007 \002(\003\022A\n\007entries\030\010 \003(\01320.org.apache." + - "slider.api.NodeEntryInformationProto\"\026\n\024", - "GetModelRequestProto\"\035\n\033GetModelDesiredR" + - "equestProto\"$\n\"GetModelDesiredAppconfReq" + - "uestProto\"&\n$GetModelDesiredResourcesReq" + - "uestProto\"%\n#GetModelResolvedAppconfRequ" + - "estProto\"\'\n%GetModelResolvedResourcesReq" + - "uestProto\"#\n!GetModelLiveResourcesReques" + - "tProto\"\037\n\035GetLiveContainersRequestProto\"" + - "u\n\036GetLiveContainersResponseProto\022\r\n\005nam" + - "es\030\001 \003(\t\022D\n\ncontainers\030\002 \003(\01320.org.apach" + - "e.slider.api.ContainerInformationProto\"3", - "\n\034GetLiveContainerRequestProto\022\023\n\013contai" + - "nerId\030\001 \002(\t\"\037\n\035GetLiveComponentsRequestP" + - "roto\"u\n\036GetLiveComponentsResponseProto\022\r" + - "\n\005names\030\001 \003(\t\022D\n\ncomponents\030\002 \003(\01320.org." + - "apache.slider.api.ComponentInformationPr" + - "oto\",\n\034GetLiveComponentRequestProto\022\014\n\004n" + - "ame\030\001 \002(\t\"$\n\"GetApplicationLivenessReque" + - "stProto\"\023\n\021EmptyPayloadProto\" \n\020WrappedJ" + - "sonProto\022\014\n\004json\030\001 \002(\t\"h\n\037GetCertificate" + - "StoreRequestProto\022\020\n\010hostname\030\001 \001(\t\022\023\n\013r", - "equesterId\030\002 \002(\t\022\020\n\010password\030\003 \002(\t\022\014\n\004ty" + - "pe\030\004 \002(\t\"1\n GetCertificateStoreResponseP" + - "roto\022\r\n\005store\030\001 \002(\014\"\032\n\030GetLiveNodesReque" + - "stProto\"W\n\031GetLiveNodesResponseProto\022:\n\005" + - "nodes\030\001 \003(\0132+.org.apache.slider.api.Node" + - "InformationProto\"\'\n\027GetLiveNodeRequestPr" + - "oto\022\014\n\004name\030\001 \002(\tB-\n\033org.apache.slider.a" + - "pi.protoB\010Messages\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_org_apache_slider_api_RoleInstanceState_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_org_apache_slider_api_RoleInstanceState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_apache_slider_api_RoleInstanceState_descriptor, - new java.lang.String[] { "Name", "Role", "State", "ExitCode", "Command", "Diagnostics", "Output", "Environment", "RoleId", "Released", "CreateTime", "StartTime", "Host", "HostURL", "AppVersion", }); - internal_static_org_apache_slider_api_StopClusterRequestProto_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_org_apache_slider_api_StopClusterRequestProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_apache_slider_api_StopClusterRequestProto_descriptor, - new java.lang.String[] { "Message", }); - internal_static_org_apache_slider_api_StopClusterResponseProto_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_org_apache_slider_api_StopClusterResponseProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_apache_slider_api_StopClusterResponseProto_descriptor, - new java.lang.String[] { }); - internal_static_org_apache_slider_api_UpgradeContainersRequestProto_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_org_apache_slider_api_UpgradeContainersRequestProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_apache_slider_api_UpgradeContainersRequestProto_descriptor, - new java.lang.String[] { "Message", "Container", "Component", }); - internal_static_org_apache_slider_api_UpgradeContainersResponseProto_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_org_apache_slider_api_UpgradeContainersResponseProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_apache_slider_api_UpgradeContainersResponseProto_descriptor, - new java.lang.String[] { }); - internal_static_org_apache_slider_api_FlexClusterRequestProto_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_org_apache_slider_api_FlexClusterRequestProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_apache_slider_api_FlexClusterRequestProto_descriptor, - new java.lang.String[] { "ClusterSpec", }); - internal_static_org_apache_slider_api_FlexClusterResponseProto_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_org_apache_slider_api_FlexClusterResponseProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_apache_slider_api_FlexClusterResponseProto_descriptor, - new java.lang.String[] { "Response", }); - internal_static_org_apache_slider_api_GetJSONClusterStatusRequestProto_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_org_apache_slider_api_GetJSONClusterStatusRequestProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_apache_slider_api_GetJSONClusterStatusRequestProto_descriptor, - new java.lang.String[] { }); - internal_static_org_apache_slider_api_GetJSONClusterStatusResponseProto_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_org_apache_slider_api_GetJSONClusterStatusResponseProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_apache_slider_api_GetJSONClusterStatusResponseProto_descriptor, - new java.lang.String[] { "ClusterSpec", }); - internal_static_org_apache_slider_api_ListNodeUUIDsByRoleRequestProto_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_org_apache_slider_api_ListNodeUUIDsByRoleRequestProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_apache_slider_api_ListNodeUUIDsByRoleRequestProto_descriptor, - new java.lang.String[] { "Role", }); - internal_static_org_apache_slider_api_ListNodeUUIDsByRoleResponseProto_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_org_apache_slider_api_ListNodeUUIDsByRoleResponseProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_apache_slider_api_ListNodeUUIDsByRoleResponseProto_descriptor, - new java.lang.String[] { "Uuid", }); - internal_static_org_apache_slider_api_GetNodeRequestProto_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_org_apache_slider_api_GetNodeRequestProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_apache_slider_api_GetNodeRequestProto_descriptor, - new java.lang.String[] { "Uuid", }); - internal_static_org_apache_slider_api_GetNodeResponseProto_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_org_apache_slider_api_GetNodeResponseProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_apache_slider_api_GetNodeResponseProto_descriptor, - new java.lang.String[] { "ClusterNode", }); - internal_static_org_apache_slider_api_GetClusterNodesRequestProto_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_org_apache_slider_api_GetClusterNodesRequestProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_apache_slider_api_GetClusterNodesRequestProto_descriptor, - new java.lang.String[] { "Uuid", }); - internal_static_org_apache_slider_api_GetClusterNodesResponseProto_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_org_apache_slider_api_GetClusterNodesResponseProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_apache_slider_api_GetClusterNodesResponseProto_descriptor, - new java.lang.String[] { "ClusterNode", }); - internal_static_org_apache_slider_api_EchoRequestProto_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_org_apache_slider_api_EchoRequestProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_apache_slider_api_EchoRequestProto_descriptor, - new java.lang.String[] { "Text", }); - internal_static_org_apache_slider_api_EchoResponseProto_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_org_apache_slider_api_EchoResponseProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_apache_slider_api_EchoResponseProto_descriptor, - new java.lang.String[] { "Text", }); - internal_static_org_apache_slider_api_KillContainerRequestProto_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_org_apache_slider_api_KillContainerRequestProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_apache_slider_api_KillContainerRequestProto_descriptor, - new java.lang.String[] { "Id", }); - internal_static_org_apache_slider_api_KillContainerResponseProto_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_org_apache_slider_api_KillContainerResponseProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_apache_slider_api_KillContainerResponseProto_descriptor, - new java.lang.String[] { "Success", }); - internal_static_org_apache_slider_api_AMSuicideRequestProto_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_org_apache_slider_api_AMSuicideRequestProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_apache_slider_api_AMSuicideRequestProto_descriptor, - new java.lang.String[] { "Text", "Signal", "Delay", }); - internal_static_org_apache_slider_api_AMSuicideResponseProto_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_org_apache_slider_api_AMSuicideResponseProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_apache_slider_api_AMSuicideResponseProto_descriptor, - new java.lang.String[] { }); - internal_static_org_apache_slider_api_GetInstanceDefinitionRequestProto_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_org_apache_slider_api_GetInstanceDefinitionRequestProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_apache_slider_api_GetInstanceDefinitionRequestProto_descriptor, - new java.lang.String[] { }); - internal_static_org_apache_slider_api_GetInstanceDefinitionResponseProto_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_org_apache_slider_api_GetInstanceDefinitionResponseProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_apache_slider_api_GetInstanceDefinitionResponseProto_descriptor, - new java.lang.String[] { "Internal", "Resources", "Application", }); - internal_static_org_apache_slider_api_ApplicationLivenessInformationProto_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_org_apache_slider_api_ApplicationLivenessInformationProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_apache_slider_api_ApplicationLivenessInformationProto_descriptor, - new java.lang.String[] { "AllRequestsSatisfied", "RequestsOutstanding", }); - internal_static_org_apache_slider_api_ComponentInformationProto_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_org_apache_slider_api_ComponentInformationProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_apache_slider_api_ComponentInformationProto_descriptor, - new java.lang.String[] { "Name", "Priority", "Desired", "Actual", "Releasing", "Requested", "Failed", "Started", "StartFailed", "Completed", "TotalRequested", "FailureMessage", "PlacementPolicy", "Containers", "FailedRecently", "NodeFailed", "Preempted", "PendingAntiAffineRequestCount", "IsAARequestOutstanding", }); - internal_static_org_apache_slider_api_ContainerInformationProto_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_org_apache_slider_api_ContainerInformationProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_apache_slider_api_ContainerInformationProto_descriptor, - new java.lang.String[] { "ContainerId", "Component", "Released", "State", "ExitCode", "Diagnostics", "CreateTime", "StartTime", "Output", "Host", "HostURL", "Placement", "AppVersion", }); - internal_static_org_apache_slider_api_PingInformationProto_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_org_apache_slider_api_PingInformationProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_apache_slider_api_PingInformationProto_descriptor, - new java.lang.String[] { "Text", "Verb", "Body", "Time", }); - internal_static_org_apache_slider_api_NodeEntryInformationProto_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_org_apache_slider_api_NodeEntryInformationProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_apache_slider_api_NodeEntryInformationProto_descriptor, - new java.lang.String[] { "Priority", "Requested", "Starting", "StartFailed", "Failed", "FailedRecently", "Preempted", "Live", "Releasing", "LastUsed", "Name", }); - internal_static_org_apache_slider_api_NodeInformationProto_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_org_apache_slider_api_NodeInformationProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_apache_slider_api_NodeInformationProto_descriptor, - new java.lang.String[] { "Hostname", "State", "HttpAddress", "RackName", "Labels", "HealthReport", "LastUpdated", "Entries", }); - internal_static_org_apache_slider_api_GetModelRequestProto_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_org_apache_slider_api_GetModelRequestProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_apache_slider_api_GetModelRequestProto_descriptor, - new java.lang.String[] { }); - internal_static_org_apache_slider_api_GetModelDesiredRequestProto_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_org_apache_slider_api_GetModelDesiredRequestProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_apache_slider_api_GetModelDesiredRequestProto_descriptor, - new java.lang.String[] { }); - internal_static_org_apache_slider_api_GetModelDesiredAppconfRequestProto_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_org_apache_slider_api_GetModelDesiredAppconfRequestProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_apache_slider_api_GetModelDesiredAppconfRequestProto_descriptor, - new java.lang.String[] { }); - internal_static_org_apache_slider_api_GetModelDesiredResourcesRequestProto_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_org_apache_slider_api_GetModelDesiredResourcesRequestProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_apache_slider_api_GetModelDesiredResourcesRequestProto_descriptor, - new java.lang.String[] { }); - internal_static_org_apache_slider_api_GetModelResolvedAppconfRequestProto_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_org_apache_slider_api_GetModelResolvedAppconfRequestProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_apache_slider_api_GetModelResolvedAppconfRequestProto_descriptor, - new java.lang.String[] { }); - internal_static_org_apache_slider_api_GetModelResolvedResourcesRequestProto_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_org_apache_slider_api_GetModelResolvedResourcesRequestProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_apache_slider_api_GetModelResolvedResourcesRequestProto_descriptor, - new java.lang.String[] { }); - internal_static_org_apache_slider_api_GetModelLiveResourcesRequestProto_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_org_apache_slider_api_GetModelLiveResourcesRequestProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_apache_slider_api_GetModelLiveResourcesRequestProto_descriptor, - new java.lang.String[] { }); - internal_static_org_apache_slider_api_GetLiveContainersRequestProto_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_org_apache_slider_api_GetLiveContainersRequestProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_apache_slider_api_GetLiveContainersRequestProto_descriptor, - new java.lang.String[] { }); - internal_static_org_apache_slider_api_GetLiveContainersResponseProto_descriptor = - getDescriptor().getMessageTypes().get(37); - internal_static_org_apache_slider_api_GetLiveContainersResponseProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_apache_slider_api_GetLiveContainersResponseProto_descriptor, - new java.lang.String[] { "Names", "Containers", }); - internal_static_org_apache_slider_api_GetLiveContainerRequestProto_descriptor = - getDescriptor().getMessageTypes().get(38); - internal_static_org_apache_slider_api_GetLiveContainerRequestProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_apache_slider_api_GetLiveContainerRequestProto_descriptor, - new java.lang.String[] { "ContainerId", }); - internal_static_org_apache_slider_api_GetLiveComponentsRequestProto_descriptor = - getDescriptor().getMessageTypes().get(39); - internal_static_org_apache_slider_api_GetLiveComponentsRequestProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_apache_slider_api_GetLiveComponentsRequestProto_descriptor, - new java.lang.String[] { }); - internal_static_org_apache_slider_api_GetLiveComponentsResponseProto_descriptor = - getDescriptor().getMessageTypes().get(40); - internal_static_org_apache_slider_api_GetLiveComponentsResponseProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_apache_slider_api_GetLiveComponentsResponseProto_descriptor, - new java.lang.String[] { "Names", "Components", }); - internal_static_org_apache_slider_api_GetLiveComponentRequestProto_descriptor = - getDescriptor().getMessageTypes().get(41); - internal_static_org_apache_slider_api_GetLiveComponentRequestProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_apache_slider_api_GetLiveComponentRequestProto_descriptor, - new java.lang.String[] { "Name", }); - internal_static_org_apache_slider_api_GetApplicationLivenessRequestProto_descriptor = - getDescriptor().getMessageTypes().get(42); - internal_static_org_apache_slider_api_GetApplicationLivenessRequestProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_apache_slider_api_GetApplicationLivenessRequestProto_descriptor, - new java.lang.String[] { }); - internal_static_org_apache_slider_api_EmptyPayloadProto_descriptor = - getDescriptor().getMessageTypes().get(43); - internal_static_org_apache_slider_api_EmptyPayloadProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_apache_slider_api_EmptyPayloadProto_descriptor, - new java.lang.String[] { }); - internal_static_org_apache_slider_api_WrappedJsonProto_descriptor = - getDescriptor().getMessageTypes().get(44); - internal_static_org_apache_slider_api_WrappedJsonProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_apache_slider_api_WrappedJsonProto_descriptor, - new java.lang.String[] { "Json", }); - internal_static_org_apache_slider_api_GetCertificateStoreRequestProto_descriptor = - getDescriptor().getMessageTypes().get(45); - internal_static_org_apache_slider_api_GetCertificateStoreRequestProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_apache_slider_api_GetCertificateStoreRequestProto_descriptor, - new java.lang.String[] { "Hostname", "RequesterId", "Password", "Type", }); - internal_static_org_apache_slider_api_GetCertificateStoreResponseProto_descriptor = - getDescriptor().getMessageTypes().get(46); - internal_static_org_apache_slider_api_GetCertificateStoreResponseProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_apache_slider_api_GetCertificateStoreResponseProto_descriptor, - new java.lang.String[] { "Store", }); - internal_static_org_apache_slider_api_GetLiveNodesRequestProto_descriptor = - getDescriptor().getMessageTypes().get(47); - internal_static_org_apache_slider_api_GetLiveNodesRequestProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_apache_slider_api_GetLiveNodesRequestProto_descriptor, - new java.lang.String[] { }); - internal_static_org_apache_slider_api_GetLiveNodesResponseProto_descriptor = - getDescriptor().getMessageTypes().get(48); - internal_static_org_apache_slider_api_GetLiveNodesResponseProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_apache_slider_api_GetLiveNodesResponseProto_descriptor, - new java.lang.String[] { "Nodes", }); - internal_static_org_apache_slider_api_GetLiveNodeRequestProto_descriptor = - getDescriptor().getMessageTypes().get(49); - internal_static_org_apache_slider_api_GetLiveNodeRequestProto_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_apache_slider_api_GetLiveNodeRequestProto_descriptor, - new java.lang.String[] { "Name", }); - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-slider/hadoop-yarn-slider-core/src/main/java/org/apache/slider/api/proto/SliderClusterAPI.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-slider/hadoop-yarn-slider-core/src/main/java/org/apache/slider/api/proto/SliderClusterAPI.java deleted file mode 100644 index 081b7fa580b..00000000000 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-slider/hadoop-yarn-slider-core/src/main/java/org/apache/slider/api/proto/SliderClusterAPI.java +++ /dev/null @@ -1,2293 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: SliderClusterProtocol.proto - -package org.apache.slider.api.proto; - -public final class SliderClusterAPI { - private SliderClusterAPI() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - /** - * Protobuf service {@code org.apache.slider.api.SliderClusterProtocolPB} - * - *
-   **
-   * Protocol used from between Slider Client and AM
-   * 
- */ - public static abstract class SliderClusterProtocolPB - implements com.google.protobuf.Service { - protected SliderClusterProtocolPB() {} - - public interface Interface { - /** - * rpc stopCluster(.org.apache.slider.api.StopClusterRequestProto) returns (.org.apache.slider.api.StopClusterResponseProto); - */ - public abstract void stopCluster( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.StopClusterRequestProto request, - com.google.protobuf.RpcCallback done); - - /** - * rpc upgradeContainers(.org.apache.slider.api.UpgradeContainersRequestProto) returns (.org.apache.slider.api.UpgradeContainersResponseProto); - * - *
-       **
-       * Upgrade containers 
-       * 
- */ - public abstract void upgradeContainers( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto request, - com.google.protobuf.RpcCallback done); - - /** - * rpc flexCluster(.org.apache.slider.api.FlexClusterRequestProto) returns (.org.apache.slider.api.FlexClusterResponseProto); - * - *
-       **
-       * Flex the cluster. 
-       * 
- */ - public abstract void flexCluster( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.FlexClusterRequestProto request, - com.google.protobuf.RpcCallback done); - - /** - * rpc getJSONClusterStatus(.org.apache.slider.api.GetJSONClusterStatusRequestProto) returns (.org.apache.slider.api.GetJSONClusterStatusResponseProto); - * - *
-       **
-       * Get the current cluster status
-       * 
- */ - public abstract void getJSONClusterStatus( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto request, - com.google.protobuf.RpcCallback done); - - /** - * rpc getInstanceDefinition(.org.apache.slider.api.GetInstanceDefinitionRequestProto) returns (.org.apache.slider.api.GetInstanceDefinitionResponseProto); - * - *
-       **
-       * Get the instance definition
-       * 
- */ - public abstract void getInstanceDefinition( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto request, - com.google.protobuf.RpcCallback done); - - /** - * rpc listNodeUUIDsByRole(.org.apache.slider.api.ListNodeUUIDsByRoleRequestProto) returns (.org.apache.slider.api.ListNodeUUIDsByRoleResponseProto); - * - *
-       **
-       * List all running nodes in a role
-       * 
- */ - public abstract void listNodeUUIDsByRole( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto request, - com.google.protobuf.RpcCallback done); - - /** - * rpc getNode(.org.apache.slider.api.GetNodeRequestProto) returns (.org.apache.slider.api.GetNodeResponseProto); - * - *
-       **
-       * Get the details on a node
-       * 
- */ - public abstract void getNode( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetNodeRequestProto request, - com.google.protobuf.RpcCallback done); - - /** - * rpc getClusterNodes(.org.apache.slider.api.GetClusterNodesRequestProto) returns (.org.apache.slider.api.GetClusterNodesResponseProto); - * - *
-       **
-       * Get the 
-       * details on a list of nodes.
-       * Unknown nodes are not returned
-       * <i>Important: the order of the results are undefined</i>
-       * 
- */ - public abstract void getClusterNodes( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto request, - com.google.protobuf.RpcCallback done); - - /** - * rpc echo(.org.apache.slider.api.EchoRequestProto) returns (.org.apache.slider.api.EchoResponseProto); - * - *
-       **
-       * echo some text
-       * 
- */ - public abstract void echo( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.EchoRequestProto request, - com.google.protobuf.RpcCallback done); - - /** - * rpc killContainer(.org.apache.slider.api.KillContainerRequestProto) returns (.org.apache.slider.api.KillContainerResponseProto); - * - *
-       **
-       * kill a container
-       * 
- */ - public abstract void killContainer( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.KillContainerRequestProto request, - com.google.protobuf.RpcCallback done); - - /** - * rpc amSuicide(.org.apache.slider.api.AMSuicideRequestProto) returns (.org.apache.slider.api.AMSuicideResponseProto); - * - *
-       **
-       * kill the AM
-       * 
- */ - public abstract void amSuicide( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.AMSuicideRequestProto request, - com.google.protobuf.RpcCallback done); - - /** - * rpc getLivenessInformation(.org.apache.slider.api.GetApplicationLivenessRequestProto) returns (.org.apache.slider.api.ApplicationLivenessInformationProto); - */ - public abstract void getLivenessInformation( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto request, - com.google.protobuf.RpcCallback done); - - /** - * rpc getLiveContainers(.org.apache.slider.api.GetLiveContainersRequestProto) returns (.org.apache.slider.api.GetLiveContainersResponseProto); - */ - public abstract void getLiveContainers( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto request, - com.google.protobuf.RpcCallback done); - - /** - * rpc getLiveContainer(.org.apache.slider.api.GetLiveContainerRequestProto) returns (.org.apache.slider.api.ContainerInformationProto); - */ - public abstract void getLiveContainer( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto request, - com.google.protobuf.RpcCallback done); - - /** - * rpc getLiveComponents(.org.apache.slider.api.GetLiveComponentsRequestProto) returns (.org.apache.slider.api.GetLiveComponentsResponseProto); - */ - public abstract void getLiveComponents( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto request, - com.google.protobuf.RpcCallback done); - - /** - * rpc getLiveComponent(.org.apache.slider.api.GetLiveComponentRequestProto) returns (.org.apache.slider.api.ComponentInformationProto); - */ - public abstract void getLiveComponent( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto request, - com.google.protobuf.RpcCallback done); - - /** - * rpc getLiveNodes(.org.apache.slider.api.GetLiveNodesRequestProto) returns (.org.apache.slider.api.GetLiveNodesResponseProto); - */ - public abstract void getLiveNodes( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto request, - com.google.protobuf.RpcCallback done); - - /** - * rpc getLiveNode(.org.apache.slider.api.GetLiveNodeRequestProto) returns (.org.apache.slider.api.NodeInformationProto); - */ - public abstract void getLiveNode( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto request, - com.google.protobuf.RpcCallback done); - - /** - * rpc getModelDesired(.org.apache.slider.api.EmptyPayloadProto) returns (.org.apache.slider.api.WrappedJsonProto); - * - *
-       * AggregateConf getModelDesired()
-       * 
- */ - public abstract void getModelDesired( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.EmptyPayloadProto request, - com.google.protobuf.RpcCallback done); - - /** - * rpc getModelDesiredAppconf(.org.apache.slider.api.EmptyPayloadProto) returns (.org.apache.slider.api.WrappedJsonProto); - * - *
-       * ConfTree getModelDesiredAppconf
-       * 
- */ - public abstract void getModelDesiredAppconf( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.EmptyPayloadProto request, - com.google.protobuf.RpcCallback done); - - /** - * rpc getModelDesiredResources(.org.apache.slider.api.EmptyPayloadProto) returns (.org.apache.slider.api.WrappedJsonProto); - * - *
-       * ConfTree getModelDesiredResources
-       * 
- */ - public abstract void getModelDesiredResources( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.EmptyPayloadProto request, - com.google.protobuf.RpcCallback done); - - /** - * rpc getModelResolved(.org.apache.slider.api.EmptyPayloadProto) returns (.org.apache.slider.api.WrappedJsonProto); - * - *
-       * AggregateConf getModelResolved()
-       * 
- */ - public abstract void getModelResolved( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.EmptyPayloadProto request, - com.google.protobuf.RpcCallback done); - - /** - * rpc getModelResolvedAppconf(.org.apache.slider.api.EmptyPayloadProto) returns (.org.apache.slider.api.WrappedJsonProto); - * - *
-       * ConfTree getModelResolvedAppconf
-       * 
- */ - public abstract void getModelResolvedAppconf( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.EmptyPayloadProto request, - com.google.protobuf.RpcCallback done); - - /** - * rpc getModelResolvedResources(.org.apache.slider.api.EmptyPayloadProto) returns (.org.apache.slider.api.WrappedJsonProto); - * - *
-       * ConfTree getModelResolvedResources
-       * 
- */ - public abstract void getModelResolvedResources( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.EmptyPayloadProto request, - com.google.protobuf.RpcCallback done); - - /** - * rpc getLiveResources(.org.apache.slider.api.EmptyPayloadProto) returns (.org.apache.slider.api.WrappedJsonProto); - * - *
-       * ConfTree getLiveResources
-       * 
- */ - public abstract void getLiveResources( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.EmptyPayloadProto request, - com.google.protobuf.RpcCallback done); - - /** - * rpc getClientCertificateStore(.org.apache.slider.api.GetCertificateStoreRequestProto) returns (.org.apache.slider.api.GetCertificateStoreResponseProto); - */ - public abstract void getClientCertificateStore( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto request, - com.google.protobuf.RpcCallback done); - - } - - public static com.google.protobuf.Service newReflectiveService( - final Interface impl) { - return new SliderClusterProtocolPB() { - @java.lang.Override - public void stopCluster( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.StopClusterRequestProto request, - com.google.protobuf.RpcCallback done) { - impl.stopCluster(controller, request, done); - } - - @java.lang.Override - public void upgradeContainers( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto request, - com.google.protobuf.RpcCallback done) { - impl.upgradeContainers(controller, request, done); - } - - @java.lang.Override - public void flexCluster( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.FlexClusterRequestProto request, - com.google.protobuf.RpcCallback done) { - impl.flexCluster(controller, request, done); - } - - @java.lang.Override - public void getJSONClusterStatus( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto request, - com.google.protobuf.RpcCallback done) { - impl.getJSONClusterStatus(controller, request, done); - } - - @java.lang.Override - public void getInstanceDefinition( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto request, - com.google.protobuf.RpcCallback done) { - impl.getInstanceDefinition(controller, request, done); - } - - @java.lang.Override - public void listNodeUUIDsByRole( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto request, - com.google.protobuf.RpcCallback done) { - impl.listNodeUUIDsByRole(controller, request, done); - } - - @java.lang.Override - public void getNode( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetNodeRequestProto request, - com.google.protobuf.RpcCallback done) { - impl.getNode(controller, request, done); - } - - @java.lang.Override - public void getClusterNodes( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto request, - com.google.protobuf.RpcCallback done) { - impl.getClusterNodes(controller, request, done); - } - - @java.lang.Override - public void echo( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.EchoRequestProto request, - com.google.protobuf.RpcCallback done) { - impl.echo(controller, request, done); - } - - @java.lang.Override - public void killContainer( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.KillContainerRequestProto request, - com.google.protobuf.RpcCallback done) { - impl.killContainer(controller, request, done); - } - - @java.lang.Override - public void amSuicide( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.AMSuicideRequestProto request, - com.google.protobuf.RpcCallback done) { - impl.amSuicide(controller, request, done); - } - - @java.lang.Override - public void getLivenessInformation( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto request, - com.google.protobuf.RpcCallback done) { - impl.getLivenessInformation(controller, request, done); - } - - @java.lang.Override - public void getLiveContainers( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto request, - com.google.protobuf.RpcCallback done) { - impl.getLiveContainers(controller, request, done); - } - - @java.lang.Override - public void getLiveContainer( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto request, - com.google.protobuf.RpcCallback done) { - impl.getLiveContainer(controller, request, done); - } - - @java.lang.Override - public void getLiveComponents( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto request, - com.google.protobuf.RpcCallback done) { - impl.getLiveComponents(controller, request, done); - } - - @java.lang.Override - public void getLiveComponent( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto request, - com.google.protobuf.RpcCallback done) { - impl.getLiveComponent(controller, request, done); - } - - @java.lang.Override - public void getLiveNodes( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto request, - com.google.protobuf.RpcCallback done) { - impl.getLiveNodes(controller, request, done); - } - - @java.lang.Override - public void getLiveNode( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto request, - com.google.protobuf.RpcCallback done) { - impl.getLiveNode(controller, request, done); - } - - @java.lang.Override - public void getModelDesired( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.EmptyPayloadProto request, - com.google.protobuf.RpcCallback done) { - impl.getModelDesired(controller, request, done); - } - - @java.lang.Override - public void getModelDesiredAppconf( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.EmptyPayloadProto request, - com.google.protobuf.RpcCallback done) { - impl.getModelDesiredAppconf(controller, request, done); - } - - @java.lang.Override - public void getModelDesiredResources( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.EmptyPayloadProto request, - com.google.protobuf.RpcCallback done) { - impl.getModelDesiredResources(controller, request, done); - } - - @java.lang.Override - public void getModelResolved( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.EmptyPayloadProto request, - com.google.protobuf.RpcCallback done) { - impl.getModelResolved(controller, request, done); - } - - @java.lang.Override - public void getModelResolvedAppconf( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.EmptyPayloadProto request, - com.google.protobuf.RpcCallback done) { - impl.getModelResolvedAppconf(controller, request, done); - } - - @java.lang.Override - public void getModelResolvedResources( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.EmptyPayloadProto request, - com.google.protobuf.RpcCallback done) { - impl.getModelResolvedResources(controller, request, done); - } - - @java.lang.Override - public void getLiveResources( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.EmptyPayloadProto request, - com.google.protobuf.RpcCallback done) { - impl.getLiveResources(controller, request, done); - } - - @java.lang.Override - public void getClientCertificateStore( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto request, - com.google.protobuf.RpcCallback done) { - impl.getClientCertificateStore(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.stopCluster(controller, (org.apache.slider.api.proto.Messages.StopClusterRequestProto)request); - case 1: - return impl.upgradeContainers(controller, (org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto)request); - case 2: - return impl.flexCluster(controller, (org.apache.slider.api.proto.Messages.FlexClusterRequestProto)request); - case 3: - return impl.getJSONClusterStatus(controller, (org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto)request); - case 4: - return impl.getInstanceDefinition(controller, (org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto)request); - case 5: - return impl.listNodeUUIDsByRole(controller, (org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto)request); - case 6: - return impl.getNode(controller, (org.apache.slider.api.proto.Messages.GetNodeRequestProto)request); - case 7: - return impl.getClusterNodes(controller, (org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto)request); - case 8: - return impl.echo(controller, (org.apache.slider.api.proto.Messages.EchoRequestProto)request); - case 9: - return impl.killContainer(controller, (org.apache.slider.api.proto.Messages.KillContainerRequestProto)request); - case 10: - return impl.amSuicide(controller, (org.apache.slider.api.proto.Messages.AMSuicideRequestProto)request); - case 11: - return impl.getLivenessInformation(controller, (org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto)request); - case 12: - return impl.getLiveContainers(controller, (org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto)request); - case 13: - return impl.getLiveContainer(controller, (org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto)request); - case 14: - return impl.getLiveComponents(controller, (org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto)request); - case 15: - return impl.getLiveComponent(controller, (org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto)request); - case 16: - return impl.getLiveNodes(controller, (org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto)request); - case 17: - return impl.getLiveNode(controller, (org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto)request); - case 18: - return impl.getModelDesired(controller, (org.apache.slider.api.proto.Messages.EmptyPayloadProto)request); - case 19: - return impl.getModelDesiredAppconf(controller, (org.apache.slider.api.proto.Messages.EmptyPayloadProto)request); - case 20: - return impl.getModelDesiredResources(controller, (org.apache.slider.api.proto.Messages.EmptyPayloadProto)request); - case 21: - return impl.getModelResolved(controller, (org.apache.slider.api.proto.Messages.EmptyPayloadProto)request); - case 22: - return impl.getModelResolvedAppconf(controller, (org.apache.slider.api.proto.Messages.EmptyPayloadProto)request); - case 23: - return impl.getModelResolvedResources(controller, (org.apache.slider.api.proto.Messages.EmptyPayloadProto)request); - case 24: - return impl.getLiveResources(controller, (org.apache.slider.api.proto.Messages.EmptyPayloadProto)request); - case 25: - return impl.getClientCertificateStore(controller, (org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto)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.slider.api.proto.Messages.StopClusterRequestProto.getDefaultInstance(); - case 1: - return org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto.getDefaultInstance(); - case 2: - return org.apache.slider.api.proto.Messages.FlexClusterRequestProto.getDefaultInstance(); - case 3: - return org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto.getDefaultInstance(); - case 4: - return org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto.getDefaultInstance(); - case 5: - return org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto.getDefaultInstance(); - case 6: - return org.apache.slider.api.proto.Messages.GetNodeRequestProto.getDefaultInstance(); - case 7: - return org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto.getDefaultInstance(); - case 8: - return org.apache.slider.api.proto.Messages.EchoRequestProto.getDefaultInstance(); - case 9: - return org.apache.slider.api.proto.Messages.KillContainerRequestProto.getDefaultInstance(); - case 10: - return org.apache.slider.api.proto.Messages.AMSuicideRequestProto.getDefaultInstance(); - case 11: - return org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto.getDefaultInstance(); - case 12: - return org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto.getDefaultInstance(); - case 13: - return org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto.getDefaultInstance(); - case 14: - return org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto.getDefaultInstance(); - case 15: - return org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto.getDefaultInstance(); - case 16: - return org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto.getDefaultInstance(); - case 17: - return org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto.getDefaultInstance(); - case 18: - return org.apache.slider.api.proto.Messages.EmptyPayloadProto.getDefaultInstance(); - case 19: - return org.apache.slider.api.proto.Messages.EmptyPayloadProto.getDefaultInstance(); - case 20: - return org.apache.slider.api.proto.Messages.EmptyPayloadProto.getDefaultInstance(); - case 21: - return org.apache.slider.api.proto.Messages.EmptyPayloadProto.getDefaultInstance(); - case 22: - return org.apache.slider.api.proto.Messages.EmptyPayloadProto.getDefaultInstance(); - case 23: - return org.apache.slider.api.proto.Messages.EmptyPayloadProto.getDefaultInstance(); - case 24: - return org.apache.slider.api.proto.Messages.EmptyPayloadProto.getDefaultInstance(); - case 25: - return org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto.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.slider.api.proto.Messages.StopClusterResponseProto.getDefaultInstance(); - case 1: - return org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto.getDefaultInstance(); - case 2: - return org.apache.slider.api.proto.Messages.FlexClusterResponseProto.getDefaultInstance(); - case 3: - return org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto.getDefaultInstance(); - case 4: - return org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto.getDefaultInstance(); - case 5: - return org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto.getDefaultInstance(); - case 6: - return org.apache.slider.api.proto.Messages.GetNodeResponseProto.getDefaultInstance(); - case 7: - return org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto.getDefaultInstance(); - case 8: - return org.apache.slider.api.proto.Messages.EchoResponseProto.getDefaultInstance(); - case 9: - return org.apache.slider.api.proto.Messages.KillContainerResponseProto.getDefaultInstance(); - case 10: - return org.apache.slider.api.proto.Messages.AMSuicideResponseProto.getDefaultInstance(); - case 11: - return org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto.getDefaultInstance(); - case 12: - return org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto.getDefaultInstance(); - case 13: - return org.apache.slider.api.proto.Messages.ContainerInformationProto.getDefaultInstance(); - case 14: - return org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto.getDefaultInstance(); - case 15: - return org.apache.slider.api.proto.Messages.ComponentInformationProto.getDefaultInstance(); - case 16: - return org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto.getDefaultInstance(); - case 17: - return org.apache.slider.api.proto.Messages.NodeInformationProto.getDefaultInstance(); - case 18: - return org.apache.slider.api.proto.Messages.WrappedJsonProto.getDefaultInstance(); - case 19: - return org.apache.slider.api.proto.Messages.WrappedJsonProto.getDefaultInstance(); - case 20: - return org.apache.slider.api.proto.Messages.WrappedJsonProto.getDefaultInstance(); - case 21: - return org.apache.slider.api.proto.Messages.WrappedJsonProto.getDefaultInstance(); - case 22: - return org.apache.slider.api.proto.Messages.WrappedJsonProto.getDefaultInstance(); - case 23: - return org.apache.slider.api.proto.Messages.WrappedJsonProto.getDefaultInstance(); - case 24: - return org.apache.slider.api.proto.Messages.WrappedJsonProto.getDefaultInstance(); - case 25: - return org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto.getDefaultInstance(); - default: - throw new java.lang.AssertionError("Can't get here."); - } - } - - }; - } - - /** - * rpc stopCluster(.org.apache.slider.api.StopClusterRequestProto) returns (.org.apache.slider.api.StopClusterResponseProto); - */ - public abstract void stopCluster( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.StopClusterRequestProto request, - com.google.protobuf.RpcCallback done); - - /** - * rpc upgradeContainers(.org.apache.slider.api.UpgradeContainersRequestProto) returns (.org.apache.slider.api.UpgradeContainersResponseProto); - * - *
-     **
-     * Upgrade containers 
-     * 
- */ - public abstract void upgradeContainers( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto request, - com.google.protobuf.RpcCallback done); - - /** - * rpc flexCluster(.org.apache.slider.api.FlexClusterRequestProto) returns (.org.apache.slider.api.FlexClusterResponseProto); - * - *
-     **
-     * Flex the cluster. 
-     * 
- */ - public abstract void flexCluster( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.FlexClusterRequestProto request, - com.google.protobuf.RpcCallback done); - - /** - * rpc getJSONClusterStatus(.org.apache.slider.api.GetJSONClusterStatusRequestProto) returns (.org.apache.slider.api.GetJSONClusterStatusResponseProto); - * - *
-     **
-     * Get the current cluster status
-     * 
- */ - public abstract void getJSONClusterStatus( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto request, - com.google.protobuf.RpcCallback done); - - /** - * rpc getInstanceDefinition(.org.apache.slider.api.GetInstanceDefinitionRequestProto) returns (.org.apache.slider.api.GetInstanceDefinitionResponseProto); - * - *
-     **
-     * Get the instance definition
-     * 
- */ - public abstract void getInstanceDefinition( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto request, - com.google.protobuf.RpcCallback done); - - /** - * rpc listNodeUUIDsByRole(.org.apache.slider.api.ListNodeUUIDsByRoleRequestProto) returns (.org.apache.slider.api.ListNodeUUIDsByRoleResponseProto); - * - *
-     **
-     * List all running nodes in a role
-     * 
- */ - public abstract void listNodeUUIDsByRole( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto request, - com.google.protobuf.RpcCallback done); - - /** - * rpc getNode(.org.apache.slider.api.GetNodeRequestProto) returns (.org.apache.slider.api.GetNodeResponseProto); - * - *
-     **
-     * Get the details on a node
-     * 
- */ - public abstract void getNode( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetNodeRequestProto request, - com.google.protobuf.RpcCallback done); - - /** - * rpc getClusterNodes(.org.apache.slider.api.GetClusterNodesRequestProto) returns (.org.apache.slider.api.GetClusterNodesResponseProto); - * - *
-     **
-     * Get the 
-     * details on a list of nodes.
-     * Unknown nodes are not returned
-     * <i>Important: the order of the results are undefined</i>
-     * 
- */ - public abstract void getClusterNodes( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto request, - com.google.protobuf.RpcCallback done); - - /** - * rpc echo(.org.apache.slider.api.EchoRequestProto) returns (.org.apache.slider.api.EchoResponseProto); - * - *
-     **
-     * echo some text
-     * 
- */ - public abstract void echo( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.EchoRequestProto request, - com.google.protobuf.RpcCallback done); - - /** - * rpc killContainer(.org.apache.slider.api.KillContainerRequestProto) returns (.org.apache.slider.api.KillContainerResponseProto); - * - *
-     **
-     * kill a container
-     * 
- */ - public abstract void killContainer( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.KillContainerRequestProto request, - com.google.protobuf.RpcCallback done); - - /** - * rpc amSuicide(.org.apache.slider.api.AMSuicideRequestProto) returns (.org.apache.slider.api.AMSuicideResponseProto); - * - *
-     **
-     * kill the AM
-     * 
- */ - public abstract void amSuicide( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.AMSuicideRequestProto request, - com.google.protobuf.RpcCallback done); - - /** - * rpc getLivenessInformation(.org.apache.slider.api.GetApplicationLivenessRequestProto) returns (.org.apache.slider.api.ApplicationLivenessInformationProto); - */ - public abstract void getLivenessInformation( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto request, - com.google.protobuf.RpcCallback done); - - /** - * rpc getLiveContainers(.org.apache.slider.api.GetLiveContainersRequestProto) returns (.org.apache.slider.api.GetLiveContainersResponseProto); - */ - public abstract void getLiveContainers( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto request, - com.google.protobuf.RpcCallback done); - - /** - * rpc getLiveContainer(.org.apache.slider.api.GetLiveContainerRequestProto) returns (.org.apache.slider.api.ContainerInformationProto); - */ - public abstract void getLiveContainer( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto request, - com.google.protobuf.RpcCallback done); - - /** - * rpc getLiveComponents(.org.apache.slider.api.GetLiveComponentsRequestProto) returns (.org.apache.slider.api.GetLiveComponentsResponseProto); - */ - public abstract void getLiveComponents( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto request, - com.google.protobuf.RpcCallback done); - - /** - * rpc getLiveComponent(.org.apache.slider.api.GetLiveComponentRequestProto) returns (.org.apache.slider.api.ComponentInformationProto); - */ - public abstract void getLiveComponent( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto request, - com.google.protobuf.RpcCallback done); - - /** - * rpc getLiveNodes(.org.apache.slider.api.GetLiveNodesRequestProto) returns (.org.apache.slider.api.GetLiveNodesResponseProto); - */ - public abstract void getLiveNodes( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto request, - com.google.protobuf.RpcCallback done); - - /** - * rpc getLiveNode(.org.apache.slider.api.GetLiveNodeRequestProto) returns (.org.apache.slider.api.NodeInformationProto); - */ - public abstract void getLiveNode( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto request, - com.google.protobuf.RpcCallback done); - - /** - * rpc getModelDesired(.org.apache.slider.api.EmptyPayloadProto) returns (.org.apache.slider.api.WrappedJsonProto); - * - *
-     * AggregateConf getModelDesired()
-     * 
- */ - public abstract void getModelDesired( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.EmptyPayloadProto request, - com.google.protobuf.RpcCallback done); - - /** - * rpc getModelDesiredAppconf(.org.apache.slider.api.EmptyPayloadProto) returns (.org.apache.slider.api.WrappedJsonProto); - * - *
-     * ConfTree getModelDesiredAppconf
-     * 
- */ - public abstract void getModelDesiredAppconf( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.EmptyPayloadProto request, - com.google.protobuf.RpcCallback done); - - /** - * rpc getModelDesiredResources(.org.apache.slider.api.EmptyPayloadProto) returns (.org.apache.slider.api.WrappedJsonProto); - * - *
-     * ConfTree getModelDesiredResources
-     * 
- */ - public abstract void getModelDesiredResources( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.EmptyPayloadProto request, - com.google.protobuf.RpcCallback done); - - /** - * rpc getModelResolved(.org.apache.slider.api.EmptyPayloadProto) returns (.org.apache.slider.api.WrappedJsonProto); - * - *
-     * AggregateConf getModelResolved()
-     * 
- */ - public abstract void getModelResolved( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.EmptyPayloadProto request, - com.google.protobuf.RpcCallback done); - - /** - * rpc getModelResolvedAppconf(.org.apache.slider.api.EmptyPayloadProto) returns (.org.apache.slider.api.WrappedJsonProto); - * - *
-     * ConfTree getModelResolvedAppconf
-     * 
- */ - public abstract void getModelResolvedAppconf( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.EmptyPayloadProto request, - com.google.protobuf.RpcCallback done); - - /** - * rpc getModelResolvedResources(.org.apache.slider.api.EmptyPayloadProto) returns (.org.apache.slider.api.WrappedJsonProto); - * - *
-     * ConfTree getModelResolvedResources
-     * 
- */ - public abstract void getModelResolvedResources( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.EmptyPayloadProto request, - com.google.protobuf.RpcCallback done); - - /** - * rpc getLiveResources(.org.apache.slider.api.EmptyPayloadProto) returns (.org.apache.slider.api.WrappedJsonProto); - * - *
-     * ConfTree getLiveResources
-     * 
- */ - public abstract void getLiveResources( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.EmptyPayloadProto request, - com.google.protobuf.RpcCallback done); - - /** - * rpc getClientCertificateStore(.org.apache.slider.api.GetCertificateStoreRequestProto) returns (.org.apache.slider.api.GetCertificateStoreResponseProto); - */ - public abstract void getClientCertificateStore( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto request, - com.google.protobuf.RpcCallback done); - - public static final - com.google.protobuf.Descriptors.ServiceDescriptor - getDescriptor() { - return org.apache.slider.api.proto.SliderClusterAPI.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.stopCluster(controller, (org.apache.slider.api.proto.Messages.StopClusterRequestProto)request, - com.google.protobuf.RpcUtil.specializeCallback( - done)); - return; - case 1: - this.upgradeContainers(controller, (org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto)request, - com.google.protobuf.RpcUtil.specializeCallback( - done)); - return; - case 2: - this.flexCluster(controller, (org.apache.slider.api.proto.Messages.FlexClusterRequestProto)request, - com.google.protobuf.RpcUtil.specializeCallback( - done)); - return; - case 3: - this.getJSONClusterStatus(controller, (org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto)request, - com.google.protobuf.RpcUtil.specializeCallback( - done)); - return; - case 4: - this.getInstanceDefinition(controller, (org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto)request, - com.google.protobuf.RpcUtil.specializeCallback( - done)); - return; - case 5: - this.listNodeUUIDsByRole(controller, (org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto)request, - com.google.protobuf.RpcUtil.specializeCallback( - done)); - return; - case 6: - this.getNode(controller, (org.apache.slider.api.proto.Messages.GetNodeRequestProto)request, - com.google.protobuf.RpcUtil.specializeCallback( - done)); - return; - case 7: - this.getClusterNodes(controller, (org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto)request, - com.google.protobuf.RpcUtil.specializeCallback( - done)); - return; - case 8: - this.echo(controller, (org.apache.slider.api.proto.Messages.EchoRequestProto)request, - com.google.protobuf.RpcUtil.specializeCallback( - done)); - return; - case 9: - this.killContainer(controller, (org.apache.slider.api.proto.Messages.KillContainerRequestProto)request, - com.google.protobuf.RpcUtil.specializeCallback( - done)); - return; - case 10: - this.amSuicide(controller, (org.apache.slider.api.proto.Messages.AMSuicideRequestProto)request, - com.google.protobuf.RpcUtil.specializeCallback( - done)); - return; - case 11: - this.getLivenessInformation(controller, (org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto)request, - com.google.protobuf.RpcUtil.specializeCallback( - done)); - return; - case 12: - this.getLiveContainers(controller, (org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto)request, - com.google.protobuf.RpcUtil.specializeCallback( - done)); - return; - case 13: - this.getLiveContainer(controller, (org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto)request, - com.google.protobuf.RpcUtil.specializeCallback( - done)); - return; - case 14: - this.getLiveComponents(controller, (org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto)request, - com.google.protobuf.RpcUtil.specializeCallback( - done)); - return; - case 15: - this.getLiveComponent(controller, (org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto)request, - com.google.protobuf.RpcUtil.specializeCallback( - done)); - return; - case 16: - this.getLiveNodes(controller, (org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto)request, - com.google.protobuf.RpcUtil.specializeCallback( - done)); - return; - case 17: - this.getLiveNode(controller, (org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto)request, - com.google.protobuf.RpcUtil.specializeCallback( - done)); - return; - case 18: - this.getModelDesired(controller, (org.apache.slider.api.proto.Messages.EmptyPayloadProto)request, - com.google.protobuf.RpcUtil.specializeCallback( - done)); - return; - case 19: - this.getModelDesiredAppconf(controller, (org.apache.slider.api.proto.Messages.EmptyPayloadProto)request, - com.google.protobuf.RpcUtil.specializeCallback( - done)); - return; - case 20: - this.getModelDesiredResources(controller, (org.apache.slider.api.proto.Messages.EmptyPayloadProto)request, - com.google.protobuf.RpcUtil.specializeCallback( - done)); - return; - case 21: - this.getModelResolved(controller, (org.apache.slider.api.proto.Messages.EmptyPayloadProto)request, - com.google.protobuf.RpcUtil.specializeCallback( - done)); - return; - case 22: - this.getModelResolvedAppconf(controller, (org.apache.slider.api.proto.Messages.EmptyPayloadProto)request, - com.google.protobuf.RpcUtil.specializeCallback( - done)); - return; - case 23: - this.getModelResolvedResources(controller, (org.apache.slider.api.proto.Messages.EmptyPayloadProto)request, - com.google.protobuf.RpcUtil.specializeCallback( - done)); - return; - case 24: - this.getLiveResources(controller, (org.apache.slider.api.proto.Messages.EmptyPayloadProto)request, - com.google.protobuf.RpcUtil.specializeCallback( - done)); - return; - case 25: - this.getClientCertificateStore(controller, (org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto)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.slider.api.proto.Messages.StopClusterRequestProto.getDefaultInstance(); - case 1: - return org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto.getDefaultInstance(); - case 2: - return org.apache.slider.api.proto.Messages.FlexClusterRequestProto.getDefaultInstance(); - case 3: - return org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto.getDefaultInstance(); - case 4: - return org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto.getDefaultInstance(); - case 5: - return org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto.getDefaultInstance(); - case 6: - return org.apache.slider.api.proto.Messages.GetNodeRequestProto.getDefaultInstance(); - case 7: - return org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto.getDefaultInstance(); - case 8: - return org.apache.slider.api.proto.Messages.EchoRequestProto.getDefaultInstance(); - case 9: - return org.apache.slider.api.proto.Messages.KillContainerRequestProto.getDefaultInstance(); - case 10: - return org.apache.slider.api.proto.Messages.AMSuicideRequestProto.getDefaultInstance(); - case 11: - return org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto.getDefaultInstance(); - case 12: - return org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto.getDefaultInstance(); - case 13: - return org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto.getDefaultInstance(); - case 14: - return org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto.getDefaultInstance(); - case 15: - return org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto.getDefaultInstance(); - case 16: - return org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto.getDefaultInstance(); - case 17: - return org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto.getDefaultInstance(); - case 18: - return org.apache.slider.api.proto.Messages.EmptyPayloadProto.getDefaultInstance(); - case 19: - return org.apache.slider.api.proto.Messages.EmptyPayloadProto.getDefaultInstance(); - case 20: - return org.apache.slider.api.proto.Messages.EmptyPayloadProto.getDefaultInstance(); - case 21: - return org.apache.slider.api.proto.Messages.EmptyPayloadProto.getDefaultInstance(); - case 22: - return org.apache.slider.api.proto.Messages.EmptyPayloadProto.getDefaultInstance(); - case 23: - return org.apache.slider.api.proto.Messages.EmptyPayloadProto.getDefaultInstance(); - case 24: - return org.apache.slider.api.proto.Messages.EmptyPayloadProto.getDefaultInstance(); - case 25: - return org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto.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.slider.api.proto.Messages.StopClusterResponseProto.getDefaultInstance(); - case 1: - return org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto.getDefaultInstance(); - case 2: - return org.apache.slider.api.proto.Messages.FlexClusterResponseProto.getDefaultInstance(); - case 3: - return org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto.getDefaultInstance(); - case 4: - return org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto.getDefaultInstance(); - case 5: - return org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto.getDefaultInstance(); - case 6: - return org.apache.slider.api.proto.Messages.GetNodeResponseProto.getDefaultInstance(); - case 7: - return org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto.getDefaultInstance(); - case 8: - return org.apache.slider.api.proto.Messages.EchoResponseProto.getDefaultInstance(); - case 9: - return org.apache.slider.api.proto.Messages.KillContainerResponseProto.getDefaultInstance(); - case 10: - return org.apache.slider.api.proto.Messages.AMSuicideResponseProto.getDefaultInstance(); - case 11: - return org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto.getDefaultInstance(); - case 12: - return org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto.getDefaultInstance(); - case 13: - return org.apache.slider.api.proto.Messages.ContainerInformationProto.getDefaultInstance(); - case 14: - return org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto.getDefaultInstance(); - case 15: - return org.apache.slider.api.proto.Messages.ComponentInformationProto.getDefaultInstance(); - case 16: - return org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto.getDefaultInstance(); - case 17: - return org.apache.slider.api.proto.Messages.NodeInformationProto.getDefaultInstance(); - case 18: - return org.apache.slider.api.proto.Messages.WrappedJsonProto.getDefaultInstance(); - case 19: - return org.apache.slider.api.proto.Messages.WrappedJsonProto.getDefaultInstance(); - case 20: - return org.apache.slider.api.proto.Messages.WrappedJsonProto.getDefaultInstance(); - case 21: - return org.apache.slider.api.proto.Messages.WrappedJsonProto.getDefaultInstance(); - case 22: - return org.apache.slider.api.proto.Messages.WrappedJsonProto.getDefaultInstance(); - case 23: - return org.apache.slider.api.proto.Messages.WrappedJsonProto.getDefaultInstance(); - case 24: - return org.apache.slider.api.proto.Messages.WrappedJsonProto.getDefaultInstance(); - case 25: - return org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto.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.slider.api.proto.SliderClusterAPI.SliderClusterProtocolPB 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 stopCluster( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.StopClusterRequestProto request, - com.google.protobuf.RpcCallback done) { - channel.callMethod( - getDescriptor().getMethods().get(0), - controller, - request, - org.apache.slider.api.proto.Messages.StopClusterResponseProto.getDefaultInstance(), - com.google.protobuf.RpcUtil.generalizeCallback( - done, - org.apache.slider.api.proto.Messages.StopClusterResponseProto.class, - org.apache.slider.api.proto.Messages.StopClusterResponseProto.getDefaultInstance())); - } - - public void upgradeContainers( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto request, - com.google.protobuf.RpcCallback done) { - channel.callMethod( - getDescriptor().getMethods().get(1), - controller, - request, - org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto.getDefaultInstance(), - com.google.protobuf.RpcUtil.generalizeCallback( - done, - org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto.class, - org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto.getDefaultInstance())); - } - - public void flexCluster( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.FlexClusterRequestProto request, - com.google.protobuf.RpcCallback done) { - channel.callMethod( - getDescriptor().getMethods().get(2), - controller, - request, - org.apache.slider.api.proto.Messages.FlexClusterResponseProto.getDefaultInstance(), - com.google.protobuf.RpcUtil.generalizeCallback( - done, - org.apache.slider.api.proto.Messages.FlexClusterResponseProto.class, - org.apache.slider.api.proto.Messages.FlexClusterResponseProto.getDefaultInstance())); - } - - public void getJSONClusterStatus( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto request, - com.google.protobuf.RpcCallback done) { - channel.callMethod( - getDescriptor().getMethods().get(3), - controller, - request, - org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto.getDefaultInstance(), - com.google.protobuf.RpcUtil.generalizeCallback( - done, - org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto.class, - org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto.getDefaultInstance())); - } - - public void getInstanceDefinition( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto request, - com.google.protobuf.RpcCallback done) { - channel.callMethod( - getDescriptor().getMethods().get(4), - controller, - request, - org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto.getDefaultInstance(), - com.google.protobuf.RpcUtil.generalizeCallback( - done, - org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto.class, - org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto.getDefaultInstance())); - } - - public void listNodeUUIDsByRole( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto request, - com.google.protobuf.RpcCallback done) { - channel.callMethod( - getDescriptor().getMethods().get(5), - controller, - request, - org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto.getDefaultInstance(), - com.google.protobuf.RpcUtil.generalizeCallback( - done, - org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto.class, - org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto.getDefaultInstance())); - } - - public void getNode( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetNodeRequestProto request, - com.google.protobuf.RpcCallback done) { - channel.callMethod( - getDescriptor().getMethods().get(6), - controller, - request, - org.apache.slider.api.proto.Messages.GetNodeResponseProto.getDefaultInstance(), - com.google.protobuf.RpcUtil.generalizeCallback( - done, - org.apache.slider.api.proto.Messages.GetNodeResponseProto.class, - org.apache.slider.api.proto.Messages.GetNodeResponseProto.getDefaultInstance())); - } - - public void getClusterNodes( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto request, - com.google.protobuf.RpcCallback done) { - channel.callMethod( - getDescriptor().getMethods().get(7), - controller, - request, - org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto.getDefaultInstance(), - com.google.protobuf.RpcUtil.generalizeCallback( - done, - org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto.class, - org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto.getDefaultInstance())); - } - - public void echo( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.EchoRequestProto request, - com.google.protobuf.RpcCallback done) { - channel.callMethod( - getDescriptor().getMethods().get(8), - controller, - request, - org.apache.slider.api.proto.Messages.EchoResponseProto.getDefaultInstance(), - com.google.protobuf.RpcUtil.generalizeCallback( - done, - org.apache.slider.api.proto.Messages.EchoResponseProto.class, - org.apache.slider.api.proto.Messages.EchoResponseProto.getDefaultInstance())); - } - - public void killContainer( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.KillContainerRequestProto request, - com.google.protobuf.RpcCallback done) { - channel.callMethod( - getDescriptor().getMethods().get(9), - controller, - request, - org.apache.slider.api.proto.Messages.KillContainerResponseProto.getDefaultInstance(), - com.google.protobuf.RpcUtil.generalizeCallback( - done, - org.apache.slider.api.proto.Messages.KillContainerResponseProto.class, - org.apache.slider.api.proto.Messages.KillContainerResponseProto.getDefaultInstance())); - } - - public void amSuicide( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.AMSuicideRequestProto request, - com.google.protobuf.RpcCallback done) { - channel.callMethod( - getDescriptor().getMethods().get(10), - controller, - request, - org.apache.slider.api.proto.Messages.AMSuicideResponseProto.getDefaultInstance(), - com.google.protobuf.RpcUtil.generalizeCallback( - done, - org.apache.slider.api.proto.Messages.AMSuicideResponseProto.class, - org.apache.slider.api.proto.Messages.AMSuicideResponseProto.getDefaultInstance())); - } - - public void getLivenessInformation( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto request, - com.google.protobuf.RpcCallback done) { - channel.callMethod( - getDescriptor().getMethods().get(11), - controller, - request, - org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto.getDefaultInstance(), - com.google.protobuf.RpcUtil.generalizeCallback( - done, - org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto.class, - org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto.getDefaultInstance())); - } - - public void getLiveContainers( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto request, - com.google.protobuf.RpcCallback done) { - channel.callMethod( - getDescriptor().getMethods().get(12), - controller, - request, - org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto.getDefaultInstance(), - com.google.protobuf.RpcUtil.generalizeCallback( - done, - org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto.class, - org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto.getDefaultInstance())); - } - - public void getLiveContainer( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto request, - com.google.protobuf.RpcCallback done) { - channel.callMethod( - getDescriptor().getMethods().get(13), - controller, - request, - org.apache.slider.api.proto.Messages.ContainerInformationProto.getDefaultInstance(), - com.google.protobuf.RpcUtil.generalizeCallback( - done, - org.apache.slider.api.proto.Messages.ContainerInformationProto.class, - org.apache.slider.api.proto.Messages.ContainerInformationProto.getDefaultInstance())); - } - - public void getLiveComponents( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto request, - com.google.protobuf.RpcCallback done) { - channel.callMethod( - getDescriptor().getMethods().get(14), - controller, - request, - org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto.getDefaultInstance(), - com.google.protobuf.RpcUtil.generalizeCallback( - done, - org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto.class, - org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto.getDefaultInstance())); - } - - public void getLiveComponent( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto request, - com.google.protobuf.RpcCallback done) { - channel.callMethod( - getDescriptor().getMethods().get(15), - controller, - request, - org.apache.slider.api.proto.Messages.ComponentInformationProto.getDefaultInstance(), - com.google.protobuf.RpcUtil.generalizeCallback( - done, - org.apache.slider.api.proto.Messages.ComponentInformationProto.class, - org.apache.slider.api.proto.Messages.ComponentInformationProto.getDefaultInstance())); - } - - public void getLiveNodes( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto request, - com.google.protobuf.RpcCallback done) { - channel.callMethod( - getDescriptor().getMethods().get(16), - controller, - request, - org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto.getDefaultInstance(), - com.google.protobuf.RpcUtil.generalizeCallback( - done, - org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto.class, - org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto.getDefaultInstance())); - } - - public void getLiveNode( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto request, - com.google.protobuf.RpcCallback done) { - channel.callMethod( - getDescriptor().getMethods().get(17), - controller, - request, - org.apache.slider.api.proto.Messages.NodeInformationProto.getDefaultInstance(), - com.google.protobuf.RpcUtil.generalizeCallback( - done, - org.apache.slider.api.proto.Messages.NodeInformationProto.class, - org.apache.slider.api.proto.Messages.NodeInformationProto.getDefaultInstance())); - } - - public void getModelDesired( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.EmptyPayloadProto request, - com.google.protobuf.RpcCallback done) { - channel.callMethod( - getDescriptor().getMethods().get(18), - controller, - request, - org.apache.slider.api.proto.Messages.WrappedJsonProto.getDefaultInstance(), - com.google.protobuf.RpcUtil.generalizeCallback( - done, - org.apache.slider.api.proto.Messages.WrappedJsonProto.class, - org.apache.slider.api.proto.Messages.WrappedJsonProto.getDefaultInstance())); - } - - public void getModelDesiredAppconf( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.EmptyPayloadProto request, - com.google.protobuf.RpcCallback done) { - channel.callMethod( - getDescriptor().getMethods().get(19), - controller, - request, - org.apache.slider.api.proto.Messages.WrappedJsonProto.getDefaultInstance(), - com.google.protobuf.RpcUtil.generalizeCallback( - done, - org.apache.slider.api.proto.Messages.WrappedJsonProto.class, - org.apache.slider.api.proto.Messages.WrappedJsonProto.getDefaultInstance())); - } - - public void getModelDesiredResources( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.EmptyPayloadProto request, - com.google.protobuf.RpcCallback done) { - channel.callMethod( - getDescriptor().getMethods().get(20), - controller, - request, - org.apache.slider.api.proto.Messages.WrappedJsonProto.getDefaultInstance(), - com.google.protobuf.RpcUtil.generalizeCallback( - done, - org.apache.slider.api.proto.Messages.WrappedJsonProto.class, - org.apache.slider.api.proto.Messages.WrappedJsonProto.getDefaultInstance())); - } - - public void getModelResolved( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.EmptyPayloadProto request, - com.google.protobuf.RpcCallback done) { - channel.callMethod( - getDescriptor().getMethods().get(21), - controller, - request, - org.apache.slider.api.proto.Messages.WrappedJsonProto.getDefaultInstance(), - com.google.protobuf.RpcUtil.generalizeCallback( - done, - org.apache.slider.api.proto.Messages.WrappedJsonProto.class, - org.apache.slider.api.proto.Messages.WrappedJsonProto.getDefaultInstance())); - } - - public void getModelResolvedAppconf( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.EmptyPayloadProto request, - com.google.protobuf.RpcCallback done) { - channel.callMethod( - getDescriptor().getMethods().get(22), - controller, - request, - org.apache.slider.api.proto.Messages.WrappedJsonProto.getDefaultInstance(), - com.google.protobuf.RpcUtil.generalizeCallback( - done, - org.apache.slider.api.proto.Messages.WrappedJsonProto.class, - org.apache.slider.api.proto.Messages.WrappedJsonProto.getDefaultInstance())); - } - - public void getModelResolvedResources( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.EmptyPayloadProto request, - com.google.protobuf.RpcCallback done) { - channel.callMethod( - getDescriptor().getMethods().get(23), - controller, - request, - org.apache.slider.api.proto.Messages.WrappedJsonProto.getDefaultInstance(), - com.google.protobuf.RpcUtil.generalizeCallback( - done, - org.apache.slider.api.proto.Messages.WrappedJsonProto.class, - org.apache.slider.api.proto.Messages.WrappedJsonProto.getDefaultInstance())); - } - - public void getLiveResources( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.EmptyPayloadProto request, - com.google.protobuf.RpcCallback done) { - channel.callMethod( - getDescriptor().getMethods().get(24), - controller, - request, - org.apache.slider.api.proto.Messages.WrappedJsonProto.getDefaultInstance(), - com.google.protobuf.RpcUtil.generalizeCallback( - done, - org.apache.slider.api.proto.Messages.WrappedJsonProto.class, - org.apache.slider.api.proto.Messages.WrappedJsonProto.getDefaultInstance())); - } - - public void getClientCertificateStore( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto request, - com.google.protobuf.RpcCallback done) { - channel.callMethod( - getDescriptor().getMethods().get(25), - controller, - request, - org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto.getDefaultInstance(), - com.google.protobuf.RpcUtil.generalizeCallback( - done, - org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto.class, - org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto.getDefaultInstance())); - } - } - - public static BlockingInterface newBlockingStub( - com.google.protobuf.BlockingRpcChannel channel) { - return new BlockingStub(channel); - } - - public interface BlockingInterface { - public org.apache.slider.api.proto.Messages.StopClusterResponseProto stopCluster( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.StopClusterRequestProto request) - throws com.google.protobuf.ServiceException; - - public org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto upgradeContainers( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto request) - throws com.google.protobuf.ServiceException; - - public org.apache.slider.api.proto.Messages.FlexClusterResponseProto flexCluster( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.FlexClusterRequestProto request) - throws com.google.protobuf.ServiceException; - - public org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto getJSONClusterStatus( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto request) - throws com.google.protobuf.ServiceException; - - public org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto getInstanceDefinition( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto request) - throws com.google.protobuf.ServiceException; - - public org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto listNodeUUIDsByRole( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto request) - throws com.google.protobuf.ServiceException; - - public org.apache.slider.api.proto.Messages.GetNodeResponseProto getNode( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetNodeRequestProto request) - throws com.google.protobuf.ServiceException; - - public org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto getClusterNodes( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto request) - throws com.google.protobuf.ServiceException; - - public org.apache.slider.api.proto.Messages.EchoResponseProto echo( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.EchoRequestProto request) - throws com.google.protobuf.ServiceException; - - public org.apache.slider.api.proto.Messages.KillContainerResponseProto killContainer( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.KillContainerRequestProto request) - throws com.google.protobuf.ServiceException; - - public org.apache.slider.api.proto.Messages.AMSuicideResponseProto amSuicide( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.AMSuicideRequestProto request) - throws com.google.protobuf.ServiceException; - - public org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto getLivenessInformation( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto request) - throws com.google.protobuf.ServiceException; - - public org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto getLiveContainers( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto request) - throws com.google.protobuf.ServiceException; - - public org.apache.slider.api.proto.Messages.ContainerInformationProto getLiveContainer( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto request) - throws com.google.protobuf.ServiceException; - - public org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto getLiveComponents( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto request) - throws com.google.protobuf.ServiceException; - - public org.apache.slider.api.proto.Messages.ComponentInformationProto getLiveComponent( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto request) - throws com.google.protobuf.ServiceException; - - public org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto getLiveNodes( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto request) - throws com.google.protobuf.ServiceException; - - public org.apache.slider.api.proto.Messages.NodeInformationProto getLiveNode( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto request) - throws com.google.protobuf.ServiceException; - - public org.apache.slider.api.proto.Messages.WrappedJsonProto getModelDesired( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.EmptyPayloadProto request) - throws com.google.protobuf.ServiceException; - - public org.apache.slider.api.proto.Messages.WrappedJsonProto getModelDesiredAppconf( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.EmptyPayloadProto request) - throws com.google.protobuf.ServiceException; - - public org.apache.slider.api.proto.Messages.WrappedJsonProto getModelDesiredResources( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.EmptyPayloadProto request) - throws com.google.protobuf.ServiceException; - - public org.apache.slider.api.proto.Messages.WrappedJsonProto getModelResolved( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.EmptyPayloadProto request) - throws com.google.protobuf.ServiceException; - - public org.apache.slider.api.proto.Messages.WrappedJsonProto getModelResolvedAppconf( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.EmptyPayloadProto request) - throws com.google.protobuf.ServiceException; - - public org.apache.slider.api.proto.Messages.WrappedJsonProto getModelResolvedResources( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.EmptyPayloadProto request) - throws com.google.protobuf.ServiceException; - - public org.apache.slider.api.proto.Messages.WrappedJsonProto getLiveResources( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.EmptyPayloadProto request) - throws com.google.protobuf.ServiceException; - - public org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto getClientCertificateStore( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto 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.slider.api.proto.Messages.StopClusterResponseProto stopCluster( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.StopClusterRequestProto request) - throws com.google.protobuf.ServiceException { - return (org.apache.slider.api.proto.Messages.StopClusterResponseProto) channel.callBlockingMethod( - getDescriptor().getMethods().get(0), - controller, - request, - org.apache.slider.api.proto.Messages.StopClusterResponseProto.getDefaultInstance()); - } - - - public org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto upgradeContainers( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto request) - throws com.google.protobuf.ServiceException { - return (org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto) channel.callBlockingMethod( - getDescriptor().getMethods().get(1), - controller, - request, - org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto.getDefaultInstance()); - } - - - public org.apache.slider.api.proto.Messages.FlexClusterResponseProto flexCluster( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.FlexClusterRequestProto request) - throws com.google.protobuf.ServiceException { - return (org.apache.slider.api.proto.Messages.FlexClusterResponseProto) channel.callBlockingMethod( - getDescriptor().getMethods().get(2), - controller, - request, - org.apache.slider.api.proto.Messages.FlexClusterResponseProto.getDefaultInstance()); - } - - - public org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto getJSONClusterStatus( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto request) - throws com.google.protobuf.ServiceException { - return (org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto) channel.callBlockingMethod( - getDescriptor().getMethods().get(3), - controller, - request, - org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto.getDefaultInstance()); - } - - - public org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto getInstanceDefinition( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto request) - throws com.google.protobuf.ServiceException { - return (org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto) channel.callBlockingMethod( - getDescriptor().getMethods().get(4), - controller, - request, - org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto.getDefaultInstance()); - } - - - public org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto listNodeUUIDsByRole( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto request) - throws com.google.protobuf.ServiceException { - return (org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto) channel.callBlockingMethod( - getDescriptor().getMethods().get(5), - controller, - request, - org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto.getDefaultInstance()); - } - - - public org.apache.slider.api.proto.Messages.GetNodeResponseProto getNode( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetNodeRequestProto request) - throws com.google.protobuf.ServiceException { - return (org.apache.slider.api.proto.Messages.GetNodeResponseProto) channel.callBlockingMethod( - getDescriptor().getMethods().get(6), - controller, - request, - org.apache.slider.api.proto.Messages.GetNodeResponseProto.getDefaultInstance()); - } - - - public org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto getClusterNodes( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto request) - throws com.google.protobuf.ServiceException { - return (org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto) channel.callBlockingMethod( - getDescriptor().getMethods().get(7), - controller, - request, - org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto.getDefaultInstance()); - } - - - public org.apache.slider.api.proto.Messages.EchoResponseProto echo( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.EchoRequestProto request) - throws com.google.protobuf.ServiceException { - return (org.apache.slider.api.proto.Messages.EchoResponseProto) channel.callBlockingMethod( - getDescriptor().getMethods().get(8), - controller, - request, - org.apache.slider.api.proto.Messages.EchoResponseProto.getDefaultInstance()); - } - - - public org.apache.slider.api.proto.Messages.KillContainerResponseProto killContainer( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.KillContainerRequestProto request) - throws com.google.protobuf.ServiceException { - return (org.apache.slider.api.proto.Messages.KillContainerResponseProto) channel.callBlockingMethod( - getDescriptor().getMethods().get(9), - controller, - request, - org.apache.slider.api.proto.Messages.KillContainerResponseProto.getDefaultInstance()); - } - - - public org.apache.slider.api.proto.Messages.AMSuicideResponseProto amSuicide( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.AMSuicideRequestProto request) - throws com.google.protobuf.ServiceException { - return (org.apache.slider.api.proto.Messages.AMSuicideResponseProto) channel.callBlockingMethod( - getDescriptor().getMethods().get(10), - controller, - request, - org.apache.slider.api.proto.Messages.AMSuicideResponseProto.getDefaultInstance()); - } - - - public org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto getLivenessInformation( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto request) - throws com.google.protobuf.ServiceException { - return (org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto) channel.callBlockingMethod( - getDescriptor().getMethods().get(11), - controller, - request, - org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto.getDefaultInstance()); - } - - - public org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto getLiveContainers( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto request) - throws com.google.protobuf.ServiceException { - return (org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto) channel.callBlockingMethod( - getDescriptor().getMethods().get(12), - controller, - request, - org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto.getDefaultInstance()); - } - - - public org.apache.slider.api.proto.Messages.ContainerInformationProto getLiveContainer( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto request) - throws com.google.protobuf.ServiceException { - return (org.apache.slider.api.proto.Messages.ContainerInformationProto) channel.callBlockingMethod( - getDescriptor().getMethods().get(13), - controller, - request, - org.apache.slider.api.proto.Messages.ContainerInformationProto.getDefaultInstance()); - } - - - public org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto getLiveComponents( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto request) - throws com.google.protobuf.ServiceException { - return (org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto) channel.callBlockingMethod( - getDescriptor().getMethods().get(14), - controller, - request, - org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto.getDefaultInstance()); - } - - - public org.apache.slider.api.proto.Messages.ComponentInformationProto getLiveComponent( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto request) - throws com.google.protobuf.ServiceException { - return (org.apache.slider.api.proto.Messages.ComponentInformationProto) channel.callBlockingMethod( - getDescriptor().getMethods().get(15), - controller, - request, - org.apache.slider.api.proto.Messages.ComponentInformationProto.getDefaultInstance()); - } - - - public org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto getLiveNodes( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto request) - throws com.google.protobuf.ServiceException { - return (org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto) channel.callBlockingMethod( - getDescriptor().getMethods().get(16), - controller, - request, - org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto.getDefaultInstance()); - } - - - public org.apache.slider.api.proto.Messages.NodeInformationProto getLiveNode( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto request) - throws com.google.protobuf.ServiceException { - return (org.apache.slider.api.proto.Messages.NodeInformationProto) channel.callBlockingMethod( - getDescriptor().getMethods().get(17), - controller, - request, - org.apache.slider.api.proto.Messages.NodeInformationProto.getDefaultInstance()); - } - - - public org.apache.slider.api.proto.Messages.WrappedJsonProto getModelDesired( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.EmptyPayloadProto request) - throws com.google.protobuf.ServiceException { - return (org.apache.slider.api.proto.Messages.WrappedJsonProto) channel.callBlockingMethod( - getDescriptor().getMethods().get(18), - controller, - request, - org.apache.slider.api.proto.Messages.WrappedJsonProto.getDefaultInstance()); - } - - - public org.apache.slider.api.proto.Messages.WrappedJsonProto getModelDesiredAppconf( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.EmptyPayloadProto request) - throws com.google.protobuf.ServiceException { - return (org.apache.slider.api.proto.Messages.WrappedJsonProto) channel.callBlockingMethod( - getDescriptor().getMethods().get(19), - controller, - request, - org.apache.slider.api.proto.Messages.WrappedJsonProto.getDefaultInstance()); - } - - - public org.apache.slider.api.proto.Messages.WrappedJsonProto getModelDesiredResources( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.EmptyPayloadProto request) - throws com.google.protobuf.ServiceException { - return (org.apache.slider.api.proto.Messages.WrappedJsonProto) channel.callBlockingMethod( - getDescriptor().getMethods().get(20), - controller, - request, - org.apache.slider.api.proto.Messages.WrappedJsonProto.getDefaultInstance()); - } - - - public org.apache.slider.api.proto.Messages.WrappedJsonProto getModelResolved( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.EmptyPayloadProto request) - throws com.google.protobuf.ServiceException { - return (org.apache.slider.api.proto.Messages.WrappedJsonProto) channel.callBlockingMethod( - getDescriptor().getMethods().get(21), - controller, - request, - org.apache.slider.api.proto.Messages.WrappedJsonProto.getDefaultInstance()); - } - - - public org.apache.slider.api.proto.Messages.WrappedJsonProto getModelResolvedAppconf( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.EmptyPayloadProto request) - throws com.google.protobuf.ServiceException { - return (org.apache.slider.api.proto.Messages.WrappedJsonProto) channel.callBlockingMethod( - getDescriptor().getMethods().get(22), - controller, - request, - org.apache.slider.api.proto.Messages.WrappedJsonProto.getDefaultInstance()); - } - - - public org.apache.slider.api.proto.Messages.WrappedJsonProto getModelResolvedResources( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.EmptyPayloadProto request) - throws com.google.protobuf.ServiceException { - return (org.apache.slider.api.proto.Messages.WrappedJsonProto) channel.callBlockingMethod( - getDescriptor().getMethods().get(23), - controller, - request, - org.apache.slider.api.proto.Messages.WrappedJsonProto.getDefaultInstance()); - } - - - public org.apache.slider.api.proto.Messages.WrappedJsonProto getLiveResources( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.EmptyPayloadProto request) - throws com.google.protobuf.ServiceException { - return (org.apache.slider.api.proto.Messages.WrappedJsonProto) channel.callBlockingMethod( - getDescriptor().getMethods().get(24), - controller, - request, - org.apache.slider.api.proto.Messages.WrappedJsonProto.getDefaultInstance()); - } - - - public org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto getClientCertificateStore( - com.google.protobuf.RpcController controller, - org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto request) - throws com.google.protobuf.ServiceException { - return (org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto) channel.callBlockingMethod( - getDescriptor().getMethods().get(25), - controller, - request, - org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto.getDefaultInstance()); - } - - } - - // @@protoc_insertion_point(class_scope:org.apache.slider.api.SliderClusterProtocolPB) - } - - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\033SliderClusterProtocol.proto\022\025org.apach" + - "e.slider.api\032\033SliderClusterMessages.prot" + - "o2\245\030\n\027SliderClusterProtocolPB\022n\n\013stopClu" + - "ster\022..org.apache.slider.api.StopCluster" + - "RequestProto\032/.org.apache.slider.api.Sto" + - "pClusterResponseProto\022\200\001\n\021upgradeContain" + - "ers\0224.org.apache.slider.api.UpgradeConta" + - "inersRequestProto\0325.org.apache.slider.ap" + - "i.UpgradeContainersResponseProto\022n\n\013flex" + - "Cluster\022..org.apache.slider.api.FlexClus", - "terRequestProto\032/.org.apache.slider.api." + - "FlexClusterResponseProto\022\211\001\n\024getJSONClus" + - "terStatus\0227.org.apache.slider.api.GetJSO" + - "NClusterStatusRequestProto\0328.org.apache." + - "slider.api.GetJSONClusterStatusResponseP" + - "roto\022\214\001\n\025getInstanceDefinition\0228.org.apa" + - "che.slider.api.GetInstanceDefinitionRequ" + - "estProto\0329.org.apache.slider.api.GetInst" + - "anceDefinitionResponseProto\022\206\001\n\023listNode" + - "UUIDsByRole\0226.org.apache.slider.api.List", - "NodeUUIDsByRoleRequestProto\0327.org.apache" + - ".slider.api.ListNodeUUIDsByRoleResponseP" + - "roto\022b\n\007getNode\022*.org.apache.slider.api." + - "GetNodeRequestProto\032+.org.apache.slider." + - "api.GetNodeResponseProto\022z\n\017getClusterNo" + - "des\0222.org.apache.slider.api.GetClusterNo" + - "desRequestProto\0323.org.apache.slider.api." + - "GetClusterNodesResponseProto\022Y\n\004echo\022\'.o" + - "rg.apache.slider.api.EchoRequestProto\032(." + - "org.apache.slider.api.EchoResponseProto\022", - "t\n\rkillContainer\0220.org.apache.slider.api" + - ".KillContainerRequestProto\0321.org.apache." + - "slider.api.KillContainerResponseProto\022h\n" + - "\tamSuicide\022,.org.apache.slider.api.AMSui" + - "cideRequestProto\032-.org.apache.slider.api" + - ".AMSuicideResponseProto\022\217\001\n\026getLivenessI" + - "nformation\0229.org.apache.slider.api.GetAp" + - "plicationLivenessRequestProto\032:.org.apac" + - "he.slider.api.ApplicationLivenessInforma" + - "tionProto\022\200\001\n\021getLiveContainers\0224.org.ap", - "ache.slider.api.GetLiveContainersRequest" + - "Proto\0325.org.apache.slider.api.GetLiveCon" + - "tainersResponseProto\022y\n\020getLiveContainer" + - "\0223.org.apache.slider.api.GetLiveContaine" + - "rRequestProto\0320.org.apache.slider.api.Co" + - "ntainerInformationProto\022\200\001\n\021getLiveCompo" + - "nents\0224.org.apache.slider.api.GetLiveCom" + - "ponentsRequestProto\0325.org.apache.slider." + - "api.GetLiveComponentsResponseProto\022y\n\020ge" + - "tLiveComponent\0223.org.apache.slider.api.G", - "etLiveComponentRequestProto\0320.org.apache" + - ".slider.api.ComponentInformationProto\022q\n" + - "\014getLiveNodes\022/.org.apache.slider.api.Ge" + - "tLiveNodesRequestProto\0320.org.apache.slid" + - "er.api.GetLiveNodesResponseProto\022j\n\013getL" + - "iveNode\022..org.apache.slider.api.GetLiveN" + - "odeRequestProto\032+.org.apache.slider.api." + - "NodeInformationProto\022d\n\017getModelDesired\022" + - "(.org.apache.slider.api.EmptyPayloadProt" + - "o\032\'.org.apache.slider.api.WrappedJsonPro", - "to\022k\n\026getModelDesiredAppconf\022(.org.apach" + - "e.slider.api.EmptyPayloadProto\032\'.org.apa" + - "che.slider.api.WrappedJsonProto\022m\n\030getMo" + - "delDesiredResources\022(.org.apache.slider." + - "api.EmptyPayloadProto\032\'.org.apache.slide" + - "r.api.WrappedJsonProto\022e\n\020getModelResolv" + - "ed\022(.org.apache.slider.api.EmptyPayloadP" + - "roto\032\'.org.apache.slider.api.WrappedJson" + - "Proto\022l\n\027getModelResolvedAppconf\022(.org.a" + - "pache.slider.api.EmptyPayloadProto\032\'.org", - ".apache.slider.api.WrappedJsonProto\022n\n\031g" + - "etModelResolvedResources\022(.org.apache.sl" + - "ider.api.EmptyPayloadProto\032\'.org.apache." + - "slider.api.WrappedJsonProto\022e\n\020getLiveRe" + - "sources\022(.org.apache.slider.api.EmptyPay" + - "loadProto\032\'.org.apache.slider.api.Wrappe" + - "dJsonProto\022\214\001\n\031getClientCertificateStore" + - "\0226.org.apache.slider.api.GetCertificateS" + - "toreRequestProto\0327.org.apache.slider.api" + - ".GetCertificateStoreResponseProtoB5\n\033org", - ".apache.slider.api.protoB\020SliderClusterA" + - "PI\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; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - org.apache.slider.api.proto.Messages.getDescriptor(), - }, assigner); - } - - // @@protoc_insertion_point(outer_class_scope) -}