suspendTask_ = com.microsoft.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto.getDefaultInstance(); } else { suspendTaskBuilder_.clear();
@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 void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); getUnknownFields().writeTo(output); }
if (hasSuspendTask()) { result = result && getSuspendTask() .equals(other.getSuspendTask());
hash = (53 * hash) + getSuspendTask().hashCode();
com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable();
/** * <code>optional .SuspendTaskProto suspend_task = 9;</code> */ public Builder mergeSuspendTask(com.microsoft.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto value) { if (suspendTaskBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040) && suspendTask_ != com.microsoft.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto.getDefaultInstance()) { suspendTask_ = com.microsoft.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto.newBuilder(suspendTask_).mergeFrom(value).buildPartial(); } else { suspendTask_ = value; } onChanged(); } else { suspendTaskBuilder_.mergeFrom(value); } bitField0_ |= 0x00000040; return this; } /**
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.microsoft.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto)) { return super.equals(obj); } com.microsoft.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto other = (com.microsoft.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto) obj; boolean result = true; result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
public com.microsoft.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto getDefaultInstanceForType() { return com.microsoft.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto.getDefaultInstance(); }
/** * <code>optional .SuspendTaskProto suspend_task = 9;</code> */ public Builder clearSuspendTask() { if (suspendTaskBuilder_ == null) { suspendTask_ = com.microsoft.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto.getDefaultInstance(); onChanged(); } else { suspendTaskBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); return this; } /**
public com.microsoft.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto build() { com.microsoft.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public Builder mergeFrom(com.microsoft.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto other) { if (other == com.microsoft.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); return this; }
private void initFields() { taskMessage_ = com.google.protobuf.ByteString.EMPTY; contextMessage_ = com.microsoft.reef.proto.EvaluatorRuntimeProtocol.ContextMessageProto.getDefaultInstance(); addContext_ = com.microsoft.reef.proto.EvaluatorRuntimeProtocol.AddContextProto.getDefaultInstance(); removeContext_ = com.microsoft.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto.getDefaultInstance(); startTask_ = com.microsoft.reef.proto.EvaluatorRuntimeProtocol.StartTaskProto.getDefaultInstance(); stopTask_ = com.microsoft.reef.proto.EvaluatorRuntimeProtocol.StopTaskProto.getDefaultInstance(); suspendTask_ = com.microsoft.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto.getDefaultInstance(); } private byte memoizedIsInitialized = -1;
public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
public com.microsoft.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto buildPartial() { com.microsoft.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto result = new com.microsoft.reef.proto.EvaluatorRuntimeProtocol.SuspendTaskProto(this); onBuilt(); return result; }