@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.common.html.types.SafeScriptProto)) { return super.equals(obj); } com.google.common.html.types.SafeScriptProto other = (com.google.common.html.types.SafeScriptProto) obj; boolean result = true; result = result && (hasPrivateDoNotAccessOrElseSafeScriptWrappedValue() == other.hasPrivateDoNotAccessOrElseSafeScriptWrappedValue()); if (hasPrivateDoNotAccessOrElseSafeScriptWrappedValue()) { result = result && getPrivateDoNotAccessOrElseSafeScriptWrappedValue() .equals(other.getPrivateDoNotAccessOrElseSafeScriptWrappedValue()); } result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasPrivateDoNotAccessOrElseSafeScriptWrappedValue()) { hash = (37 * hash) + PRIVATE_DO_NOT_ACCESS_OR_ELSE_SAFE_SCRIPT_WRAPPED_VALUE_FIELD_NUMBER; hash = (53 * hash) + getPrivateDoNotAccessOrElseSafeScriptWrappedValue().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(com.google.common.html.types.SafeScriptProto other) { if (other == com.google.common.html.types.SafeScriptProto.getDefaultInstance()) return this; if (other.hasPrivateDoNotAccessOrElseSafeScriptWrappedValue()) { bitField0_ |= 0x00000001; privateDoNotAccessOrElseSafeScriptWrappedValue_ = other.privateDoNotAccessOrElseSafeScriptWrappedValue_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }