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

Commit

Permalink
chore(bazel): update protobuf to v3.21.7 (#956)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 477955264

Source-Link: https://togithub.com/googleapis/googleapis/commit/a724450af76d0001f23602684c49cd6a4b3a5654

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/4abcbcaec855e74a0b22a4988cf9e0eb61a83094
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGFiY2JjYWVjODU1ZTc0YTBiMjJhNDk4OGNmOWUwZWI2MWE4MzA5NCJ9

build: enable Speech v2 client library generation

PiperOrigin-RevId: 477910378

Source-Link: https://togithub.com/googleapis/googleapis/commit/3fde7ab75e8161d7fa66984dd1705b02a354a035

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/636957906cc7868065a50cef61f5e995a75ae3e6
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjM2OTU3OTA2Y2M3ODY4MDY1YTUwY2VmNjFmNWU5OTVhNzVhZTNlNiJ9

fix!: temporarily removed language rules from Speech-to-Text V2 API BUILD.bazel file

PiperOrigin-RevId: 475956674

Source-Link: https://togithub.com/googleapis/googleapis/commit/210422e82d7077829aa5270a9894fa667782182d

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/43a371600cebdecaa8186f47920a9a471182dd5b
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNDNhMzcxNjAwY2ViZGVjYWE4MTg2ZjQ3OTIwYTlhNDcxMTgyZGQ1YiJ9

feat: added Speech-to-Text V2 API proto

The next generation Speech-to-Text V2 API provides the same features clients are familiar with in the existing Speech-to-Text API, while modernizing and simplifying the API using API best practices, resourceful methods, and updated infrastructure. Although this proto is published, the service is not yet available.

PiperOrigin-RevId: 474926510

Source-Link: https://togithub.com/googleapis/googleapis/commit/bb4d7f49441884fdfffa2d7552254d8540a597e2

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/9ecdb75038b10cfe4685d8a301e2abf8e4dfaa48
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOWVjZGI3NTAzOGIxMGNmZTQ2ODVkOGEzMDFlMmFiZjhlNGRmYWE0OCJ9
  • Loading branch information
gcf-owl-bot[bot] committed Oct 4, 2022
1 parent 1ed2f89 commit 7a00dfa
Show file tree
Hide file tree
Showing 306 changed files with 117,337 additions and 6,834 deletions.
10 changes: 10 additions & 0 deletions google-cloud-speech-bom/pom.xml
Expand Up @@ -70,6 +70,11 @@
<artifactId>grpc-google-cloud-speech-v1p1beta1</artifactId>
<version>0.89.10-SNAPSHOT</version><!-- {x-version-update:grpc-google-cloud-speech-v1p1beta1:current} -->
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>grpc-google-cloud-speech-v2</artifactId>
<version>2.5.10-SNAPSHOT</version><!-- {x-version-update:grpc-google-cloud-speech-v2:current} -->
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>proto-google-cloud-speech-v1</artifactId>
Expand All @@ -85,6 +90,11 @@
<artifactId>proto-google-cloud-speech-v1p1beta1</artifactId>
<version>0.89.10-SNAPSHOT</version><!-- {x-version-update:proto-google-cloud-speech-v1p1beta1:current} -->
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>proto-google-cloud-speech-v2</artifactId>
<version>2.5.10-SNAPSHOT</version><!-- {x-version-update:proto-google-cloud-speech-v2:current} -->
</dependency>
</dependencies>
</dependencyManagement>

Expand Down
9 changes: 9 additions & 0 deletions google-cloud-speech/pom.xml
Expand Up @@ -23,6 +23,10 @@
<groupId>com.google.api.grpc</groupId>
<artifactId>proto-google-cloud-speech-v1p1beta1</artifactId>
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>proto-google-cloud-speech-v2</artifactId>
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>proto-google-cloud-speech-v1beta1</artifactId>
Expand Down Expand Up @@ -87,6 +91,11 @@
<artifactId>grpc-google-cloud-speech-v1p1beta1</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>grpc-google-cloud-speech-v2</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>grpc-google-cloud-speech-v1beta1</artifactId>
Expand Down
3,858 changes: 3,858 additions & 0 deletions google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechClient.java

Large diffs are not rendered by default.

Large diffs are not rendered by default.

@@ -0,0 +1,87 @@
{
"schema": "1.0",
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
"language": "java",
"protoPackage": "google.cloud.speech.v2",
"libraryPackage": "com.google.cloud.speech.v2",
"services": {
"Speech": {
"clients": {
"grpc": {
"libraryClient": "SpeechClient",
"rpcs": {
"BatchRecognize": {
"methods": ["batchRecognizeAsync", "batchRecognizeAsync", "batchRecognizeAsync", "batchRecognizeOperationCallable", "batchRecognizeCallable"]
},
"CreateCustomClass": {
"methods": ["createCustomClassAsync", "createCustomClassAsync", "createCustomClassAsync", "createCustomClassOperationCallable", "createCustomClassCallable"]
},
"CreatePhraseSet": {
"methods": ["createPhraseSetAsync", "createPhraseSetAsync", "createPhraseSetAsync", "createPhraseSetOperationCallable", "createPhraseSetCallable"]
},
"CreateRecognizer": {
"methods": ["createRecognizerAsync", "createRecognizerAsync", "createRecognizerAsync", "createRecognizerOperationCallable", "createRecognizerCallable"]
},
"DeleteCustomClass": {
"methods": ["deleteCustomClassAsync", "deleteCustomClassAsync", "deleteCustomClassAsync", "deleteCustomClassOperationCallable", "deleteCustomClassCallable"]
},
"DeletePhraseSet": {
"methods": ["deletePhraseSetAsync", "deletePhraseSetAsync", "deletePhraseSetAsync", "deletePhraseSetOperationCallable", "deletePhraseSetCallable"]
},
"DeleteRecognizer": {
"methods": ["deleteRecognizerAsync", "deleteRecognizerAsync", "deleteRecognizerAsync", "deleteRecognizerOperationCallable", "deleteRecognizerCallable"]
},
"GetConfig": {
"methods": ["getConfig", "getConfig", "getConfig", "getConfigCallable"]
},
"GetCustomClass": {
"methods": ["getCustomClass", "getCustomClass", "getCustomClass", "getCustomClassCallable"]
},
"GetPhraseSet": {
"methods": ["getPhraseSet", "getPhraseSet", "getPhraseSet", "getPhraseSetCallable"]
},
"GetRecognizer": {
"methods": ["getRecognizer", "getRecognizer", "getRecognizer", "getRecognizerCallable"]
},
"ListCustomClasses": {
"methods": ["listCustomClasses", "listCustomClasses", "listCustomClasses", "listCustomClassesPagedCallable", "listCustomClassesCallable"]
},
"ListPhraseSets": {
"methods": ["listPhraseSets", "listPhraseSets", "listPhraseSets", "listPhraseSetsPagedCallable", "listPhraseSetsCallable"]
},
"ListRecognizers": {
"methods": ["listRecognizers", "listRecognizers", "listRecognizers", "listRecognizersPagedCallable", "listRecognizersCallable"]
},
"Recognize": {
"methods": ["recognize", "recognize", "recognize", "recognize", "recognize", "recognizeCallable"]
},
"StreamingRecognize": {
"methods": ["streamingRecognizeCallable"]
},
"UndeleteCustomClass": {
"methods": ["undeleteCustomClassAsync", "undeleteCustomClassAsync", "undeleteCustomClassAsync", "undeleteCustomClassOperationCallable", "undeleteCustomClassCallable"]
},
"UndeletePhraseSet": {
"methods": ["undeletePhraseSetAsync", "undeletePhraseSetAsync", "undeletePhraseSetAsync", "undeletePhraseSetOperationCallable", "undeletePhraseSetCallable"]
},
"UndeleteRecognizer": {
"methods": ["undeleteRecognizerAsync", "undeleteRecognizerAsync", "undeleteRecognizerAsync", "undeleteRecognizerOperationCallable", "undeleteRecognizerCallable"]
},
"UpdateConfig": {
"methods": ["updateConfig", "updateConfig", "updateConfigCallable"]
},
"UpdateCustomClass": {
"methods": ["updateCustomClassAsync", "updateCustomClassAsync", "updateCustomClassOperationCallable", "updateCustomClassCallable"]
},
"UpdatePhraseSet": {
"methods": ["updatePhraseSetAsync", "updatePhraseSetAsync", "updatePhraseSetOperationCallable", "updatePhraseSetCallable"]
},
"UpdateRecognizer": {
"methods": ["updateRecognizerAsync", "updateRecognizerAsync", "updateRecognizerOperationCallable", "updateRecognizerCallable"]
}
}
}
}
}
}
}
@@ -0,0 +1,43 @@
/*
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

/**
* A client to Cloud Speech-to-Text API
*
* <p>The interfaces provided are listed below, along with usage samples.
*
* <p>======================= SpeechClient =======================
*
* <p>Service Description: Enables speech transcription and resource management.
*
* <p>Sample for SpeechClient:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SpeechClient speechClient = SpeechClient.create()) {
* RecognizerName name = RecognizerName.of("[PROJECT]", "[LOCATION]", "[RECOGNIZER]");
* Recognizer response = speechClient.getRecognizer(name);
* }
* }</pre>
*/
@Generated("by gapic-generator-java")
package com.google.cloud.speech.v2;

import javax.annotation.Generated;
@@ -0,0 +1,113 @@
/*
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.google.cloud.speech.v2.stub;

import com.google.api.gax.grpc.GrpcCallSettings;
import com.google.api.gax.grpc.GrpcCallableFactory;
import com.google.api.gax.grpc.GrpcStubCallableFactory;
import com.google.api.gax.rpc.BatchingCallSettings;
import com.google.api.gax.rpc.BidiStreamingCallable;
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.ClientStreamingCallable;
import com.google.api.gax.rpc.OperationCallSettings;
import com.google.api.gax.rpc.OperationCallable;
import com.google.api.gax.rpc.PagedCallSettings;
import com.google.api.gax.rpc.ServerStreamingCallSettings;
import com.google.api.gax.rpc.ServerStreamingCallable;
import com.google.api.gax.rpc.StreamingCallSettings;
import com.google.api.gax.rpc.UnaryCallSettings;
import com.google.api.gax.rpc.UnaryCallable;
import com.google.longrunning.Operation;
import com.google.longrunning.stub.OperationsStub;
import javax.annotation.Generated;

// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
* gRPC callable factory implementation for the Speech service API.
*
* <p>This class is for advanced usage.
*/
@Generated("by gapic-generator-java")
public class GrpcSpeechCallableFactory implements GrpcStubCallableFactory {

@Override
public <RequestT, ResponseT> UnaryCallable<RequestT, ResponseT> createUnaryCallable(
GrpcCallSettings<RequestT, ResponseT> grpcCallSettings,
UnaryCallSettings<RequestT, ResponseT> callSettings,
ClientContext clientContext) {
return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext);
}

@Override
public <RequestT, ResponseT, PagedListResponseT>
UnaryCallable<RequestT, PagedListResponseT> createPagedCallable(
GrpcCallSettings<RequestT, ResponseT> grpcCallSettings,
PagedCallSettings<RequestT, ResponseT, PagedListResponseT> callSettings,
ClientContext clientContext) {
return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext);
}

@Override
public <RequestT, ResponseT> UnaryCallable<RequestT, ResponseT> createBatchingCallable(
GrpcCallSettings<RequestT, ResponseT> grpcCallSettings,
BatchingCallSettings<RequestT, ResponseT> callSettings,
ClientContext clientContext) {
return GrpcCallableFactory.createBatchingCallable(
grpcCallSettings, callSettings, clientContext);
}

@Override
public <RequestT, ResponseT, MetadataT>
OperationCallable<RequestT, ResponseT, MetadataT> createOperationCallable(
GrpcCallSettings<RequestT, Operation> grpcCallSettings,
OperationCallSettings<RequestT, ResponseT, MetadataT> callSettings,
ClientContext clientContext,
OperationsStub operationsStub) {
return GrpcCallableFactory.createOperationCallable(
grpcCallSettings, callSettings, clientContext, operationsStub);
}

@Override
public <RequestT, ResponseT>
BidiStreamingCallable<RequestT, ResponseT> createBidiStreamingCallable(
GrpcCallSettings<RequestT, ResponseT> grpcCallSettings,
StreamingCallSettings<RequestT, ResponseT> callSettings,
ClientContext clientContext) {
return GrpcCallableFactory.createBidiStreamingCallable(
grpcCallSettings, callSettings, clientContext);
}

@Override
public <RequestT, ResponseT>
ServerStreamingCallable<RequestT, ResponseT> createServerStreamingCallable(
GrpcCallSettings<RequestT, ResponseT> grpcCallSettings,
ServerStreamingCallSettings<RequestT, ResponseT> callSettings,
ClientContext clientContext) {
return GrpcCallableFactory.createServerStreamingCallable(
grpcCallSettings, callSettings, clientContext);
}

@Override
public <RequestT, ResponseT>
ClientStreamingCallable<RequestT, ResponseT> createClientStreamingCallable(
GrpcCallSettings<RequestT, ResponseT> grpcCallSettings,
StreamingCallSettings<RequestT, ResponseT> callSettings,
ClientContext clientContext) {
return GrpcCallableFactory.createClientStreamingCallable(
grpcCallSettings, callSettings, clientContext);
}
}

0 comments on commit 7a00dfa

Please sign in to comment.