private static com.google.crypto.tink.proto.AesCmacParams getProtoParams(
      AesCmacParameters parameters) {
    return com.google.crypto.tink.proto.AesCmacParams.newBuilder()
        .setTagSize(parameters.getCryptographicTagSizeBytes())
        .build();
  }
Methods to serialize and parse {@link AesCmacKey} objects and {@link AesCmacParameters} objects.
java_src/src/main/java/com/google/crypto/tink/mac/internal/AesCmacProtoSerialization.java