@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.openxc.BinaryMessages.PassthroughModeControlCommand)) { return super.equals(obj); } com.openxc.BinaryMessages.PassthroughModeControlCommand other = (com.openxc.BinaryMessages.PassthroughModeControlCommand) obj; boolean result = true; result = result && (hasBus() == other.hasBus()); if (hasBus()) { result = result && (getBus() == other.getBus()); } result = result && (hasEnabled() == other.hasEnabled()); if (hasEnabled()) { result = result && (getEnabled() == other.getEnabled()); } result = result && unknownFields.equals(other.unknownFields); return result; }
/** * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code> */ public com.openxc.BinaryMessages.PassthroughModeControlCommandOrBuilder getPassthroughModeRequestOrBuilder() { if (passthroughModeRequestBuilder_ != null) { return passthroughModeRequestBuilder_.getMessageOrBuilder(); } else { return passthroughModeRequest_ == null ? com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance() : passthroughModeRequest_; } } /**
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasBus()) { hash = (37 * hash) + BUS_FIELD_NUMBER; hash = (53 * hash) + getBus(); } if (hasEnabled()) { hash = (37 * hash) + ENABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getEnabled()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
if (hasPassthroughModeRequest()) { result = result && getPassthroughModeRequest() .equals(other.getPassthroughModeRequest());
hash = (53 * hash) + getPassthroughModeRequest().hashCode();
/** * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code> */ public Builder mergePassthroughModeRequest(com.openxc.BinaryMessages.PassthroughModeControlCommand value) { if (passthroughModeRequestBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && passthroughModeRequest_ != null && passthroughModeRequest_ != com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance()) { passthroughModeRequest_ = com.openxc.BinaryMessages.PassthroughModeControlCommand.newBuilder(passthroughModeRequest_).mergeFrom(value).buildPartial(); } else { passthroughModeRequest_ = value; } onChanged(); } else { passthroughModeRequestBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /**
public com.openxc.BinaryMessages.PassthroughModeControlCommand buildPartial() { com.openxc.BinaryMessages.PassthroughModeControlCommand result = new com.openxc.BinaryMessages.PassthroughModeControlCommand(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.bus_ = bus_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.enabled_ = enabled_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
public com.openxc.BinaryMessages.PassthroughModeControlCommand getDefaultInstanceForType() { return com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance(); }
/** * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code> */ public com.openxc.BinaryMessages.PassthroughModeControlCommandOrBuilder getPassthroughModeRequestOrBuilder() { return passthroughModeRequest_ == null ? com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance() : passthroughModeRequest_; }
/** * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code> */ public com.openxc.BinaryMessages.PassthroughModeControlCommand getPassthroughModeRequest() { return passthroughModeRequest_ == null ? com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance() : passthroughModeRequest_; } /**
public com.openxc.BinaryMessages.PassthroughModeControlCommand build() { com.openxc.BinaryMessages.PassthroughModeControlCommand result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
/** * <code>optional .openxc.PassthroughModeControlCommand passthrough_mode_request = 3;</code> */ public com.openxc.BinaryMessages.PassthroughModeControlCommand getPassthroughModeRequest() { if (passthroughModeRequestBuilder_ == null) { return passthroughModeRequest_ == null ? com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance() : passthroughModeRequest_; } else { return passthroughModeRequestBuilder_.getMessage(); } } /**
public Builder mergeFrom(com.openxc.BinaryMessages.PassthroughModeControlCommand other) { if (other == com.openxc.BinaryMessages.PassthroughModeControlCommand.getDefaultInstance()) return this; if (other.hasBus()) { setBus(other.getBus()); } if (other.hasEnabled()) { setEnabled(other.getEnabled()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }