Skip to content

Commit 814f70d

Browse files
yoshi-automationbusunkim96
authored andcommitted
Speech: copy lintified proto files (via synth).
1 parent 5364076 commit 814f70d

File tree

3 files changed

+43
-34
lines changed

3 files changed

+43
-34
lines changed

speech/google/cloud/speech_v1/proto/cloud_speech.proto

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ option java_multiple_files = true;
3131
option java_outer_classname = "SpeechProto";
3232
option java_package = "com.google.cloud.speech.v1";
3333

34-
3534
// Service that implements Google Cloud Speech API.
3635
service Speech {
3736
// Performs synchronous speech recognition: receive results after all audio
@@ -47,7 +46,8 @@ service Speech {
4746
// google.longrunning.Operations interface. Returns either an
4847
// `Operation.error` or an `Operation.response` which contains
4948
// a `LongRunningRecognizeResponse` message.
50-
rpc LongRunningRecognize(LongRunningRecognizeRequest) returns (google.longrunning.Operation) {
49+
rpc LongRunningRecognize(LongRunningRecognizeRequest)
50+
returns (google.longrunning.Operation) {
5151
option (google.api.http) = {
5252
post: "/v1/speech:longrunningrecognize"
5353
body: "*"
@@ -56,8 +56,8 @@ service Speech {
5656

5757
// Performs bidirectional streaming speech recognition: receive results while
5858
// sending audio. This method is only available via the gRPC API (not REST).
59-
rpc StreamingRecognize(stream StreamingRecognizeRequest) returns (stream StreamingRecognizeResponse) {
60-
}
59+
rpc StreamingRecognize(stream StreamingRecognizeRequest)
60+
returns (stream StreamingRecognizeResponse) {}
6161
}
6262

6363
// The top-level message sent by the client for the `Recognize` method.
@@ -155,7 +155,8 @@ message RecognitionConfig {
155155
// an `AudioEncoding` when you send send `FLAC` or `WAV` audio, the
156156
// encoding configuration must match the encoding described in the audio
157157
// header; otherwise the request returns an
158-
// [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] error code.
158+
// [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] error
159+
// code.
159160
enum AudioEncoding {
160161
// Not specified.
161162
ENCODING_UNSPECIFIED = 0;
@@ -203,7 +204,8 @@ message RecognitionConfig {
203204

204205
// Encoding of audio data sent in all `RecognitionAudio` messages.
205206
// This field is optional for `FLAC` and `WAV` audio files and required
206-
// for all other audio formats. For details, see [AudioEncoding][google.cloud.speech.v1.RecognitionConfig.AudioEncoding].
207+
// for all other audio formats. For details, see
208+
// [AudioEncoding][google.cloud.speech.v1.RecognitionConfig.AudioEncoding].
207209
AudioEncoding encoding = 1;
208210

209211
// Sample rate in Hertz of the audio data sent in all
@@ -212,7 +214,8 @@ message RecognitionConfig {
212214
// source to 16000 Hz. If that's not possible, use the native sample rate of
213215
// the audio source (instead of re-sampling).
214216
// This field is optional for `FLAC` and `WAV` audio files and required
215-
// for all other audio formats. For details, see [AudioEncoding][google.cloud.speech.v1.RecognitionConfig.AudioEncoding].
217+
// for all other audio formats. For details, see
218+
// [AudioEncoding][google.cloud.speech.v1.RecognitionConfig.AudioEncoding].
216219
int32 sample_rate_hertz = 2;
217220

218221
// *Optional* The number of channels in the input audio data.
@@ -341,8 +344,8 @@ message SpeechContext {
341344

342345
// Contains audio data in the encoding specified in the `RecognitionConfig`.
343346
// Either `content` or `uri` must be supplied. Supplying both or neither
344-
// returns [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. See
345-
// [content limits](/speech-to-text/quotas#content).
347+
// returns [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT].
348+
// See [content limits](/speech-to-text/quotas#content).
346349
message RecognitionAudio {
347350
// The audio source, which is either inline content or a Google Cloud
348351
// Storage uri.
@@ -357,8 +360,9 @@ message RecognitionAudio {
357360
// Currently, only Google Cloud Storage URIs are
358361
// supported, which must be specified in the following format:
359362
// `gs://bucket_name/object_name` (other URI formats return
360-
// [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see
361-
// [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
363+
// [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]).
364+
// For more information, see [Request
365+
// URIs](https://cloud.google.com/storage/docs/reference-uris).
362366
string uri = 2;
363367
}
364368
}
@@ -463,8 +467,8 @@ message StreamingRecognizeResponse {
463467
END_OF_SINGLE_UTTERANCE = 1;
464468
}
465469

466-
// Output only. If set, returns a [google.rpc.Status][google.rpc.Status] message that
467-
// specifies the error for the operation.
470+
// Output only. If set, returns a [google.rpc.Status][google.rpc.Status]
471+
// message that specifies the error for the operation.
468472
google.rpc.Status error = 1;
469473

470474
// Output only. This repeated list contains zero or more results that

speech/google/cloud/speech_v1p1beta1/proto/cloud_speech.proto

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ option java_multiple_files = true;
3131
option java_outer_classname = "SpeechProto";
3232
option java_package = "com.google.cloud.speech.v1p1beta1";
3333

34-
3534
// Service that implements Google Cloud Speech API.
3635
service Speech {
3736
// Performs synchronous speech recognition: receive results after all audio
@@ -47,7 +46,8 @@ service Speech {
4746
// google.longrunning.Operations interface. Returns either an
4847
// `Operation.error` or an `Operation.response` which contains
4948
// a `LongRunningRecognizeResponse` message.
50-
rpc LongRunningRecognize(LongRunningRecognizeRequest) returns (google.longrunning.Operation) {
49+
rpc LongRunningRecognize(LongRunningRecognizeRequest)
50+
returns (google.longrunning.Operation) {
5151
option (google.api.http) = {
5252
post: "/v1p1beta1/speech:longrunningrecognize"
5353
body: "*"
@@ -56,8 +56,8 @@ service Speech {
5656

5757
// Performs bidirectional streaming speech recognition: receive results while
5858
// sending audio. This method is only available via the gRPC API (not REST).
59-
rpc StreamingRecognize(stream StreamingRecognizeRequest) returns (stream StreamingRecognizeResponse) {
60-
}
59+
rpc StreamingRecognize(stream StreamingRecognizeRequest)
60+
returns (stream StreamingRecognizeResponse) {}
6161
}
6262

6363
// The top-level message sent by the client for the `Recognize` method.
@@ -155,7 +155,8 @@ message RecognitionConfig {
155155
// an `AudioEncoding` when you send send `FLAC` or `WAV` audio, the
156156
// encoding configuration must match the encoding described in the audio
157157
// header; otherwise the request returns an
158-
// [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] error code.
158+
// [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] error
159+
// code.
159160
enum AudioEncoding {
160161
// Not specified.
161162
ENCODING_UNSPECIFIED = 0;
@@ -203,7 +204,8 @@ message RecognitionConfig {
203204

204205
// Encoding of audio data sent in all `RecognitionAudio` messages.
205206
// This field is optional for `FLAC` and `WAV` audio files and required
206-
// for all other audio formats. For details, see [AudioEncoding][google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding].
207+
// for all other audio formats. For details, see
208+
// [AudioEncoding][google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding].
207209
AudioEncoding encoding = 1;
208210

209211
// Sample rate in Hertz of the audio data sent in all
@@ -212,7 +214,8 @@ message RecognitionConfig {
212214
// source to 16000 Hz. If that's not possible, use the native sample rate of
213215
// the audio source (instead of re-sampling).
214216
// This field is optional for `FLAC` and `WAV` audio files and required
215-
// for all other audio formats. For details, see [AudioEncoding][google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding].
217+
// for all other audio formats. For details, see
218+
// [AudioEncoding][google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding].
216219
int32 sample_rate_hertz = 2;
217220

218221
// *Optional* The number of channels in the input audio data.
@@ -269,9 +272,10 @@ message RecognitionConfig {
269272
// won't be filtered out.
270273
bool profanity_filter = 5;
271274

272-
// *Optional* array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
273-
// A means to provide context to assist the speech recognition. For more
274-
// information, see [Phrase Hints](/speech-to-text/docs/basics#phrase-hints).
275+
// *Optional* array of
276+
// [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext]. A means to
277+
// provide context to assist the speech recognition. For more information, see
278+
// [Phrase Hints](/speech-to-text/docs/basics#phrase-hints).
275279
repeated SpeechContext speech_contexts = 6;
276280

277281
// *Optional* If `true`, the top result includes a list of words and
@@ -511,8 +515,8 @@ message SpeechContext {
511515

512516
// Contains audio data in the encoding specified in the `RecognitionConfig`.
513517
// Either `content` or `uri` must be supplied. Supplying both or neither
514-
// returns [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. See
515-
// [content limits](/speech-to-text/quotas#content).
518+
// returns [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT].
519+
// See [content limits](/speech-to-text/quotas#content).
516520
message RecognitionAudio {
517521
// The audio source, which is either inline content or a Google Cloud
518522
// Storage uri.
@@ -527,8 +531,9 @@ message RecognitionAudio {
527531
// Currently, only Google Cloud Storage URIs are
528532
// supported, which must be specified in the following format:
529533
// `gs://bucket_name/object_name` (other URI formats return
530-
// [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see
531-
// [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
534+
// [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]).
535+
// For more information, see [Request
536+
// URIs](https://cloud.google.com/storage/docs/reference-uris).
532537
string uri = 2;
533538
}
534539
}
@@ -633,8 +638,8 @@ message StreamingRecognizeResponse {
633638
END_OF_SINGLE_UTTERANCE = 1;
634639
}
635640

636-
// Output only. If set, returns a [google.rpc.Status][google.rpc.Status] message that
637-
// specifies the error for the operation.
641+
// Output only. If set, returns a [google.rpc.Status][google.rpc.Status]
642+
// message that specifies the error for the operation.
638643
google.rpc.Status error = 1;
639644

640645
// Output only. This repeated list contains zero or more results that

speech/synth.metadata

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
2-
"updateTime": "2019-02-20T18:17:05.367521Z",
2+
"updateTime": "2019-02-26T13:26:32.870359Z",
33
"sources": [
44
{
55
"generator": {
66
"name": "artman",
7-
"version": "0.16.13",
8-
"dockerImage": "googleapis/artman@sha256:5fd9aee1d82a00cebf425c8fa431f5457539562f5867ad9c54370f0ec9a7ccaa"
7+
"version": "0.16.14",
8+
"dockerImage": "googleapis/artman@sha256:f3d61ae45abaeefb6be5f228cda22732c2f1b00fb687c79c4bd4f2c42bb1e1a7"
99
}
1010
},
1111
{
1212
"git": {
1313
"name": "googleapis",
1414
"remote": "https://github.com/googleapis/googleapis.git",
15-
"sha": "18ab81eec27942a942622d5a8d9c9e7a202e8c16",
16-
"internalRef": "234814197"
15+
"sha": "29f098cb03a9983cc9cb15993de5da64419046f2",
16+
"internalRef": "235621085"
1717
}
1818
},
1919
{

0 commit comments

Comments
 (0)