5
5
* you may not use this file except in compliance with the License.
6
6
* You may obtain a copy of the License at
7
7
*
8
- * https://www.apache.org/licenses/LICENSE-2.0
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
9
*
10
10
* Unless required by applicable law or agreed to in writing, software
11
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
* See the License for the specific language governing permissions and
14
14
* limitations under the License.
15
15
*/
16
+
16
17
package com .google .cloud .workflows .v1beta .stub ;
17
18
18
- import com .google .api .core .BetaApi ;
19
19
import com .google .api .gax .grpc .GrpcCallSettings ;
20
20
import com .google .api .gax .grpc .GrpcCallableFactory ;
21
21
import com .google .api .gax .grpc .GrpcStubCallableFactory ;
31
31
import com .google .api .gax .rpc .StreamingCallSettings ;
32
32
import com .google .api .gax .rpc .UnaryCallSettings ;
33
33
import com .google .api .gax .rpc .UnaryCallable ;
34
+ import com .google .longrunning .Operation ;
34
35
import com .google .longrunning .stub .OperationsStub ;
35
36
import javax .annotation .Generated ;
36
37
37
- // AUTO-GENERATED DOCUMENTATION AND CLASS
38
+ // AUTO-GENERATED DOCUMENTATION AND CLASS.
38
39
/**
39
- * gRPC callable factory implementation for Workflows API.
40
+ * gRPC callable factory implementation for the Workflows service API.
40
41
*
41
42
* <p>This class is for advanced usage.
42
43
*/
43
44
@ Generated ("by gapic-generator" )
44
- @ BetaApi ("The surface for use by generated code is not stable yet and may change in the future." )
45
45
public class GrpcWorkflowsCallableFactory implements GrpcStubCallableFactory {
46
+
46
47
@ Override
47
48
public <RequestT , ResponseT > UnaryCallable <RequestT , ResponseT > createUnaryCallable (
48
49
GrpcCallSettings <RequestT , ResponseT > grpcCallSettings ,
@@ -55,61 +56,58 @@ public <RequestT, ResponseT> UnaryCallable<RequestT, ResponseT> createUnaryCalla
55
56
public <RequestT , ResponseT , PagedListResponseT >
56
57
UnaryCallable <RequestT , PagedListResponseT > createPagedCallable (
57
58
GrpcCallSettings <RequestT , ResponseT > grpcCallSettings ,
58
- PagedCallSettings <RequestT , ResponseT , PagedListResponseT > pagedCallSettings ,
59
+ PagedCallSettings <RequestT , ResponseT , PagedListResponseT > callSettings ,
59
60
ClientContext clientContext ) {
60
- return GrpcCallableFactory .createPagedCallable (
61
- grpcCallSettings , pagedCallSettings , clientContext );
61
+ return GrpcCallableFactory .createPagedCallable (grpcCallSettings , callSettings , clientContext );
62
62
}
63
63
64
64
@ Override
65
65
public <RequestT , ResponseT > UnaryCallable <RequestT , ResponseT > createBatchingCallable (
66
66
GrpcCallSettings <RequestT , ResponseT > grpcCallSettings ,
67
- BatchingCallSettings <RequestT , ResponseT > batchingCallSettings ,
67
+ BatchingCallSettings <RequestT , ResponseT > callSettings ,
68
68
ClientContext clientContext ) {
69
69
return GrpcCallableFactory .createBatchingCallable (
70
- grpcCallSettings , batchingCallSettings , clientContext );
70
+ grpcCallSettings , callSettings , clientContext );
71
71
}
72
72
73
- @ BetaApi (
74
- "The surface for long-running operations is not stable yet and may change in the future." )
75
73
@ Override
76
74
public <RequestT , ResponseT , MetadataT >
77
75
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 ,
80
78
ClientContext clientContext ,
81
79
OperationsStub operationsStub ) {
82
80
return GrpcCallableFactory .createOperationCallable (
83
- grpcCallSettings , operationCallSettings , clientContext , operationsStub );
81
+ grpcCallSettings , callSettings , clientContext , operationsStub );
84
82
}
85
83
86
84
@ Override
87
85
public <RequestT , ResponseT >
88
86
BidiStreamingCallable <RequestT , ResponseT > createBidiStreamingCallable (
89
87
GrpcCallSettings <RequestT , ResponseT > grpcCallSettings ,
90
- StreamingCallSettings <RequestT , ResponseT > streamingCallSettings ,
88
+ StreamingCallSettings <RequestT , ResponseT > callSettings ,
91
89
ClientContext clientContext ) {
92
90
return GrpcCallableFactory .createBidiStreamingCallable (
93
- grpcCallSettings , streamingCallSettings , clientContext );
91
+ grpcCallSettings , callSettings , clientContext );
94
92
}
95
93
96
94
@ Override
97
95
public <RequestT , ResponseT >
98
96
ServerStreamingCallable <RequestT , ResponseT > createServerStreamingCallable (
99
97
GrpcCallSettings <RequestT , ResponseT > grpcCallSettings ,
100
- ServerStreamingCallSettings <RequestT , ResponseT > streamingCallSettings ,
98
+ ServerStreamingCallSettings <RequestT , ResponseT > callSettings ,
101
99
ClientContext clientContext ) {
102
100
return GrpcCallableFactory .createServerStreamingCallable (
103
- grpcCallSettings , streamingCallSettings , clientContext );
101
+ grpcCallSettings , callSettings , clientContext );
104
102
}
105
103
106
104
@ Override
107
105
public <RequestT , ResponseT >
108
106
ClientStreamingCallable <RequestT , ResponseT > createClientStreamingCallable (
109
107
GrpcCallSettings <RequestT , ResponseT > grpcCallSettings ,
110
- StreamingCallSettings <RequestT , ResponseT > streamingCallSettings ,
108
+ StreamingCallSettings <RequestT , ResponseT > callSettings ,
111
109
ClientContext clientContext ) {
112
110
return GrpcCallableFactory .createClientStreamingCallable (
113
- grpcCallSettings , streamingCallSettings , clientContext );
111
+ grpcCallSettings , callSettings , clientContext );
114
112
}
115
113
}
0 commit comments