-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(bazel): update protobuf to v3.21.7 (#956)
- [ ] 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
1 parent
93706b3
commit 15db8d7
Showing
306 changed files
with
117,337 additions
and
6,834 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3,858 changes: 3,858 additions & 0 deletions
3,858
java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechClient.java
Large diffs are not rendered by default.
Oops, something went wrong.
608 changes: 608 additions & 0 deletions
608
java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechSettings.java
Large diffs are not rendered by default.
Oops, something went wrong.
87 changes: 87 additions & 0 deletions
87
java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/gapic_metadata.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
43 changes: 43 additions & 0 deletions
43
java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/package-info.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; |
113 changes: 113 additions & 0 deletions
113
...cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/GrpcSpeechCallableFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
} | ||
} |
Oops, something went wrong.