Skip to content

Commit c894cdd

Browse files
committed
Update based on style guidelines
1 parent 0532936 commit c894cdd

File tree

4 files changed

+59
-59
lines changed

4 files changed

+59
-59
lines changed

speech/cloud-client/src/main/java/com/example/speech/QuickstartSample.java

+15-15
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
/*
2-
Copyright 2018, Google Inc.
3-
4-
Licensed under the Apache License, Version 2.0 (the "License");
5-
you may not use this file except in compliance with the License.
6-
You may obtain a copy of the License at
7-
8-
http://www.apache.org/licenses/LICENSE-2.0
9-
10-
Unless required by applicable law or agreed to in writing, software
11-
distributed under the License is distributed on an "AS IS" BASIS,
12-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
See the License for the specific language governing permissions and
14-
limitations under the License.
15-
*/
2+
* Copyright 2018 Google Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
1616

1717
package com.example.speech;
1818

1919
// [START speech_quickstart]
2020
// Imports the Google Cloud client library
21-
import com.google.cloud.speech.v1p1beta1.SpeechClient;
2221
import com.google.cloud.speech.v1p1beta1.RecognitionAudio;
2322
import com.google.cloud.speech.v1p1beta1.RecognitionConfig;
2423
import com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding;
2524
import com.google.cloud.speech.v1p1beta1.RecognizeResponse;
25+
import com.google.cloud.speech.v1p1beta1.SpeechClient;
2626
import com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative;
2727
import com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult;
2828
import com.google.protobuf.ByteString;

speech/cloud-client/src/main/java/com/example/speech/Recognize.java

+16-16
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
/*
2-
Copyright 2018, Google Inc.
3-
4-
Licensed under the Apache License, Version 2.0 (the "License");
5-
you may not use this file except in compliance with the License.
6-
You may obtain a copy of the License at
7-
8-
http://www.apache.org/licenses/LICENSE-2.0
9-
10-
Unless required by applicable law or agreed to in writing, software
11-
distributed under the License is distributed on an "AS IS" BASIS,
12-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
See the License for the specific language governing permissions and
14-
limitations under the License.
15-
*/
2+
* Copyright 2018 Google Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
1616

1717
package com.example.speech;
1818

1919
import com.google.api.gax.longrunning.OperationFuture;
2020
import com.google.api.gax.rpc.ApiStreamObserver;
2121
import com.google.api.gax.rpc.BidiStreamingCallable;
22-
import com.google.cloud.speech.v1p1beta1.SpeechClient;
2322
import com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata;
2423
import com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse;
2524
import com.google.cloud.speech.v1p1beta1.RecognitionAudio;
2625
import com.google.cloud.speech.v1p1beta1.RecognitionConfig;
2726
import com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding;
2827
import com.google.cloud.speech.v1p1beta1.RecognizeResponse;
28+
import com.google.cloud.speech.v1p1beta1.SpeechClient;
2929
import com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative;
3030
import com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult;
3131
import com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig;
@@ -448,7 +448,7 @@ public static void transcribeVideoFile(String fileName) throws Exception {
448448
// There can be several alternative transcripts for a given chunk of speech. Just use the
449449
// first (most likely) one here.
450450
SpeechRecognitionAlternative alternative = result.getAlternativesList().get(0);
451-
System.out.printf("Transcript : %s\n", alternative.getTranscript());
451+
System.out.printf("Transcript : %s\n", alternative.getTranscript());
452452
}
453453
// [END speech_transcribe_model_selection]
454454
}

speech/cloud-client/src/test/java/com/example/speech/QuickstartSampleIT.java

+14-14
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
/*
2-
Copyright 2018, Google, Inc.
3-
4-
Licensed under the Apache License, Version 2.0 (the "License");
5-
you may not use this file except in compliance with the License.
6-
You may obtain a copy of the License at
7-
8-
http://www.apache.org/licenses/LICENSE-2.0
9-
10-
Unless required by applicable law or agreed to in writing, software
11-
distributed under the License is distributed on an "AS IS" BASIS,
12-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
See the License for the specific language governing permissions and
14-
limitations under the License.
15-
*/
2+
* Copyright 2018 Google Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
1616

1717
package com.example.speech;
1818

speech/cloud-client/src/test/java/com/example/speech/RecognizeIT.java

+14-14
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
/*
2-
Copyright 2018, Google, Inc.
3-
4-
Licensed under the Apache License, Version 2.0 (the "License");
5-
you may not use this file except in compliance with the License.
6-
You may obtain a copy of the License at
7-
8-
http://www.apache.org/licenses/LICENSE-2.0
9-
10-
Unless required by applicable law or agreed to in writing, software
11-
distributed under the License is distributed on an "AS IS" BASIS,
12-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
See the License for the specific language governing permissions and
14-
limitations under the License.
15-
*/
2+
* Copyright 2018 Google Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
1616

1717
package com.example.speech;
1818

0 commit comments

Comments
 (0)