Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.

Commit d8eceda

Browse files
fix!: Remove unsupported fields: recognition_result and alternative_source_language_codes (#276)
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/2cd6f232-d7e5-4be2-861a-36bea46e5c4c/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) PiperOrigin-RevId: 370757154 Source-Link: googleapis/googleapis@1d16331 docs: Add more comments for supported audio type
1 parent 3401f03 commit d8eceda

File tree

8 files changed

+296
-1023
lines changed

8 files changed

+296
-1023
lines changed

proto-google-cloud-mediatranslation-v1beta1/clirr-ignored-differences.xml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,25 @@
66
<className>com/google/cloud/mediatranslation/v1beta1/*OrBuilder</className>
77
<method>* has*(*)</method>
88
</difference>
9+
<!-- TODO: Remove after 0.4.0 is released -->
10+
<difference>
11+
<differenceType>7002</differenceType>
12+
<className>com/google/cloud/mediatranslation/v1beta1/TranslateSpeechConfig*</className>
13+
<method>* *AlternativeSourceLanguageCodes*(*)</method>
14+
</difference>
15+
<difference>
16+
<differenceType>7002</differenceType>
17+
<className>com/google/cloud/mediatranslation/v1beta1/StreamingTranslateSpeechResult*</className>
18+
<method>* *DetectedSourceLanguageCode*(*)</method>
19+
</difference>
20+
<difference>
21+
<differenceType>7002</differenceType>
22+
<className>com/google/cloud/mediatranslation/v1beta1/StreamingTranslateSpeechResult*</className>
23+
<method>* *RecognitionResult*(*)</method>
24+
</difference>
25+
<difference>
26+
<differenceType>6011</differenceType>
27+
<className>com/google/cloud/mediatranslation/v1beta1/*TranslateSpeech*</className>
28+
<field>*FIELD_NUMBER</field>
29+
</difference>
930
</differences>

proto-google-cloud-mediatranslation-v1beta1/src/main/java/com/google/cloud/mediatranslation/v1beta1/MediaTranslationProto.java

Lines changed: 44 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -64,53 +64,50 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
6464
+ "media_translation.proto\022%google.cloud.me"
6565
+ "diatranslation.v1beta1\032\037google/api/field"
6666
+ "_behavior.proto\032\027google/rpc/status.proto"
67-
+ "\032\027google/api/client.proto\"\336\001\n\025TranslateS"
67+
+ "\032\027google/api/client.proto\"\256\001\n\025TranslateS"
6868
+ "peechConfig\022\033\n\016audio_encoding\030\001 \001(\tB\003\340A\002"
69-
+ "\022!\n\024source_language_code\030\002 \001(\tB\003\340A\002\022.\n!a"
70-
+ "lternative_source_language_codes\030\006 \003(\tB\003"
71-
+ "\340A\001\022!\n\024target_language_code\030\003 \001(\tB\003\340A\002\022\036"
72-
+ "\n\021sample_rate_hertz\030\004 \001(\005B\003\340A\001\022\022\n\005model\030"
73-
+ "\005 \001(\tB\003\340A\001\"\230\001\n\036StreamingTranslateSpeechC"
74-
+ "onfig\022W\n\014audio_config\030\001 \001(\0132<.google.clo"
75-
+ "ud.mediatranslation.v1beta1.TranslateSpe"
76-
+ "echConfigB\003\340A\002\022\035\n\020single_utterance\030\002 \001(\010"
77-
+ "B\003\340A\001\"\262\001\n\037StreamingTranslateSpeechReques"
78-
+ "t\022a\n\020streaming_config\030\001 \001(\0132E.google.clo"
79-
+ "ud.mediatranslation.v1beta1.StreamingTra"
80-
+ "nslateSpeechConfigH\000\022\027\n\raudio_content\030\002 "
81-
+ "\001(\014H\000B\023\n\021streaming_request\"\301\002\n\036Streaming"
82-
+ "TranslateSpeechResult\022~\n\027text_translatio"
83-
+ "n_result\030\001 \001(\0132[.google.cloud.mediatrans"
84-
+ "lation.v1beta1.StreamingTranslateSpeechR"
85-
+ "esult.TextTranslationResultH\000\022\037\n\022recogni"
86-
+ "tion_result\030\003 \001(\tB\003\340A\003\032t\n\025TextTranslatio"
87-
+ "nResult\022\030\n\013translation\030\001 \001(\tB\003\340A\003\022\025\n\010is_"
88-
+ "final\030\002 \001(\010B\003\340A\003\022*\n\035detected_source_lang"
89-
+ "uage_code\030\003 \001(\tB\003\340A\003B\010\n\006result\"\362\002\n Strea"
90-
+ "mingTranslateSpeechResponse\022&\n\005error\030\001 \001"
91-
+ "(\0132\022.google.rpc.StatusB\003\340A\003\022Z\n\006result\030\002 "
92-
+ "\001(\0132E.google.cloud.mediatranslation.v1be"
93-
+ "ta1.StreamingTranslateSpeechResultB\003\340A\003\022"
94-
+ "w\n\021speech_event_type\030\003 \001(\0162W.google.clou"
95-
+ "d.mediatranslation.v1beta1.StreamingTran"
96-
+ "slateSpeechResponse.SpeechEventTypeB\003\340A\003"
97-
+ "\"Q\n\017SpeechEventType\022!\n\035SPEECH_EVENT_TYPE"
98-
+ "_UNSPECIFIED\020\000\022\033\n\027END_OF_SINGLE_UTTERANC"
99-
+ "E\020\0012\243\002\n\030SpeechTranslationService\022\261\001\n\030Str"
100-
+ "eamingTranslateSpeech\022F.google.cloud.med"
69+
+ "\022!\n\024source_language_code\030\002 \001(\tB\003\340A\002\022!\n\024t"
70+
+ "arget_language_code\030\003 \001(\tB\003\340A\002\022\036\n\021sample"
71+
+ "_rate_hertz\030\004 \001(\005B\003\340A\001\022\022\n\005model\030\005 \001(\tB\003\340"
72+
+ "A\001\"\230\001\n\036StreamingTranslateSpeechConfig\022W\n"
73+
+ "\014audio_config\030\001 \001(\0132<.google.cloud.media"
74+
+ "translation.v1beta1.TranslateSpeechConfi"
75+
+ "gB\003\340A\002\022\035\n\020single_utterance\030\002 \001(\010B\003\340A\001\"\262\001"
76+
+ "\n\037StreamingTranslateSpeechRequest\022a\n\020str"
77+
+ "eaming_config\030\001 \001(\0132E.google.cloud.media"
78+
+ "translation.v1beta1.StreamingTranslateSp"
79+
+ "eechConfigH\000\022\027\n\raudio_content\030\002 \001(\014H\000B\023\n"
80+
+ "\021streaming_request\"\364\001\n\036StreamingTranslat"
81+
+ "eSpeechResult\022~\n\027text_translation_result"
82+
+ "\030\001 \001(\0132[.google.cloud.mediatranslation.v"
83+
+ "1beta1.StreamingTranslateSpeechResult.Te"
84+
+ "xtTranslationResultH\000\032H\n\025TextTranslation"
85+
+ "Result\022\030\n\013translation\030\001 \001(\tB\003\340A\003\022\025\n\010is_f"
86+
+ "inal\030\002 \001(\010B\003\340A\003B\010\n\006result\"\362\002\n StreamingT"
87+
+ "ranslateSpeechResponse\022&\n\005error\030\001 \001(\0132\022."
88+
+ "google.rpc.StatusB\003\340A\003\022Z\n\006result\030\002 \001(\0132E"
89+
+ ".google.cloud.mediatranslation.v1beta1.S"
90+
+ "treamingTranslateSpeechResultB\003\340A\003\022w\n\021sp"
91+
+ "eech_event_type\030\003 \001(\0162W.google.cloud.med"
10192
+ "iatranslation.v1beta1.StreamingTranslate"
102-
+ "SpeechRequest\032G.google.cloud.mediatransl"
103-
+ "ation.v1beta1.StreamingTranslateSpeechRe"
104-
+ "sponse\"\000(\0010\001\032S\312A\037mediatranslation.google"
105-
+ "apis.com\322A.https://www.googleapis.com/au"
106-
+ "th/cloud-platformB\231\002\n)com.google.cloud.m"
107-
+ "ediatranslation.v1beta1B\025MediaTranslatio"
108-
+ "nProtoP\001ZUgoogle.golang.org/genproto/goo"
109-
+ "gleapis/cloud/mediatranslation/v1beta1;m"
110-
+ "ediatranslation\370\001\001\252\002%Google.Cloud.MediaT"
111-
+ "ranslation.V1Beta1\312\002%Google\\Cloud\\MediaT"
112-
+ "ranslation\\V1beta1\352\002(Google::Cloud::Medi"
113-
+ "aTranslation::V1beta1b\006proto3"
93+
+ "SpeechResponse.SpeechEventTypeB\003\340A\003\"Q\n\017S"
94+
+ "peechEventType\022!\n\035SPEECH_EVENT_TYPE_UNSP"
95+
+ "ECIFIED\020\000\022\033\n\027END_OF_SINGLE_UTTERANCE\020\0012\243"
96+
+ "\002\n\030SpeechTranslationService\022\261\001\n\030Streamin"
97+
+ "gTranslateSpeech\022F.google.cloud.mediatra"
98+
+ "nslation.v1beta1.StreamingTranslateSpeec"
99+
+ "hRequest\032G.google.cloud.mediatranslation"
100+
+ ".v1beta1.StreamingTranslateSpeechRespons"
101+
+ "e\"\000(\0010\001\032S\312A\037mediatranslation.googleapis."
102+
+ "com\322A.https://www.googleapis.com/auth/cl"
103+
+ "oud-platformB\231\002\n)com.google.cloud.mediat"
104+
+ "ranslation.v1beta1B\025MediaTranslationProt"
105+
+ "oP\001ZUgoogle.golang.org/genproto/googleap"
106+
+ "is/cloud/mediatranslation/v1beta1;mediat"
107+
+ "ranslation\370\001\001\252\002%Google.Cloud.MediaTransl"
108+
+ "ation.V1Beta1\312\002%Google\\Cloud\\MediaTransl"
109+
+ "ation\\V1beta1\352\002(Google::Cloud::MediaTran"
110+
+ "slation::V1beta1b\006proto3"
114111
};
115112
descriptor =
116113
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -128,7 +125,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
128125
new java.lang.String[] {
129126
"AudioEncoding",
130127
"SourceLanguageCode",
131-
"AlternativeSourceLanguageCodes",
132128
"TargetLanguageCode",
133129
"SampleRateHertz",
134130
"Model",
@@ -155,7 +151,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
155151
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
156152
internal_static_google_cloud_mediatranslation_v1beta1_StreamingTranslateSpeechResult_descriptor,
157153
new java.lang.String[] {
158-
"TextTranslationResult", "RecognitionResult", "Result",
154+
"TextTranslationResult", "Result",
159155
});
160156
internal_static_google_cloud_mediatranslation_v1beta1_StreamingTranslateSpeechResult_TextTranslationResult_descriptor =
161157
internal_static_google_cloud_mediatranslation_v1beta1_StreamingTranslateSpeechResult_descriptor
@@ -165,7 +161,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
165161
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
166162
internal_static_google_cloud_mediatranslation_v1beta1_StreamingTranslateSpeechResult_TextTranslationResult_descriptor,
167163
new java.lang.String[] {
168-
"Translation", "IsFinal", "DetectedSourceLanguageCode",
164+
"Translation", "IsFinal",
169165
});
170166
internal_static_google_cloud_mediatranslation_v1beta1_StreamingTranslateSpeechResponse_descriptor =
171167
getDescriptor().getMessageTypes().get(4);

0 commit comments

Comments
 (0)