55 * you may not use this file except in compliance with the License.
66 * You may obtain a copy of the License at
77 *
8- * https://www.apache.org/licenses/LICENSE-2.0
8+ * https://www.apache.org/licenses/LICENSE-2.0
99 *
1010 * Unless required by applicable law or agreed to in writing, software
1111 * distributed under the License is distributed on an "AS IS" BASIS,
1212 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313 * See the License for the specific language governing permissions and
1414 * limitations under the License.
1515 */
16+
1617package com .google .cloud .speech .v1 .stub ;
1718
18- import com .google .api .core .BetaApi ;
1919import com .google .api .gax .grpc .GrpcCallSettings ;
2020import com .google .api .gax .grpc .GrpcCallableFactory ;
2121import com .google .api .gax .grpc .GrpcStubCallableFactory ;
3131import com .google .api .gax .rpc .StreamingCallSettings ;
3232import com .google .api .gax .rpc .UnaryCallSettings ;
3333import com .google .api .gax .rpc .UnaryCallable ;
34+ import com .google .longrunning .Operation ;
3435import com .google .longrunning .stub .OperationsStub ;
3536import javax .annotation .Generated ;
3637
37- // AUTO-GENERATED DOCUMENTATION AND CLASS
38+ // AUTO-GENERATED DOCUMENTATION AND CLASS.
3839/**
39- * gRPC callable factory implementation for Cloud Speech-to-Text API.
40+ * gRPC callable factory implementation for the Speech service API.
4041 *
4142 * <p>This class is for advanced usage.
4243 */
4344@ Generated ("by gapic-generator" )
44- @ BetaApi ("The surface for use by generated code is not stable yet and may change in the future." )
4545public class GrpcSpeechCallableFactory implements GrpcStubCallableFactory {
46+
4647 @ Override
4748 public <RequestT , ResponseT > UnaryCallable <RequestT , ResponseT > createUnaryCallable (
4849 GrpcCallSettings <RequestT , ResponseT > grpcCallSettings ,
@@ -55,61 +56,58 @@ public <RequestT, ResponseT> UnaryCallable<RequestT, ResponseT> createUnaryCalla
5556 public <RequestT , ResponseT , PagedListResponseT >
5657 UnaryCallable <RequestT , PagedListResponseT > createPagedCallable (
5758 GrpcCallSettings <RequestT , ResponseT > grpcCallSettings ,
58- PagedCallSettings <RequestT , ResponseT , PagedListResponseT > pagedCallSettings ,
59+ PagedCallSettings <RequestT , ResponseT , PagedListResponseT > callSettings ,
5960 ClientContext clientContext ) {
60- return GrpcCallableFactory .createPagedCallable (
61- grpcCallSettings , pagedCallSettings , clientContext );
61+ return GrpcCallableFactory .createPagedCallable (grpcCallSettings , callSettings , clientContext );
6262 }
6363
6464 @ Override
6565 public <RequestT , ResponseT > UnaryCallable <RequestT , ResponseT > createBatchingCallable (
6666 GrpcCallSettings <RequestT , ResponseT > grpcCallSettings ,
67- BatchingCallSettings <RequestT , ResponseT > batchingCallSettings ,
67+ BatchingCallSettings <RequestT , ResponseT > callSettings ,
6868 ClientContext clientContext ) {
6969 return GrpcCallableFactory .createBatchingCallable (
70- grpcCallSettings , batchingCallSettings , clientContext );
70+ grpcCallSettings , callSettings , clientContext );
7171 }
7272
73- @ BetaApi (
74- "The surface for long-running operations is not stable yet and may change in the future." )
7573 @ Override
7674 public <RequestT , ResponseT , MetadataT >
7775 OperationCallable <RequestT , ResponseT , MetadataT > createOperationCallable (
78- GrpcCallSettings <RequestT , com . google . longrunning . Operation > grpcCallSettings ,
79- OperationCallSettings <RequestT , ResponseT , MetadataT > operationCallSettings ,
76+ GrpcCallSettings <RequestT , Operation > grpcCallSettings ,
77+ OperationCallSettings <RequestT , ResponseT , MetadataT > callSettings ,
8078 ClientContext clientContext ,
8179 OperationsStub operationsStub ) {
8280 return GrpcCallableFactory .createOperationCallable (
83- grpcCallSettings , operationCallSettings , clientContext , operationsStub );
81+ grpcCallSettings , callSettings , clientContext , operationsStub );
8482 }
8583
8684 @ Override
8785 public <RequestT , ResponseT >
8886 BidiStreamingCallable <RequestT , ResponseT > createBidiStreamingCallable (
8987 GrpcCallSettings <RequestT , ResponseT > grpcCallSettings ,
90- StreamingCallSettings <RequestT , ResponseT > streamingCallSettings ,
88+ StreamingCallSettings <RequestT , ResponseT > callSettings ,
9189 ClientContext clientContext ) {
9290 return GrpcCallableFactory .createBidiStreamingCallable (
93- grpcCallSettings , streamingCallSettings , clientContext );
91+ grpcCallSettings , callSettings , clientContext );
9492 }
9593
9694 @ Override
9795 public <RequestT , ResponseT >
9896 ServerStreamingCallable <RequestT , ResponseT > createServerStreamingCallable (
9997 GrpcCallSettings <RequestT , ResponseT > grpcCallSettings ,
100- ServerStreamingCallSettings <RequestT , ResponseT > streamingCallSettings ,
98+ ServerStreamingCallSettings <RequestT , ResponseT > callSettings ,
10199 ClientContext clientContext ) {
102100 return GrpcCallableFactory .createServerStreamingCallable (
103- grpcCallSettings , streamingCallSettings , clientContext );
101+ grpcCallSettings , callSettings , clientContext );
104102 }
105103
106104 @ Override
107105 public <RequestT , ResponseT >
108106 ClientStreamingCallable <RequestT , ResponseT > createClientStreamingCallable (
109107 GrpcCallSettings <RequestT , ResponseT > grpcCallSettings ,
110- StreamingCallSettings <RequestT , ResponseT > streamingCallSettings ,
108+ StreamingCallSettings <RequestT , ResponseT > callSettings ,
111109 ClientContext clientContext ) {
112110 return GrpcCallableFactory .createClientStreamingCallable (
113- grpcCallSettings , streamingCallSettings , clientContext );
111+ grpcCallSettings , callSettings , clientContext );
114112 }
115113}
0 commit comments