/** * Deserializes a SafeStyleSheetProto into a SafeStyleSheet instance. * * <p>Protocol-message forms are intended to be opaque. The fields of the protocol message should * be considered encapsulated and are not intended for direct inspection or manipulation. Protocol * message forms of this type should be produced by {@link #toProto(SafeStyleSheet)} or its * equivalent in other implementation languages. * * <p><b>Important:</b> It is unsafe to invoke this method on a protocol message that has been * received from an entity outside the application's trust domain. Data coming from the browser * is outside the application's trust domain. */ public static SafeStyleSheet fromProto(SafeStyleSheetProto proto) { return create(proto.getPrivateDoNotAccessOrElseSafeStyleSheetWrappedValue()); }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasPrivateDoNotAccessOrElseSafeStyleSheetWrappedValue()) { hash = (37 * hash) + PRIVATE_DO_NOT_ACCESS_OR_ELSE_SAFE_STYLE_SHEET_WRAPPED_VALUE_FIELD_NUMBER; hash = (53 * hash) + getPrivateDoNotAccessOrElseSafeStyleSheetWrappedValue().hashCode(); } 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.google.common.html.types.SafeStyleSheetProto)) { return super.equals(obj); } com.google.common.html.types.SafeStyleSheetProto other = (com.google.common.html.types.SafeStyleSheetProto) obj; boolean result = true; result = result && (hasPrivateDoNotAccessOrElseSafeStyleSheetWrappedValue() == other.hasPrivateDoNotAccessOrElseSafeStyleSheetWrappedValue()); if (hasPrivateDoNotAccessOrElseSafeStyleSheetWrappedValue()) { result = result && getPrivateDoNotAccessOrElseSafeStyleSheetWrappedValue() .equals(other.getPrivateDoNotAccessOrElseSafeStyleSheetWrappedValue()); } result = result && unknownFields.equals(other.unknownFields); return result; }
/** * <pre> * IMPORTANT: Never set or read this field, even from tests, it is private. * See documentation at the top of .proto file for programming language * packages with which to create or read this message. * </pre> * * <code>optional string private_do_not_access_or_else_safe_style_sheet_wrapped_value = 7 [ctype = CORD];</code> */ public Builder clearPrivateDoNotAccessOrElseSafeStyleSheetWrappedValue() { bitField0_ = (bitField0_ & ~0x00000001); privateDoNotAccessOrElseSafeStyleSheetWrappedValue_ = getDefaultInstance().getPrivateDoNotAccessOrElseSafeStyleSheetWrappedValue(); onChanged(); return this; } /**