Debian Codegraph @

lifesciences/apiv2beta/lifesciencespb/workflows_grpc.pb.go

raw symbols SCIP
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/lifesciences/v2beta/workflows.proto
20
21 package lifesciencespb
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 )
30
31 // This is a compile-time assertion to ensure that this generated file
32 // is compatible with the grpc package it is being compiled against.
33 // Requires gRPC-Go v1.32.0 or later.
34 const _ = grpc.SupportPackageIsVersion7
35
36 const (
37 WorkflowsServiceV2Beta_RunPipeline_FullMethodName = "/google.cloud.lifesciences.v2beta.WorkflowsServiceV2Beta/RunPipeline"
38 )
39
40 // WorkflowsServiceV2BetaClient is the client API for WorkflowsServiceV2Beta service.
41 //
42 // 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.
43 type WorkflowsServiceV2BetaClient interface {
44 // Runs a pipeline. The returned Operation's [metadata]
45 // [google.longrunning.Operation.metadata] field will contain a
46 // [google.cloud.lifesciences.v2beta.Metadata][google.cloud.lifesciences.v2beta.Metadata]
47 // object describing the status of the pipeline execution. The
48 // [response][google.longrunning.Operation.response] field will contain a
49 // [google.cloud.lifesciences.v2beta.RunPipelineResponse][google.cloud.lifesciences.v2beta.RunPipelineResponse]
50 // object if the pipeline completes successfully.
51 //
52 // **Note:** Before you can use this method, the *Life Sciences Service Agent*
53 // must have access to your project. This is done automatically when the
54 // Cloud Life Sciences API is first enabled, but if you delete this permission
55 // you must disable and re-enable the API to grant the Life Sciences
56 // Service Agent the required permissions.
57 // Authorization requires the following [Google
58 // IAM](https://cloud.google.com/iam/) permission:
59 //
60 // * `lifesciences.workflows.run`
61 RunPipeline(ctx context.Context, in *RunPipelineRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
62 }
63
64 type workflowsServiceV2BetaClient struct {
65 cc grpc.ClientConnInterface
66 }
67
68 func NewWorkflowsServiceV2BetaClient(cc grpc.ClientConnInterface) WorkflowsServiceV2BetaClient {
69 return &workflowsServiceV2BetaClient{cc}
70 }
71
72 func (c *workflowsServiceV2BetaClient) RunPipeline(ctx context.Context, in *RunPipelineRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
73 out := new(longrunningpb.Operation)
74 err := c.cc.Invoke(ctx, WorkflowsServiceV2Beta_RunPipeline_FullMethodName, in, out, opts...)
75 if err != nil {
76 return nil, err
77 }
78 return out, nil
79 }
80
81 // WorkflowsServiceV2BetaServer is the server API for WorkflowsServiceV2Beta service.
82 // All implementations should embed UnimplementedWorkflowsServiceV2BetaServer
83 // for forward compatibility
84 type WorkflowsServiceV2BetaServer interface {
85 // Runs a pipeline. The returned Operation's [metadata]
86 // [google.longrunning.Operation.metadata] field will contain a
87 // [google.cloud.lifesciences.v2beta.Metadata][google.cloud.lifesciences.v2beta.Metadata]
88 // object describing the status of the pipeline execution. The
89 // [response][google.longrunning.Operation.response] field will contain a
90 // [google.cloud.lifesciences.v2beta.RunPipelineResponse][google.cloud.lifesciences.v2beta.RunPipelineResponse]
91 // object if the pipeline completes successfully.
92 //
93 // **Note:** Before you can use this method, the *Life Sciences Service Agent*
94 // must have access to your project. This is done automatically when the
95 // Cloud Life Sciences API is first enabled, but if you delete this permission
96 // you must disable and re-enable the API to grant the Life Sciences
97 // Service Agent the required permissions.
98 // Authorization requires the following [Google
99 // IAM](https://cloud.google.com/iam/) permission:
100 //
101 // * `lifesciences.workflows.run`
102 RunPipeline(context.Context, *RunPipelineRequest) (*longrunningpb.Operation, error)
103 }
104
105 // UnimplementedWorkflowsServiceV2BetaServer should be embedded to have forward compatible implementations.
106 type UnimplementedWorkflowsServiceV2BetaServer struct {
107 }
108
109 func (UnimplementedWorkflowsServiceV2BetaServer) RunPipeline(context.Context, *RunPipelineRequest) (*longrunningpb.Operation, error) {
110 return nil, status.Errorf(codes.Unimplemented, "method RunPipeline not implemented")
111 }
112
113 // UnsafeWorkflowsServiceV2BetaServer may be embedded to opt out of forward compatibility for this service.
114 // Use of this interface is not recommended, as added methods to WorkflowsServiceV2BetaServer will
115 // result in compilation errors.
116 type UnsafeWorkflowsServiceV2BetaServer interface {
117 mustEmbedUnimplementedWorkflowsServiceV2BetaServer()
118 }
119
120 func RegisterWorkflowsServiceV2BetaServer(s grpc.ServiceRegistrar, srv WorkflowsServiceV2BetaServer) {
121 s.RegisterService(&WorkflowsServiceV2Beta_ServiceDesc, srv)
122 }
123
124 func _WorkflowsServiceV2Beta_RunPipeline_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
125 in := new(RunPipelineRequest)
126 if err := dec(in); err != nil {
127 return nil, err
128 }
129 if interceptor == nil {
130 return srv.(WorkflowsServiceV2BetaServer).RunPipeline(ctx, in)
131 }
132 info := &grpc.UnaryServerInfo{
133 Server: srv,
134 FullMethod: WorkflowsServiceV2Beta_RunPipeline_FullMethodName,
135 }
136 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
137 return srv.(WorkflowsServiceV2BetaServer).RunPipeline(ctx, req.(*RunPipelineRequest))
138 }
139 return interceptor(ctx, in, info, handler)
140 }
141
142 // WorkflowsServiceV2Beta_ServiceDesc is the grpc.ServiceDesc for WorkflowsServiceV2Beta service.
143 // It's only intended for direct use with grpc.RegisterService,
144 // and not to be introspected or modified (even as a copy)
145 var WorkflowsServiceV2Beta_ServiceDesc = grpc.ServiceDesc{
146 ServiceName: "google.cloud.lifesciences.v2beta.WorkflowsServiceV2Beta",
147 HandlerType: (*WorkflowsServiceV2BetaServer)(nil),
148 Methods: []grpc.MethodDesc{
149 {
150 MethodName: "RunPipeline",
151 Handler: _WorkflowsServiceV2Beta_RunPipeline_Handler,
152 },
153 },
154 Streams: []grpc.StreamDesc{},
155 Metadata: "google/cloud/lifesciences/v2beta/workflows.proto",
156 }