/** * <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_wrapped_value = 5;</code> */ public Builder clearPrivateDoNotAccessOrElseSafeStyleWrappedValue() { bitField0_ = (bitField0_ & ~0x00000001); privateDoNotAccessOrElseSafeStyleWrappedValue_ = getDefaultInstance().getPrivateDoNotAccessOrElseSafeStyleWrappedValue(); onChanged(); return this; } /**
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasPrivateDoNotAccessOrElseSafeStyleWrappedValue()) { hash = (37 * hash) + PRIVATE_DO_NOT_ACCESS_OR_ELSE_SAFE_STYLE_WRAPPED_VALUE_FIELD_NUMBER; hash = (53 * hash) + getPrivateDoNotAccessOrElseSafeStyleWrappedValue().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() {
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.common.html.types.SafeStyleProto)) { return super.equals(obj); } com.google.common.html.types.SafeStyleProto other = (com.google.common.html.types.SafeStyleProto) obj; boolean result = true; result = result && (hasPrivateDoNotAccessOrElseSafeStyleWrappedValue() == other.hasPrivateDoNotAccessOrElseSafeStyleWrappedValue()); if (hasPrivateDoNotAccessOrElseSafeStyleWrappedValue()) { result = result && getPrivateDoNotAccessOrElseSafeStyleWrappedValue() .equals(other.getPrivateDoNotAccessOrElseSafeStyleWrappedValue()); } result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom(com.google.common.html.types.SafeStyleProto other) { if (other == com.google.common.html.types.SafeStyleProto.getDefaultInstance()) return this; if (other.hasPrivateDoNotAccessOrElseSafeStyleWrappedValue()) { bitField0_ |= 0x00000001; privateDoNotAccessOrElseSafeStyleWrappedValue_ = other.privateDoNotAccessOrElseSafeStyleWrappedValue_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable();
public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.common.html.types.SafeStyleProto prototype) {
public com.google.common.html.types.SafeStyleProto getDefaultInstanceForType() { return com.google.common.html.types.SafeStyleProto.getDefaultInstance(); }
public com.google.common.html.types.SafeStyleProto buildPartial() { com.google.common.html.types.SafeStyleProto result = new com.google.common.html.types.SafeStyleProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.privateDoNotAccessOrElseSafeStyleWrappedValue_ = privateDoNotAccessOrElseSafeStyleWrappedValue_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
/** * Deserializes a SafeStyleProto into a SafeStyle 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(SafeStyle)} 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 SafeStyle fromProto(SafeStyleProto proto) { return create(proto.getPrivateDoNotAccessOrElseSafeStyleWrappedValue()); }
public com.google.common.html.types.SafeStyleProto build() { com.google.common.html.types.SafeStyleProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public static Builder newBuilder(com.google.common.html.types.SafeStyleProto prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() {
/** * Serializes a SafeStyle into its opaque protocol message representation. * * <p>Protocol message forms of this type are intended to be opaque. The fields of the returned * protocol message should be considered encapsulated and are not intended for direct inspection * or manipulation. Protocol messages can be converted back into a SafeStyle using * {@link #fromProto(SafeStyleProto)}. */ public static SafeStyleProto toProto(SafeStyle style) { return SafeStyleProto.newBuilder() .setPrivateDoNotAccessOrElseSafeStyleWrappedValue(style.getSafeStyleString()).build(); }