| 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.26.0 |
| 19 |
// protoc v3.12.2 |
| 20 |
// source: google/cloud/websecurityscanner/v1alpha/scan_config.proto |
| 21 |
|
| 22 |
package websecurityscanner |
| 23 |
|
| 24 |
import ( |
| 25 |
reflect "reflect" |
| 26 |
sync "sync" |
| 27 |
|
| 28 |
_ "google.golang.org/genproto/googleapis/api/annotations" |
| 29 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 30 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 31 |
timestamppb "google.golang.org/protobuf/types/known/timestamppb" |
| 32 |
) |
| 33 |
|
| 34 |
const ( |
| 35 |
// Verify that this generated code is sufficiently up-to-date. |
| 36 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 37 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 38 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 39 |
) |
| 40 |
|
| 41 |
// Type of user agents used for scanning. |
| 42 |
type ScanConfig_UserAgent int32 |
| 43 |
|
| 44 |
const ( |
| 45 |
// The user agent is unknown. Service will default to CHROME_LINUX. |
| 46 |
ScanConfig_USER_AGENT_UNSPECIFIED ScanConfig_UserAgent = 0 |
| 47 |
// Chrome on Linux. This is the service default if unspecified. |
| 48 |
ScanConfig_CHROME_LINUX ScanConfig_UserAgent = 1 |
| 49 |
// Chrome on Android. |
| 50 |
ScanConfig_CHROME_ANDROID ScanConfig_UserAgent = 2 |
| 51 |
// Safari on IPhone. |
| 52 |
ScanConfig_SAFARI_IPHONE ScanConfig_UserAgent = 3 |
| 53 |
) |
| 54 |
|
| 55 |
// Enum value maps for ScanConfig_UserAgent. |
| 56 |
var ( |
| 57 |
ScanConfig_UserAgent_name = map[int32]string{ |
| 58 |
0: "USER_AGENT_UNSPECIFIED", |
| 59 |
1: "CHROME_LINUX", |
| 60 |
2: "CHROME_ANDROID", |
| 61 |
3: "SAFARI_IPHONE", |
| 62 |
} |
| 63 |
ScanConfig_UserAgent_value = map[string]int32{ |
| 64 |
"USER_AGENT_UNSPECIFIED": 0, |
| 65 |
"CHROME_LINUX": 1, |
| 66 |
"CHROME_ANDROID": 2, |
| 67 |
"SAFARI_IPHONE": 3, |
| 68 |
} |
| 69 |
) |
| 70 |
|
| 71 |
func (x ScanConfig_UserAgent) Enum() *ScanConfig_UserAgent { |
| 72 |
p := new(ScanConfig_UserAgent) |
| 73 |
*p = x |
| 74 |
return p |
| 75 |
} |
| 76 |
|
| 77 |
func (x ScanConfig_UserAgent) String() string { |
| 78 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 79 |
} |
| 80 |
|
| 81 |
func (ScanConfig_UserAgent) Descriptor() protoreflect.EnumDescriptor { |
| 82 |
return file_google_cloud_websecurityscanner_v1alpha_scan_config_proto_enumTypes[0].Descriptor() |
| 83 |
} |
| 84 |
|
| 85 |
func (ScanConfig_UserAgent) Type() protoreflect.EnumType { |
| 86 |
return &file_google_cloud_websecurityscanner_v1alpha_scan_config_proto_enumTypes[0] |
| 87 |
} |
| 88 |
|
| 89 |
func (x ScanConfig_UserAgent) Number() protoreflect.EnumNumber { |
| 90 |
return protoreflect.EnumNumber(x) |
| 91 |
} |
| 92 |
|
| 93 |
// Deprecated: Use ScanConfig_UserAgent.Descriptor instead. |
| 94 |
func (ScanConfig_UserAgent) EnumDescriptor() ([]byte, []int) { |
| 95 |
return file_google_cloud_websecurityscanner_v1alpha_scan_config_proto_rawDescGZIP(), []int{0, 0} |
| 96 |
} |
| 97 |
|
| 98 |
// Cloud platforms supported by Cloud Web Security Scanner. |
| 99 |
type ScanConfig_TargetPlatform int32 |
| 100 |
|
| 101 |
const ( |
| 102 |
// The target platform is unknown. Requests with this enum value will be |
| 103 |
// rejected with INVALID_ARGUMENT error. |
| 104 |
ScanConfig_TARGET_PLATFORM_UNSPECIFIED ScanConfig_TargetPlatform = 0 |
| 105 |
// Google App Engine service. |
| 106 |
ScanConfig_APP_ENGINE ScanConfig_TargetPlatform = 1 |
| 107 |
// Google Compute Engine service. |
| 108 |
ScanConfig_COMPUTE ScanConfig_TargetPlatform = 2 |
| 109 |
) |
| 110 |
|
| 111 |
// Enum value maps for ScanConfig_TargetPlatform. |
| 112 |
var ( |
| 113 |
ScanConfig_TargetPlatform_name = map[int32]string{ |
| 114 |
0: "TARGET_PLATFORM_UNSPECIFIED", |
| 115 |
1: "APP_ENGINE", |
| 116 |
2: "COMPUTE", |
| 117 |
} |
| 118 |
ScanConfig_TargetPlatform_value = map[string]int32{ |
| 119 |
"TARGET_PLATFORM_UNSPECIFIED": 0, |
| 120 |
"APP_ENGINE": 1, |
| 121 |
"COMPUTE": 2, |
| 122 |
} |
| 123 |
) |
| 124 |
|
| 125 |
func (x ScanConfig_TargetPlatform) Enum() *ScanConfig_TargetPlatform { |
| 126 |
p := new(ScanConfig_TargetPlatform) |
| 127 |
*p = x |
| 128 |
return p |
| 129 |
} |
| 130 |
|
| 131 |
func (x ScanConfig_TargetPlatform) String() string { |
| 132 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 133 |
} |
| 134 |
|
| 135 |
func (ScanConfig_TargetPlatform) Descriptor() protoreflect.EnumDescriptor { |
| 136 |
return file_google_cloud_websecurityscanner_v1alpha_scan_config_proto_enumTypes[1].Descriptor() |
| 137 |
} |
| 138 |
|
| 139 |
func (ScanConfig_TargetPlatform) Type() protoreflect.EnumType { |
| 140 |
return &file_google_cloud_websecurityscanner_v1alpha_scan_config_proto_enumTypes[1] |
| 141 |
} |
| 142 |
|
| 143 |
func (x ScanConfig_TargetPlatform) Number() protoreflect.EnumNumber { |
| 144 |
return protoreflect.EnumNumber(x) |
| 145 |
} |
| 146 |
|
| 147 |
// Deprecated: Use ScanConfig_TargetPlatform.Descriptor instead. |
| 148 |
func (ScanConfig_TargetPlatform) EnumDescriptor() ([]byte, []int) { |
| 149 |
return file_google_cloud_websecurityscanner_v1alpha_scan_config_proto_rawDescGZIP(), []int{0, 1} |
| 150 |
} |
| 151 |
|
| 152 |
// A ScanConfig resource contains the configurations to launch a scan. |
| 153 |
// next id: 12 |
| 154 |
type ScanConfig struct { |
| 155 |
state protoimpl.MessageState |
| 156 |
sizeCache protoimpl.SizeCache |
| 157 |
unknownFields protoimpl.UnknownFields |
| 158 |
|
| 159 |
// The resource name of the ScanConfig. The name follows the format of |
| 160 |
// 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are |
| 161 |
// generated by the system. |
| 162 |
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 163 |
// Required. The user provided display name of the ScanConfig. |
| 164 |
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` |
| 165 |
// The maximum QPS during scanning. A valid value ranges from 5 to 20 |
| 166 |
// inclusively. If the field is unspecified or its value is set 0, server will |
| 167 |
// default to 15. Other values outside of [5, 20] range will be rejected with |
| 168 |
// INVALID_ARGUMENT error. |
| 169 |
MaxQps int32 `protobuf:"varint,3,opt,name=max_qps,json=maxQps,proto3" json:"max_qps,omitempty"` |
| 170 |
// Required. The starting URLs from which the scanner finds site pages. |
| 171 |
StartingUrls []string `protobuf:"bytes,4,rep,name=starting_urls,json=startingUrls,proto3" json:"starting_urls,omitempty"` |
| 172 |
// The authentication configuration. If specified, service will use the |
| 173 |
// authentication configuration during scanning. |
| 174 |
Authentication *ScanConfig_Authentication `protobuf:"bytes,5,opt,name=authentication,proto3" json:"authentication,omitempty"` |
| 175 |
// The user agent used during scanning. |
| 176 |
UserAgent ScanConfig_UserAgent `protobuf:"varint,6,opt,name=user_agent,json=userAgent,proto3,enum=google.cloud.websecurityscanner.v1alpha.ScanConfig_UserAgent" json:"user_agent,omitempty"` |
| 177 |
// The blacklist URL patterns as described in |
| 178 |
// https://cloud.google.com/security-scanner/docs/excluded-urls |
| 179 |
BlacklistPatterns []string `protobuf:"bytes,7,rep,name=blacklist_patterns,json=blacklistPatterns,proto3" json:"blacklist_patterns,omitempty"` |
| 180 |
// The schedule of the ScanConfig. |
| 181 |
Schedule *ScanConfig_Schedule `protobuf:"bytes,8,opt,name=schedule,proto3" json:"schedule,omitempty"` |
| 182 |
// Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be |
| 183 |
// used as a default. |
| 184 |
TargetPlatforms []ScanConfig_TargetPlatform `protobuf:"varint,9,rep,packed,name=target_platforms,json=targetPlatforms,proto3,enum=google.cloud.websecurityscanner.v1alpha.ScanConfig_TargetPlatform" json:"target_platforms,omitempty"` |
| 185 |
// Latest ScanRun if available. |
| 186 |
LatestRun *ScanRun `protobuf:"bytes,11,opt,name=latest_run,json=latestRun,proto3" json:"latest_run,omitempty"` |
| 187 |
} |
| 188 |
|
| 189 |
func (x *ScanConfig) Reset() { |
| 190 |
*x = ScanConfig{} |
| 191 |
if protoimpl.UnsafeEnabled { |
| 192 |
mi := &file_google_cloud_websecurityscanner_v1alpha_scan_config_proto_msgTypes[0] |
| 193 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 194 |
ms.StoreMessageInfo(mi) |
| 195 |
} |
| 196 |
} |
| 197 |
|
| 198 |
func (x *ScanConfig) String() string { |
| 199 |
return protoimpl.X.MessageStringOf(x) |
| 200 |
} |
| 201 |
|
| 202 |
func (*ScanConfig) ProtoMessage() {} |
| 203 |
|
| 204 |
func (x *ScanConfig) ProtoReflect() protoreflect.Message { |
| 205 |
mi := &file_google_cloud_websecurityscanner_v1alpha_scan_config_proto_msgTypes[0] |
| 206 |
if protoimpl.UnsafeEnabled && x != nil { |
| 207 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 208 |
if ms.LoadMessageInfo() == nil { |
| 209 |
ms.StoreMessageInfo(mi) |
| 210 |
} |
| 211 |
return ms |
| 212 |
} |
| 213 |
return mi.MessageOf(x) |
| 214 |
} |
| 215 |
|
| 216 |
// Deprecated: Use ScanConfig.ProtoReflect.Descriptor instead. |
| 217 |
func (*ScanConfig) Descriptor() ([]byte, []int) { |
| 218 |
return file_google_cloud_websecurityscanner_v1alpha_scan_config_proto_rawDescGZIP(), []int{0} |
| 219 |
} |
| 220 |
|
| 221 |
func (x *ScanConfig) GetName() string { |
| 222 |
if x != nil { |
| 223 |
return x.Name |
| 224 |
} |
| 225 |
return "" |
| 226 |
} |
| 227 |
|
| 228 |
func (x *ScanConfig) GetDisplayName() string { |
| 229 |
if x != nil { |
| 230 |
return x.DisplayName |
| 231 |
} |
| 232 |
return "" |
| 233 |
} |
| 234 |
|
| 235 |
func (x *ScanConfig) GetMaxQps() int32 { |
| 236 |
if x != nil { |
| 237 |
return x.MaxQps |
| 238 |
} |
| 239 |
return 0 |
| 240 |
} |
| 241 |
|
| 242 |
func (x *ScanConfig) GetStartingUrls() []string { |
| 243 |
if x != nil { |
| 244 |
return x.StartingUrls |
| 245 |
} |
| 246 |
return nil |
| 247 |
} |
| 248 |
|
| 249 |
func (x *ScanConfig) GetAuthentication() *ScanConfig_Authentication { |
| 250 |
if x != nil { |
| 251 |
return x.Authentication |
| 252 |
} |
| 253 |
return nil |
| 254 |
} |
| 255 |
|
| 256 |
func (x *ScanConfig) GetUserAgent() ScanConfig_UserAgent { |
| 257 |
if x != nil { |
| 258 |
return x.UserAgent |
| 259 |
} |
| 260 |
return ScanConfig_USER_AGENT_UNSPECIFIED |
| 261 |
} |
| 262 |
|
| 263 |
func (x *ScanConfig) GetBlacklistPatterns() []string { |
| 264 |
if x != nil { |
| 265 |
return x.BlacklistPatterns |
| 266 |
} |
| 267 |
return nil |
| 268 |
} |
| 269 |
|
| 270 |
func (x *ScanConfig) GetSchedule() *ScanConfig_Schedule { |
| 271 |
if x != nil { |
| 272 |
return x.Schedule |
| 273 |
} |
| 274 |
return nil |
| 275 |
} |
| 276 |
|
| 277 |
func (x *ScanConfig) GetTargetPlatforms() []ScanConfig_TargetPlatform { |
| 278 |
if x != nil { |
| 279 |
return x.TargetPlatforms |
| 280 |
} |
| 281 |
return nil |
| 282 |
} |
| 283 |
|
| 284 |
func (x *ScanConfig) GetLatestRun() *ScanRun { |
| 285 |
if x != nil { |
| 286 |
return x.LatestRun |
| 287 |
} |
| 288 |
return nil |
| 289 |
} |
| 290 |
|
| 291 |
// Scan authentication configuration. |
| 292 |
type ScanConfig_Authentication struct { |
| 293 |
state protoimpl.MessageState |
| 294 |
sizeCache protoimpl.SizeCache |
| 295 |
unknownFields protoimpl.UnknownFields |
| 296 |
|
| 297 |
// Required. |
| 298 |
// Authentication configuration |
| 299 |
// |
| 300 |
// Types that are assignable to Authentication: |
| 301 |
// *ScanConfig_Authentication_GoogleAccount_ |
| 302 |
// *ScanConfig_Authentication_CustomAccount_ |
| 303 |
Authentication isScanConfig_Authentication_Authentication `protobuf_oneof:"authentication"` |
| 304 |
} |
| 305 |
|
| 306 |
func (x *ScanConfig_Authentication) Reset() { |
| 307 |
*x = ScanConfig_Authentication{} |
| 308 |
if protoimpl.UnsafeEnabled { |
| 309 |
mi := &file_google_cloud_websecurityscanner_v1alpha_scan_config_proto_msgTypes[1] |
| 310 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 311 |
ms.StoreMessageInfo(mi) |
| 312 |
} |
| 313 |
} |
| 314 |
|
| 315 |
func (x *ScanConfig_Authentication) String() string { |
| 316 |
return protoimpl.X.MessageStringOf(x) |
| 317 |
} |
| 318 |
|
| 319 |
func (*ScanConfig_Authentication) ProtoMessage() {} |
| 320 |
|
| 321 |
func (x *ScanConfig_Authentication) ProtoReflect() protoreflect.Message { |
| 322 |
mi := &file_google_cloud_websecurityscanner_v1alpha_scan_config_proto_msgTypes[1] |
| 323 |
if protoimpl.UnsafeEnabled && x != nil { |
| 324 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 325 |
if ms.LoadMessageInfo() == nil { |
| 326 |
ms.StoreMessageInfo(mi) |
| 327 |
} |
| 328 |
return ms |
| 329 |
} |
| 330 |
return mi.MessageOf(x) |
| 331 |
} |
| 332 |
|
| 333 |
// Deprecated: Use ScanConfig_Authentication.ProtoReflect.Descriptor instead. |
| 334 |
func (*ScanConfig_Authentication) Descriptor() ([]byte, []int) { |
| 335 |
return file_google_cloud_websecurityscanner_v1alpha_scan_config_proto_rawDescGZIP(), []int{0, 0} |
| 336 |
} |
| 337 |
|
| 338 |
func (m *ScanConfig_Authentication) GetAuthentication() isScanConfig_Authentication_Authentication { |
| 339 |
if m != nil { |
| 340 |
return m.Authentication |
| 341 |
} |
| 342 |
return nil |
| 343 |
} |
| 344 |
|
| 345 |
func (x *ScanConfig_Authentication) GetGoogleAccount() *ScanConfig_Authentication_GoogleAccount { |
| 346 |
if x, ok := x.GetAuthentication().(*ScanConfig_Authentication_GoogleAccount_); ok { |
| 347 |
return x.GoogleAccount |
| 348 |
} |
| 349 |
return nil |
| 350 |
} |
| 351 |
|
| 352 |
func (x *ScanConfig_Authentication) GetCustomAccount() *ScanConfig_Authentication_CustomAccount { |
| 353 |
if x, ok := x.GetAuthentication().(*ScanConfig_Authentication_CustomAccount_); ok { |
| 354 |
return x.CustomAccount |
| 355 |
} |
| 356 |
return nil |
| 357 |
} |
| 358 |
|
| 359 |
type isScanConfig_Authentication_Authentication interface { |
| 360 |
isScanConfig_Authentication_Authentication() |
| 361 |
} |
| 362 |
|
| 363 |
type ScanConfig_Authentication_GoogleAccount_ struct { |
| 364 |
// Authentication using a Google account. |
| 365 |
GoogleAccount *ScanConfig_Authentication_GoogleAccount `protobuf:"bytes,1,opt,name=google_account,json=googleAccount,proto3,oneof"` |
| 366 |
} |
| 367 |
|
| 368 |
type ScanConfig_Authentication_CustomAccount_ struct { |
| 369 |
// Authentication using a custom account. |
| 370 |
CustomAccount *ScanConfig_Authentication_CustomAccount `protobuf:"bytes,2,opt,name=custom_account,json=customAccount,proto3,oneof"` |
| 371 |
} |
| 372 |
|
| 373 |
func (*ScanConfig_Authentication_GoogleAccount_) isScanConfig_Authentication_Authentication() {} |
| 374 |
|
| 375 |
func (*ScanConfig_Authentication_CustomAccount_) isScanConfig_Authentication_Authentication() {} |
| 376 |
|
| 377 |
// Scan schedule configuration. |
| 378 |
type ScanConfig_Schedule struct { |
| 379 |
state protoimpl.MessageState |
| 380 |
sizeCache protoimpl.SizeCache |
| 381 |
unknownFields protoimpl.UnknownFields |
| 382 |
|
| 383 |
// A timestamp indicates when the next run will be scheduled. The value is |
| 384 |
// refreshed by the server after each run. If unspecified, it will default |
| 385 |
// to current server time, which means the scan will be scheduled to start |
| 386 |
// immediately. |
| 387 |
ScheduleTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=schedule_time,json=scheduleTime,proto3" json:"schedule_time,omitempty"` |
| 388 |
// Required. The duration of time between executions in days. |
| 389 |
IntervalDurationDays int32 `protobuf:"varint,2,opt,name=interval_duration_days,json=intervalDurationDays,proto3" json:"interval_duration_days,omitempty"` |
| 390 |
} |
| 391 |
|
| 392 |
func (x *ScanConfig_Schedule) Reset() { |
| 393 |
*x = ScanConfig_Schedule{} |
| 394 |
if protoimpl.UnsafeEnabled { |
| 395 |
mi := &file_google_cloud_websecurityscanner_v1alpha_scan_config_proto_msgTypes[2] |
| 396 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 397 |
ms.StoreMessageInfo(mi) |
| 398 |
} |
| 399 |
} |
| 400 |
|
| 401 |
func (x *ScanConfig_Schedule) String() string { |
| 402 |
return protoimpl.X.MessageStringOf(x) |
| 403 |
} |
| 404 |
|
| 405 |
func (*ScanConfig_Schedule) ProtoMessage() {} |
| 406 |
|
| 407 |
func (x *ScanConfig_Schedule) ProtoReflect() protoreflect.Message { |
| 408 |
mi := &file_google_cloud_websecurityscanner_v1alpha_scan_config_proto_msgTypes[2] |
| 409 |
if protoimpl.UnsafeEnabled && x != nil { |
| 410 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 411 |
if ms.LoadMessageInfo() == nil { |
| 412 |
ms.StoreMessageInfo(mi) |
| 413 |
} |
| 414 |
return ms |
| 415 |
} |
| 416 |
return mi.MessageOf(x) |
| 417 |
} |
| 418 |
|
| 419 |
// Deprecated: Use ScanConfig_Schedule.ProtoReflect.Descriptor instead. |
| 420 |
func (*ScanConfig_Schedule) Descriptor() ([]byte, []int) { |
| 421 |
return file_google_cloud_websecurityscanner_v1alpha_scan_config_proto_rawDescGZIP(), []int{0, 1} |
| 422 |
} |
| 423 |
|
| 424 |
func (x *ScanConfig_Schedule) GetScheduleTime() *timestamppb.Timestamp { |
| 425 |
if x != nil { |
| 426 |
return x.ScheduleTime |
| 427 |
} |
| 428 |
return nil |
| 429 |
} |
| 430 |
|
| 431 |
func (x *ScanConfig_Schedule) GetIntervalDurationDays() int32 { |
| 432 |
if x != nil { |
| 433 |
return x.IntervalDurationDays |
| 434 |
} |
| 435 |
return 0 |
| 436 |
} |
| 437 |
|
| 438 |
// Describes authentication configuration that uses a Google account. |
| 439 |
type ScanConfig_Authentication_GoogleAccount struct { |
| 440 |
state protoimpl.MessageState |
| 441 |
sizeCache protoimpl.SizeCache |
| 442 |
unknownFields protoimpl.UnknownFields |
| 443 |
|
| 444 |
// Required. The user name of the Google account. |
| 445 |
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` |
| 446 |
// Required. Input only. The password of the Google account. The credential is stored encrypted |
| 447 |
// and not returned in any response nor included in audit logs. |
| 448 |
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` |
| 449 |
} |
| 450 |
|
| 451 |
func (x *ScanConfig_Authentication_GoogleAccount) Reset() { |
| 452 |
*x = ScanConfig_Authentication_GoogleAccount{} |
| 453 |
if protoimpl.UnsafeEnabled { |
| 454 |
mi := &file_google_cloud_websecurityscanner_v1alpha_scan_config_proto_msgTypes[3] |
| 455 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 456 |
ms.StoreMessageInfo(mi) |
| 457 |
} |
| 458 |
} |
| 459 |
|
| 460 |
func (x *ScanConfig_Authentication_GoogleAccount) String() string { |
| 461 |
return protoimpl.X.MessageStringOf(x) |
| 462 |
} |
| 463 |
|
| 464 |
func (*ScanConfig_Authentication_GoogleAccount) ProtoMessage() {} |
| 465 |
|
| 466 |
func (x *ScanConfig_Authentication_GoogleAccount) ProtoReflect() protoreflect.Message { |
| 467 |
mi := &file_google_cloud_websecurityscanner_v1alpha_scan_config_proto_msgTypes[3] |
| 468 |
if protoimpl.UnsafeEnabled && x != nil { |
| 469 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 470 |
if ms.LoadMessageInfo() == nil { |
| 471 |
ms.StoreMessageInfo(mi) |
| 472 |
} |
| 473 |
return ms |
| 474 |
} |
| 475 |
return mi.MessageOf(x) |
| 476 |
} |
| 477 |
|
| 478 |
// Deprecated: Use ScanConfig_Authentication_GoogleAccount.ProtoReflect.Descriptor instead. |
| 479 |
func (*ScanConfig_Authentication_GoogleAccount) Descriptor() ([]byte, []int) { |
| 480 |
return file_google_cloud_websecurityscanner_v1alpha_scan_config_proto_rawDescGZIP(), []int{0, 0, 0} |
| 481 |
} |
| 482 |
|
| 483 |
func (x *ScanConfig_Authentication_GoogleAccount) GetUsername() string { |
| 484 |
if x != nil { |
| 485 |
return x.Username |
| 486 |
} |
| 487 |
return "" |
| 488 |
} |
| 489 |
|
| 490 |
func (x *ScanConfig_Authentication_GoogleAccount) GetPassword() string { |
| 491 |
if x != nil { |
| 492 |
return x.Password |
| 493 |
} |
| 494 |
return "" |
| 495 |
} |
| 496 |
|
| 497 |
// Describes authentication configuration that uses a custom account. |
| 498 |
type ScanConfig_Authentication_CustomAccount struct { |
| 499 |
state protoimpl.MessageState |
| 500 |
sizeCache protoimpl.SizeCache |
| 501 |
unknownFields protoimpl.UnknownFields |
| 502 |
|
| 503 |
// Required. The user name of the custom account. |
| 504 |
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` |
| 505 |
// Required. Input only. The password of the custom account. The credential is stored encrypted |
| 506 |
// and not returned in any response nor included in audit logs. |
| 507 |
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` |
| 508 |
// Required. The login form URL of the website. |
| 509 |
LoginUrl string `protobuf:"bytes,3,opt,name=login_url,json=loginUrl,proto3" json:"login_url,omitempty"` |
| 510 |
} |
| 511 |
|
| 512 |
func (x *ScanConfig_Authentication_CustomAccount) Reset() { |
| 513 |
*x = ScanConfig_Authentication_CustomAccount{} |
| 514 |
if protoimpl.UnsafeEnabled { |
| 515 |
mi := &file_google_cloud_websecurityscanner_v1alpha_scan_config_proto_msgTypes[4] |
| 516 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 517 |
ms.StoreMessageInfo(mi) |
| 518 |
} |
| 519 |
} |
| 520 |
|
| 521 |
func (x *ScanConfig_Authentication_CustomAccount) String() string { |
| 522 |
return protoimpl.X.MessageStringOf(x) |
| 523 |
} |
| 524 |
|
| 525 |
func (*ScanConfig_Authentication_CustomAccount) ProtoMessage() {} |
| 526 |
|
| 527 |
func (x *ScanConfig_Authentication_CustomAccount) ProtoReflect() protoreflect.Message { |
| 528 |
mi := &file_google_cloud_websecurityscanner_v1alpha_scan_config_proto_msgTypes[4] |
| 529 |
if protoimpl.UnsafeEnabled && x != nil { |
| 530 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 531 |
if ms.LoadMessageInfo() == nil { |
| 532 |
ms.StoreMessageInfo(mi) |
| 533 |
} |
| 534 |
return ms |
| 535 |
} |
| 536 |
return mi.MessageOf(x) |
| 537 |
} |
| 538 |
|
| 539 |
// Deprecated: Use ScanConfig_Authentication_CustomAccount.ProtoReflect.Descriptor instead. |
| 540 |
func (*ScanConfig_Authentication_CustomAccount) Descriptor() ([]byte, []int) { |
| 541 |
return file_google_cloud_websecurityscanner_v1alpha_scan_config_proto_rawDescGZIP(), []int{0, 0, 1} |
| 542 |
} |
| 543 |
|
| 544 |
func (x *ScanConfig_Authentication_CustomAccount) GetUsername() string { |
| 545 |
if x != nil { |
| 546 |
return x.Username |
| 547 |
} |
| 548 |
return "" |
| 549 |
} |
| 550 |
|
| 551 |
func (x *ScanConfig_Authentication_CustomAccount) GetPassword() string { |
| 552 |
if x != nil { |
| 553 |
return x.Password |
| 554 |
} |
| 555 |
return "" |
| 556 |
} |
| 557 |
|
| 558 |
func (x *ScanConfig_Authentication_CustomAccount) GetLoginUrl() string { |
| 559 |
if x != nil { |
| 560 |
return x.LoginUrl |
| 561 |
} |
| 562 |
return "" |
| 563 |
} |
| 564 |
|
| 565 |
var File_google_cloud_websecurityscanner_v1alpha_scan_config_proto protoreflect.FileDescriptor |
| 566 |
|
| 567 |
var file_google_cloud_websecurityscanner_v1alpha_scan_config_proto_rawDesc = []byte{ |
| 568 |
0x0a, 0x39, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x77, |
| 569 |
0x65, 0x62, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65, |
| 570 |
0x72, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x73, 0x63, 0x61, 0x6e, 0x5f, 0x63, |
| 571 |
0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x27, 0x67, 0x6f, 0x6f, |
| 572 |
0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x65, 0x63, |
| 573 |
0x75, 0x72, 0x69, 0x74, 0x79, 0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x61, |
| 574 |
0x6c, 0x70, 0x68, 0x61, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, |
| 575 |
0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, |
| 576 |
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, |
| 577 |
0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
| 578 |
0x1a, 0x36, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x77, |
| 579 |
0x65, 0x62, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65, |
| 580 |
0x72, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x73, 0x63, 0x61, 0x6e, 0x5f, 0x72, |
| 581 |
0x75, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 582 |
0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, |
| 583 |
0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa3, 0x0c, 0x0a, 0x0a, 0x53, 0x63, |
| 584 |
0x61, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, |
| 585 |
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x26, 0x0a, 0x0c, |
| 586 |
0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, |
| 587 |
0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, |
| 588 |
0x4e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x6d, 0x61, 0x78, 0x5f, 0x71, 0x70, 0x73, 0x18, |
| 589 |
0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6d, 0x61, 0x78, 0x51, 0x70, 0x73, 0x12, 0x28, 0x0a, |
| 590 |
0x0d, 0x73, 0x74, 0x61, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x75, 0x72, 0x6c, 0x73, 0x18, 0x04, |
| 591 |
0x20, 0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0c, 0x73, 0x74, 0x61, 0x72, 0x74, |
| 592 |
0x69, 0x6e, 0x67, 0x55, 0x72, 0x6c, 0x73, 0x12, 0x6a, 0x0a, 0x0e, 0x61, 0x75, 0x74, 0x68, 0x65, |
| 593 |
0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, |
| 594 |
0x42, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x77, |
| 595 |
0x65, 0x62, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65, |
| 596 |
0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x53, 0x63, 0x61, 0x6e, 0x43, 0x6f, |
| 597 |
0x6e, 0x66, 0x69, 0x67, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, |
| 598 |
0x69, 0x6f, 0x6e, 0x52, 0x0e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, |
| 599 |
0x69, 0x6f, 0x6e, 0x12, 0x5c, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x67, 0x65, 0x6e, |
| 600 |
0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 601 |
0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, |
| 602 |
0x74, 0x79, 0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, |
| 603 |
0x61, 0x2e, 0x53, 0x63, 0x61, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x55, 0x73, 0x65, |
| 604 |
0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, |
| 605 |
0x74, 0x12, 0x2d, 0x0a, 0x12, 0x62, 0x6c, 0x61, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x70, |
| 606 |
0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, 0x11, 0x62, |
| 607 |
0x6c, 0x61, 0x63, 0x6b, 0x6c, 0x69, 0x73, 0x74, 0x50, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x73, |
| 608 |
0x12, 0x58, 0x0a, 0x08, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x08, 0x20, 0x01, |
| 609 |
0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, |
| 610 |
0x64, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x73, 0x63, 0x61, |
| 611 |
0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x53, 0x63, 0x61, |
| 612 |
0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, |
| 613 |
0x52, 0x08, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x6d, 0x0a, 0x10, 0x74, 0x61, |
| 614 |
0x72, 0x67, 0x65, 0x74, 0x5f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x73, 0x18, 0x09, |
| 615 |
0x20, 0x03, 0x28, 0x0e, 0x32, 0x42, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, |
| 616 |
0x6f, 0x75, 0x64, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x73, |
| 617 |
0x63, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x53, |
| 618 |
0x63, 0x61, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, |
| 619 |
0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x52, 0x0f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, |
| 620 |
0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x73, 0x12, 0x4f, 0x0a, 0x0a, 0x6c, 0x61, 0x74, |
| 621 |
0x65, 0x73, 0x74, 0x5f, 0x72, 0x75, 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, |
| 622 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x77, 0x65, 0x62, |
| 623 |
0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, |
| 624 |
0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x53, 0x63, 0x61, 0x6e, 0x52, 0x75, 0x6e, 0x52, |
| 625 |
0x09, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x52, 0x75, 0x6e, 0x1a, 0xe6, 0x03, 0x0a, 0x0e, 0x41, |
| 626 |
0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x79, 0x0a, |
| 627 |
0x0e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, |
| 628 |
0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x50, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, |
| 629 |
0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, |
| 630 |
0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, |
| 631 |
0x53, 0x63, 0x61, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x65, |
| 632 |
0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 633 |
0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 634 |
0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x79, 0x0a, 0x0e, 0x63, 0x75, 0x73, 0x74, |
| 635 |
0x6f, 0x6d, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, |
| 636 |
0x32, 0x50, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, |
| 637 |
0x77, 0x65, 0x62, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x73, 0x63, 0x61, 0x6e, 0x6e, |
| 638 |
0x65, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x53, 0x63, 0x61, 0x6e, 0x43, |
| 639 |
0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, |
| 640 |
0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x41, 0x63, 0x63, 0x6f, 0x75, |
| 641 |
0x6e, 0x74, 0x48, 0x00, 0x52, 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x41, 0x63, 0x63, 0x6f, |
| 642 |
0x75, 0x6e, 0x74, 0x1a, 0x54, 0x0a, 0x0d, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x41, 0x63, 0x63, |
| 643 |
0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, |
| 644 |
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x75, 0x73, 0x65, |
| 645 |
0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, |
| 646 |
0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe0, 0x41, 0x02, 0xe0, 0x41, 0x04, 0x52, |
| 647 |
0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x1a, 0x76, 0x0a, 0x0d, 0x43, 0x75, 0x73, |
| 648 |
0x74, 0x6f, 0x6d, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x08, 0x75, 0x73, |
| 649 |
0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, |
| 650 |
0x02, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x08, 0x70, |
| 651 |
0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe0, |
| 652 |
0x41, 0x02, 0xe0, 0x41, 0x04, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, |
| 653 |
0x20, 0x0a, 0x09, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, |
| 654 |
0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x55, 0x72, |
| 655 |
0x6c, 0x42, 0x10, 0x0a, 0x0e, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, |
| 656 |
0x69, 0x6f, 0x6e, 0x1a, 0x86, 0x01, 0x0a, 0x08, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, |
| 657 |
0x12, 0x3f, 0x0a, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x74, 0x69, 0x6d, |
| 658 |
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 659 |
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, |
| 660 |
0x61, 0x6d, 0x70, 0x52, 0x0c, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x54, 0x69, 0x6d, |
| 661 |
0x65, 0x12, 0x39, 0x0a, 0x16, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x5f, 0x64, 0x75, |
| 662 |
0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x79, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, |
| 663 |
0x05, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x14, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, |
| 664 |
0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x79, 0x73, 0x22, 0x60, 0x0a, 0x09, |
| 665 |
0x55, 0x73, 0x65, 0x72, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x1a, 0x0a, 0x16, 0x55, 0x53, 0x45, |
| 666 |
0x52, 0x5f, 0x41, 0x47, 0x45, 0x4e, 0x54, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, |
| 667 |
0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x43, 0x48, 0x52, 0x4f, 0x4d, 0x45, 0x5f, |
| 668 |
0x4c, 0x49, 0x4e, 0x55, 0x58, 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x43, 0x48, 0x52, 0x4f, 0x4d, |
| 669 |
0x45, 0x5f, 0x41, 0x4e, 0x44, 0x52, 0x4f, 0x49, 0x44, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x53, |
| 670 |
0x41, 0x46, 0x41, 0x52, 0x49, 0x5f, 0x49, 0x50, 0x48, 0x4f, 0x4e, 0x45, 0x10, 0x03, 0x22, 0x4e, |
| 671 |
0x0a, 0x0e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, |
| 672 |
0x12, 0x1f, 0x0a, 0x1b, 0x54, 0x41, 0x52, 0x47, 0x45, 0x54, 0x5f, 0x50, 0x4c, 0x41, 0x54, 0x46, |
| 673 |
0x4f, 0x52, 0x4d, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, |
| 674 |
0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x41, 0x50, 0x50, 0x5f, 0x45, 0x4e, 0x47, 0x49, 0x4e, 0x45, 0x10, |
| 675 |
0x01, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x4f, 0x4d, 0x50, 0x55, 0x54, 0x45, 0x10, 0x02, 0x3a, 0x5f, |
| 676 |
0xea, 0x41, 0x5c, 0x0a, 0x2c, 0x77, 0x65, 0x62, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, |
| 677 |
0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, |
| 678 |
0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x63, 0x61, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, |
| 679 |
0x67, 0x12, 0x2c, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, |
| 680 |
0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x73, 0x63, 0x61, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, |
| 681 |
0x73, 0x2f, 0x7b, 0x73, 0x63, 0x61, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x7d, 0x42, |
| 682 |
0x9b, 0x01, 0x0a, 0x2b, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, |
| 683 |
0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, |
| 684 |
0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x42, |
| 685 |
0x0f, 0x53, 0x63, 0x61, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, |
| 686 |
0x50, 0x01, 0x5a, 0x59, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, |
| 687 |
0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, |
| 688 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, |
| 689 |
0x77, 0x65, 0x62, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x73, 0x63, 0x61, 0x6e, 0x6e, |
| 690 |
0x65, 0x72, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x3b, 0x77, 0x65, 0x62, 0x73, 0x65, |
| 691 |
0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x62, 0x06, 0x70, |
| 692 |
0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 693 |
} |
| 694 |
|
| 695 |
var ( |
| 696 |
file_google_cloud_websecurityscanner_v1alpha_scan_config_proto_rawDescOnce sync.Once |
| 697 |
file_google_cloud_websecurityscanner_v1alpha_scan_config_proto_rawDescData = file_google_cloud_websecurityscanner_v1alpha_scan_config_proto_rawDesc |
| 698 |
) |
| 699 |
|
| 700 |
func file_google_cloud_websecurityscanner_v1alpha_scan_config_proto_rawDescGZIP() []byte { |
| 701 |
file_google_cloud_websecurityscanner_v1alpha_scan_config_proto_rawDescOnce.Do(func() { |
| 702 |
file_google_cloud_websecurityscanner_v1alpha_scan_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_websecurityscanner_v1alpha_scan_config_proto_rawDescData) |
| 703 |
}) |
| 704 |
return file_google_cloud_websecurityscanner_v1alpha_scan_config_proto_rawDescData |
| 705 |
} |
| 706 |
|
| 707 |
var file_google_cloud_websecurityscanner_v1alpha_scan_config_proto_enumTypes = make([]protoimpl.EnumInfo, 2) |
| 708 |
var file_google_cloud_websecurityscanner_v1alpha_scan_config_proto_msgTypes = make([]protoimpl.MessageInfo, 5) |
| 709 |
var file_google_cloud_websecurityscanner_v1alpha_scan_config_proto_goTypes = []interface{}{ |
| 710 |
(ScanConfig_UserAgent)(0), // 0: google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent |
| 711 |
(ScanConfig_TargetPlatform)(0), // 1: google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform |
| 712 |
(*ScanConfig)(nil), // 2: google.cloud.websecurityscanner.v1alpha.ScanConfig |
| 713 |
(*ScanConfig_Authentication)(nil), // 3: google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication |
| 714 |
(*ScanConfig_Schedule)(nil), // 4: google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule |
| 715 |
(*ScanConfig_Authentication_GoogleAccount)(nil), // 5: google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount |
| 716 |
(*ScanConfig_Authentication_CustomAccount)(nil), // 6: google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount |
| 717 |
(*ScanRun)(nil), // 7: google.cloud.websecurityscanner.v1alpha.ScanRun |
| 718 |
(*timestamppb.Timestamp)(nil), // 8: google.protobuf.Timestamp |
| 719 |
} |
| 720 |
var file_google_cloud_websecurityscanner_v1alpha_scan_config_proto_depIdxs = []int32{ |
| 721 |
3, // 0: google.cloud.websecurityscanner.v1alpha.ScanConfig.authentication:type_name -> google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication |
| 722 |
0, // 1: google.cloud.websecurityscanner.v1alpha.ScanConfig.user_agent:type_name -> google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent |
| 723 |
4, // 2: google.cloud.websecurityscanner.v1alpha.ScanConfig.schedule:type_name -> google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule |
| 724 |
1, // 3: google.cloud.websecurityscanner.v1alpha.ScanConfig.target_platforms:type_name -> google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform |
| 725 |
7, // 4: google.cloud.websecurityscanner.v1alpha.ScanConfig.latest_run:type_name -> google.cloud.websecurityscanner.v1alpha.ScanRun |
| 726 |
5, // 5: google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.google_account:type_name -> google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount |
| 727 |
6, // 6: google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.custom_account:type_name -> google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount |
| 728 |
8, // 7: google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.schedule_time:type_name -> google.protobuf.Timestamp |
| 729 |
8, // [8:8] is the sub-list for method output_type |
| 730 |
8, // [8:8] is the sub-list for method input_type |
| 731 |
8, // [8:8] is the sub-list for extension type_name |
| 732 |
8, // [8:8] is the sub-list for extension extendee |
| 733 |
0, // [0:8] is the sub-list for field type_name |
| 734 |
} |
| 735 |
|
| 736 |
func init() { file_google_cloud_websecurityscanner_v1alpha_scan_config_proto_init() } |
| 737 |
func file_google_cloud_websecurityscanner_v1alpha_scan_config_proto_init() { |
| 738 |
if File_google_cloud_websecurityscanner_v1alpha_scan_config_proto != nil { |
| 739 |
return |
| 740 |
} |
| 741 |
file_google_cloud_websecurityscanner_v1alpha_scan_run_proto_init() |
| 742 |
if !protoimpl.UnsafeEnabled { |
| 743 |
file_google_cloud_websecurityscanner_v1alpha_scan_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| 744 |
switch v := v.(*ScanConfig); i { |
| 745 |
case 0: |
| 746 |
return &v.state |
| 747 |
case 1: |
| 748 |
return &v.sizeCache |
| 749 |
case 2: |
| 750 |
return &v.unknownFields |
| 751 |
default: |
| 752 |
return nil |
| 753 |
} |
| 754 |
} |
| 755 |
file_google_cloud_websecurityscanner_v1alpha_scan_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
| 756 |
switch v := v.(*ScanConfig_Authentication); i { |
| 757 |
case 0: |
| 758 |
return &v.state |
| 759 |
case 1: |
| 760 |
return &v.sizeCache |
| 761 |
case 2: |
| 762 |
return &v.unknownFields |
| 763 |
default: |
| 764 |
return nil |
| 765 |
} |
| 766 |
} |
| 767 |
file_google_cloud_websecurityscanner_v1alpha_scan_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { |
| 768 |
switch v := v.(*ScanConfig_Schedule); i { |
| 769 |
case 0: |
| 770 |
return &v.state |
| 771 |
case 1: |
| 772 |
return &v.sizeCache |
| 773 |
case 2: |
| 774 |
return &v.unknownFields |
| 775 |
default: |
| 776 |
return nil |
| 777 |
} |
| 778 |
} |
| 779 |
file_google_cloud_websecurityscanner_v1alpha_scan_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { |
| 780 |
switch v := v.(*ScanConfig_Authentication_GoogleAccount); i { |
| 781 |
case 0: |
| 782 |
return &v.state |
| 783 |
case 1: |
| 784 |
return &v.sizeCache |
| 785 |
case 2: |
| 786 |
return &v.unknownFields |
| 787 |
default: |
| 788 |
return nil |
| 789 |
} |
| 790 |
} |
| 791 |
file_google_cloud_websecurityscanner_v1alpha_scan_config_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { |
| 792 |
switch v := v.(*ScanConfig_Authentication_CustomAccount); i { |
| 793 |
case 0: |
| 794 |
return &v.state |
| 795 |
case 1: |
| 796 |
return &v.sizeCache |
| 797 |
case 2: |
| 798 |
return &v.unknownFields |
| 799 |
default: |
| 800 |
return nil |
| 801 |
} |
| 802 |
} |
| 803 |
} |
| 804 |
file_google_cloud_websecurityscanner_v1alpha_scan_config_proto_msgTypes[1].OneofWrappers = []interface{}{ |
| 805 |
(*ScanConfig_Authentication_GoogleAccount_)(nil), |
| 806 |
(*ScanConfig_Authentication_CustomAccount_)(nil), |
| 807 |
} |
| 808 |
type x struct{} |
| 809 |
out := protoimpl.TypeBuilder{ |
| 810 |
File: protoimpl.DescBuilder{ |
| 811 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 812 |
RawDescriptor: file_google_cloud_websecurityscanner_v1alpha_scan_config_proto_rawDesc, |
| 813 |
NumEnums: 2, |
| 814 |
NumMessages: 5, |
| 815 |
NumExtensions: 0, |
| 816 |
NumServices: 0, |
| 817 |
}, |
| 818 |
GoTypes: file_google_cloud_websecurityscanner_v1alpha_scan_config_proto_goTypes, |
| 819 |
DependencyIndexes: file_google_cloud_websecurityscanner_v1alpha_scan_config_proto_depIdxs, |
| 820 |
EnumInfos: file_google_cloud_websecurityscanner_v1alpha_scan_config_proto_enumTypes, |
| 821 |
MessageInfos: file_google_cloud_websecurityscanner_v1alpha_scan_config_proto_msgTypes, |
| 822 |
}.Build() |
| 823 |
File_google_cloud_websecurityscanner_v1alpha_scan_config_proto = out.File |
| 824 |
file_google_cloud_websecurityscanner_v1alpha_scan_config_proto_rawDesc = nil |
| 825 |
file_google_cloud_websecurityscanner_v1alpha_scan_config_proto_goTypes = nil |
| 826 |
file_google_cloud_websecurityscanner_v1alpha_scan_config_proto_depIdxs = nil |
| 827 |
} |