@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 (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId(); } if (hasData()) { hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); } if (hasFrameFormat()) { hash = (37 * hash) + FRAME_FORMAT_FIELD_NUMBER; hash = (53 * hash) + frameFormat_; } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
/** * <code>optional .openxc.CanMessage can_message = 2;</code> */ public com.openxc.BinaryMessages.CanMessageOrBuilder getCanMessageOrBuilder() { if (canMessageBuilder_ != null) { return canMessageBuilder_.getMessageOrBuilder(); } else { return canMessage_ == null ? com.openxc.BinaryMessages.CanMessage.getDefaultInstance() : canMessage_; } } /**
if (hasCanMessage()) { result = result && getCanMessage() .equals(other.getCanMessage());
result = result && (hasBus() == other.hasBus()); if (hasBus()) { result = result && (getBus() == other.getBus()); result = result && (hasId() == other.hasId()); if (hasId()) { result = result && (getId() == other.getId()); result = result && (hasData() == other.hasData()); if (hasData()) { result = result && getData() .equals(other.getData()); result = result && (hasFrameFormat() == other.hasFrameFormat()); if (hasFrameFormat()) { result = result && frameFormat_ == other.frameFormat_;
public com.openxc.BinaryMessages.CanMessage buildPartial() { com.openxc.BinaryMessages.CanMessage result = new com.openxc.BinaryMessages.CanMessage(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.id_ = id_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.data_ = data_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.frameFormat_ = frameFormat_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
/** * <code>optional .openxc.CanMessage can_message = 2;</code> */ public Builder mergeCanMessage(com.openxc.BinaryMessages.CanMessage value) { if (canMessageBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && canMessage_ != null && canMessage_ != com.openxc.BinaryMessages.CanMessage.getDefaultInstance()) { canMessage_ = com.openxc.BinaryMessages.CanMessage.newBuilder(canMessage_).mergeFrom(value).buildPartial(); } else { canMessage_ = value; } onChanged(); } else { canMessageBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /**
public Builder mergeFrom(com.openxc.BinaryMessages.CanMessage other) { if (other == com.openxc.BinaryMessages.CanMessage.getDefaultInstance()) return this; if (other.hasBus()) { setBus(other.getBus()); } if (other.hasId()) { setId(other.getId()); } if (other.hasData()) { setData(other.getData()); } if (other.hasFrameFormat()) { setFrameFormat(other.getFrameFormat()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public com.openxc.BinaryMessages.CanMessage getDefaultInstanceForType() { return com.openxc.BinaryMessages.CanMessage.getDefaultInstance(); }
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.openxc.BinaryMessages.CanMessage.getDescriptor().getEnumTypes().get(0); }
/** * <code>optional .openxc.CanMessage can_message = 2;</code> */ public com.openxc.BinaryMessages.CanMessage getCanMessage() { if (canMessageBuilder_ == null) { return canMessage_ == null ? com.openxc.BinaryMessages.CanMessage.getDefaultInstance() : canMessage_; } else { return canMessageBuilder_.getMessage(); } } /**
/** * <code>optional .openxc.CanMessage can_message = 2;</code> */ public com.openxc.BinaryMessages.CanMessageOrBuilder getCanMessageOrBuilder() { return canMessage_ == null ? com.openxc.BinaryMessages.CanMessage.getDefaultInstance() : canMessage_; }
/** * <code>optional .openxc.CanMessage can_message = 2;</code> */ public com.openxc.BinaryMessages.CanMessage getCanMessage() { return canMessage_ == null ? com.openxc.BinaryMessages.CanMessage.getDefaultInstance() : canMessage_; } /**
/** * <code>optional bytes data = 3;</code> */ public Builder clearData() { bitField0_ = (bitField0_ & ~0x00000004); data_ = getDefaultInstance().getData(); onChanged(); return this; }