Debian Codegraph @

googleapis/api/servicecontrol/v2/service_controller.pb.go

raw
1 // Copyright 2022 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.26.0
18 // protoc v3.12.2
19 // source: google/api/servicecontrol/v2/service_controller.proto
20
21 package servicecontrol
22
23 import (
24 context "context"
25 reflect "reflect"
26 sync "sync"
27
28 _ "google.golang.org/genproto/googleapis/api/annotations"
29 attribute_context "google.golang.org/genproto/googleapis/rpc/context/attribute_context"
30 status "google.golang.org/genproto/googleapis/rpc/status"
31 grpc "google.golang.org/grpc"
32 codes "google.golang.org/grpc/codes"
33 status1 "google.golang.org/grpc/status"
34 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
35 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
36 )
37
38 const (
39 // Verify that this generated code is sufficiently up-to-date.
40 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
41 // Verify that runtime/protoimpl is sufficiently up-to-date.
42 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
43 )
44
45 // Request message for the Check method.
46 type CheckRequest struct {
47 state protoimpl.MessageState
48 sizeCache protoimpl.SizeCache
49 unknownFields protoimpl.UnknownFields
50
51 // The service name as specified in its service configuration. For example,
52 // `"pubsub.googleapis.com"`.
53 //
54 // See
55 // [google.api.Service](https://cloud.google.com/service-management/reference/rpc/google.api#google.api.Service)
56 // for the definition of a service name.
57 ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
58 // Specifies the version of the service configuration that should be used to
59 // process the request. Must not be empty. Set this field to 'latest' to
60 // specify using the latest configuration.
61 ServiceConfigId string `protobuf:"bytes,2,opt,name=service_config_id,json=serviceConfigId,proto3" json:"service_config_id,omitempty"`
62 // Describes attributes about the operation being executed by the service.
63 Attributes *attribute_context.AttributeContext `protobuf:"bytes,3,opt,name=attributes,proto3" json:"attributes,omitempty"`
64 // Describes the resources and the policies applied to each resource.
65 Resources []*ResourceInfo `protobuf:"bytes,4,rep,name=resources,proto3" json:"resources,omitempty"`
66 // Optional. Contains a comma-separated list of flags.
67 Flags string `protobuf:"bytes,5,opt,name=flags,proto3" json:"flags,omitempty"`
68 }
69
70 func (x *CheckRequest) Reset() {
71 *x = CheckRequest{}
72 if protoimpl.UnsafeEnabled {
73 mi := &file_google_api_servicecontrol_v2_service_controller_proto_msgTypes[0]
74 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
75 ms.StoreMessageInfo(mi)
76 }
77 }
78
79 func (x *CheckRequest) String() string {
80 return protoimpl.X.MessageStringOf(x)
81 }
82
83 func (*CheckRequest) ProtoMessage() {}
84
85 func (x *CheckRequest) ProtoReflect() protoreflect.Message {
86 mi := &file_google_api_servicecontrol_v2_service_controller_proto_msgTypes[0]
87 if protoimpl.UnsafeEnabled && x != nil {
88 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
89 if ms.LoadMessageInfo() == nil {
90 ms.StoreMessageInfo(mi)
91 }
92 return ms
93 }
94 return mi.MessageOf(x)
95 }
96
97 // Deprecated: Use CheckRequest.ProtoReflect.Descriptor instead.
98 func (*CheckRequest) Descriptor() ([]byte, []int) {
99 return file_google_api_servicecontrol_v2_service_controller_proto_rawDescGZIP(), []int{0}
100 }
101
102 func (x *CheckRequest) GetServiceName() string {
103 if x != nil {
104 return x.ServiceName
105 }
106 return ""
107 }
108
109 func (x *CheckRequest) GetServiceConfigId() string {
110 if x != nil {
111 return x.ServiceConfigId
112 }
113 return ""
114 }
115
116 func (x *CheckRequest) GetAttributes() *attribute_context.AttributeContext {
117 if x != nil {
118 return x.Attributes
119 }
120 return nil
121 }
122
123 func (x *CheckRequest) GetResources() []*ResourceInfo {
124 if x != nil {
125 return x.Resources
126 }
127 return nil
128 }
129
130 func (x *CheckRequest) GetFlags() string {
131 if x != nil {
132 return x.Flags
133 }
134 return ""
135 }
136
137 // Describes a resource referenced in the request.
138 type ResourceInfo struct {
139 state protoimpl.MessageState
140 sizeCache protoimpl.SizeCache
141 unknownFields protoimpl.UnknownFields
142
143 // The name of the resource referenced in the request.
144 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
145 // The resource type in the format of "{service}/{kind}".
146 Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
147 // The resource permission needed for this request.
148 // The format must be "{service}/{plural}.{verb}".
149 Permission string `protobuf:"bytes,3,opt,name=permission,proto3" json:"permission,omitempty"`
150 // Optional. The identifier of the container of this resource. For Google
151 // Cloud APIs, the resource container must be one of the following formats:
152 // - `projects/<project-id or project-number>`
153 // - `folders/<folder-id>`
154 // - `organizations/<organization-id>`
155 // For the policy enforcement on the container level (VPCSC and Location
156 // Policy check), this field takes precedence on the container extracted from
157 // name when presents.
158 Container string `protobuf:"bytes,4,opt,name=container,proto3" json:"container,omitempty"`
159 // Optional. The location of the resource. The value must be a valid zone,
160 // region or multiregion. For example: "europe-west4" or
161 // "northamerica-northeast1-a"
162 Location string `protobuf:"bytes,5,opt,name=location,proto3" json:"location,omitempty"`
163 }
164
165 func (x *ResourceInfo) Reset() {
166 *x = ResourceInfo{}
167 if protoimpl.UnsafeEnabled {
168 mi := &file_google_api_servicecontrol_v2_service_controller_proto_msgTypes[1]
169 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
170 ms.StoreMessageInfo(mi)
171 }
172 }
173
174 func (x *ResourceInfo) String() string {
175 return protoimpl.X.MessageStringOf(x)
176 }
177
178 func (*ResourceInfo) ProtoMessage() {}
179
180 func (x *ResourceInfo) ProtoReflect() protoreflect.Message {
181 mi := &file_google_api_servicecontrol_v2_service_controller_proto_msgTypes[1]
182 if protoimpl.UnsafeEnabled && x != nil {
183 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
184 if ms.LoadMessageInfo() == nil {
185 ms.StoreMessageInfo(mi)
186 }
187 return ms
188 }
189 return mi.MessageOf(x)
190 }
191
192 // Deprecated: Use ResourceInfo.ProtoReflect.Descriptor instead.
193 func (*ResourceInfo) Descriptor() ([]byte, []int) {
194 return file_google_api_servicecontrol_v2_service_controller_proto_rawDescGZIP(), []int{1}
195 }
196
197 func (x *ResourceInfo) GetName() string {
198 if x != nil {
199 return x.Name
200 }
201 return ""
202 }
203
204 func (x *ResourceInfo) GetType() string {
205 if x != nil {
206 return x.Type
207 }
208 return ""
209 }
210
211 func (x *ResourceInfo) GetPermission() string {
212 if x != nil {
213 return x.Permission
214 }
215 return ""
216 }
217
218 func (x *ResourceInfo) GetContainer() string {
219 if x != nil {
220 return x.Container
221 }
222 return ""
223 }
224
225 func (x *ResourceInfo) GetLocation() string {
226 if x != nil {
227 return x.Location
228 }
229 return ""
230 }
231
232 // Response message for the Check method.
233 type CheckResponse struct {
234 state protoimpl.MessageState
235 sizeCache protoimpl.SizeCache
236 unknownFields protoimpl.UnknownFields
237
238 // Operation is allowed when this field is not set. Any non-'OK' status
239 // indicates a denial; [google.rpc.Status.details][google.rpc.Status.details]
240 // would contain additional details about the denial.
241 Status *status.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
242 // Returns a set of request contexts generated from the `CheckRequest`.
243 Headers map[string]string `protobuf:"bytes,2,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
244 }
245
246 func (x *CheckResponse) Reset() {
247 *x = CheckResponse{}
248 if protoimpl.UnsafeEnabled {
249 mi := &file_google_api_servicecontrol_v2_service_controller_proto_msgTypes[2]
250 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
251 ms.StoreMessageInfo(mi)
252 }
253 }
254
255 func (x *CheckResponse) String() string {
256 return protoimpl.X.MessageStringOf(x)
257 }
258
259 func (*CheckResponse) ProtoMessage() {}
260
261 func (x *CheckResponse) ProtoReflect() protoreflect.Message {
262 mi := &file_google_api_servicecontrol_v2_service_controller_proto_msgTypes[2]
263 if protoimpl.UnsafeEnabled && x != nil {
264 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
265 if ms.LoadMessageInfo() == nil {
266 ms.StoreMessageInfo(mi)
267 }
268 return ms
269 }
270 return mi.MessageOf(x)
271 }
272
273 // Deprecated: Use CheckResponse.ProtoReflect.Descriptor instead.
274 func (*CheckResponse) Descriptor() ([]byte, []int) {
275 return file_google_api_servicecontrol_v2_service_controller_proto_rawDescGZIP(), []int{2}
276 }
277
278 func (x *CheckResponse) GetStatus() *status.Status {
279 if x != nil {
280 return x.Status
281 }
282 return nil
283 }
284
285 func (x *CheckResponse) GetHeaders() map[string]string {
286 if x != nil {
287 return x.Headers
288 }
289 return nil
290 }
291
292 // Request message for the Report method.
293 type ReportRequest struct {
294 state protoimpl.MessageState
295 sizeCache protoimpl.SizeCache
296 unknownFields protoimpl.UnknownFields
297
298 // The service name as specified in its service configuration. For example,
299 // `"pubsub.googleapis.com"`.
300 //
301 // See
302 // [google.api.Service](https://cloud.google.com/service-management/reference/rpc/google.api#google.api.Service)
303 // for the definition of a service name.
304 ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
305 // Specifies the version of the service configuration that should be used to
306 // process the request. Must not be empty. Set this field to 'latest' to
307 // specify using the latest configuration.
308 ServiceConfigId string `protobuf:"bytes,2,opt,name=service_config_id,json=serviceConfigId,proto3" json:"service_config_id,omitempty"`
309 // Describes the list of operations to be reported. Each operation is
310 // represented as an AttributeContext, and contains all attributes around an
311 // API access.
312 Operations []*attribute_context.AttributeContext `protobuf:"bytes,3,rep,name=operations,proto3" json:"operations,omitempty"`
313 }
314
315 func (x *ReportRequest) Reset() {
316 *x = ReportRequest{}
317 if protoimpl.UnsafeEnabled {
318 mi := &file_google_api_servicecontrol_v2_service_controller_proto_msgTypes[3]
319 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
320 ms.StoreMessageInfo(mi)
321 }
322 }
323
324 func (x *ReportRequest) String() string {
325 return protoimpl.X.MessageStringOf(x)
326 }
327
328 func (*ReportRequest) ProtoMessage() {}
329
330 func (x *ReportRequest) ProtoReflect() protoreflect.Message {
331 mi := &file_google_api_servicecontrol_v2_service_controller_proto_msgTypes[3]
332 if protoimpl.UnsafeEnabled && x != nil {
333 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
334 if ms.LoadMessageInfo() == nil {
335 ms.StoreMessageInfo(mi)
336 }
337 return ms
338 }
339 return mi.MessageOf(x)
340 }
341
342 // Deprecated: Use ReportRequest.ProtoReflect.Descriptor instead.
343 func (*ReportRequest) Descriptor() ([]byte, []int) {
344 return file_google_api_servicecontrol_v2_service_controller_proto_rawDescGZIP(), []int{3}
345 }
346
347 func (x *ReportRequest) GetServiceName() string {
348 if x != nil {
349 return x.ServiceName
350 }
351 return ""
352 }
353
354 func (x *ReportRequest) GetServiceConfigId() string {
355 if x != nil {
356 return x.ServiceConfigId
357 }
358 return ""
359 }
360
361 func (x *ReportRequest) GetOperations() []*attribute_context.AttributeContext {
362 if x != nil {
363 return x.Operations
364 }
365 return nil
366 }
367
368 // Response message for the Report method.
369 // If the request contains any invalid data, the server returns an RPC error.
370 type ReportResponse struct {
371 state protoimpl.MessageState
372 sizeCache protoimpl.SizeCache
373 unknownFields protoimpl.UnknownFields
374 }
375
376 func (x *ReportResponse) Reset() {
377 *x = ReportResponse{}
378 if protoimpl.UnsafeEnabled {
379 mi := &file_google_api_servicecontrol_v2_service_controller_proto_msgTypes[4]
380 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
381 ms.StoreMessageInfo(mi)
382 }
383 }
384
385 func (x *ReportResponse) String() string {
386 return protoimpl.X.MessageStringOf(x)
387 }
388
389 func (*ReportResponse) ProtoMessage() {}
390
391 func (x *ReportResponse) ProtoReflect() protoreflect.Message {
392 mi := &file_google_api_servicecontrol_v2_service_controller_proto_msgTypes[4]
393 if protoimpl.UnsafeEnabled && x != nil {
394 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
395 if ms.LoadMessageInfo() == nil {
396 ms.StoreMessageInfo(mi)
397 }
398 return ms
399 }
400 return mi.MessageOf(x)
401 }
402
403 // Deprecated: Use ReportResponse.ProtoReflect.Descriptor instead.
404 func (*ReportResponse) Descriptor() ([]byte, []int) {
405 return file_google_api_servicecontrol_v2_service_controller_proto_rawDescGZIP(), []int{4}
406 }
407
408 var File_google_api_servicecontrol_v2_service_controller_proto protoreflect.FileDescriptor
409
410 var file_google_api_servicecontrol_v2_service_controller_proto_rawDesc = []byte{
411 0x0a, 0x35, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x65, 0x72,
412 0x76, 0x69, 0x63, 0x65, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2f, 0x76, 0x32, 0x2f, 0x73,
413 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65,
414 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
415 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x63, 0x6f, 0x6e, 0x74, 0x72,
416 0x6f, 0x6c, 0x2e, 0x76, 0x32, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70,
417 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72,
418 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f,
419 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x67, 0x6f,
420 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74,
421 0x2f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65,
422 0x78, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
423 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
424 0x6f, 0x22, 0x83, 0x02, 0x0a, 0x0c, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65,
425 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x6e, 0x61,
426 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
427 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
428 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
429 0x52, 0x0f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x49,
430 0x64, 0x12, 0x44, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18,
431 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72,
432 0x70, 0x63, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69,
433 0x62, 0x75, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x52, 0x0a, 0x61, 0x74, 0x74,
434 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x48, 0x0a, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75,
435 0x72, 0x63, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x6f, 0x6f,
436 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x63,
437 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72,
438 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
439 0x73, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,
440 0x52, 0x05, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x22, 0x90, 0x01, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x6f,
441 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,
442 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04,
443 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65,
444 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03,
445 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e,
446 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x18, 0x04, 0x20,
447 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x12, 0x1a,
448 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,
449 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xcb, 0x01, 0x0a, 0x0d, 0x43,
450 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x06,
451 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67,
452 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,
453 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x52, 0x0a, 0x07, 0x68, 0x65, 0x61, 0x64,
454 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
455 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x63, 0x6f,
456 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65,
457 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x45, 0x6e,
458 0x74, 0x72, 0x79, 0x52, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x1a, 0x3a, 0x0a, 0x0c,
459 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03,
460 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14,
461 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76,
462 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xa4, 0x01, 0x0a, 0x0d, 0x52, 0x65, 0x70,
463 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x65,
464 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
465 0x52, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2a, 0x0a,
466 0x11, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f,
467 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
468 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x49, 0x64, 0x12, 0x44, 0x0a, 0x0a, 0x6f, 0x70, 0x65,
469 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e,
470 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x63, 0x6f, 0x6e, 0x74, 0x65,
471 0x78, 0x74, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74,
472 0x65, 0x78, 0x74, 0x52, 0x0a, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22,
473 0x10, 0x0a, 0x0e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
474 0x65, 0x32, 0xbc, 0x03, 0x0a, 0x11, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x43, 0x6f, 0x6e,
475 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x12, 0x8e, 0x01, 0x0a, 0x05, 0x43, 0x68, 0x65, 0x63,
476 0x6b, 0x12, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73,
477 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x76, 0x32,
478 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e,
479 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69,
480 0x63, 0x65, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x68, 0x65,
481 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2c, 0x82, 0xd3, 0xe4, 0x93,
482 0x02, 0x26, 0x22, 0x21, 0x2f, 0x76, 0x32, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73,
483 0x2f, 0x7b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x3a,
484 0x63, 0x68, 0x65, 0x63, 0x6b, 0x3a, 0x01, 0x2a, 0x12, 0x92, 0x01, 0x0a, 0x06, 0x52, 0x65, 0x70,
485 0x6f, 0x72, 0x74, 0x12, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69,
486 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e,
487 0x76, 0x32, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
488 0x1a, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65,
489 0x72, 0x76, 0x69, 0x63, 0x65, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e, 0x76, 0x32, 0x2e,
490 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2d,
491 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x22, 0x22, 0x2f, 0x76, 0x32, 0x2f, 0x73, 0x65, 0x72, 0x76,
492 0x69, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x6e, 0x61,
493 0x6d, 0x65, 0x7d, 0x3a, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x3a, 0x01, 0x2a, 0x1a, 0x80, 0x01,
494 0xca, 0x41, 0x1d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f,
495 0x6c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d,
496 0xd2, 0x41, 0x5d, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67,
497 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75,
498 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72,
499 0x6d, 0x2c, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f,
500 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74,
501 0x68, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c,
502 0x42, 0xf8, 0x01, 0x0a, 0x20, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
503 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x63, 0x6f, 0x6e, 0x74, 0x72,
504 0x6f, 0x6c, 0x2e, 0x76, 0x32, 0x42, 0x16, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x43, 0x6f,
505 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a,
506 0x4a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f,
507 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67,
508 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69,
509 0x63, 0x65, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2f, 0x76, 0x32, 0x3b, 0x73, 0x65, 0x72,
510 0x76, 0x69, 0x63, 0x65, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0xf8, 0x01, 0x01, 0xa2, 0x02,
511 0x04, 0x47, 0x41, 0x53, 0x43, 0xaa, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43,
512 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74,
513 0x72, 0x6f, 0x6c, 0x2e, 0x56, 0x32, 0xca, 0x02, 0x1e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c,
514 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x43, 0x6f, 0x6e,
515 0x74, 0x72, 0x6f, 0x6c, 0x5c, 0x56, 0x32, 0xea, 0x02, 0x21, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
516 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
517 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f,
518 0x74, 0x6f, 0x33,
519 }
520
521 var (
522 file_google_api_servicecontrol_v2_service_controller_proto_rawDescOnce sync.Once
523 file_google_api_servicecontrol_v2_service_controller_proto_rawDescData = file_google_api_servicecontrol_v2_service_controller_proto_rawDesc
524 )
525
526 func file_google_api_servicecontrol_v2_service_controller_proto_rawDescGZIP() []byte {
527 file_google_api_servicecontrol_v2_service_controller_proto_rawDescOnce.Do(func() {
528 file_google_api_servicecontrol_v2_service_controller_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_api_servicecontrol_v2_service_controller_proto_rawDescData)
529 })
530 return file_google_api_servicecontrol_v2_service_controller_proto_rawDescData
531 }
532
533 var file_google_api_servicecontrol_v2_service_controller_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
534 var file_google_api_servicecontrol_v2_service_controller_proto_goTypes = []interface{}{
535 (*CheckRequest)(nil), // 0: google.api.servicecontrol.v2.CheckRequest
536 (*ResourceInfo)(nil), // 1: google.api.servicecontrol.v2.ResourceInfo
537 (*CheckResponse)(nil), // 2: google.api.servicecontrol.v2.CheckResponse
538 (*ReportRequest)(nil), // 3: google.api.servicecontrol.v2.ReportRequest
539 (*ReportResponse)(nil), // 4: google.api.servicecontrol.v2.ReportResponse
540 nil, // 5: google.api.servicecontrol.v2.CheckResponse.HeadersEntry
541 (*attribute_context.AttributeContext)(nil), // 6: google.rpc.context.AttributeContext
542 (*status.Status)(nil), // 7: google.rpc.Status
543 }
544 var file_google_api_servicecontrol_v2_service_controller_proto_depIdxs = []int32{
545 6, // 0: google.api.servicecontrol.v2.CheckRequest.attributes:type_name -> google.rpc.context.AttributeContext
546 1, // 1: google.api.servicecontrol.v2.CheckRequest.resources:type_name -> google.api.servicecontrol.v2.ResourceInfo
547 7, // 2: google.api.servicecontrol.v2.CheckResponse.status:type_name -> google.rpc.Status
548 5, // 3: google.api.servicecontrol.v2.CheckResponse.headers:type_name -> google.api.servicecontrol.v2.CheckResponse.HeadersEntry
549 6, // 4: google.api.servicecontrol.v2.ReportRequest.operations:type_name -> google.rpc.context.AttributeContext
550 0, // 5: google.api.servicecontrol.v2.ServiceController.Check:input_type -> google.api.servicecontrol.v2.CheckRequest
551 3, // 6: google.api.servicecontrol.v2.ServiceController.Report:input_type -> google.api.servicecontrol.v2.ReportRequest
552 2, // 7: google.api.servicecontrol.v2.ServiceController.Check:output_type -> google.api.servicecontrol.v2.CheckResponse
553 4, // 8: google.api.servicecontrol.v2.ServiceController.Report:output_type -> google.api.servicecontrol.v2.ReportResponse
554 7, // [7:9] is the sub-list for method output_type
555 5, // [5:7] is the sub-list for method input_type
556 5, // [5:5] is the sub-list for extension type_name
557 5, // [5:5] is the sub-list for extension extendee
558 0, // [0:5] is the sub-list for field type_name
559 }
560
561 func init() { file_google_api_servicecontrol_v2_service_controller_proto_init() }
562 func file_google_api_servicecontrol_v2_service_controller_proto_init() {
563 if File_google_api_servicecontrol_v2_service_controller_proto != nil {
564 return
565 }
566 if !protoimpl.UnsafeEnabled {
567 file_google_api_servicecontrol_v2_service_controller_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
568 switch v := v.(*CheckRequest); i {
569 case 0:
570 return &v.state
571 case 1:
572 return &v.sizeCache
573 case 2:
574 return &v.unknownFields
575 default:
576 return nil
577 }
578 }
579 file_google_api_servicecontrol_v2_service_controller_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
580 switch v := v.(*ResourceInfo); i {
581 case 0:
582 return &v.state
583 case 1:
584 return &v.sizeCache
585 case 2:
586 return &v.unknownFields
587 default:
588 return nil
589 }
590 }
591 file_google_api_servicecontrol_v2_service_controller_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
592 switch v := v.(*CheckResponse); i {
593 case 0:
594 return &v.state
595 case 1:
596 return &v.sizeCache
597 case 2:
598 return &v.unknownFields
599 default:
600 return nil
601 }
602 }
603 file_google_api_servicecontrol_v2_service_controller_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
604 switch v := v.(*ReportRequest); i {
605 case 0:
606 return &v.state
607 case 1:
608 return &v.sizeCache
609 case 2:
610 return &v.unknownFields
611 default:
612 return nil
613 }
614 }
615 file_google_api_servicecontrol_v2_service_controller_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
616 switch v := v.(*ReportResponse); i {
617 case 0:
618 return &v.state
619 case 1:
620 return &v.sizeCache
621 case 2:
622 return &v.unknownFields
623 default:
624 return nil
625 }
626 }
627 }
628 type x struct{}
629 out := protoimpl.TypeBuilder{
630 File: protoimpl.DescBuilder{
631 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
632 RawDescriptor: file_google_api_servicecontrol_v2_service_controller_proto_rawDesc,
633 NumEnums: 0,
634 NumMessages: 6,
635 NumExtensions: 0,
636 NumServices: 1,
637 },
638 GoTypes: file_google_api_servicecontrol_v2_service_controller_proto_goTypes,
639 DependencyIndexes: file_google_api_servicecontrol_v2_service_controller_proto_depIdxs,
640 MessageInfos: file_google_api_servicecontrol_v2_service_controller_proto_msgTypes,
641 }.Build()
642 File_google_api_servicecontrol_v2_service_controller_proto = out.File
643 file_google_api_servicecontrol_v2_service_controller_proto_rawDesc = nil
644 file_google_api_servicecontrol_v2_service_controller_proto_goTypes = nil
645 file_google_api_servicecontrol_v2_service_controller_proto_depIdxs = nil
646 }
647
648 // Reference imports to suppress errors if they are not otherwise used.
649 var _ context.Context
650 var _ grpc.ClientConnInterface
651
652 // This is a compile-time assertion to ensure that this generated file
653 // is compatible with the grpc package it is being compiled against.
654 const _ = grpc.SupportPackageIsVersion6
655
656 // ServiceControllerClient is the client API for ServiceController service.
657 //
658 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
659 type ServiceControllerClient interface {
660 // Private Preview. This feature is only available for approved services.
661 //
662 // This method provides admission control for services that are integrated
663 // with [Service
664 // Infrastructure](https://cloud.google.com/service-infrastructure). It checks
665 // whether an operation should be allowed based on the service configuration
666 // and relevant policies. It must be called before the operation is executed.
667 // For more information, see
668 // [Admission
669 // Control](https://cloud.google.com/service-infrastructure/docs/admission-control).
670 //
671 // NOTE: The admission control has an expected policy propagation delay of
672 // 60s. The caller **must** not depend on the most recent policy changes.
673 //
674 // NOTE: The admission control has a hard limit of 1 referenced resources
675 // per call. If an operation refers to more than 1 resources, the caller
676 // must call the Check method multiple times.
677 //
678 // This method requires the `servicemanagement.services.check` permission
679 // on the specified service. For more information, see
680 // [Service Control API Access
681 // Control](https://cloud.google.com/service-infrastructure/docs/service-control/access-control).
682 Check(ctx context.Context, in *CheckRequest, opts ...grpc.CallOption) (*CheckResponse, error)
683 // Private Preview. This feature is only available for approved services.
684 //
685 // This method provides telemetry reporting for services that are integrated
686 // with [Service
687 // Infrastructure](https://cloud.google.com/service-infrastructure). It
688 // reports a list of operations that have occurred on a service. It must be
689 // called after the operations have been executed. For more information, see
690 // [Telemetry
691 // Reporting](https://cloud.google.com/service-infrastructure/docs/telemetry-reporting).
692 //
693 // NOTE: The telemetry reporting has a hard limit of 1000 operations and 1MB
694 // per Report call. It is recommended to have no more than 100 operations per
695 // call.
696 //
697 // This method requires the `servicemanagement.services.report` permission
698 // on the specified service. For more information, see
699 // [Service Control API Access
700 // Control](https://cloud.google.com/service-infrastructure/docs/service-control/access-control).
701 Report(ctx context.Context, in *ReportRequest, opts ...grpc.CallOption) (*ReportResponse, error)
702 }
703
704 type serviceControllerClient struct {
705 cc grpc.ClientConnInterface
706 }
707
708 func NewServiceControllerClient(cc grpc.ClientConnInterface) ServiceControllerClient {
709 return &serviceControllerClient{cc}
710 }
711
712 func (c *serviceControllerClient) Check(ctx context.Context, in *CheckRequest, opts ...grpc.CallOption) (*CheckResponse, error) {
713 out := new(CheckResponse)
714 err := c.cc.Invoke(ctx, "/google.api.servicecontrol.v2.ServiceController/Check", in, out, opts...)
715 if err != nil {
716 return nil, err
717 }
718 return out, nil
719 }
720
721 func (c *serviceControllerClient) Report(ctx context.Context, in *ReportRequest, opts ...grpc.CallOption) (*ReportResponse, error) {
722 out := new(ReportResponse)
723 err := c.cc.Invoke(ctx, "/google.api.servicecontrol.v2.ServiceController/Report", in, out, opts...)
724 if err != nil {
725 return nil, err
726 }
727 return out, nil
728 }
729
730 // ServiceControllerServer is the server API for ServiceController service.
731 type ServiceControllerServer interface {
732 // Private Preview. This feature is only available for approved services.
733 //
734 // This method provides admission control for services that are integrated
735 // with [Service
736 // Infrastructure](https://cloud.google.com/service-infrastructure). It checks
737 // whether an operation should be allowed based on the service configuration
738 // and relevant policies. It must be called before the operation is executed.
739 // For more information, see
740 // [Admission
741 // Control](https://cloud.google.com/service-infrastructure/docs/admission-control).
742 //
743 // NOTE: The admission control has an expected policy propagation delay of
744 // 60s. The caller **must** not depend on the most recent policy changes.
745 //
746 // NOTE: The admission control has a hard limit of 1 referenced resources
747 // per call. If an operation refers to more than 1 resources, the caller
748 // must call the Check method multiple times.
749 //
750 // This method requires the `servicemanagement.services.check` permission
751 // on the specified service. For more information, see
752 // [Service Control API Access
753 // Control](https://cloud.google.com/service-infrastructure/docs/service-control/access-control).
754 Check(context.Context, *CheckRequest) (*CheckResponse, error)
755 // Private Preview. This feature is only available for approved services.
756 //
757 // This method provides telemetry reporting for services that are integrated
758 // with [Service
759 // Infrastructure](https://cloud.google.com/service-infrastructure). It
760 // reports a list of operations that have occurred on a service. It must be
761 // called after the operations have been executed. For more information, see
762 // [Telemetry
763 // Reporting](https://cloud.google.com/service-infrastructure/docs/telemetry-reporting).
764 //
765 // NOTE: The telemetry reporting has a hard limit of 1000 operations and 1MB
766 // per Report call. It is recommended to have no more than 100 operations per
767 // call.
768 //
769 // This method requires the `servicemanagement.services.report` permission
770 // on the specified service. For more information, see
771 // [Service Control API Access
772 // Control](https://cloud.google.com/service-infrastructure/docs/service-control/access-control).
773 Report(context.Context, *ReportRequest) (*ReportResponse, error)
774 }
775
776 // UnimplementedServiceControllerServer can be embedded to have forward compatible implementations.
777 type UnimplementedServiceControllerServer struct {
778 }
779
780 func (*UnimplementedServiceControllerServer) Check(context.Context, *CheckRequest) (*CheckResponse, error) {
781 return nil, status1.Errorf(codes.Unimplemented, "method Check not implemented")
782 }
783 func (*UnimplementedServiceControllerServer) Report(context.Context, *ReportRequest) (*ReportResponse, error) {
784 return nil, status1.Errorf(codes.Unimplemented, "method Report not implemented")
785 }
786
787 func RegisterServiceControllerServer(s *grpc.Server, srv ServiceControllerServer) {
788 s.RegisterService(&_ServiceController_serviceDesc, srv)
789 }
790
791 func _ServiceController_Check_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
792 in := new(CheckRequest)
793 if err := dec(in); err != nil {
794 return nil, err
795 }
796 if interceptor == nil {
797 return srv.(ServiceControllerServer).Check(ctx, in)
798 }
799 info := &grpc.UnaryServerInfo{
800 Server: srv,
801 FullMethod: "/google.api.servicecontrol.v2.ServiceController/Check",
802 }
803 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
804 return srv.(ServiceControllerServer).Check(ctx, req.(*CheckRequest))
805 }
806 return interceptor(ctx, in, info, handler)
807 }
808
809 func _ServiceController_Report_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
810 in := new(ReportRequest)
811 if err := dec(in); err != nil {
812 return nil, err
813 }
814 if interceptor == nil {
815 return srv.(ServiceControllerServer).Report(ctx, in)
816 }
817 info := &grpc.UnaryServerInfo{
818 Server: srv,
819 FullMethod: "/google.api.servicecontrol.v2.ServiceController/Report",
820 }
821 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
822 return srv.(ServiceControllerServer).Report(ctx, req.(*ReportRequest))
823 }
824 return interceptor(ctx, in, info, handler)
825 }
826
827 var _ServiceController_serviceDesc = grpc.ServiceDesc{
828 ServiceName: "google.api.servicecontrol.v2.ServiceController",
829 HandlerType: (*ServiceControllerServer)(nil),
830 Methods: []grpc.MethodDesc{
831 {
832 MethodName: "Check",
833 Handler: _ServiceController_Check_Handler,
834 },
835 {
836 MethodName: "Report",
837 Handler: _ServiceController_Report_Handler,
838 },
839 },
840 Streams: []grpc.StreamDesc{},
841 Metadata: "google/api/servicecontrol/v2/service_controller.proto",
842 }