@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasContextId()) { hash = (37 * hash) + CONTEXT_ID_FIELD_NUMBER; hash = (53 * hash) + getContextId().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.microsoft.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto)) { return super.equals(obj); } com.microsoft.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto other = (com.microsoft.reef.proto.EvaluatorRuntimeProtocol.RemoveContextProto) obj; boolean result = true; result = result && (hasContextId() == other.hasContextId()); if (hasContextId()) { result = result && getContextId() .equals(other.getContextId()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
this.removeContext(controlMessage.getRemoveContext().getContextId()); } else if (controlMessage.hasStartTask()) { this.startTask(controlMessage.getStartTask());
/** * <code>required string context_id = 1;</code> */ public Builder clearContextId() { bitField0_ = (bitField0_ & ~0x00000001); contextId_ = getDefaultInstance().getContextId(); onChanged(); return this; } /**