Debian Codegraph @

bigquery/v2/apiv2/bigquerypb/project.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. DO NOT EDIT.
16 // versions:
17 // protoc-gen-go v1.35.2
18 // protoc v4.25.7
19 // source: google/cloud/bigquery/v2/project.proto
20
21 package bigquerypb
22
23 import (
24 context "context"
25 _ "google.golang.org/genproto/googleapis/api/annotations"
26 grpc "google.golang.org/grpc"
27 codes "google.golang.org/grpc/codes"
28 status "google.golang.org/grpc/status"
29 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
30 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
31 reflect "reflect"
32 sync "sync"
33 )
34
35 const (
36 // Verify that this generated code is sufficiently up-to-date.
37 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
38 // Verify that runtime/protoimpl is sufficiently up-to-date.
39 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
40 )
41
42 // Request object of GetServiceAccount
43 type GetServiceAccountRequest struct {
44 state protoimpl.MessageState
45 sizeCache protoimpl.SizeCache
46 unknownFields protoimpl.UnknownFields
47
48 // Required. ID of the project.
49 ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
50 }
51
52 func (x *GetServiceAccountRequest) Reset() {
53 *x = GetServiceAccountRequest{}
54 mi := &file_google_cloud_bigquery_v2_project_proto_msgTypes[0]
55 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
56 ms.StoreMessageInfo(mi)
57 }
58
59 func (x *GetServiceAccountRequest) String() string {
60 return protoimpl.X.MessageStringOf(x)
61 }
62
63 func (*GetServiceAccountRequest) ProtoMessage() {}
64
65 func (x *GetServiceAccountRequest) ProtoReflect() protoreflect.Message {
66 mi := &file_google_cloud_bigquery_v2_project_proto_msgTypes[0]
67 if x != nil {
68 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
69 if ms.LoadMessageInfo() == nil {
70 ms.StoreMessageInfo(mi)
71 }
72 return ms
73 }
74 return mi.MessageOf(x)
75 }
76
77 // Deprecated: Use GetServiceAccountRequest.ProtoReflect.Descriptor instead.
78 func (*GetServiceAccountRequest) Descriptor() ([]byte, []int) {
79 return file_google_cloud_bigquery_v2_project_proto_rawDescGZIP(), []int{0}
80 }
81
82 func (x *GetServiceAccountRequest) GetProjectId() string {
83 if x != nil {
84 return x.ProjectId
85 }
86 return ""
87 }
88
89 // Response object of GetServiceAccount
90 type GetServiceAccountResponse struct {
91 state protoimpl.MessageState
92 sizeCache protoimpl.SizeCache
93 unknownFields protoimpl.UnknownFields
94
95 // The resource type of the response.
96 Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
97 // The service account email address.
98 Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
99 }
100
101 func (x *GetServiceAccountResponse) Reset() {
102 *x = GetServiceAccountResponse{}
103 mi := &file_google_cloud_bigquery_v2_project_proto_msgTypes[1]
104 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
105 ms.StoreMessageInfo(mi)
106 }
107
108 func (x *GetServiceAccountResponse) String() string {
109 return protoimpl.X.MessageStringOf(x)
110 }
111
112 func (*GetServiceAccountResponse) ProtoMessage() {}
113
114 func (x *GetServiceAccountResponse) ProtoReflect() protoreflect.Message {
115 mi := &file_google_cloud_bigquery_v2_project_proto_msgTypes[1]
116 if x != nil {
117 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
118 if ms.LoadMessageInfo() == nil {
119 ms.StoreMessageInfo(mi)
120 }
121 return ms
122 }
123 return mi.MessageOf(x)
124 }
125
126 // Deprecated: Use GetServiceAccountResponse.ProtoReflect.Descriptor instead.
127 func (*GetServiceAccountResponse) Descriptor() ([]byte, []int) {
128 return file_google_cloud_bigquery_v2_project_proto_rawDescGZIP(), []int{1}
129 }
130
131 func (x *GetServiceAccountResponse) GetKind() string {
132 if x != nil {
133 return x.Kind
134 }
135 return ""
136 }
137
138 func (x *GetServiceAccountResponse) GetEmail() string {
139 if x != nil {
140 return x.Email
141 }
142 return ""
143 }
144
145 var File_google_cloud_bigquery_v2_project_proto protoreflect.FileDescriptor
146
147 var file_google_cloud_bigquery_v2_project_proto_rawDesc = []byte{
148 0x0a, 0x26, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x62,
149 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x32, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65,
150 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
151 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e,
152 0x76, 0x32, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61,
153 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
154 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69,
155 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
156 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61,
157 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x3e, 0x0a, 0x18, 0x47, 0x65,
158 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52,
159 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,
160 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52,
161 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x22, 0x45, 0x0a, 0x19, 0x47, 0x65,
162 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52,
163 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18,
164 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x65,
165 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69,
166 0x6c, 0x32, 0xfd, 0x02, 0x0a, 0x0e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x65, 0x72,
167 0x76, 0x69, 0x63, 0x65, 0x12, 0xb9, 0x01, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76,
168 0x69, 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x32, 0x2e, 0x67, 0x6f, 0x6f,
169 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65,
170 0x72, 0x79, 0x2e, 0x76, 0x32, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
171 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33,
172 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x69,
173 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76, 0x32, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x65, 0x72,
174 0x76, 0x69, 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f,
175 0x6e, 0x73, 0x65, 0x22, 0x3b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x35, 0x12, 0x33, 0x2f, 0x62, 0x69,
176 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x32, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,
177 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x3d, 0x2a,
178 0x7d, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
179 0x1a, 0xae, 0x01, 0xca, 0x41, 0x17, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x67,
180 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x90,
181 0x01, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f,
182 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68,
183 0x2f, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2c, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a,
184 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73,
185 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d,
186 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2c, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f,
187 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e,
188 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70,
189 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x2d, 0x6f, 0x6e, 0x6c,
190 0x79, 0x42, 0x69, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
191 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x76,
192 0x32, 0x42, 0x0c, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x5a,
193 0x3b, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f,
194 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x32,
195 0x2f, 0x61, 0x70, 0x69, 0x76, 0x32, 0x2f, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x70,
196 0x62, 0x3b, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72,
197 0x6f, 0x74, 0x6f, 0x33,
198 }
199
200 var (
201 file_google_cloud_bigquery_v2_project_proto_rawDescOnce sync.Once
202 file_google_cloud_bigquery_v2_project_proto_rawDescData = file_google_cloud_bigquery_v2_project_proto_rawDesc
203 )
204
205 func file_google_cloud_bigquery_v2_project_proto_rawDescGZIP() []byte {
206 file_google_cloud_bigquery_v2_project_proto_rawDescOnce.Do(func() {
207 file_google_cloud_bigquery_v2_project_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_bigquery_v2_project_proto_rawDescData)
208 })
209 return file_google_cloud_bigquery_v2_project_proto_rawDescData
210 }
211
212 var file_google_cloud_bigquery_v2_project_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
213 var file_google_cloud_bigquery_v2_project_proto_goTypes = []any{
214 (*GetServiceAccountRequest)(nil), // 0: google.cloud.bigquery.v2.GetServiceAccountRequest
215 (*GetServiceAccountResponse)(nil), // 1: google.cloud.bigquery.v2.GetServiceAccountResponse
216 }
217 var file_google_cloud_bigquery_v2_project_proto_depIdxs = []int32{
218 0, // 0: google.cloud.bigquery.v2.ProjectService.GetServiceAccount:input_type -> google.cloud.bigquery.v2.GetServiceAccountRequest
219 1, // 1: google.cloud.bigquery.v2.ProjectService.GetServiceAccount:output_type -> google.cloud.bigquery.v2.GetServiceAccountResponse
220 1, // [1:2] is the sub-list for method output_type
221 0, // [0:1] is the sub-list for method input_type
222 0, // [0:0] is the sub-list for extension type_name
223 0, // [0:0] is the sub-list for extension extendee
224 0, // [0:0] is the sub-list for field type_name
225 }
226
227 func init() { file_google_cloud_bigquery_v2_project_proto_init() }
228 func file_google_cloud_bigquery_v2_project_proto_init() {
229 if File_google_cloud_bigquery_v2_project_proto != nil {
230 return
231 }
232 type x struct{}
233 out := protoimpl.TypeBuilder{
234 File: protoimpl.DescBuilder{
235 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
236 RawDescriptor: file_google_cloud_bigquery_v2_project_proto_rawDesc,
237 NumEnums: 0,
238 NumMessages: 2,
239 NumExtensions: 0,
240 NumServices: 1,
241 },
242 GoTypes: file_google_cloud_bigquery_v2_project_proto_goTypes,
243 DependencyIndexes: file_google_cloud_bigquery_v2_project_proto_depIdxs,
244 MessageInfos: file_google_cloud_bigquery_v2_project_proto_msgTypes,
245 }.Build()
246 File_google_cloud_bigquery_v2_project_proto = out.File
247 file_google_cloud_bigquery_v2_project_proto_rawDesc = nil
248 file_google_cloud_bigquery_v2_project_proto_goTypes = nil
249 file_google_cloud_bigquery_v2_project_proto_depIdxs = nil
250 }
251
252 // Reference imports to suppress errors if they are not otherwise used.
253 var _ context.Context
254 var _ grpc.ClientConnInterface
255
256 // This is a compile-time assertion to ensure that this generated file
257 // is compatible with the grpc package it is being compiled against.
258 const _ = grpc.SupportPackageIsVersion6
259
260 // ProjectServiceClient is the client API for ProjectService service.
261 //
262 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
263 type ProjectServiceClient interface {
264 // RPC to get the service account for a project used for interactions with
265 // Google Cloud KMS
266 GetServiceAccount(ctx context.Context, in *GetServiceAccountRequest, opts ...grpc.CallOption) (*GetServiceAccountResponse, error)
267 }
268
269 type projectServiceClient struct {
270 cc grpc.ClientConnInterface
271 }
272
273 func NewProjectServiceClient(cc grpc.ClientConnInterface) ProjectServiceClient {
274 return &projectServiceClient{cc}
275 }
276
277 func (c *projectServiceClient) GetServiceAccount(ctx context.Context, in *GetServiceAccountRequest, opts ...grpc.CallOption) (*GetServiceAccountResponse, error) {
278 out := new(GetServiceAccountResponse)
279 err := c.cc.Invoke(ctx, "/google.cloud.bigquery.v2.ProjectService/GetServiceAccount", in, out, opts...)
280 if err != nil {
281 return nil, err
282 }
283 return out, nil
284 }
285
286 // ProjectServiceServer is the server API for ProjectService service.
287 type ProjectServiceServer interface {
288 // RPC to get the service account for a project used for interactions with
289 // Google Cloud KMS
290 GetServiceAccount(context.Context, *GetServiceAccountRequest) (*GetServiceAccountResponse, error)
291 }
292
293 // UnimplementedProjectServiceServer can be embedded to have forward compatible implementations.
294 type UnimplementedProjectServiceServer struct {
295 }
296
297 func (*UnimplementedProjectServiceServer) GetServiceAccount(context.Context, *GetServiceAccountRequest) (*GetServiceAccountResponse, error) {
298 return nil, status.Errorf(codes.Unimplemented, "method GetServiceAccount not implemented")
299 }
300
301 func RegisterProjectServiceServer(s *grpc.Server, srv ProjectServiceServer) {
302 s.RegisterService(&_ProjectService_serviceDesc, srv)
303 }
304
305 func _ProjectService_GetServiceAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
306 in := new(GetServiceAccountRequest)
307 if err := dec(in); err != nil {
308 return nil, err
309 }
310 if interceptor == nil {
311 return srv.(ProjectServiceServer).GetServiceAccount(ctx, in)
312 }
313 info := &grpc.UnaryServerInfo{
314 Server: srv,
315 FullMethod: "/google.cloud.bigquery.v2.ProjectService/GetServiceAccount",
316 }
317 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
318 return srv.(ProjectServiceServer).GetServiceAccount(ctx, req.(*GetServiceAccountRequest))
319 }
320 return interceptor(ctx, in, info, handler)
321 }
322
323 var _ProjectService_serviceDesc = grpc.ServiceDesc{
324 ServiceName: "google.cloud.bigquery.v2.ProjectService",
325 HandlerType: (*ProjectServiceServer)(nil),
326 Methods: []grpc.MethodDesc{
327 {
328 MethodName: "GetServiceAccount",
329 Handler: _ProjectService_GetServiceAccount_Handler,
330 },
331 },
332 Streams: []grpc.StreamDesc{},
333 Metadata: "google/cloud/bigquery/v2/project.proto",
334 }