diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2017-09-20 22:25:17 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-09-20 22:25:17 +0000 |
commit | da6e1f120189c89059b06afc989e5178a6b8622f (patch) | |
tree | 0431e48715d881055d71885356cd9c63a01b4762 /java/com/android/voicemail | |
parent | aa8dee513f7b48425fa125c218e76f5fcc5c2430 (diff) | |
parent | 95ef73e0b7ff185294c46a98acad9b5ba68f2984 (diff) |
Merge changes I0d53a576,I0baf31c3,I297b945c,I63c9165f
* changes:
Forgot to keep this file in sync with //google/internal/communications/voicemailtranscription/v1/voicemail_transcription.proto
Fixed issue where all contacts weren't beign shown.
Add more logging when video surface texture is destroyed.
Don't truncate long voicemail transcriptions
Diffstat (limited to 'java/com/android/voicemail')
-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 |