@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasRequest()) { hash = (37 * hash) + REQUEST_FIELD_NUMBER; hash = (53 * hash) + getRequest().hashCode(); } if (hasAction()) { hash = (37 * hash) + ACTION_FIELD_NUMBER; hash = (53 * hash) + action_; } hash = (29 * hash) + unknownFields.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.openxc.BinaryMessages.DiagnosticControlCommand)) { return super.equals(obj); } com.openxc.BinaryMessages.DiagnosticControlCommand other = (com.openxc.BinaryMessages.DiagnosticControlCommand) obj; boolean result = true; result = result && (hasRequest() == other.hasRequest()); if (hasRequest()) { result = result && getRequest() .equals(other.getRequest()); } result = result && (hasAction() == other.hasAction()); if (hasAction()) { result = result && action_ == other.action_; } result = result && unknownFields.equals(other.unknownFields); return result; }
command.getDiagnosticRequest(); String action; if(!diagnosticCommand.hasAction()) { throw new UnrecognizedMessageTypeException( "Diagnostic command missing action");
public Builder mergeFrom(com.openxc.BinaryMessages.DiagnosticControlCommand other) { if (other == com.openxc.BinaryMessages.DiagnosticControlCommand.getDefaultInstance()) return this; if (other.hasRequest()) { mergeRequest(other.getRequest()); } if (other.hasAction()) { setAction(other.getAction()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }