1// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: google/api/servicecontrol/v1/service_controller.proto
3
4package servicecontrol
5
6import (
7	context "context"
8	fmt "fmt"
9	math "math"
10
11	proto "github.com/golang/protobuf/proto"
12	_ "google.golang.org/genproto/googleapis/api/annotations"
13	status "google.golang.org/genproto/googleapis/rpc/status"
14	grpc "google.golang.org/grpc"
15	codes "google.golang.org/grpc/codes"
16	status1 "google.golang.org/grpc/status"
17)
18
19// Reference imports to suppress errors if they are not otherwise used.
20var _ = proto.Marshal
21var _ = fmt.Errorf
22var _ = math.Inf
23
24// This is a compile-time assertion to ensure that this generated file
25// is compatible with the proto package it is being compiled against.
26// A compilation error at this line likely means your copy of the
27// proto package needs to be updated.
28const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
29
30// Request message for the Check method.
31type CheckRequest struct {
32	// The service name as specified in its service configuration. For example,
33	// `"pubsub.googleapis.com"`.
34	//
35	// See
36	// [google.api.Service](https://cloud.google.com/service-management/reference/rpc/google.api#google.api.Service)
37	// for the definition of a service name.
38	ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
39	// The operation to be checked.
40	Operation *Operation `protobuf:"bytes,2,opt,name=operation,proto3" json:"operation,omitempty"`
41	// Specifies which version of service configuration should be used to process
42	// the request.
43	//
44	// If unspecified or no matching version can be found, the
45	// latest one will be used.
46	ServiceConfigId      string   `protobuf:"bytes,4,opt,name=service_config_id,json=serviceConfigId,proto3" json:"service_config_id,omitempty"`
47	XXX_NoUnkeyedLiteral struct{} `json:"-"`
48	XXX_unrecognized     []byte   `json:"-"`
49	XXX_sizecache        int32    `json:"-"`
50}
51
52func (m *CheckRequest) Reset()         { *m = CheckRequest{} }
53func (m *CheckRequest) String() string { return proto.CompactTextString(m) }
54func (*CheckRequest) ProtoMessage()    {}
55func (*CheckRequest) Descriptor() ([]byte, []int) {
56	return fileDescriptor_8f215053b51b20e0, []int{0}
57}
58
59func (m *CheckRequest) XXX_Unmarshal(b []byte) error {
60	return xxx_messageInfo_CheckRequest.Unmarshal(m, b)
61}
62func (m *CheckRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
63	return xxx_messageInfo_CheckRequest.Marshal(b, m, deterministic)
64}
65func (m *CheckRequest) XXX_Merge(src proto.Message) {
66	xxx_messageInfo_CheckRequest.Merge(m, src)
67}
68func (m *CheckRequest) XXX_Size() int {
69	return xxx_messageInfo_CheckRequest.Size(m)
70}
71func (m *CheckRequest) XXX_DiscardUnknown() {
72	xxx_messageInfo_CheckRequest.DiscardUnknown(m)
73}
74
75var xxx_messageInfo_CheckRequest proto.InternalMessageInfo
76
77func (m *CheckRequest) GetServiceName() string {
78	if m != nil {
79		return m.ServiceName
80	}
81	return ""
82}
83
84func (m *CheckRequest) GetOperation() *Operation {
85	if m != nil {
86		return m.Operation
87	}
88	return nil
89}
90
91func (m *CheckRequest) GetServiceConfigId() string {
92	if m != nil {
93		return m.ServiceConfigId
94	}
95	return ""
96}
97
98// Response message for the Check method.
99type CheckResponse struct {
100	// The same operation_id value used in the
101	// [CheckRequest][google.api.servicecontrol.v1.CheckRequest]. Used for logging
102	// and diagnostics purposes.
103	OperationId string `protobuf:"bytes,1,opt,name=operation_id,json=operationId,proto3" json:"operation_id,omitempty"`
104	// The current service rollout id used to process the request.
105	ServiceRolloutId string `protobuf:"bytes,11,opt,name=service_rollout_id,json=serviceRolloutId,proto3" json:"service_rollout_id,omitempty"`
106	// Indicate the decision of the check.
107	//
108	// If no check errors are present, the service should process the operation.
109	// Otherwise the service should use the list of errors to determine the
110	// appropriate action.
111	CheckErrors []*CheckError `protobuf:"bytes,2,rep,name=check_errors,json=checkErrors,proto3" json:"check_errors,omitempty"`
112	// The actual config id used to process the request.
113	ServiceConfigId string `protobuf:"bytes,5,opt,name=service_config_id,json=serviceConfigId,proto3" json:"service_config_id,omitempty"`
114	// Feedback data returned from the server during processing a Check request.
115	CheckInfo            *CheckResponse_CheckInfo `protobuf:"bytes,6,opt,name=check_info,json=checkInfo,proto3" json:"check_info,omitempty"`
116	XXX_NoUnkeyedLiteral struct{}                 `json:"-"`
117	XXX_unrecognized     []byte                   `json:"-"`
118	XXX_sizecache        int32                    `json:"-"`
119}
120
121func (m *CheckResponse) Reset()         { *m = CheckResponse{} }
122func (m *CheckResponse) String() string { return proto.CompactTextString(m) }
123func (*CheckResponse) ProtoMessage()    {}
124func (*CheckResponse) Descriptor() ([]byte, []int) {
125	return fileDescriptor_8f215053b51b20e0, []int{1}
126}
127
128func (m *CheckResponse) XXX_Unmarshal(b []byte) error {
129	return xxx_messageInfo_CheckResponse.Unmarshal(m, b)
130}
131func (m *CheckResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
132	return xxx_messageInfo_CheckResponse.Marshal(b, m, deterministic)
133}
134func (m *CheckResponse) XXX_Merge(src proto.Message) {
135	xxx_messageInfo_CheckResponse.Merge(m, src)
136}
137func (m *CheckResponse) XXX_Size() int {
138	return xxx_messageInfo_CheckResponse.Size(m)
139}
140func (m *CheckResponse) XXX_DiscardUnknown() {
141	xxx_messageInfo_CheckResponse.DiscardUnknown(m)
142}
143
144var xxx_messageInfo_CheckResponse proto.InternalMessageInfo
145
146func (m *CheckResponse) GetOperationId() string {
147	if m != nil {
148		return m.OperationId
149	}
150	return ""
151}
152
153func (m *CheckResponse) GetServiceRolloutId() string {
154	if m != nil {
155		return m.ServiceRolloutId
156	}
157	return ""
158}
159
160func (m *CheckResponse) GetCheckErrors() []*CheckError {
161	if m != nil {
162		return m.CheckErrors
163	}
164	return nil
165}
166
167func (m *CheckResponse) GetServiceConfigId() string {
168	if m != nil {
169		return m.ServiceConfigId
170	}
171	return ""
172}
173
174func (m *CheckResponse) GetCheckInfo() *CheckResponse_CheckInfo {
175	if m != nil {
176		return m.CheckInfo
177	}
178	return nil
179}
180
181type CheckResponse_CheckInfo struct {
182	// Consumer info of this check.
183	ConsumerInfo         *CheckResponse_ConsumerInfo `protobuf:"bytes,2,opt,name=consumer_info,json=consumerInfo,proto3" json:"consumer_info,omitempty"`
184	XXX_NoUnkeyedLiteral struct{}                    `json:"-"`
185	XXX_unrecognized     []byte                      `json:"-"`
186	XXX_sizecache        int32                       `json:"-"`
187}
188
189func (m *CheckResponse_CheckInfo) Reset()         { *m = CheckResponse_CheckInfo{} }
190func (m *CheckResponse_CheckInfo) String() string { return proto.CompactTextString(m) }
191func (*CheckResponse_CheckInfo) ProtoMessage()    {}
192func (*CheckResponse_CheckInfo) Descriptor() ([]byte, []int) {
193	return fileDescriptor_8f215053b51b20e0, []int{1, 0}
194}
195
196func (m *CheckResponse_CheckInfo) XXX_Unmarshal(b []byte) error {
197	return xxx_messageInfo_CheckResponse_CheckInfo.Unmarshal(m, b)
198}
199func (m *CheckResponse_CheckInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
200	return xxx_messageInfo_CheckResponse_CheckInfo.Marshal(b, m, deterministic)
201}
202func (m *CheckResponse_CheckInfo) XXX_Merge(src proto.Message) {
203	xxx_messageInfo_CheckResponse_CheckInfo.Merge(m, src)
204}
205func (m *CheckResponse_CheckInfo) XXX_Size() int {
206	return xxx_messageInfo_CheckResponse_CheckInfo.Size(m)
207}
208func (m *CheckResponse_CheckInfo) XXX_DiscardUnknown() {
209	xxx_messageInfo_CheckResponse_CheckInfo.DiscardUnknown(m)
210}
211
212var xxx_messageInfo_CheckResponse_CheckInfo proto.InternalMessageInfo
213
214func (m *CheckResponse_CheckInfo) GetConsumerInfo() *CheckResponse_ConsumerInfo {
215	if m != nil {
216		return m.ConsumerInfo
217	}
218	return nil
219}
220
221// `ConsumerInfo` provides information about the consumer project.
222type CheckResponse_ConsumerInfo struct {
223	// The Google cloud project number, e.g. 1234567890. A value of 0 indicates
224	// no project number is found.
225	ProjectNumber        int64    `protobuf:"varint,1,opt,name=project_number,json=projectNumber,proto3" json:"project_number,omitempty"`
226	XXX_NoUnkeyedLiteral struct{} `json:"-"`
227	XXX_unrecognized     []byte   `json:"-"`
228	XXX_sizecache        int32    `json:"-"`
229}
230
231func (m *CheckResponse_ConsumerInfo) Reset()         { *m = CheckResponse_ConsumerInfo{} }
232func (m *CheckResponse_ConsumerInfo) String() string { return proto.CompactTextString(m) }
233func (*CheckResponse_ConsumerInfo) ProtoMessage()    {}
234func (*CheckResponse_ConsumerInfo) Descriptor() ([]byte, []int) {
235	return fileDescriptor_8f215053b51b20e0, []int{1, 1}
236}
237
238func (m *CheckResponse_ConsumerInfo) XXX_Unmarshal(b []byte) error {
239	return xxx_messageInfo_CheckResponse_ConsumerInfo.Unmarshal(m, b)
240}
241func (m *CheckResponse_ConsumerInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
242	return xxx_messageInfo_CheckResponse_ConsumerInfo.Marshal(b, m, deterministic)
243}
244func (m *CheckResponse_ConsumerInfo) XXX_Merge(src proto.Message) {
245	xxx_messageInfo_CheckResponse_ConsumerInfo.Merge(m, src)
246}
247func (m *CheckResponse_ConsumerInfo) XXX_Size() int {
248	return xxx_messageInfo_CheckResponse_ConsumerInfo.Size(m)
249}
250func (m *CheckResponse_ConsumerInfo) XXX_DiscardUnknown() {
251	xxx_messageInfo_CheckResponse_ConsumerInfo.DiscardUnknown(m)
252}
253
254var xxx_messageInfo_CheckResponse_ConsumerInfo proto.InternalMessageInfo
255
256func (m *CheckResponse_ConsumerInfo) GetProjectNumber() int64 {
257	if m != nil {
258		return m.ProjectNumber
259	}
260	return 0
261}
262
263// Request message for the Report method.
264type ReportRequest struct {
265	// The service name as specified in its service configuration. For example,
266	// `"pubsub.googleapis.com"`.
267	//
268	// See
269	// [google.api.Service](https://cloud.google.com/service-management/reference/rpc/google.api#google.api.Service)
270	// for the definition of a service name.
271	ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
272	// Operations to be reported.
273	//
274	// Typically the service should report one operation per request.
275	// Putting multiple operations into a single request is allowed, but should
276	// be used only when multiple operations are natually available at the time
277	// of the report.
278	//
279	// If multiple operations are in a single request, the total request size
280	// should be no larger than 1MB. See
281	// [ReportResponse.report_errors][google.api.servicecontrol.v1.ReportResponse.report_errors]
282	// for partial failure behavior.
283	Operations []*Operation `protobuf:"bytes,2,rep,name=operations,proto3" json:"operations,omitempty"`
284	// Specifies which version of service config should be used to process the
285	// request.
286	//
287	// If unspecified or no matching version can be found, the
288	// latest one will be used.
289	ServiceConfigId      string   `protobuf:"bytes,3,opt,name=service_config_id,json=serviceConfigId,proto3" json:"service_config_id,omitempty"`
290	XXX_NoUnkeyedLiteral struct{} `json:"-"`
291	XXX_unrecognized     []byte   `json:"-"`
292	XXX_sizecache        int32    `json:"-"`
293}
294
295func (m *ReportRequest) Reset()         { *m = ReportRequest{} }
296func (m *ReportRequest) String() string { return proto.CompactTextString(m) }
297func (*ReportRequest) ProtoMessage()    {}
298func (*ReportRequest) Descriptor() ([]byte, []int) {
299	return fileDescriptor_8f215053b51b20e0, []int{2}
300}
301
302func (m *ReportRequest) XXX_Unmarshal(b []byte) error {
303	return xxx_messageInfo_ReportRequest.Unmarshal(m, b)
304}
305func (m *ReportRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
306	return xxx_messageInfo_ReportRequest.Marshal(b, m, deterministic)
307}
308func (m *ReportRequest) XXX_Merge(src proto.Message) {
309	xxx_messageInfo_ReportRequest.Merge(m, src)
310}
311func (m *ReportRequest) XXX_Size() int {
312	return xxx_messageInfo_ReportRequest.Size(m)
313}
314func (m *ReportRequest) XXX_DiscardUnknown() {
315	xxx_messageInfo_ReportRequest.DiscardUnknown(m)
316}
317
318var xxx_messageInfo_ReportRequest proto.InternalMessageInfo
319
320func (m *ReportRequest) GetServiceName() string {
321	if m != nil {
322		return m.ServiceName
323	}
324	return ""
325}
326
327func (m *ReportRequest) GetOperations() []*Operation {
328	if m != nil {
329		return m.Operations
330	}
331	return nil
332}
333
334func (m *ReportRequest) GetServiceConfigId() string {
335	if m != nil {
336		return m.ServiceConfigId
337	}
338	return ""
339}
340
341// Response message for the Report method.
342type ReportResponse struct {
343	// Partial failures, one for each `Operation` in the request that failed
344	// processing. There are three possible combinations of the RPC status:
345	//
346	// 1. The combination of a successful RPC status and an empty `report_errors`
347	//    list indicates a complete success where all `Operations` in the
348	//    request are processed successfully.
349	// 2. The combination of a successful RPC status and a non-empty
350	//    `report_errors` list indicates a partial success where some
351	//    `Operations` in the request succeeded. Each
352	//    `Operation` that failed processing has a corresponding item
353	//    in this list.
354	// 3. A failed RPC status indicates a general non-deterministic failure.
355	//    When this happens, it's impossible to know which of the
356	//    'Operations' in the request succeeded or failed.
357	ReportErrors []*ReportResponse_ReportError `protobuf:"bytes,1,rep,name=report_errors,json=reportErrors,proto3" json:"report_errors,omitempty"`
358	// The actual config id used to process the request.
359	ServiceConfigId string `protobuf:"bytes,2,opt,name=service_config_id,json=serviceConfigId,proto3" json:"service_config_id,omitempty"`
360	// The current service rollout id used to process the request.
361	ServiceRolloutId     string   `protobuf:"bytes,4,opt,name=service_rollout_id,json=serviceRolloutId,proto3" json:"service_rollout_id,omitempty"`
362	XXX_NoUnkeyedLiteral struct{} `json:"-"`
363	XXX_unrecognized     []byte   `json:"-"`
364	XXX_sizecache        int32    `json:"-"`
365}
366
367func (m *ReportResponse) Reset()         { *m = ReportResponse{} }
368func (m *ReportResponse) String() string { return proto.CompactTextString(m) }
369func (*ReportResponse) ProtoMessage()    {}
370func (*ReportResponse) Descriptor() ([]byte, []int) {
371	return fileDescriptor_8f215053b51b20e0, []int{3}
372}
373
374func (m *ReportResponse) XXX_Unmarshal(b []byte) error {
375	return xxx_messageInfo_ReportResponse.Unmarshal(m, b)
376}
377func (m *ReportResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
378	return xxx_messageInfo_ReportResponse.Marshal(b, m, deterministic)
379}
380func (m *ReportResponse) XXX_Merge(src proto.Message) {
381	xxx_messageInfo_ReportResponse.Merge(m, src)
382}
383func (m *ReportResponse) XXX_Size() int {
384	return xxx_messageInfo_ReportResponse.Size(m)
385}
386func (m *ReportResponse) XXX_DiscardUnknown() {
387	xxx_messageInfo_ReportResponse.DiscardUnknown(m)
388}
389
390var xxx_messageInfo_ReportResponse proto.InternalMessageInfo
391
392func (m *ReportResponse) GetReportErrors() []*ReportResponse_ReportError {
393	if m != nil {
394		return m.ReportErrors
395	}
396	return nil
397}
398
399func (m *ReportResponse) GetServiceConfigId() string {
400	if m != nil {
401		return m.ServiceConfigId
402	}
403	return ""
404}
405
406func (m *ReportResponse) GetServiceRolloutId() string {
407	if m != nil {
408		return m.ServiceRolloutId
409	}
410	return ""
411}
412
413// Represents the processing error of one
414// [Operation][google.api.servicecontrol.v1.Operation] in the request.
415type ReportResponse_ReportError struct {
416	// The
417	// [Operation.operation_id][google.api.servicecontrol.v1.Operation.operation_id]
418	// value from the request.
419	OperationId string `protobuf:"bytes,1,opt,name=operation_id,json=operationId,proto3" json:"operation_id,omitempty"`
420	// Details of the error when processing the
421	// [Operation][google.api.servicecontrol.v1.Operation].
422	Status               *status.Status `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
423	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
424	XXX_unrecognized     []byte         `json:"-"`
425	XXX_sizecache        int32          `json:"-"`
426}
427
428func (m *ReportResponse_ReportError) Reset()         { *m = ReportResponse_ReportError{} }
429func (m *ReportResponse_ReportError) String() string { return proto.CompactTextString(m) }
430func (*ReportResponse_ReportError) ProtoMessage()    {}
431func (*ReportResponse_ReportError) Descriptor() ([]byte, []int) {
432	return fileDescriptor_8f215053b51b20e0, []int{3, 0}
433}
434
435func (m *ReportResponse_ReportError) XXX_Unmarshal(b []byte) error {
436	return xxx_messageInfo_ReportResponse_ReportError.Unmarshal(m, b)
437}
438func (m *ReportResponse_ReportError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
439	return xxx_messageInfo_ReportResponse_ReportError.Marshal(b, m, deterministic)
440}
441func (m *ReportResponse_ReportError) XXX_Merge(src proto.Message) {
442	xxx_messageInfo_ReportResponse_ReportError.Merge(m, src)
443}
444func (m *ReportResponse_ReportError) XXX_Size() int {
445	return xxx_messageInfo_ReportResponse_ReportError.Size(m)
446}
447func (m *ReportResponse_ReportError) XXX_DiscardUnknown() {
448	xxx_messageInfo_ReportResponse_ReportError.DiscardUnknown(m)
449}
450
451var xxx_messageInfo_ReportResponse_ReportError proto.InternalMessageInfo
452
453func (m *ReportResponse_ReportError) GetOperationId() string {
454	if m != nil {
455		return m.OperationId
456	}
457	return ""
458}
459
460func (m *ReportResponse_ReportError) GetStatus() *status.Status {
461	if m != nil {
462		return m.Status
463	}
464	return nil
465}
466
467func init() {
468	proto.RegisterType((*CheckRequest)(nil), "google.api.servicecontrol.v1.CheckRequest")
469	proto.RegisterType((*CheckResponse)(nil), "google.api.servicecontrol.v1.CheckResponse")
470	proto.RegisterType((*CheckResponse_CheckInfo)(nil), "google.api.servicecontrol.v1.CheckResponse.CheckInfo")
471	proto.RegisterType((*CheckResponse_ConsumerInfo)(nil), "google.api.servicecontrol.v1.CheckResponse.ConsumerInfo")
472	proto.RegisterType((*ReportRequest)(nil), "google.api.servicecontrol.v1.ReportRequest")
473	proto.RegisterType((*ReportResponse)(nil), "google.api.servicecontrol.v1.ReportResponse")
474	proto.RegisterType((*ReportResponse_ReportError)(nil), "google.api.servicecontrol.v1.ReportResponse.ReportError")
475}
476
477func init() {
478	proto.RegisterFile("google/api/servicecontrol/v1/service_controller.proto", fileDescriptor_8f215053b51b20e0)
479}
480
481var fileDescriptor_8f215053b51b20e0 = []byte{
482	// 645 bytes of a gzipped FileDescriptorProto
483	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x55, 0x4d, 0x6e, 0xd3, 0x40,
484	0x14, 0xd6, 0x38, 0x6d, 0xa4, 0x3c, 0x3b, 0x85, 0xce, 0x02, 0x22, 0xab, 0x8b, 0xd4, 0x12, 0x34,
485	0x4a, 0x83, 0xad, 0x16, 0x55, 0x42, 0x65, 0x45, 0xab, 0xaa, 0x0a, 0x48, 0xa5, 0x72, 0x59, 0x21,
486	0xaa, 0xc8, 0x9d, 0x4c, 0x8d, 0x4b, 0x32, 0x63, 0xc6, 0x4e, 0x37, 0x88, 0x0d, 0x07, 0x60, 0x51,
487	0x6e, 0x80, 0x90, 0x7a, 0x06, 0xae, 0x01, 0x57, 0xe0, 0x10, 0x2c, 0x91, 0x67, 0xc6, 0xae, 0x2b,
488	0x8c, 0x49, 0x76, 0x99, 0xf7, 0xf7, 0x7d, 0xef, 0xbd, 0xcf, 0x2f, 0xb0, 0x13, 0x72, 0x1e, 0x4e,
489	0xa8, 0x17, 0xc4, 0x91, 0x97, 0x50, 0x71, 0x19, 0x11, 0x4a, 0x38, 0x4b, 0x05, 0x9f, 0x78, 0x97,
490	0x5b, 0xb9, 0x65, 0xa4, 0x4d, 0x13, 0x2a, 0xdc, 0x58, 0xf0, 0x94, 0xe3, 0x35, 0x95, 0xe6, 0x06,
491	0x71, 0xe4, 0xde, 0x4e, 0x73, 0x2f, 0xb7, 0xec, 0xb5, 0x52, 0xd1, 0x80, 0x31, 0x9e, 0x06, 0x69,
492	0xc4, 0x59, 0xa2, 0x72, 0x6d, 0xb7, 0x16, 0x92, 0xbc, 0xa5, 0xe4, 0xdd, 0x88, 0x0a, 0xc1, 0x35,
493	0x96, 0x3d, 0xa8, 0x8d, 0xe7, 0x31, 0x15, 0xb2, 0xbc, 0x8e, 0xbe, 0xaf, 0xa3, 0x45, 0x4c, 0xbc,
494	0x24, 0x0d, 0xd2, 0x99, 0x86, 0x75, 0xbe, 0x21, 0xb0, 0xf6, 0xb3, 0xe2, 0x3e, 0x7d, 0x3f, 0xa3,
495	0x49, 0x8a, 0xd7, 0xc1, 0xca, 0xfb, 0x63, 0xc1, 0x94, 0x76, 0x50, 0x17, 0xf5, 0x5a, 0xbe, 0xa9,
496	0x6d, 0x47, 0xc1, 0x94, 0xe2, 0x03, 0x68, 0x15, 0xf5, 0x3b, 0x46, 0x17, 0xf5, 0xcc, 0xed, 0x0d,
497	0xb7, 0xae, 0x75, 0xf7, 0x65, 0x1e, 0xee, 0xdf, 0x64, 0xe2, 0x3e, 0xac, 0x96, 0x26, 0x79, 0x1e,
498	0x85, 0xa3, 0x68, 0xdc, 0x59, 0x92, 0x70, 0x77, 0xb4, 0x63, 0x5f, 0xda, 0x87, 0x63, 0xe7, 0x47,
499	0x03, 0xda, 0x9a, 0x66, 0x12, 0x73, 0x96, 0xd0, 0x8c, 0x67, 0x51, 0x2a, 0x4b, 0xd4, 0x3c, 0x0b,
500	0xdb, 0x70, 0x8c, 0x07, 0x80, 0x73, 0x80, 0x6c, 0x4d, 0x7c, 0x96, 0x66, 0x81, 0xa6, 0x0c, 0xbc,
501	0xab, 0x3d, 0xbe, 0x72, 0x0c, 0xc7, 0xf8, 0x05, 0x58, 0xa5, 0x29, 0x27, 0x1d, 0xa3, 0xdb, 0xe8,
502	0x99, 0xdb, 0xbd, 0xfa, 0xc6, 0x24, 0xa7, 0x83, 0x2c, 0xc1, 0x37, 0x49, 0xf1, 0x3b, 0xa9, 0xee,
503	0x6d, 0xb9, 0xb2, 0x37, 0xfc, 0x0a, 0x40, 0x01, 0x47, 0xec, 0x9c, 0x77, 0x9a, 0x72, 0x9e, 0x3b,
504	0x73, 0xc0, 0xe6, 0xa3, 0x50, 0xaf, 0x21, 0x3b, 0xe7, 0x7e, 0x8b, 0xe4, 0x3f, 0xed, 0x0b, 0x68,
505	0x15, 0x76, 0x7c, 0x0a, 0x6d, 0xc2, 0x59, 0x32, 0x9b, 0x52, 0xa1, 0x50, 0xd4, 0xd6, 0x9e, 0x2c,
506	0x84, 0xa2, 0x0b, 0x48, 0x20, 0x8b, 0x94, 0x5e, 0xf6, 0x0e, 0x58, 0x65, 0x2f, 0x7e, 0x00, 0x2b,
507	0xb1, 0xe0, 0x17, 0x94, 0xa4, 0x23, 0x36, 0x9b, 0x9e, 0x51, 0x21, 0xb7, 0xd3, 0xf0, 0xdb, 0xda,
508	0x7a, 0x24, 0x8d, 0xce, 0x35, 0x82, 0xb6, 0x4f, 0x63, 0x2e, 0xd2, 0x05, 0xc4, 0x77, 0x08, 0x50,
509	0xec, 0x38, 0x5f, 0xd2, 0xdc, 0xea, 0x2b, 0xa5, 0x56, 0xaf, 0xa8, 0x51, 0x2d, 0xbf, 0x6b, 0x03,
510	0x56, 0x72, 0xa6, 0x5a, 0x7f, 0xa7, 0xd0, 0x16, 0xd2, 0x92, 0xeb, 0x05, 0x49, 0x2a, 0xff, 0x19,
511	0xe9, 0xed, 0x22, 0xfa, 0xa9, 0xf4, 0x63, 0x89, 0x9b, 0xc7, 0x3f, 0xd8, 0x19, 0xd5, 0x02, 0xaa,
512	0xd6, 0xf9, 0x52, 0xb5, 0xce, 0xed, 0x37, 0x60, 0x96, 0x60, 0xe7, 0xf9, 0x8e, 0xfa, 0xd0, 0x54,
513	0x37, 0x43, 0xcb, 0x06, 0xe7, 0x3d, 0x8a, 0x98, 0xb8, 0x27, 0xd2, 0xe3, 0xeb, 0x88, 0xed, 0xef,
514	0x06, 0xac, 0x9e, 0x14, 0xfc, 0xf4, 0x79, 0xc4, 0x9f, 0x11, 0x2c, 0x4b, 0x35, 0xe1, 0xfe, 0x5c,
515	0x92, 0x93, 0x6a, 0xb0, 0x37, 0x17, 0x90, 0xa7, 0x33, 0xf8, 0xf4, 0xf3, 0xd7, 0x17, 0xe3, 0xa1,
516	0xb3, 0x5e, 0xba, 0xd0, 0x89, 0xf7, 0xa1, 0x2c, 0xa7, 0x8f, 0xbb, 0xf2, 0xf3, 0xd8, 0x45, 0x7d,
517	0x7c, 0x85, 0xa0, 0xa9, 0xa6, 0x80, 0x37, 0xe7, 0xdb, 0x98, 0xa2, 0x34, 0x58, 0x64, 0xbd, 0xce,
518	0x23, 0xc9, 0x69, 0xc3, 0x71, 0xea, 0x38, 0xa9, 0xb5, 0xef, 0xa2, 0xfe, 0xde, 0x15, 0x82, 0x2e,
519	0xe1, 0xd3, 0x5a, 0x88, 0xbd, 0x7b, 0x7f, 0x4d, 0xf7, 0x38, 0x3b, 0xe4, 0xc7, 0xe8, 0xf5, 0x73,
520	0x9d, 0x17, 0xf2, 0x49, 0xc0, 0x42, 0x97, 0x8b, 0xd0, 0x0b, 0x29, 0x93, 0x67, 0xde, 0x53, 0xae,
521	0x20, 0x8e, 0x92, 0xea, 0x3f, 0x8c, 0xa7, 0xb7, 0x2d, 0xbf, 0x11, 0xfa, 0x6a, 0x2c, 0x1d, 0x3e,
522	0x3b, 0xd9, 0x3f, 0x6b, 0xca, 0x02, 0x8f, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0x2b, 0x33, 0x19,
523	0x2a, 0x13, 0x07, 0x00, 0x00,
524}
525
526// Reference imports to suppress errors if they are not otherwise used.
527var _ context.Context
528var _ grpc.ClientConnInterface
529
530// This is a compile-time assertion to ensure that this generated file
531// is compatible with the grpc package it is being compiled against.
532const _ = grpc.SupportPackageIsVersion6
533
534// ServiceControllerClient is the client API for ServiceController service.
535//
536// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
537type ServiceControllerClient interface {
538	// Checks an operation with Google Service Control to decide whether
539	// the given operation should proceed. It should be called before the
540	// operation is executed.
541	//
542	// If feasible, the client should cache the check results and reuse them for
543	// 60 seconds. In case of server errors, the client can rely on the cached
544	// results for longer time.
545	//
546	// NOTE: the [CheckRequest][google.api.servicecontrol.v1.CheckRequest] has the
547	// size limit of 64KB.
548	//
549	// This method requires the `servicemanagement.services.check` permission
550	// on the specified service. For more information, see
551	// [Google Cloud IAM](https://cloud.google.com/iam).
552	Check(ctx context.Context, in *CheckRequest, opts ...grpc.CallOption) (*CheckResponse, error)
553	// Reports operation results to Google Service Control, such as logs and
554	// metrics. It should be called after an operation is completed.
555	//
556	// If feasible, the client should aggregate reporting data for up to 5
557	// seconds to reduce API traffic. Limiting aggregation to 5 seconds is to
558	// reduce data loss during client crashes. Clients should carefully choose
559	// the aggregation time window to avoid data loss risk more than 0.01%
560	// for business and compliance reasons.
561	//
562	// NOTE: the [ReportRequest][google.api.servicecontrol.v1.ReportRequest] has
563	// the size limit of 1MB.
564	//
565	// This method requires the `servicemanagement.services.report` permission
566	// on the specified service. For more information, see
567	// [Google Cloud IAM](https://cloud.google.com/iam).
568	Report(ctx context.Context, in *ReportRequest, opts ...grpc.CallOption) (*ReportResponse, error)
569}
570
571type serviceControllerClient struct {
572	cc grpc.ClientConnInterface
573}
574
575func NewServiceControllerClient(cc grpc.ClientConnInterface) ServiceControllerClient {
576	return &serviceControllerClient{cc}
577}
578
579func (c *serviceControllerClient) Check(ctx context.Context, in *CheckRequest, opts ...grpc.CallOption) (*CheckResponse, error) {
580	out := new(CheckResponse)
581	err := c.cc.Invoke(ctx, "/google.api.servicecontrol.v1.ServiceController/Check", in, out, opts...)
582	if err != nil {
583		return nil, err
584	}
585	return out, nil
586}
587
588func (c *serviceControllerClient) Report(ctx context.Context, in *ReportRequest, opts ...grpc.CallOption) (*ReportResponse, error) {
589	out := new(ReportResponse)
590	err := c.cc.Invoke(ctx, "/google.api.servicecontrol.v1.ServiceController/Report", in, out, opts...)
591	if err != nil {
592		return nil, err
593	}
594	return out, nil
595}
596
597// ServiceControllerServer is the server API for ServiceController service.
598type ServiceControllerServer interface {
599	// Checks an operation with Google Service Control to decide whether
600	// the given operation should proceed. It should be called before the
601	// operation is executed.
602	//
603	// If feasible, the client should cache the check results and reuse them for
604	// 60 seconds. In case of server errors, the client can rely on the cached
605	// results for longer time.
606	//
607	// NOTE: the [CheckRequest][google.api.servicecontrol.v1.CheckRequest] has the
608	// size limit of 64KB.
609	//
610	// This method requires the `servicemanagement.services.check` permission
611	// on the specified service. For more information, see
612	// [Google Cloud IAM](https://cloud.google.com/iam).
613	Check(context.Context, *CheckRequest) (*CheckResponse, error)
614	// Reports operation results to Google Service Control, such as logs and
615	// metrics. It should be called after an operation is completed.
616	//
617	// If feasible, the client should aggregate reporting data for up to 5
618	// seconds to reduce API traffic. Limiting aggregation to 5 seconds is to
619	// reduce data loss during client crashes. Clients should carefully choose
620	// the aggregation time window to avoid data loss risk more than 0.01%
621	// for business and compliance reasons.
622	//
623	// NOTE: the [ReportRequest][google.api.servicecontrol.v1.ReportRequest] has
624	// the size limit of 1MB.
625	//
626	// This method requires the `servicemanagement.services.report` permission
627	// on the specified service. For more information, see
628	// [Google Cloud IAM](https://cloud.google.com/iam).
629	Report(context.Context, *ReportRequest) (*ReportResponse, error)
630}
631
632// UnimplementedServiceControllerServer can be embedded to have forward compatible implementations.
633type UnimplementedServiceControllerServer struct {
634}
635
636func (*UnimplementedServiceControllerServer) Check(ctx context.Context, req *CheckRequest) (*CheckResponse, error) {
637	return nil, status1.Errorf(codes.Unimplemented, "method Check not implemented")
638}
639func (*UnimplementedServiceControllerServer) Report(ctx context.Context, req *ReportRequest) (*ReportResponse, error) {
640	return nil, status1.Errorf(codes.Unimplemented, "method Report not implemented")
641}
642
643func RegisterServiceControllerServer(s *grpc.Server, srv ServiceControllerServer) {
644	s.RegisterService(&_ServiceController_serviceDesc, srv)
645}
646
647func _ServiceController_Check_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
648	in := new(CheckRequest)
649	if err := dec(in); err != nil {
650		return nil, err
651	}
652	if interceptor == nil {
653		return srv.(ServiceControllerServer).Check(ctx, in)
654	}
655	info := &grpc.UnaryServerInfo{
656		Server:     srv,
657		FullMethod: "/google.api.servicecontrol.v1.ServiceController/Check",
658	}
659	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
660		return srv.(ServiceControllerServer).Check(ctx, req.(*CheckRequest))
661	}
662	return interceptor(ctx, in, info, handler)
663}
664
665func _ServiceController_Report_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
666	in := new(ReportRequest)
667	if err := dec(in); err != nil {
668		return nil, err
669	}
670	if interceptor == nil {
671		return srv.(ServiceControllerServer).Report(ctx, in)
672	}
673	info := &grpc.UnaryServerInfo{
674		Server:     srv,
675		FullMethod: "/google.api.servicecontrol.v1.ServiceController/Report",
676	}
677	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
678		return srv.(ServiceControllerServer).Report(ctx, req.(*ReportRequest))
679	}
680	return interceptor(ctx, in, info, handler)
681}
682
683var _ServiceController_serviceDesc = grpc.ServiceDesc{
684	ServiceName: "google.api.servicecontrol.v1.ServiceController",
685	HandlerType: (*ServiceControllerServer)(nil),
686	Methods: []grpc.MethodDesc{
687		{
688			MethodName: "Check",
689			Handler:    _ServiceController_Check_Handler,
690		},
691		{
692			MethodName: "Report",
693			Handler:    _ServiceController_Report_Handler,
694		},
695	},
696	Streams:  []grpc.StreamDesc{},
697	Metadata: "google/api/servicecontrol/v1/service_controller.proto",
698}
699