Skip to content

Commit e7fd065

Browse files
committed
added license
1 parent 115bbf8 commit e7fd065

File tree

4 files changed

+22
-17
lines changed

4 files changed

+22
-17
lines changed

speech/grpc/pom.xml

+8-7
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@ limitations under the License.
2525
<url>https://cloud.google.com/speech/</url>
2626
<inceptionYear>2016</inceptionYear>
2727

28+
<!-- Parent defines plugins for checkstyle and unit testing. -->
29+
<parent>
30+
<groupId>com.google.cloud</groupId>
31+
<artifactId>shared-configuration</artifactId>
32+
<version>1.0.0</version>
33+
<relativePath>../../java-repo-tools</relativePath>
34+
</parent>
35+
2836
<licenses>
2937
<license>
3038
<name>Apache 2</name>
@@ -38,13 +46,6 @@ limitations under the License.
3846
<url>http://www.google.com</url>
3947
</organization>
4048

41-
<parent>
42-
<groupId>com.google.cloud</groupId>
43-
<artifactId>doc-samples</artifactId>
44-
<version>1.0.0</version>
45-
<relativePath>../..</relativePath>
46-
</parent>
47-
4849
<properties>
4950
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
5051
</properties>

speech/grpc/src/main/java/com/examples/cloud/speech/StreamingRecognizeClient.java

-5
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package com.examples.cloud.speech;
1818

19-
import com.google.auth.oauth2.GoogleCredentials;
2019
import com.google.cloud.speech.v1beta1.RecognitionConfig;
2120
import com.google.cloud.speech.v1beta1.RecognitionConfig.AudioEncoding;
2221
import com.google.cloud.speech.v1beta1.SpeechGrpc;
@@ -28,9 +27,6 @@
2827

2928
import io.grpc.ManagedChannel;
3029
import io.grpc.Status;
31-
import io.grpc.auth.ClientAuthInterceptor;
32-
import io.grpc.netty.NegotiationType;
33-
import io.grpc.netty.NettyChannelBuilder;
3430
import io.grpc.stub.StreamObserver;
3531

3632
import org.apache.commons.cli.CommandLine;
@@ -46,7 +42,6 @@
4642
import java.util.Arrays;
4743
import java.util.List;
4844
import java.util.concurrent.CountDownLatch;
49-
import java.util.concurrent.Executors;
5045
import java.util.concurrent.TimeUnit;
5146
import java.util.logging.Level;
5247
import java.util.logging.Logger;

speech/grpc/src/main/java/com/examples/cloud/speech/SyncRecognizeClient.java

-5
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package com.examples.cloud.speech;
1818

19-
import com.google.auth.oauth2.GoogleCredentials;
2019
import com.google.cloud.speech.v1beta1.RecognitionAudio;
2120
import com.google.cloud.speech.v1beta1.RecognitionConfig;
2221
import com.google.cloud.speech.v1beta1.RecognitionConfig.AudioEncoding;
@@ -27,9 +26,6 @@
2726

2827
import io.grpc.ManagedChannel;
2928
import io.grpc.StatusRuntimeException;
30-
import io.grpc.auth.ClientAuthInterceptor;
31-
import io.grpc.netty.NegotiationType;
32-
import io.grpc.netty.NettyChannelBuilder;
3329

3430
import org.apache.commons.cli.CommandLine;
3531
import org.apache.commons.cli.CommandLineParser;
@@ -42,7 +38,6 @@
4238
import java.net.URI;
4339
import java.util.Arrays;
4440
import java.util.List;
45-
import java.util.concurrent.Executors;
4641
import java.util.concurrent.TimeUnit;
4742
import java.util.logging.Level;
4843
import java.util.logging.Logger;

speech/grpc/src/main/proto/google/speech/v1beta1/cloud_speech.proto

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

317
package google.cloud.speech.v1beta1;

0 commit comments

Comments
 (0)