Forgot to keep this file in sync with //google/internal/communications/voicemailtranscription/v1/voicemail_transcription.proto

Test: n/a
PiperOrigin-RevId: 169425975
Change-Id: I0d53a576e1245cc1c4d7c8e36df3a510d8c7bdbe
diff --git a/java/com/android/voicemail/impl/transcribe/grpc/voicemail_transcription.proto b/java/com/android/voicemail/impl/transcribe/grpc/voicemail_transcription.proto
index a2064d1..697e9e3 100644
--- a/java/com/android/voicemail/impl/transcribe/grpc/voicemail_transcription.proto
+++ b/java/com/android/voicemail/impl/transcribe/grpc/voicemail_transcription.proto
@@ -56,6 +56,18 @@
   FAILED_NO_SPEECH_DETECTED = 7;
 }
 
+// Enum that specifies the user's consent to donate a specific voicemail.
+enum DonationPreference {
+  // Default but invalid value.
+  USER_PREFERENCE_UNSPECIFIED = 0;
+
+  // User does not consent to donating this voicemail.
+  DO_NOT_DONATE = 1;
+
+  // User consents to donating this voicemail.
+  DONATE = 2;
+}
+
 // Request for synchronous voicemail transcription.
 message TranscribeVoicemailRequest {
   // Voicemail audio file containing the raw bytes we receive from the carrier.
@@ -78,6 +90,16 @@
 
   // Audio format of the voicemail file.
   optional AudioFormat audio_format = 2;
+
+  // The client may provide their own unique ID for this transcription. It
+  // should be globally unique across all voicemails from all users.
+  // If the given transcription_id is not unique, an ALREADY_EXISTS (409) error
+  // will be returned.
+  // If no transcription_id is provided, one will be generated by the server.
+  optional string transcription_id = 3;
+
+  // User's donation preference.
+  optional DonationPreference donation_preference = 4;
 }
 
 // Response for asynchronous voicemail transcription containing information