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

Commit e624289

Browse files
feat(generator): update protoc to v3.15.3 (#453)
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/c70c2328-69c5-4e5d-a0a1-376c1f8b88da/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 359781040 Source-Link: googleapis/googleapis@f6dd7e4
1 parent 546daab commit e624289

File tree

9 files changed

+344
-5
lines changed

9 files changed

+344
-5
lines changed

proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,23 @@ public AudioSourceCase getAudioSourceCase() {
166166
}
167167

168168
public static final int CONTENT_FIELD_NUMBER = 1;
169+
/**
170+
*
171+
*
172+
*
173+
* The audio data bytes encoded as specified in
174+
* `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
175+
* pure binary representation, whereas JSON representations use base64.
176+
*
177+
*
178+
* bytes content = 1;
179+
*
180+
* @return Whether the content field is set.
181+
*/
182+
@java.lang.Override
183+
public boolean hasContent() {
184+
return audioSourceCase_ == 1;
185+
}
169186
/**
170187
*
171188
*
@@ -188,6 +205,26 @@ public com.google.protobuf.ByteString getContent() {
188205
}
189206

190207
public static final int URI_FIELD_NUMBER = 2;
208+
/**
209+
*
210+
*
211+
*
212+
* URI that points to a file that contains audio data bytes as specified in
213+
* `RecognitionConfig`. The file must not be compressed (for example, gzip).
214+
* Currently, only Google Cloud Storage URIs are
215+
* supported, which must be specified in the following format:
216+
* `gs://bucket_name/object_name` (other URI formats return
217+
* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see
218+
* [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
219+
*
220+
*
221+
* string uri = 2;
222+
*
223+
* @return Whether the uri field is set.
224+
*/
225+
public boolean hasUri() {
226+
return audioSourceCase_ == 2;
227+
}
191228
/**
192229
*
193230
*
@@ -636,6 +673,22 @@ public Builder clearAudioSource() {
636673
return this;
637674
}
638675

676+
/**
677+
*
678+
*
679+
*
680+
* The audio data bytes encoded as specified in
681+
* `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
682+
* pure binary representation, whereas JSON representations use base64.
683+
*
684+
*
685+
* bytes content = 1;
686+
*
687+
* @return Whether the content field is set.
688+
*/
689+
public boolean hasContent() {
690+
return audioSourceCase_ == 1;
691+
}
639692
/**
640693
*
641694
*
@@ -700,6 +753,27 @@ public Builder clearContent() {
700753
return this;
701754
}
702755

756+
/**
757+
*
758+
*
759+
*
760+
* URI that points to a file that contains audio data bytes as specified in
761+
* `RecognitionConfig`. The file must not be compressed (for example, gzip).
762+
* Currently, only Google Cloud Storage URIs are
763+
* supported, which must be specified in the following format:
764+
* `gs://bucket_name/object_name` (other URI formats return
765+
* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see
766+
* [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
767+
*
768+
*
769+
* string uri = 2;
770+
*
771+
* @return Whether the uri field is set.
772+
*/
773+
@java.lang.Override
774+
public boolean hasUri() {
775+
return audioSourceCase_ == 2;
776+
}
703777
/**
704778
*
705779
*

proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,20 @@ public interface RecognitionAudioOrBuilder
2323
// @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.RecognitionAudio)
2424
com.google.protobuf.MessageOrBuilder {
2525

26+
/**
27+
*
28+
*
29+
*
30+
* The audio data bytes encoded as specified in
31+
* `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
32+
* pure binary representation, whereas JSON representations use base64.
33+
*
34+
*
35+
* bytes content = 1;
36+
*
37+
* @return Whether the content field is set.
38+
*/
39+
boolean hasContent();
2640
/**
2741
*
2842
*
@@ -38,6 +52,24 @@ public interface RecognitionAudioOrBuilder
3852
*/
3953
com.google.protobuf.ByteString getContent();
4054

55+
/**
56+
*
57+
*
58+
*
59+
* URI that points to a file that contains audio data bytes as specified in
60+
* `RecognitionConfig`. The file must not be compressed (for example, gzip).
61+
* Currently, only Google Cloud Storage URIs are
62+
* supported, which must be specified in the following format:
63+
* `gs://bucket_name/object_name` (other URI formats return
64+
* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see
65+
* [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
66+
*
67+
*
68+
* string uri = 2;
69+
*
70+
* @return Whether the uri field is set.
71+
*/
72+
boolean hasUri();
4173
/**
4274
*
4375
*

proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,28 @@ public com.google.cloud.speech.v1.StreamingRecognitionConfig getStreamingConfig(
238238
}
239239

240240
public static final int AUDIO_CONTENT_FIELD_NUMBER = 2;
241+
/**
242+
*
243+
*
244+
*
245+
* The audio data to be recognized. Sequential chunks of audio data are sent
246+
* in sequential `StreamingRecognizeRequest` messages. The first
247+
* `StreamingRecognizeRequest` message must not contain `audio_content` data
248+
* and all subsequent `StreamingRecognizeRequest` messages must contain
249+
* `audio_content` data. The audio bytes must be encoded as specified in
250+
* `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
251+
* pure binary representation (not base64). See
252+
* [content limits](https://cloud.google.com/speech-to-text/quotas#content).
253+
*
254+
*
255+
* bytes audio_content = 2;
256+
*
257+
* @return Whether the audioContent field is set.
258+
*/
259+
@java.lang.Override
260+
public boolean hasAudioContent() {
261+
return streamingRequestCase_ == 2;
262+
}
241263
/**
242264
*
243265
*
@@ -885,6 +907,27 @@ public Builder clearStreamingConfig() {
885907
return streamingConfigBuilder_;
886908
}
887909

910+
/**
911+
*
912+
*
913+
*
914+
* The audio data to be recognized. Sequential chunks of audio data are sent
915+
* in sequential `StreamingRecognizeRequest` messages. The first
916+
* `StreamingRecognizeRequest` message must not contain `audio_content` data
917+
* and all subsequent `StreamingRecognizeRequest` messages must contain
918+
* `audio_content` data. The audio bytes must be encoded as specified in
919+
* `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
920+
* pure binary representation (not base64). See
921+
* [content limits](https://cloud.google.com/speech-to-text/quotas#content).
922+
*
923+
*
924+
* bytes audio_content = 2;
925+
*
926+
* @return Whether the audioContent field is set.
927+
*/
928+
public boolean hasAudioContent() {
929+
return streamingRequestCase_ == 2;
930+
}
888931
/**
889932
*
890933
*

proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,25 @@ public interface StreamingRecognizeRequestOrBuilder
6464
*/
6565
com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder getStreamingConfigOrBuilder();
6666

67+
/**
68+
*
69+
*
70+
*
71+
* The audio data to be recognized. Sequential chunks of audio data are sent
72+
* in sequential `StreamingRecognizeRequest` messages. The first
73+
* `StreamingRecognizeRequest` message must not contain `audio_content` data
74+
* and all subsequent `StreamingRecognizeRequest` messages must contain
75+
* `audio_content` data. The audio bytes must be encoded as specified in
76+
* `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
77+
* pure binary representation (not base64). See
78+
* [content limits](https://cloud.google.com/speech-to-text/quotas#content).
79+
*
80+
*
81+
* bytes audio_content = 2;
82+
*
83+
* @return Whether the audioContent field is set.
84+
*/
85+
boolean hasAudioContent();
6786
/**
6887
*
6988
*

proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,23 @@ public AudioSourceCase getAudioSourceCase() {
166166
}
167167

168168
public static final int CONTENT_FIELD_NUMBER = 1;
169+
/**
170+
*
171+
*
172+
*
173+
* The audio data bytes encoded as specified in
174+
* `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
175+
* pure binary representation, whereas JSON representations use base64.
176+
*
177+
*
178+
* bytes content = 1;
179+
*
180+
* @return Whether the content field is set.
181+
*/
182+
@java.lang.Override
183+
public boolean hasContent() {
184+
return audioSourceCase_ == 1;
185+
}
169186
/**
170187
*
171188
*
@@ -188,6 +205,27 @@ public com.google.protobuf.ByteString getContent() {
188205
}
189206

190207
public static final int URI_FIELD_NUMBER = 2;
208+
/**
209+
*
210+
*
211+
*
212+
* URI that points to a file that contains audio data bytes as specified in
213+
* `RecognitionConfig`. The file must not be compressed (for example, gzip).
214+
* Currently, only Google Cloud Storage URIs are
215+
* supported, which must be specified in the following format:
216+
* `gs://bucket_name/object_name` (other URI formats return
217+
* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]).
218+
* For more information, see [Request
219+
* URIs](https://cloud.google.com/storage/docs/reference-uris).
220+
*
221+
*
222+
* string uri = 2;
223+
*
224+
* @return Whether the uri field is set.
225+
*/
226+
public boolean hasUri() {
227+
return audioSourceCase_ == 2;
228+
}
191229
/**
192230
*
193231
*
@@ -640,6 +678,22 @@ public Builder clearAudioSource() {
640678
return this;
641679
}
642680

681+
/**
682+
*
683+
*
684+
*
685+
* The audio data bytes encoded as specified in
686+
* `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
687+
* pure binary representation, whereas JSON representations use base64.
688+
*
689+
*
690+
* bytes content = 1;
691+
*
692+
* @return Whether the content field is set.
693+
*/
694+
public boolean hasContent() {
695+
return audioSourceCase_ == 1;
696+
}
643697
/**
644698
*
645699
*
@@ -704,6 +758,28 @@ public Builder clearContent() {
704758
return this;
705759
}
706760

761+
/**
762+
*
763+
*
764+
*
765+
* URI that points to a file that contains audio data bytes as specified in
766+
* `RecognitionConfig`. The file must not be compressed (for example, gzip).
767+
* Currently, only Google Cloud Storage URIs are
768+
* supported, which must be specified in the following format:
769+
* `gs://bucket_name/object_name` (other URI formats return
770+
* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]).
771+
* For more information, see [Request
772+
* URIs](https://cloud.google.com/storage/docs/reference-uris).
773+
*
774+
*
775+
* string uri = 2;
776+
*
777+
* @return Whether the uri field is set.
778+
*/
779+
@java.lang.Override
780+
public boolean hasUri() {
781+
return audioSourceCase_ == 2;
782+
}
707783
/**
708784
*
709785
*

proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,20 @@ public interface RecognitionAudioOrBuilder
2323
// @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.RecognitionAudio)
2424
com.google.protobuf.MessageOrBuilder {
2525

26+
/**
27+
*
28+
*
29+
*
30+
* The audio data bytes encoded as specified in
31+
* `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
32+
* pure binary representation, whereas JSON representations use base64.
33+
*
34+
*
35+
* bytes content = 1;
36+
*
37+
* @return Whether the content field is set.
38+
*/
39+
boolean hasContent();
2640
/**
2741
*
2842
*
@@ -38,6 +52,25 @@ public interface RecognitionAudioOrBuilder
3852
*/
3953
com.google.protobuf.ByteString getContent();
4054

55+
/**
56+
*
57+
*
58+
*
59+
* URI that points to a file that contains audio data bytes as specified in
60+
* `RecognitionConfig`. The file must not be compressed (for example, gzip).
61+
* Currently, only Google Cloud Storage URIs are
62+
* supported, which must be specified in the following format:
63+
* `gs://bucket_name/object_name` (other URI formats return
64+
* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]).
65+
* For more information, see [Request
66+
* URIs](https://cloud.google.com/storage/docs/reference-uris).
67+
*
68+
*
69+
* string uri = 2;
70+
*
71+
* @return Whether the uri field is set.
72+
*/
73+
boolean hasUri();
4174
/**
4275
*
4376
*

0 commit comments

Comments
 (0)