Debian Codegraph @

googleapis/cloud/ml/v1/project_service.pb.go

raw
1 // Copyright 2017 Google Inc.
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. DO NOT EDIT.
16 // versions:
17 // protoc-gen-go v1.26.0
18 // protoc v3.12.2
19 // source: google/cloud/ml/v1/project_service.proto
20
21 package ml
22
23 import (
24 context "context"
25 reflect "reflect"
26 sync "sync"
27
28 _ "google.golang.org/genproto/googleapis/api/annotations"
29 grpc "google.golang.org/grpc"
30 codes "google.golang.org/grpc/codes"
31 status "google.golang.org/grpc/status"
32 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
33 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
34 )
35
36 const (
37 // Verify that this generated code is sufficiently up-to-date.
38 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
39 // Verify that runtime/protoimpl is sufficiently up-to-date.
40 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
41 )
42
43 // Requests service account information associated with a project.
44 type GetConfigRequest struct {
45 state protoimpl.MessageState
46 sizeCache protoimpl.SizeCache
47 unknownFields protoimpl.UnknownFields
48
49 // Required. The project name.
50 //
51 // Authorization: requires `Viewer` role on the specified project.
52 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
53 }
54
55 func (x *GetConfigRequest) Reset() {
56 *x = GetConfigRequest{}
57 if protoimpl.UnsafeEnabled {
58 mi := &file_google_cloud_ml_v1_project_service_proto_msgTypes[0]
59 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
60 ms.StoreMessageInfo(mi)
61 }
62 }
63
64 func (x *GetConfigRequest) String() string {
65 return protoimpl.X.MessageStringOf(x)
66 }
67
68 func (*GetConfigRequest) ProtoMessage() {}
69
70 func (x *GetConfigRequest) ProtoReflect() protoreflect.Message {
71 mi := &file_google_cloud_ml_v1_project_service_proto_msgTypes[0]
72 if protoimpl.UnsafeEnabled && x != nil {
73 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
74 if ms.LoadMessageInfo() == nil {
75 ms.StoreMessageInfo(mi)
76 }
77 return ms
78 }
79 return mi.MessageOf(x)
80 }
81
82 // Deprecated: Use GetConfigRequest.ProtoReflect.Descriptor instead.
83 func (*GetConfigRequest) Descriptor() ([]byte, []int) {
84 return file_google_cloud_ml_v1_project_service_proto_rawDescGZIP(), []int{0}
85 }
86
87 func (x *GetConfigRequest) GetName() string {
88 if x != nil {
89 return x.Name
90 }
91 return ""
92 }
93
94 // Returns service account information associated with a project.
95 type GetConfigResponse struct {
96 state protoimpl.MessageState
97 sizeCache protoimpl.SizeCache
98 unknownFields protoimpl.UnknownFields
99
100 // The service account Cloud ML uses to access resources in the project.
101 ServiceAccount string `protobuf:"bytes,1,opt,name=service_account,json=serviceAccount,proto3" json:"service_account,omitempty"`
102 // The project number for `service_account`.
103 ServiceAccountProject int64 `protobuf:"varint,2,opt,name=service_account_project,json=serviceAccountProject,proto3" json:"service_account_project,omitempty"`
104 }
105
106 func (x *GetConfigResponse) Reset() {
107 *x = GetConfigResponse{}
108 if protoimpl.UnsafeEnabled {
109 mi := &file_google_cloud_ml_v1_project_service_proto_msgTypes[1]
110 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
111 ms.StoreMessageInfo(mi)
112 }
113 }
114
115 func (x *GetConfigResponse) String() string {
116 return protoimpl.X.MessageStringOf(x)
117 }
118
119 func (*GetConfigResponse) ProtoMessage() {}
120
121 func (x *GetConfigResponse) ProtoReflect() protoreflect.Message {
122 mi := &file_google_cloud_ml_v1_project_service_proto_msgTypes[1]
123 if protoimpl.UnsafeEnabled && x != nil {
124 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
125 if ms.LoadMessageInfo() == nil {
126 ms.StoreMessageInfo(mi)
127 }
128 return ms
129 }
130 return mi.MessageOf(x)
131 }
132
133 // Deprecated: Use GetConfigResponse.ProtoReflect.Descriptor instead.
134 func (*GetConfigResponse) Descriptor() ([]byte, []int) {
135 return file_google_cloud_ml_v1_project_service_proto_rawDescGZIP(), []int{1}
136 }
137
138 func (x *GetConfigResponse) GetServiceAccount() string {
139 if x != nil {
140 return x.ServiceAccount
141 }
142 return ""
143 }
144
145 func (x *GetConfigResponse) GetServiceAccountProject() int64 {
146 if x != nil {
147 return x.ServiceAccountProject
148 }
149 return 0
150 }
151
152 var File_google_cloud_ml_v1_project_service_proto protoreflect.FileDescriptor
153
154 var file_google_cloud_ml_v1_project_service_proto_rawDesc = []byte{
155 0x0a, 0x28, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x6d,
156 0x6c, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x73, 0x65, 0x72,
157 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x67, 0x6f, 0x6f, 0x67,
158 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6d, 0x6c, 0x2e, 0x76, 0x31, 0x1a, 0x1c,
159 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74,
160 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x26, 0x0a, 0x10,
161 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
162 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
163 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x74, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69,
164 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x65, 0x72,
165 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01,
166 0x28, 0x09, 0x52, 0x0e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75,
167 0x6e, 0x74, 0x12, 0x36, 0x0a, 0x17, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x63,
168 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x02, 0x20,
169 0x01, 0x28, 0x03, 0x52, 0x15, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f,
170 0x75, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x32, 0x9e, 0x01, 0x0a, 0x18, 0x50,
171 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74,
172 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x81, 0x01, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x43,
173 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
174 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6d, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f,
175 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x67, 0x6f,
176 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6d, 0x6c, 0x2e, 0x76, 0x31,
177 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
178 0x73, 0x65, 0x22, 0x27, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x12, 0x1f, 0x2f, 0x76, 0x31, 0x2f,
179 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a,
180 0x7d, 0x3a, 0x67, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x69, 0x0a, 0x1a, 0x63,
181 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
182 0x6d, 0x6c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x42, 0x13, 0x50, 0x72, 0x6f, 0x6a, 0x65,
183 0x63, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01,
184 0x5a, 0x34, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e,
185 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f,
186 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x6d, 0x6c,
187 0x2f, 0x76, 0x31, 0x3b, 0x6d, 0x6c, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
188 }
189
190 var (
191 file_google_cloud_ml_v1_project_service_proto_rawDescOnce sync.Once
192 file_google_cloud_ml_v1_project_service_proto_rawDescData = file_google_cloud_ml_v1_project_service_proto_rawDesc
193 )
194
195 func file_google_cloud_ml_v1_project_service_proto_rawDescGZIP() []byte {
196 file_google_cloud_ml_v1_project_service_proto_rawDescOnce.Do(func() {
197 file_google_cloud_ml_v1_project_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_ml_v1_project_service_proto_rawDescData)
198 })
199 return file_google_cloud_ml_v1_project_service_proto_rawDescData
200 }
201
202 var file_google_cloud_ml_v1_project_service_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
203 var file_google_cloud_ml_v1_project_service_proto_goTypes = []interface{}{
204 (*GetConfigRequest)(nil), // 0: google.cloud.ml.v1.GetConfigRequest
205 (*GetConfigResponse)(nil), // 1: google.cloud.ml.v1.GetConfigResponse
206 }
207 var file_google_cloud_ml_v1_project_service_proto_depIdxs = []int32{
208 0, // 0: google.cloud.ml.v1.ProjectManagementService.GetConfig:input_type -> google.cloud.ml.v1.GetConfigRequest
209 1, // 1: google.cloud.ml.v1.ProjectManagementService.GetConfig:output_type -> google.cloud.ml.v1.GetConfigResponse
210 1, // [1:2] is the sub-list for method output_type
211 0, // [0:1] is the sub-list for method input_type
212 0, // [0:0] is the sub-list for extension type_name
213 0, // [0:0] is the sub-list for extension extendee
214 0, // [0:0] is the sub-list for field type_name
215 }
216
217 func init() { file_google_cloud_ml_v1_project_service_proto_init() }
218 func file_google_cloud_ml_v1_project_service_proto_init() {
219 if File_google_cloud_ml_v1_project_service_proto != nil {
220 return
221 }
222 if !protoimpl.UnsafeEnabled {
223 file_google_cloud_ml_v1_project_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
224 switch v := v.(*GetConfigRequest); i {
225 case 0:
226 return &v.state
227 case 1:
228 return &v.sizeCache
229 case 2:
230 return &v.unknownFields
231 default:
232 return nil
233 }
234 }
235 file_google_cloud_ml_v1_project_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
236 switch v := v.(*GetConfigResponse); i {
237 case 0:
238 return &v.state
239 case 1:
240 return &v.sizeCache
241 case 2:
242 return &v.unknownFields
243 default:
244 return nil
245 }
246 }
247 }
248 type x struct{}
249 out := protoimpl.TypeBuilder{
250 File: protoimpl.DescBuilder{
251 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
252 RawDescriptor: file_google_cloud_ml_v1_project_service_proto_rawDesc,
253 NumEnums: 0,
254 NumMessages: 2,
255 NumExtensions: 0,
256 NumServices: 1,
257 },
258 GoTypes: file_google_cloud_ml_v1_project_service_proto_goTypes,
259 DependencyIndexes: file_google_cloud_ml_v1_project_service_proto_depIdxs,
260 MessageInfos: file_google_cloud_ml_v1_project_service_proto_msgTypes,
261 }.Build()
262 File_google_cloud_ml_v1_project_service_proto = out.File
263 file_google_cloud_ml_v1_project_service_proto_rawDesc = nil
264 file_google_cloud_ml_v1_project_service_proto_goTypes = nil
265 file_google_cloud_ml_v1_project_service_proto_depIdxs = nil
266 }
267
268 // Reference imports to suppress errors if they are not otherwise used.
269 var _ context.Context
270 var _ grpc.ClientConnInterface
271
272 // This is a compile-time assertion to ensure that this generated file
273 // is compatible with the grpc package it is being compiled against.
274 const _ = grpc.SupportPackageIsVersion6
275
276 // ProjectManagementServiceClient is the client API for ProjectManagementService service.
277 //
278 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
279 type ProjectManagementServiceClient interface {
280 // Get the service account information associated with your project. You need
281 // this information in order to grant the service account persmissions for
282 // the Google Cloud Storage location where you put your model training code
283 // for training the model with Google Cloud Machine Learning.
284 GetConfig(ctx context.Context, in *GetConfigRequest, opts ...grpc.CallOption) (*GetConfigResponse, error)
285 }
286
287 type projectManagementServiceClient struct {
288 cc grpc.ClientConnInterface
289 }
290
291 func NewProjectManagementServiceClient(cc grpc.ClientConnInterface) ProjectManagementServiceClient {
292 return &projectManagementServiceClient{cc}
293 }
294
295 func (c *projectManagementServiceClient) GetConfig(ctx context.Context, in *GetConfigRequest, opts ...grpc.CallOption) (*GetConfigResponse, error) {
296 out := new(GetConfigResponse)
297 err := c.cc.Invoke(ctx, "/google.cloud.ml.v1.ProjectManagementService/GetConfig", in, out, opts...)
298 if err != nil {
299 return nil, err
300 }
301 return out, nil
302 }
303
304 // ProjectManagementServiceServer is the server API for ProjectManagementService service.
305 type ProjectManagementServiceServer interface {
306 // Get the service account information associated with your project. You need
307 // this information in order to grant the service account persmissions for
308 // the Google Cloud Storage location where you put your model training code
309 // for training the model with Google Cloud Machine Learning.
310 GetConfig(context.Context, *GetConfigRequest) (*GetConfigResponse, error)
311 }
312
313 // UnimplementedProjectManagementServiceServer can be embedded to have forward compatible implementations.
314 type UnimplementedProjectManagementServiceServer struct {
315 }
316
317 func (*UnimplementedProjectManagementServiceServer) GetConfig(context.Context, *GetConfigRequest) (*GetConfigResponse, error) {
318 return nil, status.Errorf(codes.Unimplemented, "method GetConfig not implemented")
319 }
320
321 func RegisterProjectManagementServiceServer(s *grpc.Server, srv ProjectManagementServiceServer) {
322 s.RegisterService(&_ProjectManagementService_serviceDesc, srv)
323 }
324
325 func _ProjectManagementService_GetConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
326 in := new(GetConfigRequest)
327 if err := dec(in); err != nil {
328 return nil, err
329 }
330 if interceptor == nil {
331 return srv.(ProjectManagementServiceServer).GetConfig(ctx, in)
332 }
333 info := &grpc.UnaryServerInfo{
334 Server: srv,
335 FullMethod: "/google.cloud.ml.v1.ProjectManagementService/GetConfig",
336 }
337 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
338 return srv.(ProjectManagementServiceServer).GetConfig(ctx, req.(*GetConfigRequest))
339 }
340 return interceptor(ctx, in, info, handler)
341 }
342
343 var _ProjectManagementService_serviceDesc = grpc.ServiceDesc{
344 ServiceName: "google.cloud.ml.v1.ProjectManagementService",
345 HandlerType: (*ProjectManagementServiceServer)(nil),
346 Methods: []grpc.MethodDesc{
347 {
348 MethodName: "GetConfig",
349 Handler: _ProjectManagementService_GetConfig_Handler,
350 },
351 },
352 Streams: []grpc.StreamDesc{},
353 Metadata: "google/cloud/ml/v1/project_service.proto",
354 }