Debian Codegraph @

dialogflow/cx/apiv3beta1/cxpb/environment_grpc.pb.go

raw
1 // Copyright 2025 Google LLC
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
15 // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
16 // versions:
17 // - protoc-gen-go-grpc v1.3.0
18 // - protoc v4.25.7
19 // source: google/cloud/dialogflow/cx/v3beta1/environment.proto
20
21 package cxpb
22
23 import (
24 longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
25 context "context"
26 grpc "google.golang.org/grpc"
27 codes "google.golang.org/grpc/codes"
28 status "google.golang.org/grpc/status"
29 emptypb "google.golang.org/protobuf/types/known/emptypb"
30 )
31
32 // This is a compile-time assertion to ensure that this generated file
33 // is compatible with the grpc package it is being compiled against.
34 // Requires gRPC-Go v1.32.0 or later.
35 const _ = grpc.SupportPackageIsVersion7
36
37 const (
38 Environments_ListEnvironments_FullMethodName = "/google.cloud.dialogflow.cx.v3beta1.Environments/ListEnvironments"
39 Environments_GetEnvironment_FullMethodName = "/google.cloud.dialogflow.cx.v3beta1.Environments/GetEnvironment"
40 Environments_CreateEnvironment_FullMethodName = "/google.cloud.dialogflow.cx.v3beta1.Environments/CreateEnvironment"
41 Environments_UpdateEnvironment_FullMethodName = "/google.cloud.dialogflow.cx.v3beta1.Environments/UpdateEnvironment"
42 Environments_DeleteEnvironment_FullMethodName = "/google.cloud.dialogflow.cx.v3beta1.Environments/DeleteEnvironment"
43 Environments_LookupEnvironmentHistory_FullMethodName = "/google.cloud.dialogflow.cx.v3beta1.Environments/LookupEnvironmentHistory"
44 Environments_RunContinuousTest_FullMethodName = "/google.cloud.dialogflow.cx.v3beta1.Environments/RunContinuousTest"
45 Environments_ListContinuousTestResults_FullMethodName = "/google.cloud.dialogflow.cx.v3beta1.Environments/ListContinuousTestResults"
46 Environments_DeployFlow_FullMethodName = "/google.cloud.dialogflow.cx.v3beta1.Environments/DeployFlow"
47 )
48
49 // EnvironmentsClient is the client API for Environments service.
50 //
51 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
52 type EnvironmentsClient interface {
53 // Returns the list of all environments in the specified
54 // [Agent][google.cloud.dialogflow.cx.v3beta1.Agent].
55 ListEnvironments(ctx context.Context, in *ListEnvironmentsRequest, opts ...grpc.CallOption) (*ListEnvironmentsResponse, error)
56 // Retrieves the specified
57 // [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
58 GetEnvironment(ctx context.Context, in *GetEnvironmentRequest, opts ...grpc.CallOption) (*Environment, error)
59 // Creates an [Environment][google.cloud.dialogflow.cx.v3beta1.Environment] in
60 // the specified [Agent][google.cloud.dialogflow.cx.v3beta1.Agent].
61 //
62 // This method is a [long-running
63 // operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
64 // The returned `Operation` type has the following method-specific fields:
65 //
66 // - `metadata`: An empty [Struct
67 // message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
68 // - `response`: [Environment][google.cloud.dialogflow.cx.v3beta1.Environment]
69 CreateEnvironment(ctx context.Context, in *CreateEnvironmentRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
70 // Updates the specified
71 // [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
72 //
73 // This method is a [long-running
74 // operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
75 // The returned `Operation` type has the following method-specific fields:
76 //
77 // - `metadata`: An empty [Struct
78 // message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
79 // - `response`: [Environment][google.cloud.dialogflow.cx.v3beta1.Environment]
80 UpdateEnvironment(ctx context.Context, in *UpdateEnvironmentRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
81 // Deletes the specified
82 // [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
83 DeleteEnvironment(ctx context.Context, in *DeleteEnvironmentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
84 // Looks up the history of the specified
85 // [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
86 LookupEnvironmentHistory(ctx context.Context, in *LookupEnvironmentHistoryRequest, opts ...grpc.CallOption) (*LookupEnvironmentHistoryResponse, error)
87 // Kicks off a continuous test under the specified
88 // [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
89 //
90 // This method is a [long-running
91 // operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
92 // The returned `Operation` type has the following method-specific fields:
93 //
94 // - `metadata`:
95 // [RunContinuousTestMetadata][google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata]
96 // - `response`:
97 // [RunContinuousTestResponse][google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse]
98 RunContinuousTest(ctx context.Context, in *RunContinuousTestRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
99 // Fetches a list of continuous test results for a given environment.
100 ListContinuousTestResults(ctx context.Context, in *ListContinuousTestResultsRequest, opts ...grpc.CallOption) (*ListContinuousTestResultsResponse, error)
101 // Deploys a flow to the specified
102 // [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
103 //
104 // This method is a [long-running
105 // operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
106 // The returned `Operation` type has the following method-specific fields:
107 //
108 // - `metadata`:
109 // [DeployFlowMetadata][google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata]
110 // - `response`:
111 // [DeployFlowResponse][google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse]
112 DeployFlow(ctx context.Context, in *DeployFlowRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
113 }
114
115 type environmentsClient struct {
116 cc grpc.ClientConnInterface
117 }
118
119 func NewEnvironmentsClient(cc grpc.ClientConnInterface) EnvironmentsClient {
120 return &environmentsClient{cc}
121 }
122
123 func (c *environmentsClient) ListEnvironments(ctx context.Context, in *ListEnvironmentsRequest, opts ...grpc.CallOption) (*ListEnvironmentsResponse, error) {
124 out := new(ListEnvironmentsResponse)
125 err := c.cc.Invoke(ctx, Environments_ListEnvironments_FullMethodName, in, out, opts...)
126 if err != nil {
127 return nil, err
128 }
129 return out, nil
130 }
131
132 func (c *environmentsClient) GetEnvironment(ctx context.Context, in *GetEnvironmentRequest, opts ...grpc.CallOption) (*Environment, error) {
133 out := new(Environment)
134 err := c.cc.Invoke(ctx, Environments_GetEnvironment_FullMethodName, in, out, opts...)
135 if err != nil {
136 return nil, err
137 }
138 return out, nil
139 }
140
141 func (c *environmentsClient) CreateEnvironment(ctx context.Context, in *CreateEnvironmentRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
142 out := new(longrunningpb.Operation)
143 err := c.cc.Invoke(ctx, Environments_CreateEnvironment_FullMethodName, in, out, opts...)
144 if err != nil {
145 return nil, err
146 }
147 return out, nil
148 }
149
150 func (c *environmentsClient) UpdateEnvironment(ctx context.Context, in *UpdateEnvironmentRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
151 out := new(longrunningpb.Operation)
152 err := c.cc.Invoke(ctx, Environments_UpdateEnvironment_FullMethodName, in, out, opts...)
153 if err != nil {
154 return nil, err
155 }
156 return out, nil
157 }
158
159 func (c *environmentsClient) DeleteEnvironment(ctx context.Context, in *DeleteEnvironmentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
160 out := new(emptypb.Empty)
161 err := c.cc.Invoke(ctx, Environments_DeleteEnvironment_FullMethodName, in, out, opts...)
162 if err != nil {
163 return nil, err
164 }
165 return out, nil
166 }
167
168 func (c *environmentsClient) LookupEnvironmentHistory(ctx context.Context, in *LookupEnvironmentHistoryRequest, opts ...grpc.CallOption) (*LookupEnvironmentHistoryResponse, error) {
169 out := new(LookupEnvironmentHistoryResponse)
170 err := c.cc.Invoke(ctx, Environments_LookupEnvironmentHistory_FullMethodName, in, out, opts...)
171 if err != nil {
172 return nil, err
173 }
174 return out, nil
175 }
176
177 func (c *environmentsClient) RunContinuousTest(ctx context.Context, in *RunContinuousTestRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
178 out := new(longrunningpb.Operation)
179 err := c.cc.Invoke(ctx, Environments_RunContinuousTest_FullMethodName, in, out, opts...)
180 if err != nil {
181 return nil, err
182 }
183 return out, nil
184 }
185
186 func (c *environmentsClient) ListContinuousTestResults(ctx context.Context, in *ListContinuousTestResultsRequest, opts ...grpc.CallOption) (*ListContinuousTestResultsResponse, error) {
187 out := new(ListContinuousTestResultsResponse)
188 err := c.cc.Invoke(ctx, Environments_ListContinuousTestResults_FullMethodName, in, out, opts...)
189 if err != nil {
190 return nil, err
191 }
192 return out, nil
193 }
194
195 func (c *environmentsClient) DeployFlow(ctx context.Context, in *DeployFlowRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
196 out := new(longrunningpb.Operation)
197 err := c.cc.Invoke(ctx, Environments_DeployFlow_FullMethodName, in, out, opts...)
198 if err != nil {
199 return nil, err
200 }
201 return out, nil
202 }
203
204 // EnvironmentsServer is the server API for Environments service.
205 // All implementations should embed UnimplementedEnvironmentsServer
206 // for forward compatibility
207 type EnvironmentsServer interface {
208 // Returns the list of all environments in the specified
209 // [Agent][google.cloud.dialogflow.cx.v3beta1.Agent].
210 ListEnvironments(context.Context, *ListEnvironmentsRequest) (*ListEnvironmentsResponse, error)
211 // Retrieves the specified
212 // [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
213 GetEnvironment(context.Context, *GetEnvironmentRequest) (*Environment, error)
214 // Creates an [Environment][google.cloud.dialogflow.cx.v3beta1.Environment] in
215 // the specified [Agent][google.cloud.dialogflow.cx.v3beta1.Agent].
216 //
217 // This method is a [long-running
218 // operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
219 // The returned `Operation` type has the following method-specific fields:
220 //
221 // - `metadata`: An empty [Struct
222 // message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
223 // - `response`: [Environment][google.cloud.dialogflow.cx.v3beta1.Environment]
224 CreateEnvironment(context.Context, *CreateEnvironmentRequest) (*longrunningpb.Operation, error)
225 // Updates the specified
226 // [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
227 //
228 // This method is a [long-running
229 // operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
230 // The returned `Operation` type has the following method-specific fields:
231 //
232 // - `metadata`: An empty [Struct
233 // message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
234 // - `response`: [Environment][google.cloud.dialogflow.cx.v3beta1.Environment]
235 UpdateEnvironment(context.Context, *UpdateEnvironmentRequest) (*longrunningpb.Operation, error)
236 // Deletes the specified
237 // [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
238 DeleteEnvironment(context.Context, *DeleteEnvironmentRequest) (*emptypb.Empty, error)
239 // Looks up the history of the specified
240 // [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
241 LookupEnvironmentHistory(context.Context, *LookupEnvironmentHistoryRequest) (*LookupEnvironmentHistoryResponse, error)
242 // Kicks off a continuous test under the specified
243 // [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
244 //
245 // This method is a [long-running
246 // operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
247 // The returned `Operation` type has the following method-specific fields:
248 //
249 // - `metadata`:
250 // [RunContinuousTestMetadata][google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata]
251 // - `response`:
252 // [RunContinuousTestResponse][google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse]
253 RunContinuousTest(context.Context, *RunContinuousTestRequest) (*longrunningpb.Operation, error)
254 // Fetches a list of continuous test results for a given environment.
255 ListContinuousTestResults(context.Context, *ListContinuousTestResultsRequest) (*ListContinuousTestResultsResponse, error)
256 // Deploys a flow to the specified
257 // [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].
258 //
259 // This method is a [long-running
260 // operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
261 // The returned `Operation` type has the following method-specific fields:
262 //
263 // - `metadata`:
264 // [DeployFlowMetadata][google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata]
265 // - `response`:
266 // [DeployFlowResponse][google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse]
267 DeployFlow(context.Context, *DeployFlowRequest) (*longrunningpb.Operation, error)
268 }
269
270 // UnimplementedEnvironmentsServer should be embedded to have forward compatible implementations.
271 type UnimplementedEnvironmentsServer struct {
272 }
273
274 func (UnimplementedEnvironmentsServer) ListEnvironments(context.Context, *ListEnvironmentsRequest) (*ListEnvironmentsResponse, error) {
275 return nil, status.Errorf(codes.Unimplemented, "method ListEnvironments not implemented")
276 }
277 func (UnimplementedEnvironmentsServer) GetEnvironment(context.Context, *GetEnvironmentRequest) (*Environment, error) {
278 return nil, status.Errorf(codes.Unimplemented, "method GetEnvironment not implemented")
279 }
280 func (UnimplementedEnvironmentsServer) CreateEnvironment(context.Context, *CreateEnvironmentRequest) (*longrunningpb.Operation, error) {
281 return nil, status.Errorf(codes.Unimplemented, "method CreateEnvironment not implemented")
282 }
283 func (UnimplementedEnvironmentsServer) UpdateEnvironment(context.Context, *UpdateEnvironmentRequest) (*longrunningpb.Operation, error) {
284 return nil, status.Errorf(codes.Unimplemented, "method UpdateEnvironment not implemented")
285 }
286 func (UnimplementedEnvironmentsServer) DeleteEnvironment(context.Context, *DeleteEnvironmentRequest) (*emptypb.Empty, error) {
287 return nil, status.Errorf(codes.Unimplemented, "method DeleteEnvironment not implemented")
288 }
289 func (UnimplementedEnvironmentsServer) LookupEnvironmentHistory(context.Context, *LookupEnvironmentHistoryRequest) (*LookupEnvironmentHistoryResponse, error) {
290 return nil, status.Errorf(codes.Unimplemented, "method LookupEnvironmentHistory not implemented")
291 }
292 func (UnimplementedEnvironmentsServer) RunContinuousTest(context.Context, *RunContinuousTestRequest) (*longrunningpb.Operation, error) {
293 return nil, status.Errorf(codes.Unimplemented, "method RunContinuousTest not implemented")
294 }
295 func (UnimplementedEnvironmentsServer) ListContinuousTestResults(context.Context, *ListContinuousTestResultsRequest) (*ListContinuousTestResultsResponse, error) {
296 return nil, status.Errorf(codes.Unimplemented, "method ListContinuousTestResults not implemented")
297 }
298 func (UnimplementedEnvironmentsServer) DeployFlow(context.Context, *DeployFlowRequest) (*longrunningpb.Operation, error) {
299 return nil, status.Errorf(codes.Unimplemented, "method DeployFlow not implemented")
300 }
301
302 // UnsafeEnvironmentsServer may be embedded to opt out of forward compatibility for this service.
303 // Use of this interface is not recommended, as added methods to EnvironmentsServer will
304 // result in compilation errors.
305 type UnsafeEnvironmentsServer interface {
306 mustEmbedUnimplementedEnvironmentsServer()
307 }
308
309 func RegisterEnvironmentsServer(s grpc.ServiceRegistrar, srv EnvironmentsServer) {
310 s.RegisterService(&Environments_ServiceDesc, srv)
311 }
312
313 func _Environments_ListEnvironments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
314 in := new(ListEnvironmentsRequest)
315 if err := dec(in); err != nil {
316 return nil, err
317 }
318 if interceptor == nil {
319 return srv.(EnvironmentsServer).ListEnvironments(ctx, in)
320 }
321 info := &grpc.UnaryServerInfo{
322 Server: srv,
323 FullMethod: Environments_ListEnvironments_FullMethodName,
324 }
325 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
326 return srv.(EnvironmentsServer).ListEnvironments(ctx, req.(*ListEnvironmentsRequest))
327 }
328 return interceptor(ctx, in, info, handler)
329 }
330
331 func _Environments_GetEnvironment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
332 in := new(GetEnvironmentRequest)
333 if err := dec(in); err != nil {
334 return nil, err
335 }
336 if interceptor == nil {
337 return srv.(EnvironmentsServer).GetEnvironment(ctx, in)
338 }
339 info := &grpc.UnaryServerInfo{
340 Server: srv,
341 FullMethod: Environments_GetEnvironment_FullMethodName,
342 }
343 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
344 return srv.(EnvironmentsServer).GetEnvironment(ctx, req.(*GetEnvironmentRequest))
345 }
346 return interceptor(ctx, in, info, handler)
347 }
348
349 func _Environments_CreateEnvironment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
350 in := new(CreateEnvironmentRequest)
351 if err := dec(in); err != nil {
352 return nil, err
353 }
354 if interceptor == nil {
355 return srv.(EnvironmentsServer).CreateEnvironment(ctx, in)
356 }
357 info := &grpc.UnaryServerInfo{
358 Server: srv,
359 FullMethod: Environments_CreateEnvironment_FullMethodName,
360 }
361 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
362 return srv.(EnvironmentsServer).CreateEnvironment(ctx, req.(*CreateEnvironmentRequest))
363 }
364 return interceptor(ctx, in, info, handler)
365 }
366
367 func _Environments_UpdateEnvironment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
368 in := new(UpdateEnvironmentRequest)
369 if err := dec(in); err != nil {
370 return nil, err
371 }
372 if interceptor == nil {
373 return srv.(EnvironmentsServer).UpdateEnvironment(ctx, in)
374 }
375 info := &grpc.UnaryServerInfo{
376 Server: srv,
377 FullMethod: Environments_UpdateEnvironment_FullMethodName,
378 }
379 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
380 return srv.(EnvironmentsServer).UpdateEnvironment(ctx, req.(*UpdateEnvironmentRequest))
381 }
382 return interceptor(ctx, in, info, handler)
383 }
384
385 func _Environments_DeleteEnvironment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
386 in := new(DeleteEnvironmentRequest)
387 if err := dec(in); err != nil {
388 return nil, err
389 }
390 if interceptor == nil {
391 return srv.(EnvironmentsServer).DeleteEnvironment(ctx, in)
392 }
393 info := &grpc.UnaryServerInfo{
394 Server: srv,
395 FullMethod: Environments_DeleteEnvironment_FullMethodName,
396 }
397 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
398 return srv.(EnvironmentsServer).DeleteEnvironment(ctx, req.(*DeleteEnvironmentRequest))
399 }
400 return interceptor(ctx, in, info, handler)
401 }
402
403 func _Environments_LookupEnvironmentHistory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
404 in := new(LookupEnvironmentHistoryRequest)
405 if err := dec(in); err != nil {
406 return nil, err
407 }
408 if interceptor == nil {
409 return srv.(EnvironmentsServer).LookupEnvironmentHistory(ctx, in)
410 }
411 info := &grpc.UnaryServerInfo{
412 Server: srv,
413 FullMethod: Environments_LookupEnvironmentHistory_FullMethodName,
414 }
415 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
416 return srv.(EnvironmentsServer).LookupEnvironmentHistory(ctx, req.(*LookupEnvironmentHistoryRequest))
417 }
418 return interceptor(ctx, in, info, handler)
419 }
420
421 func _Environments_RunContinuousTest_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
422 in := new(RunContinuousTestRequest)
423 if err := dec(in); err != nil {
424 return nil, err
425 }
426 if interceptor == nil {
427 return srv.(EnvironmentsServer).RunContinuousTest(ctx, in)
428 }
429 info := &grpc.UnaryServerInfo{
430 Server: srv,
431 FullMethod: Environments_RunContinuousTest_FullMethodName,
432 }
433 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
434 return srv.(EnvironmentsServer).RunContinuousTest(ctx, req.(*RunContinuousTestRequest))
435 }
436 return interceptor(ctx, in, info, handler)
437 }
438
439 func _Environments_ListContinuousTestResults_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
440 in := new(ListContinuousTestResultsRequest)
441 if err := dec(in); err != nil {
442 return nil, err
443 }
444 if interceptor == nil {
445 return srv.(EnvironmentsServer).ListContinuousTestResults(ctx, in)
446 }
447 info := &grpc.UnaryServerInfo{
448 Server: srv,
449 FullMethod: Environments_ListContinuousTestResults_FullMethodName,
450 }
451 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
452 return srv.(EnvironmentsServer).ListContinuousTestResults(ctx, req.(*ListContinuousTestResultsRequest))
453 }
454 return interceptor(ctx, in, info, handler)
455 }
456
457 func _Environments_DeployFlow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
458 in := new(DeployFlowRequest)
459 if err := dec(in); err != nil {
460 return nil, err
461 }
462 if interceptor == nil {
463 return srv.(EnvironmentsServer).DeployFlow(ctx, in)
464 }
465 info := &grpc.UnaryServerInfo{
466 Server: srv,
467 FullMethod: Environments_DeployFlow_FullMethodName,
468 }
469 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
470 return srv.(EnvironmentsServer).DeployFlow(ctx, req.(*DeployFlowRequest))
471 }
472 return interceptor(ctx, in, info, handler)
473 }
474
475 // Environments_ServiceDesc is the grpc.ServiceDesc for Environments service.
476 // It's only intended for direct use with grpc.RegisterService,
477 // and not to be introspected or modified (even as a copy)
478 var Environments_ServiceDesc = grpc.ServiceDesc{
479 ServiceName: "google.cloud.dialogflow.cx.v3beta1.Environments",
480 HandlerType: (*EnvironmentsServer)(nil),
481 Methods: []grpc.MethodDesc{
482 {
483 MethodName: "ListEnvironments",
484 Handler: _Environments_ListEnvironments_Handler,
485 },
486 {
487 MethodName: "GetEnvironment",
488 Handler: _Environments_GetEnvironment_Handler,
489 },
490 {
491 MethodName: "CreateEnvironment",
492 Handler: _Environments_CreateEnvironment_Handler,
493 },
494 {
495 MethodName: "UpdateEnvironment",
496 Handler: _Environments_UpdateEnvironment_Handler,
497 },
498 {
499 MethodName: "DeleteEnvironment",
500 Handler: _Environments_DeleteEnvironment_Handler,
501 },
502 {
503 MethodName: "LookupEnvironmentHistory",
504 Handler: _Environments_LookupEnvironmentHistory_Handler,
505 },
506 {
507 MethodName: "RunContinuousTest",
508 Handler: _Environments_RunContinuousTest_Handler,
509 },
510 {
511 MethodName: "ListContinuousTestResults",
512 Handler: _Environments_ListContinuousTestResults_Handler,
513 },
514 {
515 MethodName: "DeployFlow",
516 Handler: _Environments_DeployFlow_Handler,
517 },
518 },
519 Streams: []grpc.StreamDesc{},
520 Metadata: "google/cloud/dialogflow/cx/v3beta1/environment.proto",
521 }