You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@slider.apache.org by bi...@apache.org on 2014/06/16 20:48:12 UTC
[2/3] SLIDER-135 moved protobuf generation to an optional maven
profile
http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/4fe442d5/slider-core/src/main/java/org/apache/slider/api/proto/Messages.java
----------------------------------------------------------------------
diff --git a/slider-core/src/main/java/org/apache/slider/api/proto/Messages.java b/slider-core/src/main/java/org/apache/slider/api/proto/Messages.java
new file mode 100644
index 0000000..250e5ff
--- /dev/null
+++ b/slider-core/src/main/java/org/apache/slider/api/proto/Messages.java
@@ -0,0 +1,13186 @@
+// 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;
+ /**
+ * <code>required string name = 1;</code>
+ */
+ boolean hasName();
+ /**
+ * <code>required string name = 1;</code>
+ */
+ java.lang.String getName();
+ /**
+ * <code>required string name = 1;</code>
+ */
+ com.google.protobuf.ByteString
+ getNameBytes();
+
+ // optional string role = 2;
+ /**
+ * <code>optional string role = 2;</code>
+ */
+ boolean hasRole();
+ /**
+ * <code>optional string role = 2;</code>
+ */
+ java.lang.String getRole();
+ /**
+ * <code>optional string role = 2;</code>
+ */
+ com.google.protobuf.ByteString
+ getRoleBytes();
+
+ // required uint32 state = 4;
+ /**
+ * <code>required uint32 state = 4;</code>
+ */
+ boolean hasState();
+ /**
+ * <code>required uint32 state = 4;</code>
+ */
+ int getState();
+
+ // required uint32 exitCode = 5;
+ /**
+ * <code>required uint32 exitCode = 5;</code>
+ */
+ boolean hasExitCode();
+ /**
+ * <code>required uint32 exitCode = 5;</code>
+ */
+ int getExitCode();
+
+ // optional string command = 6;
+ /**
+ * <code>optional string command = 6;</code>
+ */
+ boolean hasCommand();
+ /**
+ * <code>optional string command = 6;</code>
+ */
+ java.lang.String getCommand();
+ /**
+ * <code>optional string command = 6;</code>
+ */
+ com.google.protobuf.ByteString
+ getCommandBytes();
+
+ // optional string diagnostics = 7;
+ /**
+ * <code>optional string diagnostics = 7;</code>
+ */
+ boolean hasDiagnostics();
+ /**
+ * <code>optional string diagnostics = 7;</code>
+ */
+ java.lang.String getDiagnostics();
+ /**
+ * <code>optional string diagnostics = 7;</code>
+ */
+ com.google.protobuf.ByteString
+ getDiagnosticsBytes();
+
+ // repeated string output = 8;
+ /**
+ * <code>repeated string output = 8;</code>
+ */
+ java.util.List<java.lang.String>
+ getOutputList();
+ /**
+ * <code>repeated string output = 8;</code>
+ */
+ int getOutputCount();
+ /**
+ * <code>repeated string output = 8;</code>
+ */
+ java.lang.String getOutput(int index);
+ /**
+ * <code>repeated string output = 8;</code>
+ */
+ com.google.protobuf.ByteString
+ getOutputBytes(int index);
+
+ // repeated string environment = 9;
+ /**
+ * <code>repeated string environment = 9;</code>
+ */
+ java.util.List<java.lang.String>
+ getEnvironmentList();
+ /**
+ * <code>repeated string environment = 9;</code>
+ */
+ int getEnvironmentCount();
+ /**
+ * <code>repeated string environment = 9;</code>
+ */
+ java.lang.String getEnvironment(int index);
+ /**
+ * <code>repeated string environment = 9;</code>
+ */
+ com.google.protobuf.ByteString
+ getEnvironmentBytes(int index);
+
+ // required uint32 roleId = 10;
+ /**
+ * <code>required uint32 roleId = 10;</code>
+ */
+ boolean hasRoleId();
+ /**
+ * <code>required uint32 roleId = 10;</code>
+ */
+ int getRoleId();
+
+ // required bool released = 11;
+ /**
+ * <code>required bool released = 11;</code>
+ */
+ boolean hasReleased();
+ /**
+ * <code>required bool released = 11;</code>
+ */
+ boolean getReleased();
+
+ // required int64 createTime = 12;
+ /**
+ * <code>required int64 createTime = 12;</code>
+ */
+ boolean hasCreateTime();
+ /**
+ * <code>required int64 createTime = 12;</code>
+ */
+ long getCreateTime();
+
+ // required int64 startTime = 13;
+ /**
+ * <code>required int64 startTime = 13;</code>
+ */
+ boolean hasStartTime();
+ /**
+ * <code>required int64 startTime = 13;</code>
+ */
+ long getStartTime();
+
+ // required string host = 14;
+ /**
+ * <code>required string host = 14;</code>
+ */
+ boolean hasHost();
+ /**
+ * <code>required string host = 14;</code>
+ */
+ java.lang.String getHost();
+ /**
+ * <code>required string host = 14;</code>
+ */
+ com.google.protobuf.ByteString
+ getHostBytes();
+
+ // required string hostURL = 15;
+ /**
+ * <code>required string hostURL = 15;</code>
+ */
+ boolean hasHostURL();
+ /**
+ * <code>required string hostURL = 15;</code>
+ */
+ java.lang.String getHostURL();
+ /**
+ * <code>required string hostURL = 15;</code>
+ */
+ com.google.protobuf.ByteString
+ getHostURLBytes();
+ }
+ /**
+ * 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;
+ }
+ }
+ }
+ } 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<RoleInstanceState> PARSER =
+ new com.google.protobuf.AbstractParser<RoleInstanceState>() {
+ 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<RoleInstanceState> getParserForType() {
+ return PARSER;
+ }
+
+ private int bitField0_;
+ // required string name = 1;
+ public static final int NAME_FIELD_NUMBER = 1;
+ private java.lang.Object name_;
+ /**
+ * <code>required string name = 1;</code>
+ */
+ public boolean hasName() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * <code>required string name = 1;</code>
+ */
+ 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;
+ }
+ }
+ /**
+ * <code>required string name = 1;</code>
+ */
+ 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_;
+ /**
+ * <code>optional string role = 2;</code>
+ */
+ public boolean hasRole() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * <code>optional string role = 2;</code>
+ */
+ 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;
+ }
+ }
+ /**
+ * <code>optional string role = 2;</code>
+ */
+ 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_;
+ /**
+ * <code>required uint32 state = 4;</code>
+ */
+ public boolean hasState() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+ /**
+ * <code>required uint32 state = 4;</code>
+ */
+ public int getState() {
+ return state_;
+ }
+
+ // required uint32 exitCode = 5;
+ public static final int EXITCODE_FIELD_NUMBER = 5;
+ private int exitCode_;
+ /**
+ * <code>required uint32 exitCode = 5;</code>
+ */
+ public boolean hasExitCode() {
+ return ((bitField0_ & 0x00000008) == 0x00000008);
+ }
+ /**
+ * <code>required uint32 exitCode = 5;</code>
+ */
+ public int getExitCode() {
+ return exitCode_;
+ }
+
+ // optional string command = 6;
+ public static final int COMMAND_FIELD_NUMBER = 6;
+ private java.lang.Object command_;
+ /**
+ * <code>optional string command = 6;</code>
+ */
+ public boolean hasCommand() {
+ return ((bitField0_ & 0x00000010) == 0x00000010);
+ }
+ /**
+ * <code>optional string command = 6;</code>
+ */
+ 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;
+ }
+ }
+ /**
+ * <code>optional string command = 6;</code>
+ */
+ 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_;
+ /**
+ * <code>optional string diagnostics = 7;</code>
+ */
+ public boolean hasDiagnostics() {
+ return ((bitField0_ & 0x00000020) == 0x00000020);
+ }
+ /**
+ * <code>optional string diagnostics = 7;</code>
+ */
+ 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;
+ }
+ }
+ /**
+ * <code>optional string diagnostics = 7;</code>
+ */
+ 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_;
+ /**
+ * <code>repeated string output = 8;</code>
+ */
+ public java.util.List<java.lang.String>
+ getOutputList() {
+ return output_;
+ }
+ /**
+ * <code>repeated string output = 8;</code>
+ */
+ public int getOutputCount() {
+ return output_.size();
+ }
+ /**
+ * <code>repeated string output = 8;</code>
+ */
+ public java.lang.String getOutput(int index) {
+ return output_.get(index);
+ }
+ /**
+ * <code>repeated string output = 8;</code>
+ */
+ 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_;
+ /**
+ * <code>repeated string environment = 9;</code>
+ */
+ public java.util.List<java.lang.String>
+ getEnvironmentList() {
+ return environment_;
+ }
+ /**
+ * <code>repeated string environment = 9;</code>
+ */
+ public int getEnvironmentCount() {
+ return environment_.size();
+ }
+ /**
+ * <code>repeated string environment = 9;</code>
+ */
+ public java.lang.String getEnvironment(int index) {
+ return environment_.get(index);
+ }
+ /**
+ * <code>repeated string environment = 9;</code>
+ */
+ 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_;
+ /**
+ * <code>required uint32 roleId = 10;</code>
+ */
+ public boolean hasRoleId() {
+ return ((bitField0_ & 0x00000040) == 0x00000040);
+ }
+ /**
+ * <code>required uint32 roleId = 10;</code>
+ */
+ public int getRoleId() {
+ return roleId_;
+ }
+
+ // required bool released = 11;
+ public static final int RELEASED_FIELD_NUMBER = 11;
+ private boolean released_;
+ /**
+ * <code>required bool released = 11;</code>
+ */
+ public boolean hasReleased() {
+ return ((bitField0_ & 0x00000080) == 0x00000080);
+ }
+ /**
+ * <code>required bool released = 11;</code>
+ */
+ public boolean getReleased() {
+ return released_;
+ }
+
+ // required int64 createTime = 12;
+ public static final int CREATETIME_FIELD_NUMBER = 12;
+ private long createTime_;
+ /**
+ * <code>required int64 createTime = 12;</code>
+ */
+ public boolean hasCreateTime() {
+ return ((bitField0_ & 0x00000100) == 0x00000100);
+ }
+ /**
+ * <code>required int64 createTime = 12;</code>
+ */
+ public long getCreateTime() {
+ return createTime_;
+ }
+
+ // required int64 startTime = 13;
+ public static final int STARTTIME_FIELD_NUMBER = 13;
+ private long startTime_;
+ /**
+ * <code>required int64 startTime = 13;</code>
+ */
+ public boolean hasStartTime() {
+ return ((bitField0_ & 0x00000200) == 0x00000200);
+ }
+ /**
+ * <code>required int64 startTime = 13;</code>
+ */
+ public long getStartTime() {
+ return startTime_;
+ }
+
+ // required string host = 14;
+ public static final int HOST_FIELD_NUMBER = 14;
+ private java.lang.Object host_;
+ /**
+ * <code>required string host = 14;</code>
+ */
+ public boolean hasHost() {
+ return ((bitField0_ & 0x00000400) == 0x00000400);
+ }
+ /**
+ * <code>required string host = 14;</code>
+ */
+ 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;
+ }
+ }
+ /**
+ * <code>required string host = 14;</code>
+ */
+ 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_;
+ /**
+ * <code>required string hostURL = 15;</code>
+ */
+ public boolean hasHostURL() {
+ return ((bitField0_ & 0x00000800) == 0x00000800);
+ }
+ /**
+ * <code>required string hostURL = 15;</code>
+ */
+ 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;
+ }
+ }
+ /**
+ * <code>required string hostURL = 15;</code>
+ */
+ 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;
+ }
+ }
+
+ 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_ = "";
+ }
+ 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());
+ }
+ 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());
+ }
+ 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 &&
+ 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();
+ }
+ 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<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);
+ 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_;
+ 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();
+ }
+ 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_ = "";
+ /**
+ * <code>required string name = 1;</code>
+ */
+ public boolean hasName() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * <code>required string name = 1;</code>
+ */
+ 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;
+ }
+ }
+ /**
+ * <code>required string name = 1;</code>
+ */
+ 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;
+ }
+ }
+ /**
+ * <code>required string name = 1;</code>
+ */
+ public Builder setName(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>required string name = 1;</code>
+ */
+ public Builder clearName() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>required string name = 1;</code>
+ */
+ 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_ = "";
+ /**
+ * <code>optional string role = 2;</code>
+ */
+ public boolean hasRole() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * <code>optional string role = 2;</code>
+ */
+ 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;
+ }
+ }
+ /**
+ * <code>optional string role = 2;</code>
+ */
+ 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;
+ }
+ }
+ /**
+ * <code>optional string role = 2;</code>
+ */
+ public Builder setRole(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ role_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string role = 2;</code>
+ */
+ public Builder clearRole() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ role_ = getDefaultInstance().getRole();
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string role = 2;</code>
+ */
+ 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_ ;
+ /**
+ * <code>required uint32 state = 4;</code>
+ */
+ public boolean hasState() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+ /**
+ * <code>required uint32 state = 4;</code>
+ */
+ public int getState() {
+ return state_;
+ }
+ /**
+ * <code>required uint32 state = 4;</code>
+ */
+ public Builder setState(int value) {
+ bitField0_ |= 0x00000004;
+ state_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>required uint32 state = 4;</code>
+ */
+ public Builder clearState() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ state_ = 0;
+ onChanged();
+ return this;
+ }
+
+ // required uint32 exitCode = 5;
+ private int exitCode_ ;
+ /**
+ * <code>required uint32 exitCode = 5;</code>
+ */
+ public boolean hasExitCode() {
+ return ((bitField0_ & 0x00000008) == 0x00000008);
+ }
+ /**
+ * <code>required uint32 exitCode = 5;</code>
+ */
+ public int getExitCode() {
+ return exitCode_;
+ }
+ /**
+ * <code>required uint32 exitCode = 5;</code>
+ */
+ public Builder setExitCode(int value) {
+ bitField0_ |= 0x00000008;
+ exitCode_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>required uint32 exitCode = 5;</code>
+ */
+ public Builder clearExitCode() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ exitCode_ = 0;
+ onChanged();
+ return this;
+ }
+
+ // optional string command = 6;
+ private java.lang.Object command_ = "";
+ /**
+ * <code>optional string command = 6;</code>
+ */
+ public boolean hasCommand() {
+ return ((bitField0_ & 0x00000010) == 0x00000010);
+ }
+ /**
+ * <code>optional string command = 6;</code>
+ */
+ 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;
+ }
+ }
+ /**
+ * <code>optional string command = 6;</code>
+ */
+ 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;
+ }
+ }
+ /**
+ * <code>optional string command = 6;</code>
+ */
+ public Builder setCommand(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000010;
+ command_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string command = 6;</code>
+ */
+ public Builder clearCommand() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ command_ = getDefaultInstance().getCommand();
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string command = 6;</code>
+ */
+ 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_ = "";
+ /**
+ * <code>optional string diagnostics = 7;</code>
+ */
+ public boolean hasDiagnostics() {
+ return ((bitField0_ & 0x00000020) == 0x00000020);
+ }
+ /**
+ * <code>optional string diagnostics = 7;</code>
+ */
+ 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;
+ }
+ }
+ /**
+ * <code>optional string diagnostics = 7;</code>
+ */
+ 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;
+ }
+ }
+ /**
+ * <code>optional string diagnostics = 7;</code>
+ */
+ public Builder setDiagnostics(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000020;
+ diagnostics_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string diagnostics = 7;</code>
+ */
+ public Builder clearDiagnostics() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ diagnostics_ = getDefaultInstance().getDiagnostics();
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>optional string diagnostics = 7;</code>
+ */
+ 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;
+ }
+ }
+ /**
+ * <code>repeated string output = 8;</code>
+ */
+ public java.util.List<java.lang.String>
+ getOutputList() {
+ return java.util.Collections.unmodifiableList(output_);
+ }
+ /**
+ * <code>repeated string output = 8;</code>
+ */
+ public int getOutputCount() {
+ return output_.size();
+ }
+ /**
+ * <code>repeated string output = 8;</code>
+ */
+ public java.lang.String getOutput(int index) {
+ return output_.get(index);
+ }
+ /**
+ * <code>repeated string output = 8;</code>
+ */
+ public com.google.protobuf.ByteString
+ getOutputBytes(int index) {
+ return output_.getByteString(index);
+ }
+ /**
+ * <code>repeated string output = 8;</code>
+ */
+ public Builder setOutput(
+ int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureOutputIsMutable();
+ output_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>repeated string output = 8;</code>
+ */
+ public Builder addOutput(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureOutputIsMutable();
+ output_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>repeated string output = 8;</code>
+ */
+ public Builder addAllOutput(
+ java.lang.Iterable<java.lang.String> values) {
+ ensureOutputIsMutable();
+ super.addAll(values, output_);
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>repeated string output = 8;</code>
+ */
+ public Builder clearOutput() {
+ output_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000040);
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>repeated string output = 8;</code>
+ */
+ 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;
+ }
+ }
+ /**
+ * <code>repeated string environment = 9;</code>
+ */
+ public java.util.List<java.lang.String>
+ getEnvironmentList() {
+ return java.util.Collections.unmodifiableList(environment_);
+ }
+ /**
+ * <code>repeated string environment = 9;</code>
+ */
+ public int getEnvironmentCount() {
+ return environment_.size();
+ }
+ /**
+ * <code>repeated string environment = 9;</code>
+ */
+ public java.lang.String getEnvironment(int index) {
+ return environment_.get(index);
+ }
+ /**
+ * <code>repeated string environment = 9;</code>
+ */
+ public com.google.protobuf.ByteString
+ getEnvironmentBytes(int index) {
+ return environment_.getByteString(index);
+ }
+ /**
+ * <code>repeated string environment = 9;</code>
+ */
+ public Builder setEnvironment(
+ int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureEnvironmentIsMutable();
+ environment_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>repeated string environment = 9;</code>
+ */
+ public Builder addEnvironment(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureEnvironmentIsMutable();
+ environment_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>repeated string environment = 9;</code>
+ */
+ public Builder addAllEnvironment(
+ java.lang.Iterable<java.lang.String> values) {
+ ensureEnvironmentIsMutable();
+ super.addAll(values, environment_);
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>repeated string environment = 9;</code>
+ */
+ public Builder clearEnvironment() {
+ environment_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000080);
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>repeated string environment = 9;</code>
+ */
+ 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_ ;
+ /**
+ * <code>required uint32 roleId = 10;</code>
+ */
+ public boolean hasRoleId() {
+ return ((bitField0_ & 0x00000100) == 0x00000100);
+ }
+ /**
+ * <code>required uint32 roleId = 10;</code>
+ */
+ public int getRoleId() {
+ return roleId_;
+ }
+ /**
+ * <code>required uint32 roleId = 10;</code>
+ */
+ public Builder setRoleId(int value) {
+ bitField0_ |= 0x00000100;
+ roleId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>required uint32 roleId = 10;</code>
+ */
+ public Builder clearRoleId() {
+ bitField0_ = (bitField0_ & ~0x00000100);
+ roleId_ = 0;
+ onChanged();
+ return this;
+ }
+
+ // required bool released = 11;
+ private boolean released_ ;
+ /**
+ * <code>required bool released = 11;</code>
+ */
+ public boolean hasReleased() {
+ return ((bitField0_ & 0x00000200) == 0x00000200);
+ }
+ /**
+ * <code>required bool released = 11;</code>
+ */
+ public boolean getReleased() {
+ return released_;
+ }
+ /**
+ * <code>required bool released = 11;</code>
+ */
+ public Builder setReleased(boolean value) {
+ bitField0_ |= 0x00000200;
+ released_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>required bool released = 11;</code>
+ */
+ public Builder clearReleased() {
+ bitField0_ = (bitField0_ & ~0x00000200);
+ released_ = false;
+ onChanged();
+ return this;
+ }
+
+ // required int64 createTime = 12;
+ private long createTime_ ;
+ /**
+ * <code>required int64 createTime = 12;</code>
+ */
+ public boolean hasCreateTime() {
+ return ((bitField0_ & 0x00000400) == 0x00000400);
+ }
+ /**
+ * <code>required int64 createTime = 12;</code>
+ */
+ public long getCreateTime() {
+ return createTime_;
+ }
+ /**
+ * <code>required int64 createTime = 12;</code>
+ */
+ public Builder setCreateTime(long value) {
+ bitField0_ |= 0x00000400;
+ createTime_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>required int64 createTime = 12;</code>
+ */
+ public Builder clearCreateTime() {
+ bitField0_ = (bitField0_ & ~0x00000400);
+ createTime_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ // required int64 startTime = 13;
+ private long startTime_ ;
+ /**
+ * <code>required int64 startTime = 13;</code>
+ */
+ public boolean hasStartTime() {
+ return ((bitField0_ & 0x00000800) == 0x00000800);
+ }
+ /**
+ * <code>required int64 startTime = 13;</code>
+ */
+ public long getStartTime() {
+ return startTime_;
+ }
+ /**
+ * <code>required int64 startTime = 13;</code>
+ */
+ public Builder setStartTime(long value) {
+ bitField0_ |= 0x00000800;
+ startTime_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>required int64 startTime = 13;</code>
+ */
+ public Builder clearStartTime() {
+ bitField0_ = (bitField0_ & ~0x00000800);
+ startTime_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ // required string host = 14;
+ private java.lang.Object host_ = "";
+ /**
+ * <code>required string host = 14;</code>
+ */
+ public boolean hasHost() {
+ return ((bitField0_ & 0x00001000) == 0x00001000);
+ }
+ /**
+ * <code>required string host = 14;</code>
+ */
+ 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;
+ }
+ }
+ /**
+ * <code>required string host = 14;</code>
+ */
+ 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;
+ }
+ }
+ /**
+ * <code>required string host = 14;</code>
+ */
+ public Builder setHost(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00001000;
+ host_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>required string host = 14;</code>
+ */
+ public Builder clearHost() {
+ bitField0_ = (bitField0_ & ~0x00001000);
+ host_ = getDefaultInstance().getHost();
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>required string host = 14;</code>
+ */
+ 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_ = "";
+ /**
+ * <code>required string hostURL = 15;</code>
+ */
+ public boolean hasHostURL() {
+ return ((bitField0_ & 0x00002000) == 0x00002000);
+ }
+ /**
+ * <code>required string hostURL = 15;</code>
+ */
+ 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;
+ }
+ }
+ /**
+ * <code>required string hostURL = 15;</code>
+ */
+ 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;
+ }
+ }
+ /**
+ * <code>required string hostURL = 15;</code>
+ */
+ public Builder setHostURL(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00002000;
+ hostURL_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>required string hostURL = 15;</code>
+ */
+ public Builder clearHostURL() {
+ bitField0_ = (bitField0_ & ~0x00002000);
+ hostURL_ = getDefaultInstance().getHostURL();
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>required string hostURL = 15;</code>
+ */
+ public Builder setHostURLBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00002000;
+ hostURL_ = 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;
+ /**
+ * <code>required string message = 1;</code>
+ *
+ * <pre>
+ **
+ *message to include
+ * </pre>
+ */
+ boolean hasMessage();
+ /**
+ * <code>required string message = 1;</code>
+ *
+ * <pre>
+ **
+ *message to include
+ * </pre>
+ */
+ java.lang.String getMessage();
+ /**
+ * <code>required string message = 1;</code>
+ *
+ * <pre>
+ **
+ *message to include
+ * </pre>
+ */
+ com.google.protobuf.ByteString
+ getMessageBytes();
+ }
+ /**
+ * Protobuf type {@code org.apache.slider.api.StopClusterRequestProto}
+ *
+ * <pre>
+ **
+ * stop the cluster
+ * </pre>
+ */
+ 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<StopClusterRequestProto> PARSER =
+ new com.google.protobuf.AbstractParser<StopClusterRequestProto>() {
+ 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<StopClusterRequestProto> getParserForType() {
+ return PARSER;
+ }
+
+ private int bitField0_;
+ // required string message = 1;
+ public static final int MESSAGE_FIELD_NUMBER = 1;
+ private java.lang.Object message_;
+ /**
+ * <code>required string message = 1;</code>
+ *
+ * <pre>
+ **
+ *message to include
+ * </pre>
+ */
+ public boolean hasMessage() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * <code>required string message = 1;</code>
+ *
+ * <pre>
+ **
+ *message to include
+ * </pre>
+ */
+ 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;
+ }
+ }
+ /**
+ * <code>required string message = 1;</code>
+ *
+ * <pre>
+ **
+ *message to include
+ * </pre>
+ */
+ 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}
+ *
+ * <pre>
+ **
+ * stop the cluster
+ * </pre>
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder<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.Message
<TRUNCATED>