diff options
author | Android Dialer <noreply@google.com> | 2017-09-20 11:43:37 -0700 |
---|---|---|
committer | Eric Erfanian <erfanian@google.com> | 2017-09-20 13:38:00 -0700 |
commit | 95ef73e0b7ff185294c46a98acad9b5ba68f2984 (patch) | |
tree | 0431e48715d881055d71885356cd9c63a01b4762 | |
parent | 2ea58f749187ec3360b7ce8acac632bece24929e (diff) |
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
-rw-r--r-- | java/com/android/voicemail/impl/transcribe/grpc/voicemail_transcription.proto | 22 |
1 files changed, 22 insertions, 0 deletions
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 a2064d193..697e9e337 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 @@ enum TranscriptionStatus { 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 @@ message TranscribeVoicemailAsyncRequest { // 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 |