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 extends org.apache.slider.api.proto.Messages.RoleInstanceStateOrBuilder>
- 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 extends org.apache.slider.api.proto.Messages.RoleInstanceStateOrBuilder>
- 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 extends org.apache.slider.api.proto.Messages.RoleInstanceState> 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 extends org.apache.slider.api.proto.Messages.RoleInstanceStateOrBuilder>
- 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 extends org.apache.slider.api.proto.Messages.NodeEntryInformationProtoOrBuilder>
- 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 extends org.apache.slider.api.proto.Messages.NodeEntryInformationProtoOrBuilder>
- 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 extends org.apache.slider.api.proto.Messages.NodeEntryInformationProto> 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 extends org.apache.slider.api.proto.Messages.NodeEntryInformationProtoOrBuilder>
- 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 extends org.apache.slider.api.proto.Messages.ContainerInformationProtoOrBuilder>
- 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 extends org.apache.slider.api.proto.Messages.ContainerInformationProtoOrBuilder>
- 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 extends org.apache.slider.api.proto.Messages.ContainerInformationProto> 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 extends org.apache.slider.api.proto.Messages.ContainerInformationProtoOrBuilder>
- 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 extends org.apache.slider.api.proto.Messages.ComponentInformationProtoOrBuilder>
- 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 extends org.apache.slider.api.proto.Messages.ComponentInformationProtoOrBuilder>
- 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 extends org.apache.slider.api.proto.Messages.ComponentInformationProto> 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 extends org.apache.slider.api.proto.Messages.ComponentInformationProtoOrBuilder>
- 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