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