1// Copyright 2019 Google LLC. 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14// 15 16// Code generated by protoc-gen-go. DO NOT EDIT. 17// versions: 18// protoc-gen-go v1.25.0 19// protoc v3.13.0 20// source: google/cloud/websecurityscanner/v1beta/scan_config.proto 21 22package websecurityscanner 23 24import ( 25 reflect "reflect" 26 sync "sync" 27 28 proto "github.com/golang/protobuf/proto" 29 _ "google.golang.org/genproto/googleapis/api/annotations" 30 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 31 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 32 timestamppb "google.golang.org/protobuf/types/known/timestamppb" 33) 34 35const ( 36 // Verify that this generated code is sufficiently up-to-date. 37 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 38 // Verify that runtime/protoimpl is sufficiently up-to-date. 39 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 40) 41 42// This is a compile-time assertion that a sufficiently up-to-date version 43// of the legacy proto package is being used. 44const _ = proto.ProtoPackageIsVersion4 45 46// Type of user agents used for scanning. 47type ScanConfig_UserAgent int32 48 49const ( 50 // The user agent is unknown. Service will default to CHROME_LINUX. 51 ScanConfig_USER_AGENT_UNSPECIFIED ScanConfig_UserAgent = 0 52 // Chrome on Linux. This is the service default if unspecified. 53 ScanConfig_CHROME_LINUX ScanConfig_UserAgent = 1 54 // Chrome on Android. 55 ScanConfig_CHROME_ANDROID ScanConfig_UserAgent = 2 56 // Safari on IPhone. 57 ScanConfig_SAFARI_IPHONE ScanConfig_UserAgent = 3 58) 59 60// Enum value maps for ScanConfig_UserAgent. 61var ( 62 ScanConfig_UserAgent_name = map[int32]string{ 63 0: "USER_AGENT_UNSPECIFIED", 64 1: "CHROME_LINUX", 65 2: "CHROME_ANDROID", 66 3: "SAFARI_IPHONE", 67 } 68 ScanConfig_UserAgent_value = map[string]int32{ 69 "USER_AGENT_UNSPECIFIED": 0, 70 "CHROME_LINUX": 1, 71 "CHROME_ANDROID": 2, 72 "SAFARI_IPHONE": 3, 73 } 74) 75 76func (x ScanConfig_UserAgent) Enum() *ScanConfig_UserAgent { 77 p := new(ScanConfig_UserAgent) 78 *p = x 79 return p 80} 81 82func (x ScanConfig_UserAgent) String() string { 83 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 84} 85 86func (ScanConfig_UserAgent) Descriptor() protoreflect.EnumDescriptor { 87 return file_google_cloud_websecurityscanner_v1beta_scan_config_proto_enumTypes[0].Descriptor() 88} 89 90func (ScanConfig_UserAgent) Type() protoreflect.EnumType { 91 return &file_google_cloud_websecurityscanner_v1beta_scan_config_proto_enumTypes[0] 92} 93 94func (x ScanConfig_UserAgent) Number() protoreflect.EnumNumber { 95 return protoreflect.EnumNumber(x) 96} 97 98// Deprecated: Use ScanConfig_UserAgent.Descriptor instead. 99func (ScanConfig_UserAgent) EnumDescriptor() ([]byte, []int) { 100 return file_google_cloud_websecurityscanner_v1beta_scan_config_proto_rawDescGZIP(), []int{0, 0} 101} 102 103// Cloud platforms supported by Cloud Web Security Scanner. 104type ScanConfig_TargetPlatform int32 105 106const ( 107 // The target platform is unknown. Requests with this enum value will be 108 // rejected with INVALID_ARGUMENT error. 109 ScanConfig_TARGET_PLATFORM_UNSPECIFIED ScanConfig_TargetPlatform = 0 110 // Google App Engine service. 111 ScanConfig_APP_ENGINE ScanConfig_TargetPlatform = 1 112 // Google Compute Engine service. 113 ScanConfig_COMPUTE ScanConfig_TargetPlatform = 2 114) 115 116// Enum value maps for ScanConfig_TargetPlatform. 117var ( 118 ScanConfig_TargetPlatform_name = map[int32]string{ 119 0: "TARGET_PLATFORM_UNSPECIFIED", 120 1: "APP_ENGINE", 121 2: "COMPUTE", 122 } 123 ScanConfig_TargetPlatform_value = map[string]int32{ 124 "TARGET_PLATFORM_UNSPECIFIED": 0, 125 "APP_ENGINE": 1, 126 "COMPUTE": 2, 127 } 128) 129 130func (x ScanConfig_TargetPlatform) Enum() *ScanConfig_TargetPlatform { 131 p := new(ScanConfig_TargetPlatform) 132 *p = x 133 return p 134} 135 136func (x ScanConfig_TargetPlatform) String() string { 137 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 138} 139 140func (ScanConfig_TargetPlatform) Descriptor() protoreflect.EnumDescriptor { 141 return file_google_cloud_websecurityscanner_v1beta_scan_config_proto_enumTypes[1].Descriptor() 142} 143 144func (ScanConfig_TargetPlatform) Type() protoreflect.EnumType { 145 return &file_google_cloud_websecurityscanner_v1beta_scan_config_proto_enumTypes[1] 146} 147 148func (x ScanConfig_TargetPlatform) Number() protoreflect.EnumNumber { 149 return protoreflect.EnumNumber(x) 150} 151 152// Deprecated: Use ScanConfig_TargetPlatform.Descriptor instead. 153func (ScanConfig_TargetPlatform) EnumDescriptor() ([]byte, []int) { 154 return file_google_cloud_websecurityscanner_v1beta_scan_config_proto_rawDescGZIP(), []int{0, 1} 155} 156 157// Scan risk levels supported by Cloud Web Security Scanner. LOW impact 158// scanning will minimize requests with the potential to modify data. To 159// achieve the maximum scan coverage, NORMAL risk level is recommended. 160type ScanConfig_RiskLevel int32 161 162const ( 163 // Use default, which is NORMAL. 164 ScanConfig_RISK_LEVEL_UNSPECIFIED ScanConfig_RiskLevel = 0 165 // Normal scanning (Recommended) 166 ScanConfig_NORMAL ScanConfig_RiskLevel = 1 167 // Lower impact scanning 168 ScanConfig_LOW ScanConfig_RiskLevel = 2 169) 170 171// Enum value maps for ScanConfig_RiskLevel. 172var ( 173 ScanConfig_RiskLevel_name = map[int32]string{ 174 0: "RISK_LEVEL_UNSPECIFIED", 175 1: "NORMAL", 176 2: "LOW", 177 } 178 ScanConfig_RiskLevel_value = map[string]int32{ 179 "RISK_LEVEL_UNSPECIFIED": 0, 180 "NORMAL": 1, 181 "LOW": 2, 182 } 183) 184 185func (x ScanConfig_RiskLevel) Enum() *ScanConfig_RiskLevel { 186 p := new(ScanConfig_RiskLevel) 187 *p = x 188 return p 189} 190 191func (x ScanConfig_RiskLevel) String() string { 192 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 193} 194 195func (ScanConfig_RiskLevel) Descriptor() protoreflect.EnumDescriptor { 196 return file_google_cloud_websecurityscanner_v1beta_scan_config_proto_enumTypes[2].Descriptor() 197} 198 199func (ScanConfig_RiskLevel) Type() protoreflect.EnumType { 200 return &file_google_cloud_websecurityscanner_v1beta_scan_config_proto_enumTypes[2] 201} 202 203func (x ScanConfig_RiskLevel) Number() protoreflect.EnumNumber { 204 return protoreflect.EnumNumber(x) 205} 206 207// Deprecated: Use ScanConfig_RiskLevel.Descriptor instead. 208func (ScanConfig_RiskLevel) EnumDescriptor() ([]byte, []int) { 209 return file_google_cloud_websecurityscanner_v1beta_scan_config_proto_rawDescGZIP(), []int{0, 2} 210} 211 212// Controls export of scan configurations and results to Cloud Security 213// Command Center. 214type ScanConfig_ExportToSecurityCommandCenter int32 215 216const ( 217 // Use default, which is ENABLED. 218 ScanConfig_EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED ScanConfig_ExportToSecurityCommandCenter = 0 219 // Export results of this scan to Cloud Security Command Center. 220 ScanConfig_ENABLED ScanConfig_ExportToSecurityCommandCenter = 1 221 // Do not export results of this scan to Cloud Security Command Center. 222 ScanConfig_DISABLED ScanConfig_ExportToSecurityCommandCenter = 2 223) 224 225// Enum value maps for ScanConfig_ExportToSecurityCommandCenter. 226var ( 227 ScanConfig_ExportToSecurityCommandCenter_name = map[int32]string{ 228 0: "EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED", 229 1: "ENABLED", 230 2: "DISABLED", 231 } 232 ScanConfig_ExportToSecurityCommandCenter_value = map[string]int32{ 233 "EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED": 0, 234 "ENABLED": 1, 235 "DISABLED": 2, 236 } 237) 238 239func (x ScanConfig_ExportToSecurityCommandCenter) Enum() *ScanConfig_ExportToSecurityCommandCenter { 240 p := new(ScanConfig_ExportToSecurityCommandCenter) 241 *p = x 242 return p 243} 244 245func (x ScanConfig_ExportToSecurityCommandCenter) String() string { 246 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 247} 248 249func (ScanConfig_ExportToSecurityCommandCenter) Descriptor() protoreflect.EnumDescriptor { 250 return file_google_cloud_websecurityscanner_v1beta_scan_config_proto_enumTypes[3].Descriptor() 251} 252 253func (ScanConfig_ExportToSecurityCommandCenter) Type() protoreflect.EnumType { 254 return &file_google_cloud_websecurityscanner_v1beta_scan_config_proto_enumTypes[3] 255} 256 257func (x ScanConfig_ExportToSecurityCommandCenter) Number() protoreflect.EnumNumber { 258 return protoreflect.EnumNumber(x) 259} 260 261// Deprecated: Use ScanConfig_ExportToSecurityCommandCenter.Descriptor instead. 262func (ScanConfig_ExportToSecurityCommandCenter) EnumDescriptor() ([]byte, []int) { 263 return file_google_cloud_websecurityscanner_v1beta_scan_config_proto_rawDescGZIP(), []int{0, 3} 264} 265 266// A ScanConfig resource contains the configurations to launch a scan. 267type ScanConfig struct { 268 state protoimpl.MessageState 269 sizeCache protoimpl.SizeCache 270 unknownFields protoimpl.UnknownFields 271 272 // The resource name of the ScanConfig. The name follows the format of 273 // 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are 274 // generated by the system. 275 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 276 // Required. The user provided display name of the ScanConfig. 277 DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` 278 // The maximum QPS during scanning. A valid value ranges from 5 to 20 279 // inclusively. If the field is unspecified or its value is set 0, server will 280 // default to 15. Other values outside of [5, 20] range will be rejected with 281 // INVALID_ARGUMENT error. 282 MaxQps int32 `protobuf:"varint,3,opt,name=max_qps,json=maxQps,proto3" json:"max_qps,omitempty"` 283 // Required. The starting URLs from which the scanner finds site pages. 284 StartingUrls []string `protobuf:"bytes,4,rep,name=starting_urls,json=startingUrls,proto3" json:"starting_urls,omitempty"` 285 // The authentication configuration. If specified, service will use the 286 // authentication configuration during scanning. 287 Authentication *ScanConfig_Authentication `protobuf:"bytes,5,opt,name=authentication,proto3" json:"authentication,omitempty"` 288 // The user agent used during scanning. 289 UserAgent ScanConfig_UserAgent `protobuf:"varint,6,opt,name=user_agent,json=userAgent,proto3,enum=google.cloud.websecurityscanner.v1beta.ScanConfig_UserAgent" json:"user_agent,omitempty"` 290 // The blacklist URL patterns as described in 291 // https://cloud.google.com/security-scanner/docs/excluded-urls 292 BlacklistPatterns []string `protobuf:"bytes,7,rep,name=blacklist_patterns,json=blacklistPatterns,proto3" json:"blacklist_patterns,omitempty"` 293 // The schedule of the ScanConfig. 294 Schedule *ScanConfig_Schedule `protobuf:"bytes,8,opt,name=schedule,proto3" json:"schedule,omitempty"` 295 // Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be 296 // used as a default. 297 TargetPlatforms []ScanConfig_TargetPlatform `protobuf:"varint,9,rep,packed,name=target_platforms,json=targetPlatforms,proto3,enum=google.cloud.websecurityscanner.v1beta.ScanConfig_TargetPlatform" json:"target_platforms,omitempty"` 298 // Controls export of scan configurations and results to Cloud Security 299 // Command Center. 300 ExportToSecurityCommandCenter ScanConfig_ExportToSecurityCommandCenter `protobuf:"varint,10,opt,name=export_to_security_command_center,json=exportToSecurityCommandCenter,proto3,enum=google.cloud.websecurityscanner.v1beta.ScanConfig_ExportToSecurityCommandCenter" json:"export_to_security_command_center,omitempty"` 301 // Latest ScanRun if available. 302 LatestRun *ScanRun `protobuf:"bytes,11,opt,name=latest_run,json=latestRun,proto3" json:"latest_run,omitempty"` 303 // The risk level selected for the scan 304 RiskLevel ScanConfig_RiskLevel `protobuf:"varint,12,opt,name=risk_level,json=riskLevel,proto3,enum=google.cloud.websecurityscanner.v1beta.ScanConfig_RiskLevel" json:"risk_level,omitempty"` 305} 306 307func (x *ScanConfig) Reset() { 308 *x = ScanConfig{} 309 if protoimpl.UnsafeEnabled { 310 mi := &file_google_cloud_websecurityscanner_v1beta_scan_config_proto_msgTypes[0] 311 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 312 ms.StoreMessageInfo(mi) 313 } 314} 315 316func (x *ScanConfig) String() string { 317 return protoimpl.X.MessageStringOf(x) 318} 319 320func (*ScanConfig) ProtoMessage() {} 321 322func (x *ScanConfig) ProtoReflect() protoreflect.Message { 323 mi := &file_google_cloud_websecurityscanner_v1beta_scan_config_proto_msgTypes[0] 324 if protoimpl.UnsafeEnabled && x != nil { 325 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 326 if ms.LoadMessageInfo() == nil { 327 ms.StoreMessageInfo(mi) 328 } 329 return ms 330 } 331 return mi.MessageOf(x) 332} 333 334// Deprecated: Use ScanConfig.ProtoReflect.Descriptor instead. 335func (*ScanConfig) Descriptor() ([]byte, []int) { 336 return file_google_cloud_websecurityscanner_v1beta_scan_config_proto_rawDescGZIP(), []int{0} 337} 338 339func (x *ScanConfig) GetName() string { 340 if x != nil { 341 return x.Name 342 } 343 return "" 344} 345 346func (x *ScanConfig) GetDisplayName() string { 347 if x != nil { 348 return x.DisplayName 349 } 350 return "" 351} 352 353func (x *ScanConfig) GetMaxQps() int32 { 354 if x != nil { 355 return x.MaxQps 356 } 357 return 0 358} 359 360func (x *ScanConfig) GetStartingUrls() []string { 361 if x != nil { 362 return x.StartingUrls 363 } 364 return nil 365} 366 367func (x *ScanConfig) GetAuthentication() *ScanConfig_Authentication { 368 if x != nil { 369 return x.Authentication 370 } 371 return nil 372} 373 374func (x *ScanConfig) GetUserAgent() ScanConfig_UserAgent { 375 if x != nil { 376 return x.UserAgent 377 } 378 return ScanConfig_USER_AGENT_UNSPECIFIED 379} 380 381func (x *ScanConfig) GetBlacklistPatterns() []string { 382 if x != nil { 383 return x.BlacklistPatterns 384 } 385 return nil 386} 387 388func (x *ScanConfig) GetSchedule() *ScanConfig_Schedule { 389 if x != nil { 390 return x.Schedule 391 } 392 return nil 393} 394 395func (x *ScanConfig) GetTargetPlatforms() []ScanConfig_TargetPlatform { 396 if x != nil { 397 return x.TargetPlatforms 398 } 399 return nil 400} 401 402func (x *ScanConfig) GetExportToSecurityCommandCenter() ScanConfig_ExportToSecurityCommandCenter { 403 if x != nil { 404 return x.ExportToSecurityCommandCenter 405 } 406 return ScanConfig_EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED 407} 408 409func (x *ScanConfig) GetLatestRun() *ScanRun { 410 if x != nil { 411 return x.LatestRun 412 } 413 return nil 414} 415 416func (x *ScanConfig) GetRiskLevel() ScanConfig_RiskLevel { 417 if x != nil { 418 return x.RiskLevel 419 } 420 return ScanConfig_RISK_LEVEL_UNSPECIFIED 421} 422 423// Scan authentication configuration. 424type ScanConfig_Authentication struct { 425 state protoimpl.MessageState 426 sizeCache protoimpl.SizeCache 427 unknownFields protoimpl.UnknownFields 428 429 // Required. 430 // Authentication configuration 431 // 432 // Types that are assignable to Authentication: 433 // *ScanConfig_Authentication_GoogleAccount_ 434 // *ScanConfig_Authentication_CustomAccount_ 435 Authentication isScanConfig_Authentication_Authentication `protobuf_oneof:"authentication"` 436} 437 438func (x *ScanConfig_Authentication) Reset() { 439 *x = ScanConfig_Authentication{} 440 if protoimpl.UnsafeEnabled { 441 mi := &file_google_cloud_websecurityscanner_v1beta_scan_config_proto_msgTypes[1] 442 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 443 ms.StoreMessageInfo(mi) 444 } 445} 446 447func (x *ScanConfig_Authentication) String() string { 448 return protoimpl.X.MessageStringOf(x) 449} 450 451func (*ScanConfig_Authentication) ProtoMessage() {} 452 453func (x *ScanConfig_Authentication) ProtoReflect() protoreflect.Message { 454 mi := &file_google_cloud_websecurityscanner_v1beta_scan_config_proto_msgTypes[1] 455 if protoimpl.UnsafeEnabled && x != nil { 456 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 457 if ms.LoadMessageInfo() == nil { 458 ms.StoreMessageInfo(mi) 459 } 460 return ms 461 } 462 return mi.MessageOf(x) 463} 464 465// Deprecated: Use ScanConfig_Authentication.ProtoReflect.Descriptor instead. 466func (*ScanConfig_Authentication) Descriptor() ([]byte, []int) { 467 return file_google_cloud_websecurityscanner_v1beta_scan_config_proto_rawDescGZIP(), []int{0, 0} 468} 469 470func (m *ScanConfig_Authentication) GetAuthentication() isScanConfig_Authentication_Authentication { 471 if m != nil { 472 return m.Authentication 473 } 474 return nil 475} 476 477func (x *ScanConfig_Authentication) GetGoogleAccount() *ScanConfig_Authentication_GoogleAccount { 478 if x, ok := x.GetAuthentication().(*ScanConfig_Authentication_GoogleAccount_); ok { 479 return x.GoogleAccount 480 } 481 return nil 482} 483 484func (x *ScanConfig_Authentication) GetCustomAccount() *ScanConfig_Authentication_CustomAccount { 485 if x, ok := x.GetAuthentication().(*ScanConfig_Authentication_CustomAccount_); ok { 486 return x.CustomAccount 487 } 488 return nil 489} 490 491type isScanConfig_Authentication_Authentication interface { 492 isScanConfig_Authentication_Authentication() 493} 494 495type ScanConfig_Authentication_GoogleAccount_ struct { 496 // Authentication using a Google account. 497 GoogleAccount *ScanConfig_Authentication_GoogleAccount `protobuf:"bytes,1,opt,name=google_account,json=googleAccount,proto3,oneof"` 498} 499 500type ScanConfig_Authentication_CustomAccount_ struct { 501 // Authentication using a custom account. 502 CustomAccount *ScanConfig_Authentication_CustomAccount `protobuf:"bytes,2,opt,name=custom_account,json=customAccount,proto3,oneof"` 503} 504 505func (*ScanConfig_Authentication_GoogleAccount_) isScanConfig_Authentication_Authentication() {} 506 507func (*ScanConfig_Authentication_CustomAccount_) isScanConfig_Authentication_Authentication() {} 508 509// Scan schedule configuration. 510type ScanConfig_Schedule struct { 511 state protoimpl.MessageState 512 sizeCache protoimpl.SizeCache 513 unknownFields protoimpl.UnknownFields 514 515 // A timestamp indicates when the next run will be scheduled. The value is 516 // refreshed by the server after each run. If unspecified, it will default 517 // to current server time, which means the scan will be scheduled to start 518 // immediately. 519 ScheduleTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=schedule_time,json=scheduleTime,proto3" json:"schedule_time,omitempty"` 520 // Required. The duration of time between executions in days. 521 IntervalDurationDays int32 `protobuf:"varint,2,opt,name=interval_duration_days,json=intervalDurationDays,proto3" json:"interval_duration_days,omitempty"` 522} 523 524func (x *ScanConfig_Schedule) Reset() { 525 *x = ScanConfig_Schedule{} 526 if protoimpl.UnsafeEnabled { 527 mi := &file_google_cloud_websecurityscanner_v1beta_scan_config_proto_msgTypes[2] 528 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 529 ms.StoreMessageInfo(mi) 530 } 531} 532 533func (x *ScanConfig_Schedule) String() string { 534 return protoimpl.X.MessageStringOf(x) 535} 536 537func (*ScanConfig_Schedule) ProtoMessage() {} 538 539func (x *ScanConfig_Schedule) ProtoReflect() protoreflect.Message { 540 mi := &file_google_cloud_websecurityscanner_v1beta_scan_config_proto_msgTypes[2] 541 if protoimpl.UnsafeEnabled && x != nil { 542 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 543 if ms.LoadMessageInfo() == nil { 544 ms.StoreMessageInfo(mi) 545 } 546 return ms 547 } 548 return mi.MessageOf(x) 549} 550 551// Deprecated: Use ScanConfig_Schedule.ProtoReflect.Descriptor instead. 552func (*ScanConfig_Schedule) Descriptor() ([]byte, []int) { 553 return file_google_cloud_websecurityscanner_v1beta_scan_config_proto_rawDescGZIP(), []int{0, 1} 554} 555 556func (x *ScanConfig_Schedule) GetScheduleTime() *timestamppb.Timestamp { 557 if x != nil { 558 return x.ScheduleTime 559 } 560 return nil 561} 562 563func (x *ScanConfig_Schedule) GetIntervalDurationDays() int32 { 564 if x != nil { 565 return x.IntervalDurationDays 566 } 567 return 0 568} 569 570// Describes authentication configuration that uses a Google account. 571type ScanConfig_Authentication_GoogleAccount struct { 572 state protoimpl.MessageState 573 sizeCache protoimpl.SizeCache 574 unknownFields protoimpl.UnknownFields 575 576 // Required. The user name of the Google account. 577 Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` 578 // Required. Input only. The password of the Google account. The credential is stored encrypted 579 // and not returned in any response nor included in audit logs. 580 Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` 581} 582 583func (x *ScanConfig_Authentication_GoogleAccount) Reset() { 584 *x = ScanConfig_Authentication_GoogleAccount{} 585 if protoimpl.UnsafeEnabled { 586 mi := &file_google_cloud_websecurityscanner_v1beta_scan_config_proto_msgTypes[3] 587 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 588 ms.StoreMessageInfo(mi) 589 } 590} 591 592func (x *ScanConfig_Authentication_GoogleAccount) String() string { 593 return protoimpl.X.MessageStringOf(x) 594} 595 596func (*ScanConfig_Authentication_GoogleAccount) ProtoMessage() {} 597 598func (x *ScanConfig_Authentication_GoogleAccount) ProtoReflect() protoreflect.Message { 599 mi := &file_google_cloud_websecurityscanner_v1beta_scan_config_proto_msgTypes[3] 600 if protoimpl.UnsafeEnabled && x != nil { 601 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 602 if ms.LoadMessageInfo() == nil { 603 ms.StoreMessageInfo(mi) 604 } 605 return ms 606 } 607 return mi.MessageOf(x) 608} 609 610// Deprecated: Use ScanConfig_Authentication_GoogleAccount.ProtoReflect.Descriptor instead. 611func (*ScanConfig_Authentication_GoogleAccount) Descriptor() ([]byte, []int) { 612 return file_google_cloud_websecurityscanner_v1beta_scan_config_proto_rawDescGZIP(), []int{0, 0, 0} 613} 614 615func (x *ScanConfig_Authentication_GoogleAccount) GetUsername() string { 616 if x != nil { 617 return x.Username 618 } 619 return "" 620} 621 622func (x *ScanConfig_Authentication_GoogleAccount) GetPassword() string { 623 if x != nil { 624 return x.Password 625 } 626 return "" 627} 628 629// Describes authentication configuration that uses a custom account. 630type ScanConfig_Authentication_CustomAccount struct { 631 state protoimpl.MessageState 632 sizeCache protoimpl.SizeCache 633 unknownFields protoimpl.UnknownFields 634 635 // Required. The user name of the custom account. 636 Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` 637 // Required. Input only. The password of the custom account. The credential is stored encrypted 638 // and not returned in any response nor included in audit logs. 639 Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` 640 // Required. The login form URL of the website. 641 LoginUrl string `protobuf:"bytes,3,opt,name=login_url,json=loginUrl,proto3" json:"login_url,omitempty"` 642} 643 644func (x *ScanConfig_Authentication_CustomAccount) Reset() { 645 *x = ScanConfig_Authentication_CustomAccount{} 646 if protoimpl.UnsafeEnabled { 647 mi := &file_google_cloud_websecurityscanner_v1beta_scan_config_proto_msgTypes[4] 648 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 649 ms.StoreMessageInfo(mi) 650 } 651} 652 653func (x *ScanConfig_Authentication_CustomAccount) String() string { 654 return protoimpl.X.MessageStringOf(x) 655} 656 657func (*ScanConfig_Authentication_CustomAccount) ProtoMessage() {} 658 659func (x *ScanConfig_Authentication_CustomAccount) ProtoReflect() protoreflect.Message { 660 mi := &file_google_cloud_websecurityscanner_v1beta_scan_config_proto_msgTypes[4] 661 if protoimpl.UnsafeEnabled && x != nil { 662 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 663 if ms.LoadMessageInfo() == nil { 664 ms.StoreMessageInfo(mi) 665 } 666 return ms 667 } 668 return mi.MessageOf(x) 669} 670 671// Deprecated: Use ScanConfig_Authentication_CustomAccount.ProtoReflect.Descriptor instead. 672func (*ScanConfig_Authentication_CustomAccount) Descriptor() ([]byte, []int) { 673 return file_google_cloud_websecurityscanner_v1beta_scan_config_proto_rawDescGZIP(), []int{0, 0, 1} 674} 675 676func (x *ScanConfig_Authentication_CustomAccount) GetUsername() string { 677 if x != nil { 678 return x.Username 679 } 680 return "" 681} 682 683func (x *ScanConfig_Authentication_CustomAccount) GetPassword() string { 684 if x != nil { 685 return x.Password 686 } 687 return "" 688} 689 690func (x *ScanConfig_Authentication_CustomAccount) GetLoginUrl() string { 691 if x != nil { 692 return x.LoginUrl 693 } 694 return "" 695} 696 697var File_google_cloud_websecurityscanner_v1beta_scan_config_proto protoreflect.FileDescriptor 698 699var file_google_cloud_websecurityscanner_v1beta_scan_config_proto_rawDesc = []byte{ 700 0x0a, 0x38, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x77, 701 0x65, 0x62, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65, 702 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x73, 0x63, 0x61, 0x6e, 0x5f, 0x63, 0x6f, 703 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x26, 0x67, 0x6f, 0x6f, 0x67, 704 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x65, 0x63, 0x75, 705 0x72, 0x69, 0x74, 0x79, 0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 706 0x74, 0x61, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 707 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 708 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 709 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x35, 710 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x77, 0x65, 0x62, 711 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2f, 712 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x73, 0x63, 0x61, 0x6e, 0x5f, 0x72, 0x75, 0x6e, 0x2e, 713 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 714 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 715 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc3, 0x0f, 0x0a, 0x0a, 0x53, 0x63, 0x61, 0x6e, 0x43, 716 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 717 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x26, 0x0a, 0x0c, 0x64, 0x69, 0x73, 718 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 719 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 720 0x65, 0x12, 0x17, 0x0a, 0x07, 0x6d, 0x61, 0x78, 0x5f, 0x71, 0x70, 0x73, 0x18, 0x03, 0x20, 0x01, 721 0x28, 0x05, 0x52, 0x06, 0x6d, 0x61, 0x78, 0x51, 0x70, 0x73, 0x12, 0x28, 0x0a, 0x0d, 0x73, 0x74, 722 0x61, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x75, 0x72, 0x6c, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 723 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0c, 0x73, 0x74, 0x61, 0x72, 0x74, 0x69, 0x6e, 0x67, 724 0x55, 0x72, 0x6c, 0x73, 0x12, 0x69, 0x0a, 0x0e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 725 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x41, 0x2e, 0x67, 726 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x77, 0x65, 0x62, 0x73, 727 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 728 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x53, 0x63, 0x61, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 729 0x2e, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 730 0x0e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 731 0x5b, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 732 0x01, 0x28, 0x0e, 0x32, 0x3c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 733 0x75, 0x64, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x73, 0x63, 734 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x53, 0x63, 0x61, 735 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 736 0x74, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x2d, 0x0a, 0x12, 737 0x62, 0x6c, 0x61, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x70, 0x61, 0x74, 0x74, 0x65, 0x72, 738 0x6e, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, 0x11, 0x62, 0x6c, 0x61, 0x63, 0x6b, 0x6c, 739 0x69, 0x73, 0x74, 0x50, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x73, 0x12, 0x57, 0x0a, 0x08, 0x73, 740 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3b, 0x2e, 741 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x77, 0x65, 0x62, 742 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 743 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x53, 0x63, 0x61, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 744 0x67, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x08, 0x73, 0x63, 0x68, 0x65, 745 0x64, 0x75, 0x6c, 0x65, 0x12, 0x6c, 0x0a, 0x10, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x70, 746 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x41, 747 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x77, 0x65, 748 0x62, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65, 0x72, 749 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x53, 0x63, 0x61, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 750 0x69, 0x67, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 751 0x6d, 0x52, 0x0f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 752 0x6d, 0x73, 0x12, 0x9a, 0x01, 0x0a, 0x21, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x74, 0x6f, 753 0x5f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 754 0x64, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x50, 755 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x77, 0x65, 756 0x62, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65, 0x72, 757 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x53, 0x63, 0x61, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 758 0x69, 0x67, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x6f, 0x53, 0x65, 0x63, 0x75, 0x72, 759 0x69, 0x74, 0x79, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 760 0x52, 0x1d, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x6f, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 761 0x74, 0x79, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x12, 762 0x4e, 0x0a, 0x0a, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x72, 0x75, 0x6e, 0x18, 0x0b, 0x20, 763 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 764 0x75, 0x64, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x73, 0x63, 765 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x53, 0x63, 0x61, 766 0x6e, 0x52, 0x75, 0x6e, 0x52, 0x09, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x52, 0x75, 0x6e, 0x12, 767 0x5b, 0x0a, 0x0a, 0x72, 0x69, 0x73, 0x6b, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x0c, 0x20, 768 0x01, 0x28, 0x0e, 0x32, 0x3c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 769 0x75, 0x64, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x73, 0x63, 770 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x53, 0x63, 0x61, 771 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x52, 0x69, 0x73, 0x6b, 0x4c, 0x65, 0x76, 0x65, 772 0x6c, 0x52, 0x09, 0x72, 0x69, 0x73, 0x6b, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x1a, 0xe4, 0x03, 0x0a, 773 0x0e, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 774 0x78, 0x0a, 0x0e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 775 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x4f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 776 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 777 0x74, 0x79, 0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 778 0x2e, 0x53, 0x63, 0x61, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x41, 0x75, 0x74, 0x68, 779 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 780 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0d, 0x67, 0x6f, 0x6f, 0x67, 781 0x6c, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x78, 0x0a, 0x0e, 0x63, 0x75, 0x73, 782 0x74, 0x6f, 0x6d, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 783 0x0b, 0x32, 0x4f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 784 0x2e, 0x77, 0x65, 0x62, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x73, 0x63, 0x61, 0x6e, 785 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x53, 0x63, 0x61, 0x6e, 0x43, 786 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 787 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x41, 0x63, 0x63, 0x6f, 0x75, 788 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x41, 0x63, 0x63, 0x6f, 789 0x75, 0x6e, 0x74, 0x1a, 0x54, 0x0a, 0x0d, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x41, 0x63, 0x63, 790 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 791 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x75, 0x73, 0x65, 792 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 793 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe0, 0x41, 0x02, 0xe0, 0x41, 0x04, 0x52, 794 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x1a, 0x76, 0x0a, 0x0d, 0x43, 0x75, 0x73, 795 0x74, 0x6f, 0x6d, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x08, 0x75, 0x73, 796 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 797 0x02, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x08, 0x70, 798 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe0, 799 0x41, 0x02, 0xe0, 0x41, 0x04, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 800 0x20, 0x0a, 0x09, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 801 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x55, 0x72, 802 0x6c, 0x42, 0x10, 0x0a, 0x0e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 803 0x69, 0x6f, 0x6e, 0x1a, 0x86, 0x01, 0x0a, 0x08, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 804 0x12, 0x3f, 0x0a, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x74, 0x69, 0x6d, 805 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 806 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 807 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x54, 0x69, 0x6d, 808 0x65, 0x12, 0x39, 0x0a, 0x16, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x5f, 0x64, 0x75, 809 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x79, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 810 0x05, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x14, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 811 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x79, 0x73, 0x22, 0x60, 0x0a, 0x09, 812 0x55, 0x73, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x1a, 0x0a, 0x16, 0x55, 0x53, 0x45, 813 0x52, 0x5f, 0x41, 0x47, 0x45, 0x4e, 0x54, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 814 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x43, 0x48, 0x52, 0x4f, 0x4d, 0x45, 0x5f, 815 0x4c, 0x49, 0x4e, 0x55, 0x58, 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x43, 0x48, 0x52, 0x4f, 0x4d, 816 0x45, 0x5f, 0x41, 0x4e, 0x44, 0x52, 0x4f, 0x49, 0x44, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x53, 817 0x41, 0x46, 0x41, 0x52, 0x49, 0x5f, 0x49, 0x50, 0x48, 0x4f, 0x4e, 0x45, 0x10, 0x03, 0x22, 0x4e, 818 0x0a, 0x0e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 819 0x12, 0x1f, 0x0a, 0x1b, 0x54, 0x41, 0x52, 0x47, 0x45, 0x54, 0x5f, 0x50, 0x4c, 0x41, 0x54, 0x46, 820 0x4f, 0x52, 0x4d, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 821 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x41, 0x50, 0x50, 0x5f, 0x45, 0x4e, 0x47, 0x49, 0x4e, 0x45, 0x10, 822 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x4f, 0x4d, 0x50, 0x55, 0x54, 0x45, 0x10, 0x02, 0x22, 0x3c, 823 0x0a, 0x09, 0x52, 0x69, 0x73, 0x6b, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x1a, 0x0a, 0x16, 0x52, 824 0x49, 0x53, 0x4b, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 825 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x4e, 0x4f, 0x52, 0x4d, 0x41, 826 0x4c, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x4c, 0x4f, 0x57, 0x10, 0x02, 0x22, 0x6d, 0x0a, 0x1d, 827 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x6f, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 828 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x31, 0x0a, 829 0x2d, 0x45, 0x58, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x54, 0x4f, 0x5f, 0x53, 0x45, 0x43, 0x55, 0x52, 830 0x49, 0x54, 0x59, 0x5f, 0x43, 0x4f, 0x4d, 0x4d, 0x41, 0x4e, 0x44, 0x5f, 0x43, 0x45, 0x4e, 0x54, 831 0x45, 0x52, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 832 0x12, 0x0b, 0x0a, 0x07, 0x45, 0x4e, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0c, 0x0a, 833 0x08, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x02, 0x3a, 0x5f, 0xea, 0x41, 0x5c, 834 0x0a, 0x2c, 0x77, 0x65, 0x62, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x73, 0x63, 0x61, 835 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 836 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x63, 0x61, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2c, 837 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 838 0x74, 0x7d, 0x2f, 0x73, 0x63, 0x61, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x2f, 0x7b, 839 0x73, 0x63, 0x61, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x7d, 0x42, 0x97, 0x02, 0x0a, 840 0x2a, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 841 0x64, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x73, 0x63, 0x61, 842 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x42, 0x0f, 0x53, 0x63, 0x61, 843 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x58, 844 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 845 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 846 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x77, 0x65, 0x62, 0x73, 847 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2f, 0x76, 848 0x31, 0x62, 0x65, 0x74, 0x61, 0x3b, 0x77, 0x65, 0x62, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 849 0x79, 0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0xaa, 0x02, 0x26, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 850 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x57, 0x65, 0x62, 0x53, 0x65, 0x63, 0x75, 0x72, 851 0x69, 0x74, 0x79, 0x53, 0x63, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 852 0x61, 0xca, 0x02, 0x26, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 853 0x5c, 0x57, 0x65, 0x62, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x53, 0x63, 0x61, 0x6e, 854 0x6e, 0x65, 0x72, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0xea, 0x02, 0x29, 0x47, 0x6f, 0x6f, 855 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x57, 0x65, 0x62, 0x53, 856 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x53, 0x63, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x3a, 0x3a, 857 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 858} 859 860var ( 861 file_google_cloud_websecurityscanner_v1beta_scan_config_proto_rawDescOnce sync.Once 862 file_google_cloud_websecurityscanner_v1beta_scan_config_proto_rawDescData = file_google_cloud_websecurityscanner_v1beta_scan_config_proto_rawDesc 863) 864 865func file_google_cloud_websecurityscanner_v1beta_scan_config_proto_rawDescGZIP() []byte { 866 file_google_cloud_websecurityscanner_v1beta_scan_config_proto_rawDescOnce.Do(func() { 867 file_google_cloud_websecurityscanner_v1beta_scan_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_websecurityscanner_v1beta_scan_config_proto_rawDescData) 868 }) 869 return file_google_cloud_websecurityscanner_v1beta_scan_config_proto_rawDescData 870} 871 872var file_google_cloud_websecurityscanner_v1beta_scan_config_proto_enumTypes = make([]protoimpl.EnumInfo, 4) 873var file_google_cloud_websecurityscanner_v1beta_scan_config_proto_msgTypes = make([]protoimpl.MessageInfo, 5) 874var file_google_cloud_websecurityscanner_v1beta_scan_config_proto_goTypes = []interface{}{ 875 (ScanConfig_UserAgent)(0), // 0: google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent 876 (ScanConfig_TargetPlatform)(0), // 1: google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform 877 (ScanConfig_RiskLevel)(0), // 2: google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel 878 (ScanConfig_ExportToSecurityCommandCenter)(0), // 3: google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter 879 (*ScanConfig)(nil), // 4: google.cloud.websecurityscanner.v1beta.ScanConfig 880 (*ScanConfig_Authentication)(nil), // 5: google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication 881 (*ScanConfig_Schedule)(nil), // 6: google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule 882 (*ScanConfig_Authentication_GoogleAccount)(nil), // 7: google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount 883 (*ScanConfig_Authentication_CustomAccount)(nil), // 8: google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount 884 (*ScanRun)(nil), // 9: google.cloud.websecurityscanner.v1beta.ScanRun 885 (*timestamppb.Timestamp)(nil), // 10: google.protobuf.Timestamp 886} 887var file_google_cloud_websecurityscanner_v1beta_scan_config_proto_depIdxs = []int32{ 888 5, // 0: google.cloud.websecurityscanner.v1beta.ScanConfig.authentication:type_name -> google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication 889 0, // 1: google.cloud.websecurityscanner.v1beta.ScanConfig.user_agent:type_name -> google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent 890 6, // 2: google.cloud.websecurityscanner.v1beta.ScanConfig.schedule:type_name -> google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule 891 1, // 3: google.cloud.websecurityscanner.v1beta.ScanConfig.target_platforms:type_name -> google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform 892 3, // 4: google.cloud.websecurityscanner.v1beta.ScanConfig.export_to_security_command_center:type_name -> google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter 893 9, // 5: google.cloud.websecurityscanner.v1beta.ScanConfig.latest_run:type_name -> google.cloud.websecurityscanner.v1beta.ScanRun 894 2, // 6: google.cloud.websecurityscanner.v1beta.ScanConfig.risk_level:type_name -> google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel 895 7, // 7: google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.google_account:type_name -> google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount 896 8, // 8: google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.custom_account:type_name -> google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount 897 10, // 9: google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.schedule_time:type_name -> google.protobuf.Timestamp 898 10, // [10:10] is the sub-list for method output_type 899 10, // [10:10] is the sub-list for method input_type 900 10, // [10:10] is the sub-list for extension type_name 901 10, // [10:10] is the sub-list for extension extendee 902 0, // [0:10] is the sub-list for field type_name 903} 904 905func init() { file_google_cloud_websecurityscanner_v1beta_scan_config_proto_init() } 906func file_google_cloud_websecurityscanner_v1beta_scan_config_proto_init() { 907 if File_google_cloud_websecurityscanner_v1beta_scan_config_proto != nil { 908 return 909 } 910 file_google_cloud_websecurityscanner_v1beta_scan_run_proto_init() 911 if !protoimpl.UnsafeEnabled { 912 file_google_cloud_websecurityscanner_v1beta_scan_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 913 switch v := v.(*ScanConfig); i { 914 case 0: 915 return &v.state 916 case 1: 917 return &v.sizeCache 918 case 2: 919 return &v.unknownFields 920 default: 921 return nil 922 } 923 } 924 file_google_cloud_websecurityscanner_v1beta_scan_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 925 switch v := v.(*ScanConfig_Authentication); i { 926 case 0: 927 return &v.state 928 case 1: 929 return &v.sizeCache 930 case 2: 931 return &v.unknownFields 932 default: 933 return nil 934 } 935 } 936 file_google_cloud_websecurityscanner_v1beta_scan_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 937 switch v := v.(*ScanConfig_Schedule); i { 938 case 0: 939 return &v.state 940 case 1: 941 return &v.sizeCache 942 case 2: 943 return &v.unknownFields 944 default: 945 return nil 946 } 947 } 948 file_google_cloud_websecurityscanner_v1beta_scan_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 949 switch v := v.(*ScanConfig_Authentication_GoogleAccount); i { 950 case 0: 951 return &v.state 952 case 1: 953 return &v.sizeCache 954 case 2: 955 return &v.unknownFields 956 default: 957 return nil 958 } 959 } 960 file_google_cloud_websecurityscanner_v1beta_scan_config_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 961 switch v := v.(*ScanConfig_Authentication_CustomAccount); i { 962 case 0: 963 return &v.state 964 case 1: 965 return &v.sizeCache 966 case 2: 967 return &v.unknownFields 968 default: 969 return nil 970 } 971 } 972 } 973 file_google_cloud_websecurityscanner_v1beta_scan_config_proto_msgTypes[1].OneofWrappers = []interface{}{ 974 (*ScanConfig_Authentication_GoogleAccount_)(nil), 975 (*ScanConfig_Authentication_CustomAccount_)(nil), 976 } 977 type x struct{} 978 out := protoimpl.TypeBuilder{ 979 File: protoimpl.DescBuilder{ 980 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 981 RawDescriptor: file_google_cloud_websecurityscanner_v1beta_scan_config_proto_rawDesc, 982 NumEnums: 4, 983 NumMessages: 5, 984 NumExtensions: 0, 985 NumServices: 0, 986 }, 987 GoTypes: file_google_cloud_websecurityscanner_v1beta_scan_config_proto_goTypes, 988 DependencyIndexes: file_google_cloud_websecurityscanner_v1beta_scan_config_proto_depIdxs, 989 EnumInfos: file_google_cloud_websecurityscanner_v1beta_scan_config_proto_enumTypes, 990 MessageInfos: file_google_cloud_websecurityscanner_v1beta_scan_config_proto_msgTypes, 991 }.Build() 992 File_google_cloud_websecurityscanner_v1beta_scan_config_proto = out.File 993 file_google_cloud_websecurityscanner_v1beta_scan_config_proto_rawDesc = nil 994 file_google_cloud_websecurityscanner_v1beta_scan_config_proto_goTypes = nil 995 file_google_cloud_websecurityscanner_v1beta_scan_config_proto_depIdxs = nil 996} 997