types/src/main/java/com/google/common/html/types/SafeUrls.java
public static SafeUrlProto toProto(SafeUrl url) {
    return SafeUrlProto.newBuilder()
        .setPrivateDoNotAccessOrElseSafeUrlWrappedValue(url.getSafeUrlString())
        .build();
  }
public static SafeUrlProto toProto(SafeUrl url) {
    return SafeUrlProto.newBuilder()
        .setPrivateDoNotAccessOrElseSafeUrlWrappedValue(url.getSafeUrlString())
        .build();
  }
public static SafeUrlProto toProto ( SafeUrl url ) { return SafeUrlProto . newBuilder ( ) . setPrivateDoNotAccessOrElseSafeUrlWrappedValue ( url . getSafeUrlString ( ) ) . build ( ) ; }
Serializes a SafeUrl 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 SafeUrl using
{@link #fromProto(SafeUrlProto)}.
Serializes a SafeUrl into its opaque protocol message representation .