@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; } if (hasStringValue()) { hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER; hash = (53 * hash) + getStringValue().hashCode(); } if (hasNumericValue()) { hash = (37 * hash) + NUMERIC_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getNumericValue())); } if (hasBooleanValue()) { hash = (37 * hash) + BOOLEAN_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getBooleanValue()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
.equals(other.getStringValue()); result = result && (hasNumericValue() == other.hasNumericValue()); if (hasNumericValue()) { result = result && ( java.lang.Double.doubleToLongBits(getNumericValue())
BinaryMessages.DynamicField field = simpleMessage.getValue(); if(field.hasNumericValue()) { value = field.getNumericValue(); } else if(field.hasBooleanValue()) { if(simpleMessage.hasEvent()) { field = simpleMessage.getEvent(); if(field.hasNumericValue()) { event = field.getNumericValue(); } else if(field.hasBooleanValue()) {
public Builder mergeFrom(com.openxc.BinaryMessages.DynamicField other) { if (other == com.openxc.BinaryMessages.DynamicField.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } if (other.hasStringValue()) { bitField0_ |= 0x00000002; stringValue_ = other.stringValue_; onChanged(); } if (other.hasNumericValue()) { setNumericValue(other.getNumericValue()); } if (other.hasBooleanValue()) { setBooleanValue(other.getBooleanValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }