1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: google/cloud/websecurityscanner/v1beta/web_security_scanner.proto 3 4package websecurityscanner 5 6import ( 7 context "context" 8 fmt "fmt" 9 math "math" 10 11 proto "github.com/golang/protobuf/proto" 12 empty "github.com/golang/protobuf/ptypes/empty" 13 _ "google.golang.org/genproto/googleapis/api/annotations" 14 field_mask "google.golang.org/genproto/protobuf/field_mask" 15 grpc "google.golang.org/grpc" 16) 17 18// Reference imports to suppress errors if they are not otherwise used. 19var _ = proto.Marshal 20var _ = fmt.Errorf 21var _ = math.Inf 22 23// This is a compile-time assertion to ensure that this generated file 24// is compatible with the proto package it is being compiled against. 25// A compilation error at this line likely means your copy of the 26// proto package needs to be updated. 27const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 28 29// Request for the `CreateScanConfig` method. 30type CreateScanConfigRequest struct { 31 // Required. 32 // The parent resource name where the scan is created, which should be a 33 // project resource name in the format 'projects/{projectId}'. 34 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` 35 // Required. 36 // The ScanConfig to be created. 37 ScanConfig *ScanConfig `protobuf:"bytes,2,opt,name=scan_config,json=scanConfig,proto3" json:"scan_config,omitempty"` 38 XXX_NoUnkeyedLiteral struct{} `json:"-"` 39 XXX_unrecognized []byte `json:"-"` 40 XXX_sizecache int32 `json:"-"` 41} 42 43func (m *CreateScanConfigRequest) Reset() { *m = CreateScanConfigRequest{} } 44func (m *CreateScanConfigRequest) String() string { return proto.CompactTextString(m) } 45func (*CreateScanConfigRequest) ProtoMessage() {} 46func (*CreateScanConfigRequest) Descriptor() ([]byte, []int) { 47 return fileDescriptor_aab783dd0f551f53, []int{0} 48} 49 50func (m *CreateScanConfigRequest) XXX_Unmarshal(b []byte) error { 51 return xxx_messageInfo_CreateScanConfigRequest.Unmarshal(m, b) 52} 53func (m *CreateScanConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 54 return xxx_messageInfo_CreateScanConfigRequest.Marshal(b, m, deterministic) 55} 56func (m *CreateScanConfigRequest) XXX_Merge(src proto.Message) { 57 xxx_messageInfo_CreateScanConfigRequest.Merge(m, src) 58} 59func (m *CreateScanConfigRequest) XXX_Size() int { 60 return xxx_messageInfo_CreateScanConfigRequest.Size(m) 61} 62func (m *CreateScanConfigRequest) XXX_DiscardUnknown() { 63 xxx_messageInfo_CreateScanConfigRequest.DiscardUnknown(m) 64} 65 66var xxx_messageInfo_CreateScanConfigRequest proto.InternalMessageInfo 67 68func (m *CreateScanConfigRequest) GetParent() string { 69 if m != nil { 70 return m.Parent 71 } 72 return "" 73} 74 75func (m *CreateScanConfigRequest) GetScanConfig() *ScanConfig { 76 if m != nil { 77 return m.ScanConfig 78 } 79 return nil 80} 81 82// Request for the `DeleteScanConfig` method. 83type DeleteScanConfigRequest struct { 84 // Required. 85 // The resource name of the ScanConfig to be deleted. The name follows the 86 // format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. 87 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 88 XXX_NoUnkeyedLiteral struct{} `json:"-"` 89 XXX_unrecognized []byte `json:"-"` 90 XXX_sizecache int32 `json:"-"` 91} 92 93func (m *DeleteScanConfigRequest) Reset() { *m = DeleteScanConfigRequest{} } 94func (m *DeleteScanConfigRequest) String() string { return proto.CompactTextString(m) } 95func (*DeleteScanConfigRequest) ProtoMessage() {} 96func (*DeleteScanConfigRequest) Descriptor() ([]byte, []int) { 97 return fileDescriptor_aab783dd0f551f53, []int{1} 98} 99 100func (m *DeleteScanConfigRequest) XXX_Unmarshal(b []byte) error { 101 return xxx_messageInfo_DeleteScanConfigRequest.Unmarshal(m, b) 102} 103func (m *DeleteScanConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 104 return xxx_messageInfo_DeleteScanConfigRequest.Marshal(b, m, deterministic) 105} 106func (m *DeleteScanConfigRequest) XXX_Merge(src proto.Message) { 107 xxx_messageInfo_DeleteScanConfigRequest.Merge(m, src) 108} 109func (m *DeleteScanConfigRequest) XXX_Size() int { 110 return xxx_messageInfo_DeleteScanConfigRequest.Size(m) 111} 112func (m *DeleteScanConfigRequest) XXX_DiscardUnknown() { 113 xxx_messageInfo_DeleteScanConfigRequest.DiscardUnknown(m) 114} 115 116var xxx_messageInfo_DeleteScanConfigRequest proto.InternalMessageInfo 117 118func (m *DeleteScanConfigRequest) GetName() string { 119 if m != nil { 120 return m.Name 121 } 122 return "" 123} 124 125// Request for the `GetScanConfig` method. 126type GetScanConfigRequest struct { 127 // Required. 128 // The resource name of the ScanConfig to be returned. The name follows the 129 // format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. 130 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 131 XXX_NoUnkeyedLiteral struct{} `json:"-"` 132 XXX_unrecognized []byte `json:"-"` 133 XXX_sizecache int32 `json:"-"` 134} 135 136func (m *GetScanConfigRequest) Reset() { *m = GetScanConfigRequest{} } 137func (m *GetScanConfigRequest) String() string { return proto.CompactTextString(m) } 138func (*GetScanConfigRequest) ProtoMessage() {} 139func (*GetScanConfigRequest) Descriptor() ([]byte, []int) { 140 return fileDescriptor_aab783dd0f551f53, []int{2} 141} 142 143func (m *GetScanConfigRequest) XXX_Unmarshal(b []byte) error { 144 return xxx_messageInfo_GetScanConfigRequest.Unmarshal(m, b) 145} 146func (m *GetScanConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 147 return xxx_messageInfo_GetScanConfigRequest.Marshal(b, m, deterministic) 148} 149func (m *GetScanConfigRequest) XXX_Merge(src proto.Message) { 150 xxx_messageInfo_GetScanConfigRequest.Merge(m, src) 151} 152func (m *GetScanConfigRequest) XXX_Size() int { 153 return xxx_messageInfo_GetScanConfigRequest.Size(m) 154} 155func (m *GetScanConfigRequest) XXX_DiscardUnknown() { 156 xxx_messageInfo_GetScanConfigRequest.DiscardUnknown(m) 157} 158 159var xxx_messageInfo_GetScanConfigRequest proto.InternalMessageInfo 160 161func (m *GetScanConfigRequest) GetName() string { 162 if m != nil { 163 return m.Name 164 } 165 return "" 166} 167 168// Request for the `ListScanConfigs` method. 169type ListScanConfigsRequest struct { 170 // Required. 171 // The parent resource name, which should be a project resource name in the 172 // format 'projects/{projectId}'. 173 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` 174 // A token identifying a page of results to be returned. This should be a 175 // `next_page_token` value returned from a previous List request. 176 // If unspecified, the first page of results is returned. 177 PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` 178 // The maximum number of ScanConfigs to return, can be limited by server. 179 // If not specified or not positive, the implementation will select a 180 // reasonable value. 181 PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` 182 XXX_NoUnkeyedLiteral struct{} `json:"-"` 183 XXX_unrecognized []byte `json:"-"` 184 XXX_sizecache int32 `json:"-"` 185} 186 187func (m *ListScanConfigsRequest) Reset() { *m = ListScanConfigsRequest{} } 188func (m *ListScanConfigsRequest) String() string { return proto.CompactTextString(m) } 189func (*ListScanConfigsRequest) ProtoMessage() {} 190func (*ListScanConfigsRequest) Descriptor() ([]byte, []int) { 191 return fileDescriptor_aab783dd0f551f53, []int{3} 192} 193 194func (m *ListScanConfigsRequest) XXX_Unmarshal(b []byte) error { 195 return xxx_messageInfo_ListScanConfigsRequest.Unmarshal(m, b) 196} 197func (m *ListScanConfigsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 198 return xxx_messageInfo_ListScanConfigsRequest.Marshal(b, m, deterministic) 199} 200func (m *ListScanConfigsRequest) XXX_Merge(src proto.Message) { 201 xxx_messageInfo_ListScanConfigsRequest.Merge(m, src) 202} 203func (m *ListScanConfigsRequest) XXX_Size() int { 204 return xxx_messageInfo_ListScanConfigsRequest.Size(m) 205} 206func (m *ListScanConfigsRequest) XXX_DiscardUnknown() { 207 xxx_messageInfo_ListScanConfigsRequest.DiscardUnknown(m) 208} 209 210var xxx_messageInfo_ListScanConfigsRequest proto.InternalMessageInfo 211 212func (m *ListScanConfigsRequest) GetParent() string { 213 if m != nil { 214 return m.Parent 215 } 216 return "" 217} 218 219func (m *ListScanConfigsRequest) GetPageToken() string { 220 if m != nil { 221 return m.PageToken 222 } 223 return "" 224} 225 226func (m *ListScanConfigsRequest) GetPageSize() int32 { 227 if m != nil { 228 return m.PageSize 229 } 230 return 0 231} 232 233// Request for the `UpdateScanConfigRequest` method. 234type UpdateScanConfigRequest struct { 235 // Required. 236 // The ScanConfig to be updated. The name field must be set to identify the 237 // resource to be updated. The values of fields not covered by the mask 238 // will be ignored. 239 ScanConfig *ScanConfig `protobuf:"bytes,2,opt,name=scan_config,json=scanConfig,proto3" json:"scan_config,omitempty"` 240 // Required. 241 // The update mask applies to the resource. For the `FieldMask` definition, 242 // see 243 // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask 244 UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` 245 XXX_NoUnkeyedLiteral struct{} `json:"-"` 246 XXX_unrecognized []byte `json:"-"` 247 XXX_sizecache int32 `json:"-"` 248} 249 250func (m *UpdateScanConfigRequest) Reset() { *m = UpdateScanConfigRequest{} } 251func (m *UpdateScanConfigRequest) String() string { return proto.CompactTextString(m) } 252func (*UpdateScanConfigRequest) ProtoMessage() {} 253func (*UpdateScanConfigRequest) Descriptor() ([]byte, []int) { 254 return fileDescriptor_aab783dd0f551f53, []int{4} 255} 256 257func (m *UpdateScanConfigRequest) XXX_Unmarshal(b []byte) error { 258 return xxx_messageInfo_UpdateScanConfigRequest.Unmarshal(m, b) 259} 260func (m *UpdateScanConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 261 return xxx_messageInfo_UpdateScanConfigRequest.Marshal(b, m, deterministic) 262} 263func (m *UpdateScanConfigRequest) XXX_Merge(src proto.Message) { 264 xxx_messageInfo_UpdateScanConfigRequest.Merge(m, src) 265} 266func (m *UpdateScanConfigRequest) XXX_Size() int { 267 return xxx_messageInfo_UpdateScanConfigRequest.Size(m) 268} 269func (m *UpdateScanConfigRequest) XXX_DiscardUnknown() { 270 xxx_messageInfo_UpdateScanConfigRequest.DiscardUnknown(m) 271} 272 273var xxx_messageInfo_UpdateScanConfigRequest proto.InternalMessageInfo 274 275func (m *UpdateScanConfigRequest) GetScanConfig() *ScanConfig { 276 if m != nil { 277 return m.ScanConfig 278 } 279 return nil 280} 281 282func (m *UpdateScanConfigRequest) GetUpdateMask() *field_mask.FieldMask { 283 if m != nil { 284 return m.UpdateMask 285 } 286 return nil 287} 288 289// Response for the `ListScanConfigs` method. 290type ListScanConfigsResponse struct { 291 // The list of ScanConfigs returned. 292 ScanConfigs []*ScanConfig `protobuf:"bytes,1,rep,name=scan_configs,json=scanConfigs,proto3" json:"scan_configs,omitempty"` 293 // Token to retrieve the next page of results, or empty if there are no 294 // more results in the list. 295 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` 296 XXX_NoUnkeyedLiteral struct{} `json:"-"` 297 XXX_unrecognized []byte `json:"-"` 298 XXX_sizecache int32 `json:"-"` 299} 300 301func (m *ListScanConfigsResponse) Reset() { *m = ListScanConfigsResponse{} } 302func (m *ListScanConfigsResponse) String() string { return proto.CompactTextString(m) } 303func (*ListScanConfigsResponse) ProtoMessage() {} 304func (*ListScanConfigsResponse) Descriptor() ([]byte, []int) { 305 return fileDescriptor_aab783dd0f551f53, []int{5} 306} 307 308func (m *ListScanConfigsResponse) XXX_Unmarshal(b []byte) error { 309 return xxx_messageInfo_ListScanConfigsResponse.Unmarshal(m, b) 310} 311func (m *ListScanConfigsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 312 return xxx_messageInfo_ListScanConfigsResponse.Marshal(b, m, deterministic) 313} 314func (m *ListScanConfigsResponse) XXX_Merge(src proto.Message) { 315 xxx_messageInfo_ListScanConfigsResponse.Merge(m, src) 316} 317func (m *ListScanConfigsResponse) XXX_Size() int { 318 return xxx_messageInfo_ListScanConfigsResponse.Size(m) 319} 320func (m *ListScanConfigsResponse) XXX_DiscardUnknown() { 321 xxx_messageInfo_ListScanConfigsResponse.DiscardUnknown(m) 322} 323 324var xxx_messageInfo_ListScanConfigsResponse proto.InternalMessageInfo 325 326func (m *ListScanConfigsResponse) GetScanConfigs() []*ScanConfig { 327 if m != nil { 328 return m.ScanConfigs 329 } 330 return nil 331} 332 333func (m *ListScanConfigsResponse) GetNextPageToken() string { 334 if m != nil { 335 return m.NextPageToken 336 } 337 return "" 338} 339 340// Request for the `StartScanRun` method. 341type StartScanRunRequest struct { 342 // Required. 343 // The resource name of the ScanConfig to be used. The name follows the 344 // format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. 345 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 346 XXX_NoUnkeyedLiteral struct{} `json:"-"` 347 XXX_unrecognized []byte `json:"-"` 348 XXX_sizecache int32 `json:"-"` 349} 350 351func (m *StartScanRunRequest) Reset() { *m = StartScanRunRequest{} } 352func (m *StartScanRunRequest) String() string { return proto.CompactTextString(m) } 353func (*StartScanRunRequest) ProtoMessage() {} 354func (*StartScanRunRequest) Descriptor() ([]byte, []int) { 355 return fileDescriptor_aab783dd0f551f53, []int{6} 356} 357 358func (m *StartScanRunRequest) XXX_Unmarshal(b []byte) error { 359 return xxx_messageInfo_StartScanRunRequest.Unmarshal(m, b) 360} 361func (m *StartScanRunRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 362 return xxx_messageInfo_StartScanRunRequest.Marshal(b, m, deterministic) 363} 364func (m *StartScanRunRequest) XXX_Merge(src proto.Message) { 365 xxx_messageInfo_StartScanRunRequest.Merge(m, src) 366} 367func (m *StartScanRunRequest) XXX_Size() int { 368 return xxx_messageInfo_StartScanRunRequest.Size(m) 369} 370func (m *StartScanRunRequest) XXX_DiscardUnknown() { 371 xxx_messageInfo_StartScanRunRequest.DiscardUnknown(m) 372} 373 374var xxx_messageInfo_StartScanRunRequest proto.InternalMessageInfo 375 376func (m *StartScanRunRequest) GetName() string { 377 if m != nil { 378 return m.Name 379 } 380 return "" 381} 382 383// Request for the `GetScanRun` method. 384type GetScanRunRequest struct { 385 // Required. 386 // The resource name of the ScanRun to be returned. The name follows the 387 // format of 388 // 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. 389 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 390 XXX_NoUnkeyedLiteral struct{} `json:"-"` 391 XXX_unrecognized []byte `json:"-"` 392 XXX_sizecache int32 `json:"-"` 393} 394 395func (m *GetScanRunRequest) Reset() { *m = GetScanRunRequest{} } 396func (m *GetScanRunRequest) String() string { return proto.CompactTextString(m) } 397func (*GetScanRunRequest) ProtoMessage() {} 398func (*GetScanRunRequest) Descriptor() ([]byte, []int) { 399 return fileDescriptor_aab783dd0f551f53, []int{7} 400} 401 402func (m *GetScanRunRequest) XXX_Unmarshal(b []byte) error { 403 return xxx_messageInfo_GetScanRunRequest.Unmarshal(m, b) 404} 405func (m *GetScanRunRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 406 return xxx_messageInfo_GetScanRunRequest.Marshal(b, m, deterministic) 407} 408func (m *GetScanRunRequest) XXX_Merge(src proto.Message) { 409 xxx_messageInfo_GetScanRunRequest.Merge(m, src) 410} 411func (m *GetScanRunRequest) XXX_Size() int { 412 return xxx_messageInfo_GetScanRunRequest.Size(m) 413} 414func (m *GetScanRunRequest) XXX_DiscardUnknown() { 415 xxx_messageInfo_GetScanRunRequest.DiscardUnknown(m) 416} 417 418var xxx_messageInfo_GetScanRunRequest proto.InternalMessageInfo 419 420func (m *GetScanRunRequest) GetName() string { 421 if m != nil { 422 return m.Name 423 } 424 return "" 425} 426 427// Request for the `ListScanRuns` method. 428type ListScanRunsRequest struct { 429 // Required. 430 // The parent resource name, which should be a scan resource name in the 431 // format 'projects/{projectId}/scanConfigs/{scanConfigId}'. 432 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` 433 // A token identifying a page of results to be returned. This should be a 434 // `next_page_token` value returned from a previous List request. 435 // If unspecified, the first page of results is returned. 436 PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` 437 // The maximum number of ScanRuns to return, can be limited by server. 438 // If not specified or not positive, the implementation will select a 439 // reasonable value. 440 PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` 441 XXX_NoUnkeyedLiteral struct{} `json:"-"` 442 XXX_unrecognized []byte `json:"-"` 443 XXX_sizecache int32 `json:"-"` 444} 445 446func (m *ListScanRunsRequest) Reset() { *m = ListScanRunsRequest{} } 447func (m *ListScanRunsRequest) String() string { return proto.CompactTextString(m) } 448func (*ListScanRunsRequest) ProtoMessage() {} 449func (*ListScanRunsRequest) Descriptor() ([]byte, []int) { 450 return fileDescriptor_aab783dd0f551f53, []int{8} 451} 452 453func (m *ListScanRunsRequest) XXX_Unmarshal(b []byte) error { 454 return xxx_messageInfo_ListScanRunsRequest.Unmarshal(m, b) 455} 456func (m *ListScanRunsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 457 return xxx_messageInfo_ListScanRunsRequest.Marshal(b, m, deterministic) 458} 459func (m *ListScanRunsRequest) XXX_Merge(src proto.Message) { 460 xxx_messageInfo_ListScanRunsRequest.Merge(m, src) 461} 462func (m *ListScanRunsRequest) XXX_Size() int { 463 return xxx_messageInfo_ListScanRunsRequest.Size(m) 464} 465func (m *ListScanRunsRequest) XXX_DiscardUnknown() { 466 xxx_messageInfo_ListScanRunsRequest.DiscardUnknown(m) 467} 468 469var xxx_messageInfo_ListScanRunsRequest proto.InternalMessageInfo 470 471func (m *ListScanRunsRequest) GetParent() string { 472 if m != nil { 473 return m.Parent 474 } 475 return "" 476} 477 478func (m *ListScanRunsRequest) GetPageToken() string { 479 if m != nil { 480 return m.PageToken 481 } 482 return "" 483} 484 485func (m *ListScanRunsRequest) GetPageSize() int32 { 486 if m != nil { 487 return m.PageSize 488 } 489 return 0 490} 491 492// Response for the `ListScanRuns` method. 493type ListScanRunsResponse struct { 494 // The list of ScanRuns returned. 495 ScanRuns []*ScanRun `protobuf:"bytes,1,rep,name=scan_runs,json=scanRuns,proto3" json:"scan_runs,omitempty"` 496 // Token to retrieve the next page of results, or empty if there are no 497 // more results in the list. 498 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` 499 XXX_NoUnkeyedLiteral struct{} `json:"-"` 500 XXX_unrecognized []byte `json:"-"` 501 XXX_sizecache int32 `json:"-"` 502} 503 504func (m *ListScanRunsResponse) Reset() { *m = ListScanRunsResponse{} } 505func (m *ListScanRunsResponse) String() string { return proto.CompactTextString(m) } 506func (*ListScanRunsResponse) ProtoMessage() {} 507func (*ListScanRunsResponse) Descriptor() ([]byte, []int) { 508 return fileDescriptor_aab783dd0f551f53, []int{9} 509} 510 511func (m *ListScanRunsResponse) XXX_Unmarshal(b []byte) error { 512 return xxx_messageInfo_ListScanRunsResponse.Unmarshal(m, b) 513} 514func (m *ListScanRunsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 515 return xxx_messageInfo_ListScanRunsResponse.Marshal(b, m, deterministic) 516} 517func (m *ListScanRunsResponse) XXX_Merge(src proto.Message) { 518 xxx_messageInfo_ListScanRunsResponse.Merge(m, src) 519} 520func (m *ListScanRunsResponse) XXX_Size() int { 521 return xxx_messageInfo_ListScanRunsResponse.Size(m) 522} 523func (m *ListScanRunsResponse) XXX_DiscardUnknown() { 524 xxx_messageInfo_ListScanRunsResponse.DiscardUnknown(m) 525} 526 527var xxx_messageInfo_ListScanRunsResponse proto.InternalMessageInfo 528 529func (m *ListScanRunsResponse) GetScanRuns() []*ScanRun { 530 if m != nil { 531 return m.ScanRuns 532 } 533 return nil 534} 535 536func (m *ListScanRunsResponse) GetNextPageToken() string { 537 if m != nil { 538 return m.NextPageToken 539 } 540 return "" 541} 542 543// Request for the `StopScanRun` method. 544type StopScanRunRequest struct { 545 // Required. 546 // The resource name of the ScanRun to be stopped. The name follows the 547 // format of 548 // 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. 549 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 550 XXX_NoUnkeyedLiteral struct{} `json:"-"` 551 XXX_unrecognized []byte `json:"-"` 552 XXX_sizecache int32 `json:"-"` 553} 554 555func (m *StopScanRunRequest) Reset() { *m = StopScanRunRequest{} } 556func (m *StopScanRunRequest) String() string { return proto.CompactTextString(m) } 557func (*StopScanRunRequest) ProtoMessage() {} 558func (*StopScanRunRequest) Descriptor() ([]byte, []int) { 559 return fileDescriptor_aab783dd0f551f53, []int{10} 560} 561 562func (m *StopScanRunRequest) XXX_Unmarshal(b []byte) error { 563 return xxx_messageInfo_StopScanRunRequest.Unmarshal(m, b) 564} 565func (m *StopScanRunRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 566 return xxx_messageInfo_StopScanRunRequest.Marshal(b, m, deterministic) 567} 568func (m *StopScanRunRequest) XXX_Merge(src proto.Message) { 569 xxx_messageInfo_StopScanRunRequest.Merge(m, src) 570} 571func (m *StopScanRunRequest) XXX_Size() int { 572 return xxx_messageInfo_StopScanRunRequest.Size(m) 573} 574func (m *StopScanRunRequest) XXX_DiscardUnknown() { 575 xxx_messageInfo_StopScanRunRequest.DiscardUnknown(m) 576} 577 578var xxx_messageInfo_StopScanRunRequest proto.InternalMessageInfo 579 580func (m *StopScanRunRequest) GetName() string { 581 if m != nil { 582 return m.Name 583 } 584 return "" 585} 586 587// Request for the `ListCrawledUrls` method. 588type ListCrawledUrlsRequest struct { 589 // Required. 590 // The parent resource name, which should be a scan run resource name in the 591 // format 592 // 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. 593 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` 594 // A token identifying a page of results to be returned. This should be a 595 // `next_page_token` value returned from a previous List request. 596 // If unspecified, the first page of results is returned. 597 PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` 598 // The maximum number of CrawledUrls to return, can be limited by server. 599 // If not specified or not positive, the implementation will select a 600 // reasonable value. 601 PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` 602 XXX_NoUnkeyedLiteral struct{} `json:"-"` 603 XXX_unrecognized []byte `json:"-"` 604 XXX_sizecache int32 `json:"-"` 605} 606 607func (m *ListCrawledUrlsRequest) Reset() { *m = ListCrawledUrlsRequest{} } 608func (m *ListCrawledUrlsRequest) String() string { return proto.CompactTextString(m) } 609func (*ListCrawledUrlsRequest) ProtoMessage() {} 610func (*ListCrawledUrlsRequest) Descriptor() ([]byte, []int) { 611 return fileDescriptor_aab783dd0f551f53, []int{11} 612} 613 614func (m *ListCrawledUrlsRequest) XXX_Unmarshal(b []byte) error { 615 return xxx_messageInfo_ListCrawledUrlsRequest.Unmarshal(m, b) 616} 617func (m *ListCrawledUrlsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 618 return xxx_messageInfo_ListCrawledUrlsRequest.Marshal(b, m, deterministic) 619} 620func (m *ListCrawledUrlsRequest) XXX_Merge(src proto.Message) { 621 xxx_messageInfo_ListCrawledUrlsRequest.Merge(m, src) 622} 623func (m *ListCrawledUrlsRequest) XXX_Size() int { 624 return xxx_messageInfo_ListCrawledUrlsRequest.Size(m) 625} 626func (m *ListCrawledUrlsRequest) XXX_DiscardUnknown() { 627 xxx_messageInfo_ListCrawledUrlsRequest.DiscardUnknown(m) 628} 629 630var xxx_messageInfo_ListCrawledUrlsRequest proto.InternalMessageInfo 631 632func (m *ListCrawledUrlsRequest) GetParent() string { 633 if m != nil { 634 return m.Parent 635 } 636 return "" 637} 638 639func (m *ListCrawledUrlsRequest) GetPageToken() string { 640 if m != nil { 641 return m.PageToken 642 } 643 return "" 644} 645 646func (m *ListCrawledUrlsRequest) GetPageSize() int32 { 647 if m != nil { 648 return m.PageSize 649 } 650 return 0 651} 652 653// Response for the `ListCrawledUrls` method. 654type ListCrawledUrlsResponse struct { 655 // The list of CrawledUrls returned. 656 CrawledUrls []*CrawledUrl `protobuf:"bytes,1,rep,name=crawled_urls,json=crawledUrls,proto3" json:"crawled_urls,omitempty"` 657 // Token to retrieve the next page of results, or empty if there are no 658 // more results in the list. 659 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` 660 XXX_NoUnkeyedLiteral struct{} `json:"-"` 661 XXX_unrecognized []byte `json:"-"` 662 XXX_sizecache int32 `json:"-"` 663} 664 665func (m *ListCrawledUrlsResponse) Reset() { *m = ListCrawledUrlsResponse{} } 666func (m *ListCrawledUrlsResponse) String() string { return proto.CompactTextString(m) } 667func (*ListCrawledUrlsResponse) ProtoMessage() {} 668func (*ListCrawledUrlsResponse) Descriptor() ([]byte, []int) { 669 return fileDescriptor_aab783dd0f551f53, []int{12} 670} 671 672func (m *ListCrawledUrlsResponse) XXX_Unmarshal(b []byte) error { 673 return xxx_messageInfo_ListCrawledUrlsResponse.Unmarshal(m, b) 674} 675func (m *ListCrawledUrlsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 676 return xxx_messageInfo_ListCrawledUrlsResponse.Marshal(b, m, deterministic) 677} 678func (m *ListCrawledUrlsResponse) XXX_Merge(src proto.Message) { 679 xxx_messageInfo_ListCrawledUrlsResponse.Merge(m, src) 680} 681func (m *ListCrawledUrlsResponse) XXX_Size() int { 682 return xxx_messageInfo_ListCrawledUrlsResponse.Size(m) 683} 684func (m *ListCrawledUrlsResponse) XXX_DiscardUnknown() { 685 xxx_messageInfo_ListCrawledUrlsResponse.DiscardUnknown(m) 686} 687 688var xxx_messageInfo_ListCrawledUrlsResponse proto.InternalMessageInfo 689 690func (m *ListCrawledUrlsResponse) GetCrawledUrls() []*CrawledUrl { 691 if m != nil { 692 return m.CrawledUrls 693 } 694 return nil 695} 696 697func (m *ListCrawledUrlsResponse) GetNextPageToken() string { 698 if m != nil { 699 return m.NextPageToken 700 } 701 return "" 702} 703 704// Request for the `GetFinding` method. 705type GetFindingRequest struct { 706 // Required. 707 // The resource name of the Finding to be returned. The name follows the 708 // format of 709 // 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'. 710 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 711 XXX_NoUnkeyedLiteral struct{} `json:"-"` 712 XXX_unrecognized []byte `json:"-"` 713 XXX_sizecache int32 `json:"-"` 714} 715 716func (m *GetFindingRequest) Reset() { *m = GetFindingRequest{} } 717func (m *GetFindingRequest) String() string { return proto.CompactTextString(m) } 718func (*GetFindingRequest) ProtoMessage() {} 719func (*GetFindingRequest) Descriptor() ([]byte, []int) { 720 return fileDescriptor_aab783dd0f551f53, []int{13} 721} 722 723func (m *GetFindingRequest) XXX_Unmarshal(b []byte) error { 724 return xxx_messageInfo_GetFindingRequest.Unmarshal(m, b) 725} 726func (m *GetFindingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 727 return xxx_messageInfo_GetFindingRequest.Marshal(b, m, deterministic) 728} 729func (m *GetFindingRequest) XXX_Merge(src proto.Message) { 730 xxx_messageInfo_GetFindingRequest.Merge(m, src) 731} 732func (m *GetFindingRequest) XXX_Size() int { 733 return xxx_messageInfo_GetFindingRequest.Size(m) 734} 735func (m *GetFindingRequest) XXX_DiscardUnknown() { 736 xxx_messageInfo_GetFindingRequest.DiscardUnknown(m) 737} 738 739var xxx_messageInfo_GetFindingRequest proto.InternalMessageInfo 740 741func (m *GetFindingRequest) GetName() string { 742 if m != nil { 743 return m.Name 744 } 745 return "" 746} 747 748// Request for the `ListFindings` method. 749type ListFindingsRequest struct { 750 // Required. 751 // The parent resource name, which should be a scan run resource name in the 752 // format 753 // 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. 754 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` 755 // The filter expression. The expression must be in the format: <field> 756 // <operator> <value>. 757 // Supported field: 'finding_type'. 758 // Supported operator: '='. 759 Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` 760 // A token identifying a page of results to be returned. This should be a 761 // `next_page_token` value returned from a previous List request. 762 // If unspecified, the first page of results is returned. 763 PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` 764 // The maximum number of Findings to return, can be limited by server. 765 // If not specified or not positive, the implementation will select a 766 // reasonable value. 767 PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` 768 XXX_NoUnkeyedLiteral struct{} `json:"-"` 769 XXX_unrecognized []byte `json:"-"` 770 XXX_sizecache int32 `json:"-"` 771} 772 773func (m *ListFindingsRequest) Reset() { *m = ListFindingsRequest{} } 774func (m *ListFindingsRequest) String() string { return proto.CompactTextString(m) } 775func (*ListFindingsRequest) ProtoMessage() {} 776func (*ListFindingsRequest) Descriptor() ([]byte, []int) { 777 return fileDescriptor_aab783dd0f551f53, []int{14} 778} 779 780func (m *ListFindingsRequest) XXX_Unmarshal(b []byte) error { 781 return xxx_messageInfo_ListFindingsRequest.Unmarshal(m, b) 782} 783func (m *ListFindingsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 784 return xxx_messageInfo_ListFindingsRequest.Marshal(b, m, deterministic) 785} 786func (m *ListFindingsRequest) XXX_Merge(src proto.Message) { 787 xxx_messageInfo_ListFindingsRequest.Merge(m, src) 788} 789func (m *ListFindingsRequest) XXX_Size() int { 790 return xxx_messageInfo_ListFindingsRequest.Size(m) 791} 792func (m *ListFindingsRequest) XXX_DiscardUnknown() { 793 xxx_messageInfo_ListFindingsRequest.DiscardUnknown(m) 794} 795 796var xxx_messageInfo_ListFindingsRequest proto.InternalMessageInfo 797 798func (m *ListFindingsRequest) GetParent() string { 799 if m != nil { 800 return m.Parent 801 } 802 return "" 803} 804 805func (m *ListFindingsRequest) GetFilter() string { 806 if m != nil { 807 return m.Filter 808 } 809 return "" 810} 811 812func (m *ListFindingsRequest) GetPageToken() string { 813 if m != nil { 814 return m.PageToken 815 } 816 return "" 817} 818 819func (m *ListFindingsRequest) GetPageSize() int32 { 820 if m != nil { 821 return m.PageSize 822 } 823 return 0 824} 825 826// Response for the `ListFindings` method. 827type ListFindingsResponse struct { 828 // The list of Findings returned. 829 Findings []*Finding `protobuf:"bytes,1,rep,name=findings,proto3" json:"findings,omitempty"` 830 // Token to retrieve the next page of results, or empty if there are no 831 // more results in the list. 832 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` 833 XXX_NoUnkeyedLiteral struct{} `json:"-"` 834 XXX_unrecognized []byte `json:"-"` 835 XXX_sizecache int32 `json:"-"` 836} 837 838func (m *ListFindingsResponse) Reset() { *m = ListFindingsResponse{} } 839func (m *ListFindingsResponse) String() string { return proto.CompactTextString(m) } 840func (*ListFindingsResponse) ProtoMessage() {} 841func (*ListFindingsResponse) Descriptor() ([]byte, []int) { 842 return fileDescriptor_aab783dd0f551f53, []int{15} 843} 844 845func (m *ListFindingsResponse) XXX_Unmarshal(b []byte) error { 846 return xxx_messageInfo_ListFindingsResponse.Unmarshal(m, b) 847} 848func (m *ListFindingsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 849 return xxx_messageInfo_ListFindingsResponse.Marshal(b, m, deterministic) 850} 851func (m *ListFindingsResponse) XXX_Merge(src proto.Message) { 852 xxx_messageInfo_ListFindingsResponse.Merge(m, src) 853} 854func (m *ListFindingsResponse) XXX_Size() int { 855 return xxx_messageInfo_ListFindingsResponse.Size(m) 856} 857func (m *ListFindingsResponse) XXX_DiscardUnknown() { 858 xxx_messageInfo_ListFindingsResponse.DiscardUnknown(m) 859} 860 861var xxx_messageInfo_ListFindingsResponse proto.InternalMessageInfo 862 863func (m *ListFindingsResponse) GetFindings() []*Finding { 864 if m != nil { 865 return m.Findings 866 } 867 return nil 868} 869 870func (m *ListFindingsResponse) GetNextPageToken() string { 871 if m != nil { 872 return m.NextPageToken 873 } 874 return "" 875} 876 877// Request for the `ListFindingTypeStats` method. 878type ListFindingTypeStatsRequest struct { 879 // Required. 880 // The parent resource name, which should be a scan run resource name in the 881 // format 882 // 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. 883 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` 884 XXX_NoUnkeyedLiteral struct{} `json:"-"` 885 XXX_unrecognized []byte `json:"-"` 886 XXX_sizecache int32 `json:"-"` 887} 888 889func (m *ListFindingTypeStatsRequest) Reset() { *m = ListFindingTypeStatsRequest{} } 890func (m *ListFindingTypeStatsRequest) String() string { return proto.CompactTextString(m) } 891func (*ListFindingTypeStatsRequest) ProtoMessage() {} 892func (*ListFindingTypeStatsRequest) Descriptor() ([]byte, []int) { 893 return fileDescriptor_aab783dd0f551f53, []int{16} 894} 895 896func (m *ListFindingTypeStatsRequest) XXX_Unmarshal(b []byte) error { 897 return xxx_messageInfo_ListFindingTypeStatsRequest.Unmarshal(m, b) 898} 899func (m *ListFindingTypeStatsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 900 return xxx_messageInfo_ListFindingTypeStatsRequest.Marshal(b, m, deterministic) 901} 902func (m *ListFindingTypeStatsRequest) XXX_Merge(src proto.Message) { 903 xxx_messageInfo_ListFindingTypeStatsRequest.Merge(m, src) 904} 905func (m *ListFindingTypeStatsRequest) XXX_Size() int { 906 return xxx_messageInfo_ListFindingTypeStatsRequest.Size(m) 907} 908func (m *ListFindingTypeStatsRequest) XXX_DiscardUnknown() { 909 xxx_messageInfo_ListFindingTypeStatsRequest.DiscardUnknown(m) 910} 911 912var xxx_messageInfo_ListFindingTypeStatsRequest proto.InternalMessageInfo 913 914func (m *ListFindingTypeStatsRequest) GetParent() string { 915 if m != nil { 916 return m.Parent 917 } 918 return "" 919} 920 921// Response for the `ListFindingTypeStats` method. 922type ListFindingTypeStatsResponse struct { 923 // The list of FindingTypeStats returned. 924 FindingTypeStats []*FindingTypeStats `protobuf:"bytes,1,rep,name=finding_type_stats,json=findingTypeStats,proto3" json:"finding_type_stats,omitempty"` 925 XXX_NoUnkeyedLiteral struct{} `json:"-"` 926 XXX_unrecognized []byte `json:"-"` 927 XXX_sizecache int32 `json:"-"` 928} 929 930func (m *ListFindingTypeStatsResponse) Reset() { *m = ListFindingTypeStatsResponse{} } 931func (m *ListFindingTypeStatsResponse) String() string { return proto.CompactTextString(m) } 932func (*ListFindingTypeStatsResponse) ProtoMessage() {} 933func (*ListFindingTypeStatsResponse) Descriptor() ([]byte, []int) { 934 return fileDescriptor_aab783dd0f551f53, []int{17} 935} 936 937func (m *ListFindingTypeStatsResponse) XXX_Unmarshal(b []byte) error { 938 return xxx_messageInfo_ListFindingTypeStatsResponse.Unmarshal(m, b) 939} 940func (m *ListFindingTypeStatsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 941 return xxx_messageInfo_ListFindingTypeStatsResponse.Marshal(b, m, deterministic) 942} 943func (m *ListFindingTypeStatsResponse) XXX_Merge(src proto.Message) { 944 xxx_messageInfo_ListFindingTypeStatsResponse.Merge(m, src) 945} 946func (m *ListFindingTypeStatsResponse) XXX_Size() int { 947 return xxx_messageInfo_ListFindingTypeStatsResponse.Size(m) 948} 949func (m *ListFindingTypeStatsResponse) XXX_DiscardUnknown() { 950 xxx_messageInfo_ListFindingTypeStatsResponse.DiscardUnknown(m) 951} 952 953var xxx_messageInfo_ListFindingTypeStatsResponse proto.InternalMessageInfo 954 955func (m *ListFindingTypeStatsResponse) GetFindingTypeStats() []*FindingTypeStats { 956 if m != nil { 957 return m.FindingTypeStats 958 } 959 return nil 960} 961 962func init() { 963 proto.RegisterType((*CreateScanConfigRequest)(nil), "google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest") 964 proto.RegisterType((*DeleteScanConfigRequest)(nil), "google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest") 965 proto.RegisterType((*GetScanConfigRequest)(nil), "google.cloud.websecurityscanner.v1beta.GetScanConfigRequest") 966 proto.RegisterType((*ListScanConfigsRequest)(nil), "google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest") 967 proto.RegisterType((*UpdateScanConfigRequest)(nil), "google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest") 968 proto.RegisterType((*ListScanConfigsResponse)(nil), "google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse") 969 proto.RegisterType((*StartScanRunRequest)(nil), "google.cloud.websecurityscanner.v1beta.StartScanRunRequest") 970 proto.RegisterType((*GetScanRunRequest)(nil), "google.cloud.websecurityscanner.v1beta.GetScanRunRequest") 971 proto.RegisterType((*ListScanRunsRequest)(nil), "google.cloud.websecurityscanner.v1beta.ListScanRunsRequest") 972 proto.RegisterType((*ListScanRunsResponse)(nil), "google.cloud.websecurityscanner.v1beta.ListScanRunsResponse") 973 proto.RegisterType((*StopScanRunRequest)(nil), "google.cloud.websecurityscanner.v1beta.StopScanRunRequest") 974 proto.RegisterType((*ListCrawledUrlsRequest)(nil), "google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest") 975 proto.RegisterType((*ListCrawledUrlsResponse)(nil), "google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse") 976 proto.RegisterType((*GetFindingRequest)(nil), "google.cloud.websecurityscanner.v1beta.GetFindingRequest") 977 proto.RegisterType((*ListFindingsRequest)(nil), "google.cloud.websecurityscanner.v1beta.ListFindingsRequest") 978 proto.RegisterType((*ListFindingsResponse)(nil), "google.cloud.websecurityscanner.v1beta.ListFindingsResponse") 979 proto.RegisterType((*ListFindingTypeStatsRequest)(nil), "google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest") 980 proto.RegisterType((*ListFindingTypeStatsResponse)(nil), "google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse") 981} 982 983func init() { 984 proto.RegisterFile("google/cloud/websecurityscanner/v1beta/web_security_scanner.proto", fileDescriptor_aab783dd0f551f53) 985} 986 987var fileDescriptor_aab783dd0f551f53 = []byte{ 988 // 1132 bytes of a gzipped FileDescriptorProto 989 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0x41, 0x6f, 0x1b, 0x45, 990 0x14, 0xd6, 0x34, 0x25, 0x4a, 0x9e, 0x53, 0x35, 0x4c, 0xa3, 0x24, 0xda, 0x14, 0x29, 0xda, 0x43, 991 0x9a, 0x5a, 0xaa, 0x57, 0xb8, 0x2d, 0x04, 0x27, 0x25, 0x10, 0x37, 0x0d, 0x12, 0xad, 0x14, 0xd9, 992 0x0d, 0x20, 0x14, 0x69, 0xb5, 0xb6, 0xc7, 0xd6, 0x92, 0xcd, 0xec, 0xb2, 0x33, 0xa6, 0xa4, 0xa8, 993 0x07, 0x38, 0x70, 0x81, 0x1b, 0x17, 0x0e, 0xfc, 0x02, 0xb8, 0x21, 0xc4, 0x11, 0x0e, 0xa8, 0x97, 994 0x9e, 0x40, 0x5c, 0x39, 0xf2, 0x03, 0xf8, 0x09, 0x68, 0x67, 0x67, 0xed, 0xf5, 0xee, 0xd6, 0x9e, 995 0x71, 0x94, 0x9b, 0x77, 0x66, 0xde, 0x9b, 0xef, 0x7d, 0xef, 0xbd, 0x79, 0x9f, 0x0c, 0xef, 0xf6, 996 0x7c, 0xbf, 0xe7, 0x11, 0xab, 0xed, 0xf9, 0xfd, 0x8e, 0xf5, 0x84, 0xb4, 0x18, 0x69, 0xf7, 0x43, 997 0x97, 0x9f, 0xb1, 0xb6, 0x43, 0x29, 0x09, 0xad, 0xcf, 0x5e, 0x6f, 0x11, 0xee, 0x44, 0x3b, 0x76, 998 0xb2, 0x65, 0xcb, 0xbd, 0x4a, 0x10, 0xfa, 0xdc, 0xc7, 0x1b, 0xb1, 0x8b, 0x8a, 0x70, 0x51, 0xc9, 999 0xbb, 0xa8, 0xc4, 0x2e, 0x8c, 0xeb, 0xf2, 0x2a, 0x27, 0x70, 0x2d, 0x87, 0x52, 0x9f, 0x3b, 0xdc, 1000 0xf5, 0x29, 0x8b, 0xbd, 0x18, 0x5b, 0x8a, 0x40, 0xda, 0xa1, 0xf3, 0xc4, 0x23, 0x1d, 0xbb, 0x1f, 1001 0x7a, 0xd2, 0xf2, 0x8e, 0xa2, 0x65, 0xd7, 0xa5, 0x1d, 0x97, 0xf6, 0xa4, 0xd5, 0xae, 0x9e, 0x95, 1002 0xcd, 0xcf, 0x02, 0x62, 0x33, 0xee, 0x70, 0x5d, 0xc0, 0xd1, 0xa7, 0xdd, 0xf6, 0x69, 0xd7, 0x4d, 1003 0xae, 0xbe, 0xab, 0x63, 0x19, 0xf6, 0xa9, 0x34, 0x5b, 0x93, 0x66, 0xe2, 0xab, 0xd5, 0xef, 0x5a, 1004 0xe4, 0x34, 0xe0, 0x67, 0x72, 0x73, 0x3d, 0xbb, 0xd9, 0x75, 0x89, 0xd7, 0xb1, 0x4f, 0x1d, 0x76, 1005 0x12, 0x9f, 0x30, 0xbf, 0x46, 0xb0, 0x52, 0x0f, 0x89, 0xc3, 0x49, 0xb3, 0xed, 0xd0, 0xba, 0x00, 1006 0xd4, 0x20, 0x9f, 0xf6, 0x09, 0xe3, 0x78, 0x19, 0x66, 0x03, 0x27, 0x24, 0x94, 0xaf, 0xa2, 0x75, 1007 0xb4, 0x39, 0xdf, 0x90, 0x5f, 0xb8, 0x09, 0xa5, 0x14, 0xfc, 0xd5, 0x4b, 0xeb, 0x68, 0xb3, 0x54, 1008 0xad, 0x56, 0xd4, 0x12, 0x5e, 0x49, 0xdd, 0x03, 0x6c, 0xf0, 0xdb, 0xbc, 0x05, 0x2b, 0xf7, 0x89, 1009 0x47, 0x8a, 0x70, 0x60, 0xb8, 0x4c, 0x9d, 0x53, 0x22, 0x51, 0x88, 0xdf, 0x66, 0x19, 0x96, 0x0e, 1010 0x08, 0x57, 0x3b, 0xeb, 0xc1, 0xf2, 0x43, 0x97, 0xa5, 0x0e, 0xb3, 0x49, 0x11, 0xbe, 0x06, 0x10, 1011 0x38, 0x3d, 0x62, 0x73, 0xff, 0x84, 0x50, 0x11, 0xe0, 0x7c, 0x63, 0x3e, 0x5a, 0x79, 0x1c, 0x2d, 1012 0xe0, 0x35, 0x10, 0x1f, 0x36, 0x73, 0x9f, 0x92, 0xd5, 0x99, 0x75, 0xb4, 0xf9, 0x4a, 0x63, 0x2e, 1013 0x5a, 0x68, 0xba, 0x4f, 0x89, 0xf9, 0x13, 0x82, 0x95, 0xa3, 0xa0, 0x53, 0xc8, 0xe8, 0x45, 0x30, 1014 0x87, 0xb7, 0xa1, 0xd4, 0x17, 0xf7, 0x89, 0xbc, 0x0a, 0x3c, 0xa5, 0xaa, 0x91, 0x38, 0x4d, 0x52, 1015 0x5f, 0x79, 0x10, 0xa5, 0xfe, 0x91, 0xc3, 0x4e, 0x1a, 0x10, 0x1f, 0x8f, 0x7e, 0x9b, 0xdf, 0x23, 1016 0x58, 0xc9, 0x91, 0xc3, 0x02, 0x9f, 0x32, 0x82, 0x8f, 0x60, 0x21, 0x85, 0x96, 0xad, 0xa2, 0xf5, 1017 0x99, 0x29, 0xe1, 0x96, 0x86, 0x70, 0x19, 0xde, 0x80, 0xab, 0x94, 0x7c, 0xce, 0xed, 0x1c, 0xc3, 1018 0x57, 0xa2, 0xe5, 0xc3, 0x84, 0x65, 0xf3, 0x26, 0x5c, 0x6b, 0x72, 0x27, 0x14, 0xd0, 0x1a, 0x7d, 1019 0x3a, 0x2e, 0xc3, 0x37, 0xe0, 0x55, 0x59, 0x0d, 0x13, 0x0e, 0xba, 0x70, 0x2d, 0x89, 0xb6, 0xd1, 1020 0xa7, 0x17, 0x5a, 0x07, 0xdf, 0x22, 0x58, 0x1a, 0xbd, 0x4b, 0xd2, 0xfa, 0x10, 0xe6, 0x93, 0x1e, 1021 0x4e, 0x38, 0xb5, 0x74, 0x38, 0x8d, 0x42, 0x9c, 0x63, 0xd2, 0xab, 0x32, 0x9b, 0x9b, 0x80, 0x9b, 1022 0xdc, 0x0f, 0x14, 0x38, 0x92, 0xed, 0x52, 0x8f, 0x9f, 0xd4, 0xa3, 0xd0, 0xbb, 0x50, 0x9a, 0x92, 1023 0x02, 0x1c, 0xb9, 0x6e, 0x58, 0x80, 0xa9, 0x87, 0x5d, 0xbb, 0x00, 0x87, 0x2e, 0x1b, 0xa5, 0xf6, 1024 0xd0, 0xbd, 0x32, 0x65, 0x71, 0x55, 0x3d, 0x88, 0x9f, 0xfa, 0x71, 0x8c, 0x7d, 0x89, 0xe2, 0xb2, 1025 0x92, 0x47, 0x27, 0xf2, 0xb5, 0x0c, 0xb3, 0x5d, 0xd7, 0xe3, 0x24, 0x94, 0xf7, 0xca, 0xaf, 0x0c, 1026 0x8f, 0x33, 0x63, 0x79, 0xbc, 0x9c, 0xe1, 0xf1, 0x1b, 0x59, 0x6e, 0x43, 0x0c, 0x92, 0xc4, 0xf7, 1027 0x61, 0x4e, 0x4e, 0x2b, 0xed, 0x6a, 0x4b, 0x42, 0x1f, 0x38, 0x50, 0xa6, 0xee, 0x2e, 0xac, 0xa5, 1028 0xc0, 0x3c, 0x3e, 0x0b, 0x48, 0x33, 0x1a, 0x92, 0x13, 0x88, 0x89, 0xa6, 0xd1, 0xf5, 0x62, 0x3b, 1029 0x19, 0x4c, 0x17, 0x70, 0x7e, 0xf4, 0xca, 0xb0, 0xb6, 0x34, 0xc3, 0x1a, 0x7a, 0x5f, 0xec, 0x66, 1030 0x56, 0xaa, 0x3f, 0x2e, 0x01, 0xfe, 0x90, 0xb4, 0x9a, 0xd2, 0x41, 0x33, 0x76, 0x80, 0x9f, 0x23, 1031 0x58, 0xcc, 0x4e, 0x4b, 0xbc, 0xab, 0x5e, 0x8f, 0x85, 0x73, 0xd6, 0x98, 0xe2, 0x45, 0x35, 0x77, 1032 0xbe, 0xfa, 0xfb, 0xdf, 0xef, 0x2e, 0xbd, 0x61, 0xde, 0x48, 0x64, 0xc1, 0x17, 0x31, 0x85, 0xf7, 1033 0x82, 0xd0, 0xff, 0x84, 0xb4, 0x39, 0xb3, 0xca, 0xcf, 0xac, 0xd4, 0xab, 0x5b, 0x4b, 0x0f, 0x1e, 1034 0xfc, 0x03, 0x82, 0xc5, 0xec, 0xb4, 0x55, 0x8f, 0xe3, 0x25, 0x73, 0xda, 0x58, 0xce, 0xcd, 0x9c, 1035 0xfd, 0x48, 0x8b, 0x98, 0x96, 0xc0, 0x7a, 0xb3, 0x3c, 0xc4, 0x1a, 0x75, 0x4d, 0x0a, 0x69, 0x1a, 1036 0xa8, 0x55, 0x7e, 0x86, 0x7f, 0x46, 0x70, 0x65, 0x64, 0xba, 0xe3, 0x1d, 0x55, 0x6c, 0x45, 0xa2, 1037 0x60, 0x2a, 0x82, 0x25, 0x68, 0xac, 0x0c, 0xfa, 0x0f, 0x04, 0x57, 0x33, 0x93, 0x14, 0xbf, 0xad, 1038 0x7a, 0x71, 0xb1, 0x3e, 0x31, 0x76, 0xa7, 0xb6, 0x8f, 0xfb, 0xa5, 0x20, 0x8a, 0xf1, 0x65, 0x82, 1039 0xff, 0x42, 0xb0, 0x98, 0x55, 0x2f, 0xea, 0x95, 0xf1, 0x12, 0xdd, 0x33, 0x55, 0x02, 0xde, 0x13, 1040 0xd0, 0xf7, 0xaa, 0xb7, 0x07, 0xd0, 0xd3, 0x9a, 0x79, 0x7c, 0x32, 0x46, 0xab, 0xfd, 0x57, 0x04, 1041 0x0b, 0x69, 0x25, 0x81, 0xb7, 0x95, 0xe1, 0xe4, 0xf5, 0x87, 0xa1, 0x3b, 0xab, 0xcd, 0x2d, 0x11, 1042 0x48, 0xd5, 0xbc, 0xa5, 0x58, 0x49, 0x35, 0x16, 0xdd, 0x5a, 0x43, 0x65, 0xfc, 0x0b, 0x02, 0x18, 1043 0xea, 0x1a, 0xfc, 0x96, 0x66, 0x13, 0x9c, 0x07, 0x74, 0x4d, 0x80, 0xbe, 0x83, 0xab, 0x6a, 0xa0, 1044 0xad, 0x44, 0x8f, 0x44, 0x9d, 0xf0, 0x1c, 0xc1, 0x42, 0x5a, 0xf9, 0xa8, 0xf3, 0x5d, 0xa0, 0xcd, 1045 0x8c, 0x9d, 0xe9, 0x8c, 0x65, 0x03, 0xe4, 0xe3, 0xc8, 0x35, 0x40, 0x86, 0xfe, 0x41, 0x28, 0xf8, 1046 0x37, 0x04, 0xa5, 0x94, 0x66, 0xc2, 0x35, 0xf5, 0xb2, 0xc9, 0x0a, 0x2d, 0xfd, 0x04, 0xec, 0x09, 1047 0xe0, 0x3b, 0xe6, 0x9b, 0xfa, 0x09, 0xa8, 0x31, 0xee, 0x07, 0x51, 0xfd, 0xfc, 0x23, 0x9f, 0xa4, 1048 0x94, 0xb6, 0xd2, 0x7b, 0x92, 0xf2, 0x1a, 0x50, 0xef, 0x49, 0x2a, 0x10, 0x75, 0x49, 0x5f, 0xe3, 1049 0x77, 0x54, 0x33, 0x92, 0x0e, 0xcd, 0x4a, 0xeb, 0xb8, 0xdf, 0xe3, 0xf6, 0x90, 0xe3, 0x5c, 0xab, 1050 0x3d, 0x46, 0x45, 0x9d, 0xa1, 0xab, 0x88, 0xcc, 0x7d, 0x11, 0xc4, 0x2e, 0xbe, 0xa7, 0x9d, 0x9d, 1051 0xe4, 0xaf, 0x03, 0xd1, 0x29, 0x7f, 0xca, 0x4e, 0x49, 0x44, 0x9b, 0x5e, 0xa7, 0x64, 0xe4, 0xa6, 1052 0x5e, 0xa7, 0x64, 0x75, 0x62, 0x41, 0x48, 0x3a, 0x79, 0x19, 0x28, 0xc4, 0xff, 0x46, 0x75, 0xe8, 1053 0x40, 0x52, 0xe1, 0xfa, 0x14, 0xe8, 0xb2, 0xc2, 0xd1, 0xb8, 0x7f, 0x3e, 0x27, 0x32, 0xd4, 0x47, 1054 0x22, 0xd4, 0x03, 0xbc, 0x7f, 0x9e, 0x50, 0x07, 0x6e, 0xf7, 0x5e, 0x20, 0x28, 0xb7, 0xfd, 0x53, 1055 0x45, 0x68, 0x7b, 0x2b, 0x79, 0x61, 0x79, 0x18, 0x09, 0xa6, 0x43, 0xf4, 0xf1, 0x47, 0xd2, 0x45, 1056 0xcf, 0xf7, 0x1c, 0xda, 0xab, 0xf8, 0x61, 0xcf, 0xea, 0x11, 0x2a, 0xe4, 0x94, 0x15, 0x6f, 0x39, 1057 0x81, 0xcb, 0x26, 0xfd, 0x45, 0xb4, 0x9d, 0xdf, 0x79, 0x71, 0x69, 0xe3, 0x40, 0xd8, 0x1f, 0xd7, 1058 0x23, 0xdb, 0xe3, 0x3c, 0x84, 0xe3, 0x0f, 0x84, 0x6d, 0x6b, 0x56, 0xdc, 0x76, 0xfb, 0xff, 0x00, 1059 0x00, 0x00, 0xff, 0xff, 0x24, 0x58, 0xc8, 0x6d, 0x03, 0x14, 0x00, 0x00, 1060} 1061 1062// Reference imports to suppress errors if they are not otherwise used. 1063var _ context.Context 1064var _ grpc.ClientConn 1065 1066// This is a compile-time assertion to ensure that this generated file 1067// is compatible with the grpc package it is being compiled against. 1068const _ = grpc.SupportPackageIsVersion4 1069 1070// WebSecurityScannerClient is the client API for WebSecurityScanner service. 1071// 1072// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 1073type WebSecurityScannerClient interface { 1074 // Creates a new ScanConfig. 1075 CreateScanConfig(ctx context.Context, in *CreateScanConfigRequest, opts ...grpc.CallOption) (*ScanConfig, error) 1076 // Deletes an existing ScanConfig and its child resources. 1077 DeleteScanConfig(ctx context.Context, in *DeleteScanConfigRequest, opts ...grpc.CallOption) (*empty.Empty, error) 1078 // Gets a ScanConfig. 1079 GetScanConfig(ctx context.Context, in *GetScanConfigRequest, opts ...grpc.CallOption) (*ScanConfig, error) 1080 // Lists ScanConfigs under a given project. 1081 ListScanConfigs(ctx context.Context, in *ListScanConfigsRequest, opts ...grpc.CallOption) (*ListScanConfigsResponse, error) 1082 // Updates a ScanConfig. This method support partial update of a ScanConfig. 1083 UpdateScanConfig(ctx context.Context, in *UpdateScanConfigRequest, opts ...grpc.CallOption) (*ScanConfig, error) 1084 // Start a ScanRun according to the given ScanConfig. 1085 StartScanRun(ctx context.Context, in *StartScanRunRequest, opts ...grpc.CallOption) (*ScanRun, error) 1086 // Gets a ScanRun. 1087 GetScanRun(ctx context.Context, in *GetScanRunRequest, opts ...grpc.CallOption) (*ScanRun, error) 1088 // Lists ScanRuns under a given ScanConfig, in descending order of ScanRun 1089 // stop time. 1090 ListScanRuns(ctx context.Context, in *ListScanRunsRequest, opts ...grpc.CallOption) (*ListScanRunsResponse, error) 1091 // Stops a ScanRun. The stopped ScanRun is returned. 1092 StopScanRun(ctx context.Context, in *StopScanRunRequest, opts ...grpc.CallOption) (*ScanRun, error) 1093 // List CrawledUrls under a given ScanRun. 1094 ListCrawledUrls(ctx context.Context, in *ListCrawledUrlsRequest, opts ...grpc.CallOption) (*ListCrawledUrlsResponse, error) 1095 // Gets a Finding. 1096 GetFinding(ctx context.Context, in *GetFindingRequest, opts ...grpc.CallOption) (*Finding, error) 1097 // List Findings under a given ScanRun. 1098 ListFindings(ctx context.Context, in *ListFindingsRequest, opts ...grpc.CallOption) (*ListFindingsResponse, error) 1099 // List all FindingTypeStats under a given ScanRun. 1100 ListFindingTypeStats(ctx context.Context, in *ListFindingTypeStatsRequest, opts ...grpc.CallOption) (*ListFindingTypeStatsResponse, error) 1101} 1102 1103type webSecurityScannerClient struct { 1104 cc *grpc.ClientConn 1105} 1106 1107func NewWebSecurityScannerClient(cc *grpc.ClientConn) WebSecurityScannerClient { 1108 return &webSecurityScannerClient{cc} 1109} 1110 1111func (c *webSecurityScannerClient) CreateScanConfig(ctx context.Context, in *CreateScanConfigRequest, opts ...grpc.CallOption) (*ScanConfig, error) { 1112 out := new(ScanConfig) 1113 err := c.cc.Invoke(ctx, "/google.cloud.websecurityscanner.v1beta.WebSecurityScanner/CreateScanConfig", in, out, opts...) 1114 if err != nil { 1115 return nil, err 1116 } 1117 return out, nil 1118} 1119 1120func (c *webSecurityScannerClient) DeleteScanConfig(ctx context.Context, in *DeleteScanConfigRequest, opts ...grpc.CallOption) (*empty.Empty, error) { 1121 out := new(empty.Empty) 1122 err := c.cc.Invoke(ctx, "/google.cloud.websecurityscanner.v1beta.WebSecurityScanner/DeleteScanConfig", in, out, opts...) 1123 if err != nil { 1124 return nil, err 1125 } 1126 return out, nil 1127} 1128 1129func (c *webSecurityScannerClient) GetScanConfig(ctx context.Context, in *GetScanConfigRequest, opts ...grpc.CallOption) (*ScanConfig, error) { 1130 out := new(ScanConfig) 1131 err := c.cc.Invoke(ctx, "/google.cloud.websecurityscanner.v1beta.WebSecurityScanner/GetScanConfig", in, out, opts...) 1132 if err != nil { 1133 return nil, err 1134 } 1135 return out, nil 1136} 1137 1138func (c *webSecurityScannerClient) ListScanConfigs(ctx context.Context, in *ListScanConfigsRequest, opts ...grpc.CallOption) (*ListScanConfigsResponse, error) { 1139 out := new(ListScanConfigsResponse) 1140 err := c.cc.Invoke(ctx, "/google.cloud.websecurityscanner.v1beta.WebSecurityScanner/ListScanConfigs", in, out, opts...) 1141 if err != nil { 1142 return nil, err 1143 } 1144 return out, nil 1145} 1146 1147func (c *webSecurityScannerClient) UpdateScanConfig(ctx context.Context, in *UpdateScanConfigRequest, opts ...grpc.CallOption) (*ScanConfig, error) { 1148 out := new(ScanConfig) 1149 err := c.cc.Invoke(ctx, "/google.cloud.websecurityscanner.v1beta.WebSecurityScanner/UpdateScanConfig", in, out, opts...) 1150 if err != nil { 1151 return nil, err 1152 } 1153 return out, nil 1154} 1155 1156func (c *webSecurityScannerClient) StartScanRun(ctx context.Context, in *StartScanRunRequest, opts ...grpc.CallOption) (*ScanRun, error) { 1157 out := new(ScanRun) 1158 err := c.cc.Invoke(ctx, "/google.cloud.websecurityscanner.v1beta.WebSecurityScanner/StartScanRun", in, out, opts...) 1159 if err != nil { 1160 return nil, err 1161 } 1162 return out, nil 1163} 1164 1165func (c *webSecurityScannerClient) GetScanRun(ctx context.Context, in *GetScanRunRequest, opts ...grpc.CallOption) (*ScanRun, error) { 1166 out := new(ScanRun) 1167 err := c.cc.Invoke(ctx, "/google.cloud.websecurityscanner.v1beta.WebSecurityScanner/GetScanRun", in, out, opts...) 1168 if err != nil { 1169 return nil, err 1170 } 1171 return out, nil 1172} 1173 1174func (c *webSecurityScannerClient) ListScanRuns(ctx context.Context, in *ListScanRunsRequest, opts ...grpc.CallOption) (*ListScanRunsResponse, error) { 1175 out := new(ListScanRunsResponse) 1176 err := c.cc.Invoke(ctx, "/google.cloud.websecurityscanner.v1beta.WebSecurityScanner/ListScanRuns", in, out, opts...) 1177 if err != nil { 1178 return nil, err 1179 } 1180 return out, nil 1181} 1182 1183func (c *webSecurityScannerClient) StopScanRun(ctx context.Context, in *StopScanRunRequest, opts ...grpc.CallOption) (*ScanRun, error) { 1184 out := new(ScanRun) 1185 err := c.cc.Invoke(ctx, "/google.cloud.websecurityscanner.v1beta.WebSecurityScanner/StopScanRun", in, out, opts...) 1186 if err != nil { 1187 return nil, err 1188 } 1189 return out, nil 1190} 1191 1192func (c *webSecurityScannerClient) ListCrawledUrls(ctx context.Context, in *ListCrawledUrlsRequest, opts ...grpc.CallOption) (*ListCrawledUrlsResponse, error) { 1193 out := new(ListCrawledUrlsResponse) 1194 err := c.cc.Invoke(ctx, "/google.cloud.websecurityscanner.v1beta.WebSecurityScanner/ListCrawledUrls", in, out, opts...) 1195 if err != nil { 1196 return nil, err 1197 } 1198 return out, nil 1199} 1200 1201func (c *webSecurityScannerClient) GetFinding(ctx context.Context, in *GetFindingRequest, opts ...grpc.CallOption) (*Finding, error) { 1202 out := new(Finding) 1203 err := c.cc.Invoke(ctx, "/google.cloud.websecurityscanner.v1beta.WebSecurityScanner/GetFinding", in, out, opts...) 1204 if err != nil { 1205 return nil, err 1206 } 1207 return out, nil 1208} 1209 1210func (c *webSecurityScannerClient) ListFindings(ctx context.Context, in *ListFindingsRequest, opts ...grpc.CallOption) (*ListFindingsResponse, error) { 1211 out := new(ListFindingsResponse) 1212 err := c.cc.Invoke(ctx, "/google.cloud.websecurityscanner.v1beta.WebSecurityScanner/ListFindings", in, out, opts...) 1213 if err != nil { 1214 return nil, err 1215 } 1216 return out, nil 1217} 1218 1219func (c *webSecurityScannerClient) ListFindingTypeStats(ctx context.Context, in *ListFindingTypeStatsRequest, opts ...grpc.CallOption) (*ListFindingTypeStatsResponse, error) { 1220 out := new(ListFindingTypeStatsResponse) 1221 err := c.cc.Invoke(ctx, "/google.cloud.websecurityscanner.v1beta.WebSecurityScanner/ListFindingTypeStats", in, out, opts...) 1222 if err != nil { 1223 return nil, err 1224 } 1225 return out, nil 1226} 1227 1228// WebSecurityScannerServer is the server API for WebSecurityScanner service. 1229type WebSecurityScannerServer interface { 1230 // Creates a new ScanConfig. 1231 CreateScanConfig(context.Context, *CreateScanConfigRequest) (*ScanConfig, error) 1232 // Deletes an existing ScanConfig and its child resources. 1233 DeleteScanConfig(context.Context, *DeleteScanConfigRequest) (*empty.Empty, error) 1234 // Gets a ScanConfig. 1235 GetScanConfig(context.Context, *GetScanConfigRequest) (*ScanConfig, error) 1236 // Lists ScanConfigs under a given project. 1237 ListScanConfigs(context.Context, *ListScanConfigsRequest) (*ListScanConfigsResponse, error) 1238 // Updates a ScanConfig. This method support partial update of a ScanConfig. 1239 UpdateScanConfig(context.Context, *UpdateScanConfigRequest) (*ScanConfig, error) 1240 // Start a ScanRun according to the given ScanConfig. 1241 StartScanRun(context.Context, *StartScanRunRequest) (*ScanRun, error) 1242 // Gets a ScanRun. 1243 GetScanRun(context.Context, *GetScanRunRequest) (*ScanRun, error) 1244 // Lists ScanRuns under a given ScanConfig, in descending order of ScanRun 1245 // stop time. 1246 ListScanRuns(context.Context, *ListScanRunsRequest) (*ListScanRunsResponse, error) 1247 // Stops a ScanRun. The stopped ScanRun is returned. 1248 StopScanRun(context.Context, *StopScanRunRequest) (*ScanRun, error) 1249 // List CrawledUrls under a given ScanRun. 1250 ListCrawledUrls(context.Context, *ListCrawledUrlsRequest) (*ListCrawledUrlsResponse, error) 1251 // Gets a Finding. 1252 GetFinding(context.Context, *GetFindingRequest) (*Finding, error) 1253 // List Findings under a given ScanRun. 1254 ListFindings(context.Context, *ListFindingsRequest) (*ListFindingsResponse, error) 1255 // List all FindingTypeStats under a given ScanRun. 1256 ListFindingTypeStats(context.Context, *ListFindingTypeStatsRequest) (*ListFindingTypeStatsResponse, error) 1257} 1258 1259func RegisterWebSecurityScannerServer(s *grpc.Server, srv WebSecurityScannerServer) { 1260 s.RegisterService(&_WebSecurityScanner_serviceDesc, srv) 1261} 1262 1263func _WebSecurityScanner_CreateScanConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1264 in := new(CreateScanConfigRequest) 1265 if err := dec(in); err != nil { 1266 return nil, err 1267 } 1268 if interceptor == nil { 1269 return srv.(WebSecurityScannerServer).CreateScanConfig(ctx, in) 1270 } 1271 info := &grpc.UnaryServerInfo{ 1272 Server: srv, 1273 FullMethod: "/google.cloud.websecurityscanner.v1beta.WebSecurityScanner/CreateScanConfig", 1274 } 1275 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1276 return srv.(WebSecurityScannerServer).CreateScanConfig(ctx, req.(*CreateScanConfigRequest)) 1277 } 1278 return interceptor(ctx, in, info, handler) 1279} 1280 1281func _WebSecurityScanner_DeleteScanConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1282 in := new(DeleteScanConfigRequest) 1283 if err := dec(in); err != nil { 1284 return nil, err 1285 } 1286 if interceptor == nil { 1287 return srv.(WebSecurityScannerServer).DeleteScanConfig(ctx, in) 1288 } 1289 info := &grpc.UnaryServerInfo{ 1290 Server: srv, 1291 FullMethod: "/google.cloud.websecurityscanner.v1beta.WebSecurityScanner/DeleteScanConfig", 1292 } 1293 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1294 return srv.(WebSecurityScannerServer).DeleteScanConfig(ctx, req.(*DeleteScanConfigRequest)) 1295 } 1296 return interceptor(ctx, in, info, handler) 1297} 1298 1299func _WebSecurityScanner_GetScanConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1300 in := new(GetScanConfigRequest) 1301 if err := dec(in); err != nil { 1302 return nil, err 1303 } 1304 if interceptor == nil { 1305 return srv.(WebSecurityScannerServer).GetScanConfig(ctx, in) 1306 } 1307 info := &grpc.UnaryServerInfo{ 1308 Server: srv, 1309 FullMethod: "/google.cloud.websecurityscanner.v1beta.WebSecurityScanner/GetScanConfig", 1310 } 1311 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1312 return srv.(WebSecurityScannerServer).GetScanConfig(ctx, req.(*GetScanConfigRequest)) 1313 } 1314 return interceptor(ctx, in, info, handler) 1315} 1316 1317func _WebSecurityScanner_ListScanConfigs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1318 in := new(ListScanConfigsRequest) 1319 if err := dec(in); err != nil { 1320 return nil, err 1321 } 1322 if interceptor == nil { 1323 return srv.(WebSecurityScannerServer).ListScanConfigs(ctx, in) 1324 } 1325 info := &grpc.UnaryServerInfo{ 1326 Server: srv, 1327 FullMethod: "/google.cloud.websecurityscanner.v1beta.WebSecurityScanner/ListScanConfigs", 1328 } 1329 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1330 return srv.(WebSecurityScannerServer).ListScanConfigs(ctx, req.(*ListScanConfigsRequest)) 1331 } 1332 return interceptor(ctx, in, info, handler) 1333} 1334 1335func _WebSecurityScanner_UpdateScanConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1336 in := new(UpdateScanConfigRequest) 1337 if err := dec(in); err != nil { 1338 return nil, err 1339 } 1340 if interceptor == nil { 1341 return srv.(WebSecurityScannerServer).UpdateScanConfig(ctx, in) 1342 } 1343 info := &grpc.UnaryServerInfo{ 1344 Server: srv, 1345 FullMethod: "/google.cloud.websecurityscanner.v1beta.WebSecurityScanner/UpdateScanConfig", 1346 } 1347 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1348 return srv.(WebSecurityScannerServer).UpdateScanConfig(ctx, req.(*UpdateScanConfigRequest)) 1349 } 1350 return interceptor(ctx, in, info, handler) 1351} 1352 1353func _WebSecurityScanner_StartScanRun_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1354 in := new(StartScanRunRequest) 1355 if err := dec(in); err != nil { 1356 return nil, err 1357 } 1358 if interceptor == nil { 1359 return srv.(WebSecurityScannerServer).StartScanRun(ctx, in) 1360 } 1361 info := &grpc.UnaryServerInfo{ 1362 Server: srv, 1363 FullMethod: "/google.cloud.websecurityscanner.v1beta.WebSecurityScanner/StartScanRun", 1364 } 1365 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1366 return srv.(WebSecurityScannerServer).StartScanRun(ctx, req.(*StartScanRunRequest)) 1367 } 1368 return interceptor(ctx, in, info, handler) 1369} 1370 1371func _WebSecurityScanner_GetScanRun_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1372 in := new(GetScanRunRequest) 1373 if err := dec(in); err != nil { 1374 return nil, err 1375 } 1376 if interceptor == nil { 1377 return srv.(WebSecurityScannerServer).GetScanRun(ctx, in) 1378 } 1379 info := &grpc.UnaryServerInfo{ 1380 Server: srv, 1381 FullMethod: "/google.cloud.websecurityscanner.v1beta.WebSecurityScanner/GetScanRun", 1382 } 1383 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1384 return srv.(WebSecurityScannerServer).GetScanRun(ctx, req.(*GetScanRunRequest)) 1385 } 1386 return interceptor(ctx, in, info, handler) 1387} 1388 1389func _WebSecurityScanner_ListScanRuns_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1390 in := new(ListScanRunsRequest) 1391 if err := dec(in); err != nil { 1392 return nil, err 1393 } 1394 if interceptor == nil { 1395 return srv.(WebSecurityScannerServer).ListScanRuns(ctx, in) 1396 } 1397 info := &grpc.UnaryServerInfo{ 1398 Server: srv, 1399 FullMethod: "/google.cloud.websecurityscanner.v1beta.WebSecurityScanner/ListScanRuns", 1400 } 1401 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1402 return srv.(WebSecurityScannerServer).ListScanRuns(ctx, req.(*ListScanRunsRequest)) 1403 } 1404 return interceptor(ctx, in, info, handler) 1405} 1406 1407func _WebSecurityScanner_StopScanRun_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1408 in := new(StopScanRunRequest) 1409 if err := dec(in); err != nil { 1410 return nil, err 1411 } 1412 if interceptor == nil { 1413 return srv.(WebSecurityScannerServer).StopScanRun(ctx, in) 1414 } 1415 info := &grpc.UnaryServerInfo{ 1416 Server: srv, 1417 FullMethod: "/google.cloud.websecurityscanner.v1beta.WebSecurityScanner/StopScanRun", 1418 } 1419 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1420 return srv.(WebSecurityScannerServer).StopScanRun(ctx, req.(*StopScanRunRequest)) 1421 } 1422 return interceptor(ctx, in, info, handler) 1423} 1424 1425func _WebSecurityScanner_ListCrawledUrls_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1426 in := new(ListCrawledUrlsRequest) 1427 if err := dec(in); err != nil { 1428 return nil, err 1429 } 1430 if interceptor == nil { 1431 return srv.(WebSecurityScannerServer).ListCrawledUrls(ctx, in) 1432 } 1433 info := &grpc.UnaryServerInfo{ 1434 Server: srv, 1435 FullMethod: "/google.cloud.websecurityscanner.v1beta.WebSecurityScanner/ListCrawledUrls", 1436 } 1437 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1438 return srv.(WebSecurityScannerServer).ListCrawledUrls(ctx, req.(*ListCrawledUrlsRequest)) 1439 } 1440 return interceptor(ctx, in, info, handler) 1441} 1442 1443func _WebSecurityScanner_GetFinding_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1444 in := new(GetFindingRequest) 1445 if err := dec(in); err != nil { 1446 return nil, err 1447 } 1448 if interceptor == nil { 1449 return srv.(WebSecurityScannerServer).GetFinding(ctx, in) 1450 } 1451 info := &grpc.UnaryServerInfo{ 1452 Server: srv, 1453 FullMethod: "/google.cloud.websecurityscanner.v1beta.WebSecurityScanner/GetFinding", 1454 } 1455 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1456 return srv.(WebSecurityScannerServer).GetFinding(ctx, req.(*GetFindingRequest)) 1457 } 1458 return interceptor(ctx, in, info, handler) 1459} 1460 1461func _WebSecurityScanner_ListFindings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1462 in := new(ListFindingsRequest) 1463 if err := dec(in); err != nil { 1464 return nil, err 1465 } 1466 if interceptor == nil { 1467 return srv.(WebSecurityScannerServer).ListFindings(ctx, in) 1468 } 1469 info := &grpc.UnaryServerInfo{ 1470 Server: srv, 1471 FullMethod: "/google.cloud.websecurityscanner.v1beta.WebSecurityScanner/ListFindings", 1472 } 1473 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1474 return srv.(WebSecurityScannerServer).ListFindings(ctx, req.(*ListFindingsRequest)) 1475 } 1476 return interceptor(ctx, in, info, handler) 1477} 1478 1479func _WebSecurityScanner_ListFindingTypeStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1480 in := new(ListFindingTypeStatsRequest) 1481 if err := dec(in); err != nil { 1482 return nil, err 1483 } 1484 if interceptor == nil { 1485 return srv.(WebSecurityScannerServer).ListFindingTypeStats(ctx, in) 1486 } 1487 info := &grpc.UnaryServerInfo{ 1488 Server: srv, 1489 FullMethod: "/google.cloud.websecurityscanner.v1beta.WebSecurityScanner/ListFindingTypeStats", 1490 } 1491 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1492 return srv.(WebSecurityScannerServer).ListFindingTypeStats(ctx, req.(*ListFindingTypeStatsRequest)) 1493 } 1494 return interceptor(ctx, in, info, handler) 1495} 1496 1497var _WebSecurityScanner_serviceDesc = grpc.ServiceDesc{ 1498 ServiceName: "google.cloud.websecurityscanner.v1beta.WebSecurityScanner", 1499 HandlerType: (*WebSecurityScannerServer)(nil), 1500 Methods: []grpc.MethodDesc{ 1501 { 1502 MethodName: "CreateScanConfig", 1503 Handler: _WebSecurityScanner_CreateScanConfig_Handler, 1504 }, 1505 { 1506 MethodName: "DeleteScanConfig", 1507 Handler: _WebSecurityScanner_DeleteScanConfig_Handler, 1508 }, 1509 { 1510 MethodName: "GetScanConfig", 1511 Handler: _WebSecurityScanner_GetScanConfig_Handler, 1512 }, 1513 { 1514 MethodName: "ListScanConfigs", 1515 Handler: _WebSecurityScanner_ListScanConfigs_Handler, 1516 }, 1517 { 1518 MethodName: "UpdateScanConfig", 1519 Handler: _WebSecurityScanner_UpdateScanConfig_Handler, 1520 }, 1521 { 1522 MethodName: "StartScanRun", 1523 Handler: _WebSecurityScanner_StartScanRun_Handler, 1524 }, 1525 { 1526 MethodName: "GetScanRun", 1527 Handler: _WebSecurityScanner_GetScanRun_Handler, 1528 }, 1529 { 1530 MethodName: "ListScanRuns", 1531 Handler: _WebSecurityScanner_ListScanRuns_Handler, 1532 }, 1533 { 1534 MethodName: "StopScanRun", 1535 Handler: _WebSecurityScanner_StopScanRun_Handler, 1536 }, 1537 { 1538 MethodName: "ListCrawledUrls", 1539 Handler: _WebSecurityScanner_ListCrawledUrls_Handler, 1540 }, 1541 { 1542 MethodName: "GetFinding", 1543 Handler: _WebSecurityScanner_GetFinding_Handler, 1544 }, 1545 { 1546 MethodName: "ListFindings", 1547 Handler: _WebSecurityScanner_ListFindings_Handler, 1548 }, 1549 { 1550 MethodName: "ListFindingTypeStats", 1551 Handler: _WebSecurityScanner_ListFindingTypeStats_Handler, 1552 }, 1553 }, 1554 Streams: []grpc.StreamDesc{}, 1555 Metadata: "google/cloud/websecurityscanner/v1beta/web_security_scanner.proto", 1556} 1557