public static ProtoParametersSerialization create(KeyTemplate keyTemplate) {
    return new ProtoParametersSerialization(
        keyTemplate, toBytesFromPrintableAscii(keyTemplate.getTypeUrl()));
  }
Creates a new {@code ProtoParametersSerialization} object.

<p>Note: the given typeUrl must be valid and may not contain invalid characters.
java_src/src/main/java/com/google/crypto/tink/internal/ProtoParametersSerialization.java