if (controlMessage.hasAddContext() && controlMessage.hasRemoveContext()) { throw new IllegalArgumentException( "Received a message with both add and remove context. This is unsupported."); controlMessage.getTaskMessage().toByteArray() : null; if (controlMessage.hasAddContext()) { this.addContext(controlMessage.getAddContext()); if (controlMessage.hasStartTask()) {
hash = (53 * hash) + getContextMessage().hashCode(); if (hasAddContext()) { hash = (37 * hash) + ADD_CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getAddContext().hashCode();
.equals(other.getContextMessage()); result = result && (hasAddContext() == other.hasAddContext()); if (hasAddContext()) { result = result && getAddContext() .equals(other.getAddContext());
public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (hasContextMessage()) { if (!getContextMessage().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasAddContext()) { if (!getAddContext().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasRemoveContext()) { if (!getRemoveContext().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasStartTask()) { if (!getStartTask().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; }
public Builder mergeFrom(com.microsoft.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto other) { if (other == com.microsoft.reef.proto.EvaluatorRuntimeProtocol.ContextControlProto.getDefaultInstance()) return this; if (other.hasTaskMessage()) { setTaskMessage(other.getTaskMessage()); } if (other.hasContextMessage()) { mergeContextMessage(other.getContextMessage()); } if (other.hasAddContext()) { mergeAddContext(other.getAddContext()); } if (other.hasRemoveContext()) { mergeRemoveContext(other.getRemoveContext()); } if (other.hasStartTask()) { mergeStartTask(other.getStartTask()); } if (other.hasStopTask()) { mergeStopTask(other.getStopTask()); } if (other.hasSuspendTask()) { mergeSuspendTask(other.getSuspendTask()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }